Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_ARM_IRQ_H |
| 2 | #define __ASM_ARM_IRQ_H |
| 3 | |
Rob Herring | a2be01b | 2012-01-03 15:17:23 -0600 | [diff] [blame] | 4 | #define NR_IRQS_LEGACY 16 |
| 5 | |
| 6 | #ifndef CONFIG_SPARSE_IRQ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 7 | #include <mach/irqs.h> |
Rob Herring | a2be01b | 2012-01-03 15:17:23 -0600 | [diff] [blame] | 8 | #else |
| 9 | #define NR_IRQS NR_IRQS_LEGACY |
| 10 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
| 12 | #ifndef irq_canonicalize |
| 13 | #define irq_canonicalize(i) (i) |
| 14 | #endif |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | /* |
| 17 | * Use this value to indicate lack of interrupt |
| 18 | * capability |
| 19 | */ |
| 20 | #ifndef NO_IRQ |
| 21 | #define NO_IRQ ((unsigned int)(-1)) |
| 22 | #endif |
| 23 | |
Arnaud Patard | 431d2cd | 2006-12-27 22:56:44 +0100 | [diff] [blame] | 24 | #ifndef __ASSEMBLY__ |
| 25 | struct irqaction; |
viresh kumar | aedceb2 | 2010-03-29 05:29:57 +0100 | [diff] [blame] | 26 | struct pt_regs; |
Russell King | a054a81 | 2005-11-02 22:24:33 +0000 | [diff] [blame] | 27 | extern void migrate_irqs(void); |
Russell King | 446616d | 2008-09-06 10:56:27 +0100 | [diff] [blame] | 28 | |
| 29 | extern void asm_do_IRQ(unsigned int, struct pt_regs *); |
Russell King - ARM Linux | a4841e3 | 2011-07-11 22:25:43 +0100 | [diff] [blame] | 30 | void handle_IRQ(unsigned int, struct pt_regs *); |
Russell King | 446616d | 2008-09-06 10:56:27 +0100 | [diff] [blame] | 31 | void init_IRQ(void); |
| 32 | |
Catalin Marinas | f36a3bb1 | 2013-01-18 15:20:06 +0000 | [diff] [blame] | 33 | #ifdef CONFIG_MULTI_IRQ_HANDLER |
| 34 | extern void (*handle_arch_irq)(struct pt_regs *); |
| 35 | extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); |
| 36 | #endif |
| 37 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | #endif |
| 39 | |
Arnaud Patard | 431d2cd | 2006-12-27 22:56:44 +0100 | [diff] [blame] | 40 | #endif |
| 41 | |