David Howells | 6044cf1 | 2010-10-27 17:28:58 +0100 | [diff] [blame] | 1 | /* ASB2364 FPGA irq numbers |
| 2 | * |
| 3 | * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | #ifndef _UNIT_IRQ_H |
| 12 | #define _UNIT_IRQ_H |
| 13 | |
| 14 | #ifndef __ASSEMBLY__ |
| 15 | |
| 16 | #ifdef CONFIG_SMP |
| 17 | #define NR_CPU_IRQS GxICR_NUM_EXT_IRQS |
| 18 | #else |
| 19 | #define NR_CPU_IRQS GxICR_NUM_IRQS |
| 20 | #endif |
| 21 | |
| 22 | enum { |
| 23 | FPGA_LAN_IRQ = NR_CPU_IRQS, |
| 24 | FPGA_UART_IRQ, |
| 25 | FPGA_I2C_IRQ, |
| 26 | FPGA_USB_IRQ, |
| 27 | FPGA_RESERVED_IRQ, |
| 28 | FPGA_FPGA_IRQ, |
| 29 | NR_IRQS |
| 30 | }; |
| 31 | |
| 32 | extern void __init irq_fpga_init(void); |
| 33 | |
| 34 | #endif /* !__ASSEMBLY__ */ |
| 35 | #endif /* _UNIT_IRQ_H */ |