aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2007-02-23 06:38:26 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-26 13:34:08 -0500
commitbc5e81a1519abc69472bb67deace7bb1ac09d65a (patch)
tree7d7d22f638e1d50ed1f3774f114b8d9dca1b2d56 /include/asm-x86_64
parentb93179bdfcbb0154e63e57194e2648bd0ff648a7 (diff)
[PATCH] x86_64 irq: Add constants for the reserved IRQ vectors.
For the ISA irqs we reserve 16 vectors. This patch adds constants for those vectors and modifies the code to use them. Making the code a little clearer and making it possible to move these vectors in the future. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r--include/asm-x86_64/hw_irq.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/asm-x86_64/hw_irq.h b/include/asm-x86_64/hw_irq.h
index 552df5f10a6d..dc395edc2f2a 100644
--- a/include/asm-x86_64/hw_irq.h
+++ b/include/asm-x86_64/hw_irq.h
@@ -35,6 +35,22 @@
35/* 35/*
36 * Vectors 0x20-0x2f are used for ISA interrupts. 36 * Vectors 0x20-0x2f are used for ISA interrupts.
37 */ 37 */
38#define IRQ0_VECTOR FIRST_EXTERNAL_VECTOR
39#define IRQ1_VECTOR IRQ0_VECTOR + 1
40#define IRQ2_VECTOR IRQ0_VECTOR + 2
41#define IRQ3_VECTOR IRQ0_VECTOR + 3
42#define IRQ4_VECTOR IRQ0_VECTOR + 4
43#define IRQ5_VECTOR IRQ0_VECTOR + 5
44#define IRQ6_VECTOR IRQ0_VECTOR + 6
45#define IRQ7_VECTOR IRQ0_VECTOR + 7
46#define IRQ8_VECTOR IRQ0_VECTOR + 8
47#define IRQ9_VECTOR IRQ0_VECTOR + 9
48#define IRQ10_VECTOR IRQ0_VECTOR + 10
49#define IRQ11_VECTOR IRQ0_VECTOR + 11
50#define IRQ12_VECTOR IRQ0_VECTOR + 12
51#define IRQ13_VECTOR IRQ0_VECTOR + 13
52#define IRQ14_VECTOR IRQ0_VECTOR + 14
53#define IRQ15_VECTOR IRQ0_VECTOR + 15
38 54
39/* 55/*
40 * Special IRQ vectors used by the SMP architecture, 0xf0-0xff 56 * Special IRQ vectors used by the SMP architecture, 0xf0-0xff
@@ -69,7 +85,7 @@
69 * we start at 0x31 to spread out vectors evenly between priority 85 * we start at 0x31 to spread out vectors evenly between priority
70 * levels. (0x80 is the syscall vector) 86 * levels. (0x80 is the syscall vector)
71 */ 87 */
72#define FIRST_DEVICE_VECTOR 0x31 88#define FIRST_DEVICE_VECTOR (IRQ15_VECTOR + 2)
73#define FIRST_SYSTEM_VECTOR 0xef /* duplicated in irq.h */ 89#define FIRST_SYSTEM_VECTOR 0xef /* duplicated in irq.h */
74 90
75 91