Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 1 | #ifndef __ASM_AVR32_IRQ_H |
| 2 | #define __ASM_AVR32_IRQ_H |
| 3 | |
| 4 | #define NR_INTERNAL_IRQS 64 |
Haavard Skinnemoen | 6a4e522 | 2007-02-05 16:57:13 +0100 | [diff] [blame] | 5 | |
| 6 | #include <asm/arch/irq.h> |
| 7 | |
| 8 | #ifndef NR_IRQS |
| 9 | #define NR_IRQS (NR_INTERNAL_IRQS) |
| 10 | #endif |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 11 | |
| 12 | #define irq_canonicalize(i) (i) |
| 13 | |
Haavard Skinnemoen | e7ba176 | 2007-10-10 14:58:29 +0200 | [diff] [blame] | 14 | #ifndef __ASSEMBLER__ |
| 15 | int nmi_enable(void); |
| 16 | void nmi_disable(void); |
Haavard Skinnemoen | 46acb55 | 2008-02-24 14:09:25 +0100 | [diff] [blame] | 17 | |
| 18 | /* |
| 19 | * Returns a bitmask of pending interrupts in a group. |
| 20 | */ |
| 21 | extern unsigned long intc_get_pending(unsigned int group); |
Haavard Skinnemoen | e7ba176 | 2007-10-10 14:58:29 +0200 | [diff] [blame] | 22 | #endif |
| 23 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 24 | #endif /* __ASM_AVR32_IOCTLS_H */ |