2 * This file should contain #defines for all of the interrupt vector
3 * numbers used by this architecture.
5 * In addition, there are some standard defines:
7 * FIRST_EXTERNAL_VECTOR:
8 * The first free place for external interrupts
11 * The IRQ vector a syscall makes the user to kernel transition
15 * The IRQ number the timer interrupt comes in at.
18 * The total number of interrupt vectors (including all the
19 * architecture specific interrupts) needed.
22 * The total number of IO APIC vector inputs
25 #ifndef _ASM_IRQ_VECTORS_H
26 #define _ASM_IRQ_VECTORS_H
29 * IDT vectors usable for external interrupt sources start
32 #define FIRST_EXTERNAL_VECTOR 0x20
34 #define SYSCALL_VECTOR 0x80
37 * Vectors 0x20-0x2f are used for ISA interrupts.
41 * Special IRQ vectors used by the SMP architecture, 0xf0-0xff
43 * some of the following vectors are 'rare', they are merged
44 * into a single vector (CALL_FUNCTION_VECTOR) to save vector space.
45 * TLB, reschedule and local APIC vectors are performance-critical.
47 * Vectors 0xf0-0xfa are free (reserved for future Linux use).
49 #define SPURIOUS_APIC_VECTOR 0xff
50 #define ERROR_APIC_VECTOR 0xfe
51 #define INVALIDATE_TLB_VECTOR 0xfd
52 #define RESCHEDULE_VECTOR 0xfc
53 #define CALL_FUNCTION_VECTOR 0xfb
55 #define THERMAL_APIC_VECTOR 0xf0
57 * Local APIC timer IRQ vector is on a different priority level,
58 * to work around the 'lost local interrupt if more than 2 IRQ
59 * sources per level' errata.
61 #define LOCAL_TIMER_VECTOR 0xef
64 * First APIC vector available to drivers: (vectors 0x30-0xee)
65 * we start at 0x31 to spread out vectors evenly between priority
66 * levels. (0x80 is the syscall vector)
68 #define FIRST_DEVICE_VECTOR 0x31
69 #define FIRST_SYSTEM_VECTOR 0xef
74 * 16 8259A IRQ's, 208 potential APIC interrupt sources.
75 * Right now the APIC is mostly only used for SMP.
76 * 256 vectors is an architectural limit. (we can have
77 * more than 256 devices theoretically, but they will
78 * have to use shared interrupts)
79 * Since vectors 0x00-0x1f are used/reserved for the CPU,
80 * the usable vector space is 0x20-0xff (224 vectors)
82 #ifdef CONFIG_X86_IO_APIC
88 #define NR_VECTORS 256
89 #define NR_IRQ_VECTORS NR_IRQS
93 #define FIRST_VM86_IRQ 2
94 #define LAST_VM86_IRQ 15
95 #define invalid_vm86_irq(irq) ((irq) < 2 || (irq) == 7 || (irq) > 15)
97 #endif /* _ASM_IRQ_VECTORS_H */