1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef __ASM_ARM_IRQ_H 3 #define __ASM_ARM_IRQ_H 4 5 #define NR_IRQS_LEGACY 16 6 7 #ifndef CONFIG_SPARSE_IRQ 8 #include <mach/irqs.h> 9 #else 10 #define NR_IRQS NR_IRQS_LEGACY 11 #endif 12 13 #ifndef irq_canonicalize 14 #define irq_canonicalize(i) (i) 15 #endif 16 17 /* 18 * Use this value to indicate lack of interrup 19 * capability 20 */ 21 #ifndef NO_IRQ 22 #define NO_IRQ ((unsigned int)(-1)) 23 #endif 24 25 #ifndef __ASSEMBLY__ 26 struct irqaction; 27 struct pt_regs; 28 29 void handle_IRQ(unsigned int, struct pt_regs * 30 31 #ifdef CONFIG_SMP 32 #include <linux/cpumask.h> 33 34 extern void arch_trigger_cpumask_backtrace(con 35 int 36 #define arch_trigger_cpumask_backtrace arch_tr 37 #endif 38 39 static inline int nr_legacy_irqs(void) 40 { 41 return NR_IRQS_LEGACY; 42 } 43 44 #endif 45 46 #endif 47 48
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.