Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / include / asm / irq.h
blob46d41140df27dd9c4f15c713189db2199c1352a2
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
8 #include <mach/irqs.h>
9 #else
10 #define NR_IRQS NR_IRQS_LEGACY
11 #endif
13 #ifndef irq_canonicalize
14 #define irq_canonicalize(i) (i)
15 #endif
18 * Use this value to indicate lack of interrupt
19 * capability
21 #ifndef NO_IRQ
22 #define NO_IRQ ((unsigned int)(-1))
23 #endif
25 #ifndef __ASSEMBLY__
26 struct irqaction;
27 struct pt_regs;
29 extern void asm_do_IRQ(unsigned int, struct pt_regs *);
30 void handle_IRQ(unsigned int, struct pt_regs *);
31 void init_IRQ(void);
33 #ifdef CONFIG_SMP
34 extern void arch_trigger_cpumask_backtrace(const cpumask_t *mask,
35 bool exclude_self);
36 #define arch_trigger_cpumask_backtrace arch_trigger_cpumask_backtrace
37 #endif
39 static inline int nr_legacy_irqs(void)
41 return NR_IRQS_LEGACY;
44 #endif
46 #endif