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 */
19 /* External interruption codes */
20 #define EXT_IRQ_INTERRUPT_KEY 0x0040
21 #define EXT_IRQ_CLK_COMP 0x1004
22 #define EXT_IRQ_CPU_TIMER 0x1005
23 #define EXT_IRQ_WARNING_TRACK 0x1007
24 #define EXT_IRQ_MALFUNC_ALERT 0x1200
25 #define EXT_IRQ_EMERGENCY_SIG 0x1201
26 #define EXT_IRQ_EXTERNAL_CALL 0x1202
27 #define EXT_IRQ_TIMING_ALERT 0x1406
28 #define EXT_IRQ_MEASURE_ALERT 0x1407
29 #define EXT_IRQ_SERVICE_SIG 0x2401
30 #define EXT_IRQ_CP_SERVICE 0x2603
31 #define EXT_IRQ_IUCV 0x4000
35 #include <linux/hardirq.h>
36 #include <linux/percpu.h>
37 #include <linux/cache.h>
38 #include <linux/types.h>
40 enum interruption_class {
77 unsigned int irqs[NR_ARCH_IRQS];
80 DECLARE_PER_CPU_SHARED_ALIGNED(struct irq_stat, irq_stat);
82 static __always_inline void inc_irq_stat(enum interruption_class irq)
84 __get_cpu_var(irq_stat).irqs[irq]++;
88 unsigned short subcode;
92 typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
94 int register_external_irq(u16 code, ext_int_handler_t handler);
95 int unregister_external_irq(u16 code, ext_int_handler_t handler);
98 IRQ_SUBCLASS_MEASUREMENT_ALERT = 5,
99 IRQ_SUBCLASS_SERVICE_SIGNAL = 9,
102 void irq_subclass_register(enum irq_subclass subclass);
103 void irq_subclass_unregister(enum irq_subclass subclass);
105 #define irq_canonicalize(irq) (irq)
107 #endif /* __ASSEMBLY__ */
109 #endif /* _ASM_IRQ_H */