Haavard Skinnemoen | 6a4e522 | 2007-02-05 16:57:13 +0100 | [diff] [blame] | 1 | #ifndef __ASM_AVR32_ARCH_IRQ_H |
| 2 | #define __ASM_AVR32_ARCH_IRQ_H |
| 3 | |
| 4 | #define EIM_IRQ_BASE NR_INTERNAL_IRQS |
| 5 | #define NR_EIM_IRQS 32 |
Haavard Skinnemoen | 6a4e522 | 2007-02-05 16:57:13 +0100 | [diff] [blame] | 6 | #define AT32_EXTINT(n) (EIM_IRQ_BASE + (n)) |
| 7 | |
| 8 | #define GPIO_IRQ_BASE (EIM_IRQ_BASE + NR_EIM_IRQS) |
David Brownell | b98348b | 2008-02-04 22:28:28 -0800 | [diff] [blame] | 9 | #define NR_GPIO_CTLR (5 /*internal*/ + 1 /*external*/) |
| 10 | #define NR_GPIO_IRQS (NR_GPIO_CTLR * 32) |
Haavard Skinnemoen | 6a4e522 | 2007-02-05 16:57:13 +0100 | [diff] [blame] | 11 | |
| 12 | #define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS) |
| 13 | |
| 14 | #endif /* __ASM_AVR32_ARCH_IRQ_H */ |