1 #ifndef _ASM_X86_IRQ_VECTORS_H
2 #define _ASM_X86_IRQ_VECTORS_H
28 #define NMI_VECTOR 0x02
29 #define MCE_VECTOR 0x12
35 #define FIRST_EXTERNAL_VECTOR 0x20
40 #define VECTOR_OFFSET_START 1
47 #define IRQ_MOVE_CLEANUP_VECTOR FIRST_EXTERNAL_VECTOR
49 #define IA32_SYSCALL_VECTOR 0x80
51 # define SYSCALL_VECTOR 0x80
58 #define IRQ0_VECTOR ((FIRST_EXTERNAL_VECTOR + 16) & ~15)
60 #define IRQ1_VECTOR (IRQ0_VECTOR + 1)
61 #define IRQ2_VECTOR (IRQ0_VECTOR + 2)
62 #define IRQ3_VECTOR (IRQ0_VECTOR + 3)
63 #define IRQ4_VECTOR (IRQ0_VECTOR + 4)
64 #define IRQ5_VECTOR (IRQ0_VECTOR + 5)
65 #define IRQ6_VECTOR (IRQ0_VECTOR + 6)
66 #define IRQ7_VECTOR (IRQ0_VECTOR + 7)
67 #define IRQ8_VECTOR (IRQ0_VECTOR + 8)
68 #define IRQ9_VECTOR (IRQ0_VECTOR + 9)
69 #define IRQ10_VECTOR (IRQ0_VECTOR + 10)
70 #define IRQ11_VECTOR (IRQ0_VECTOR + 11)
71 #define IRQ12_VECTOR (IRQ0_VECTOR + 12)
72 #define IRQ13_VECTOR (IRQ0_VECTOR + 13)
73 #define IRQ14_VECTOR (IRQ0_VECTOR + 14)
74 #define IRQ15_VECTOR (IRQ0_VECTOR + 15)
84 #define SPURIOUS_APIC_VECTOR 0xff
88 #if ((SPURIOUS_APIC_VECTOR & 0x0F) != 0x0F)
89 # error SPURIOUS_APIC_VECTOR definition error
92 #define ERROR_APIC_VECTOR 0xfe
93 #define RESCHEDULE_VECTOR 0xfd
94 #define CALL_FUNCTION_VECTOR 0xfc
95 #define CALL_FUNCTION_SINGLE_VECTOR 0xfb
96 #define THERMAL_APIC_VECTOR 0xfa
97 #define THRESHOLD_APIC_VECTOR 0xf9
98 #define REBOOT_VECTOR 0xf8
103 #define X86_PLATFORM_IPI_VECTOR 0xf7
108 #define IRQ_WORK_VECTOR 0xf6
110 #define UV_BAU_MESSAGE 0xf5
113 #define XEN_HVM_EVTCHN_CALLBACK 0xf3
120 #define LOCAL_TIMER_VECTOR 0xef
122 #define NR_VECTORS 256
126 #define FIRST_VM86_IRQ 3
127 #define LAST_VM86_IRQ 15
130 static inline int invalid_vm86_irq(
int irq)
147 #define NR_IRQS_LEGACY 16
149 #define IO_APIC_VECTOR_LIMIT ( 32 * MAX_IO_APICS )
151 #ifdef CONFIG_X86_IO_APIC
152 # define CPU_VECTOR_LIMIT (64 * NR_CPUS)
154 (CPU_VECTOR_LIMIT > IO_APIC_VECTOR_LIMIT ? \
155 (NR_VECTORS + CPU_VECTOR_LIMIT) : \
156 (NR_VECTORS + IO_APIC_VECTOR_LIMIT))
158 # define NR_IRQS NR_IRQS_LEGACY