1 #ifndef __ASM_ARM_IRQ_H
2 #define __ASM_ARM_IRQ_H
4 #define NR_IRQS_LEGACY 16
6 #ifndef CONFIG_SPARSE_IRQ
9 #define NR_IRQS NR_IRQS_LEGACY
12 #ifndef irq_canonicalize
13 #define irq_canonicalize(i) (i)
17 * Use this value to indicate lack of interrupt
21 #define NO_IRQ ((unsigned int)(-1))
27 extern void migrate_irqs(void);
29 extern void asm_do_IRQ(unsigned int, struct pt_regs
*);
30 void handle_IRQ(unsigned int, struct pt_regs
*);
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
*));
39 extern void arch_trigger_all_cpu_backtrace(bool);
40 #define arch_trigger_all_cpu_backtrace(x) arch_trigger_all_cpu_backtrace(x)
43 static inline int nr_legacy_irqs(void)
45 return NR_IRQS_LEGACY
;