4 #define EXT_INTERRUPT 0
6 #define THIN_INTERRUPT 2
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 /* External interruption codes */
17 #define EXT_IRQ_INTERRUPT_KEY 0x0040
18 #define EXT_IRQ_CLK_COMP 0x1004
19 #define EXT_IRQ_CPU_TIMER 0x1005
20 #define EXT_IRQ_WARNING_TRACK 0x1007
21 #define EXT_IRQ_MALFUNC_ALERT 0x1200
22 #define EXT_IRQ_EMERGENCY_SIG 0x1201
23 #define EXT_IRQ_EXTERNAL_CALL 0x1202
24 #define EXT_IRQ_TIMING_ALERT 0x1406
25 #define EXT_IRQ_MEASURE_ALERT 0x1407
26 #define EXT_IRQ_SERVICE_SIG 0x2401
27 #define EXT_IRQ_CP_SERVICE 0x2603
28 #define EXT_IRQ_IUCV 0x4000
32 #include <linux/hardirq.h>
33 #include <linux/percpu.h>
34 #include <linux/cache.h>
35 #include <linux/types.h>
37 enum interruption_class {
75 unsigned int irqs[NR_ARCH_IRQS];
78 DECLARE_PER_CPU_SHARED_ALIGNED(struct irq_stat, irq_stat);
80 static __always_inline void inc_irq_stat(enum interruption_class irq)
82 __this_cpu_inc(irq_stat.irqs[irq]);
86 unsigned short subcode;
90 typedef void (*ext_int_handler_t)(struct ext_code, unsigned int, unsigned long);
92 int register_external_irq(u16 code, ext_int_handler_t handler);
93 int unregister_external_irq(u16 code, ext_int_handler_t handler);
96 IRQ_SUBCLASS_MEASUREMENT_ALERT = 5,
97 IRQ_SUBCLASS_SERVICE_SIGNAL = 9,
100 void irq_subclass_register(enum irq_subclass subclass);
101 void irq_subclass_unregister(enum irq_subclass subclass);
103 #define irq_canonicalize(irq) (irq)
105 #endif /* __ASSEMBLY__ */
107 #endif /* _ASM_IRQ_H */