1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_ARM_IRQ_H
3 #define __ASM_ARM_IRQ_H
5 #define NR_IRQS_LEGACY 16
7 #ifndef CONFIG_SPARSE_IRQ
10 #define NR_IRQS NR_IRQS_LEGACY
13 #ifndef irq_canonicalize
14 #define irq_canonicalize(i) (i)
18 * Use this value to indicate lack of interrupt
22 #define NO_IRQ ((unsigned int)(-1))
28 extern void migrate_irqs(void);
30 extern void asm_do_IRQ(unsigned int, struct pt_regs
*);
31 void handle_IRQ(unsigned int, struct pt_regs
*);
34 #ifdef CONFIG_MULTI_IRQ_HANDLER
35 extern void (*handle_arch_irq
)(struct pt_regs
*);
36 extern void set_handle_irq(void (*handle_irq
)(struct pt_regs
*));
40 extern void arch_trigger_cpumask_backtrace(const cpumask_t
*mask
,
42 #define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
45 static inline int nr_legacy_irqs(void)
47 return NR_IRQS_LEGACY
;