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 {
62 unsigned int irqs[NR_ARCH_IRQS];
65 DECLARE_PER_CPU_SHARED_ALIGNED(struct irq_stat, irq_stat);
67 static __always_inline void inc_irq_stat(enum interruption_class irq)
69 __get_cpu_var(irq_stat).irqs[irq]++;
73 unsigned short subcode;
77 typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
79 int register_external_interrupt(u16 code, ext_int_handler_t handler);
80 int unregister_external_interrupt(u16 code, ext_int_handler_t handler);
83 IRQ_SUBCLASS_MEASUREMENT_ALERT = 5,
84 IRQ_SUBCLASS_SERVICE_SIGNAL = 9,
87 void irq_subclass_register(enum irq_subclass subclass);
88 void irq_subclass_unregister(enum irq_subclass subclass);
90 #define irq_canonicalize(irq) (irq)
92 #endif /* __ASSEMBLY__ */
94 #endif /* _ASM_IRQ_H */