4 #define EXT_INTERRUPT 1
6 #define THIN_INTERRUPT 3
10 #ifdef CONFIG_PCI_NR_MSI
11 # define NR_IRQS (NR_IRQS_BASE + CONFIG_PCI_NR_MSI)
13 # define NR_IRQS NR_IRQS_BASE
16 /* This number is used when no interrupt has been assigned */
21 #include <linux/hardirq.h>
22 #include <linux/percpu.h>
23 #include <linux/cache.h>
24 #include <linux/types.h>
26 enum interruption_class {
63 unsigned int irqs[NR_ARCH_IRQS];
66 DECLARE_PER_CPU_SHARED_ALIGNED(struct irq_stat, irq_stat);
68 static __always_inline void inc_irq_stat(enum interruption_class irq)
70 __get_cpu_var(irq_stat).irqs[irq]++;
74 unsigned short subcode;
78 typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
80 int register_external_interrupt(u16 code, ext_int_handler_t handler);
81 int unregister_external_interrupt(u16 code, ext_int_handler_t handler);
84 IRQ_SUBCLASS_MEASUREMENT_ALERT = 5,
85 IRQ_SUBCLASS_SERVICE_SIGNAL = 9,
88 void irq_subclass_register(enum irq_subclass subclass);
89 void irq_subclass_unregister(enum irq_subclass subclass);
91 #define irq_canonicalize(irq) (irq)
93 #endif /* __ASSEMBLY__ */
95 #endif /* _ASM_IRQ_H */