diff options
| author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-19 10:55:13 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 11:35:47 -0400 |
| commit | a1a33fa315b8a5a390f1132681485209500ff5b5 (patch) | |
| tree | b61888d030a7c5becc4b2b8bb6e93b9527d04b74 /include | |
| parent | 4abc1a0068945ac078fb0a00a359cd3be2e7dd8d (diff) | |
x86: use bitmap library for pin_programmed
Use bitmap library for pin_programmed rather than reinvent
bitmaps.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-x86/io_apic.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-x86/io_apic.h b/include/asm-x86/io_apic.h index 0c9e17c73e05..d593e14f0341 100644 --- a/include/asm-x86/io_apic.h +++ b/include/asm-x86/io_apic.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #ifndef __ASM_IO_APIC_H | 1 | #ifndef __ASM_IO_APIC_H |
| 2 | #define __ASM_IO_APIC_H | 2 | #define __ASM_IO_APIC_H |
| 3 | 3 | ||
| 4 | #include <asm/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <asm/mpspec.h> | 5 | #include <asm/mpspec.h> |
| 6 | #include <asm/apicdef.h> | 6 | #include <asm/apicdef.h> |
| 7 | 7 | ||
| @@ -110,11 +110,13 @@ extern int nr_ioapic_registers[MAX_IO_APICS]; | |||
| 110 | * MP-BIOS irq configuration table structures: | 110 | * MP-BIOS irq configuration table structures: |
| 111 | */ | 111 | */ |
| 112 | 112 | ||
| 113 | #define MP_MAX_IOAPIC_PIN 127 | ||
| 114 | |||
| 113 | struct mp_ioapic_routing { | 115 | struct mp_ioapic_routing { |
| 114 | int apic_id; | 116 | int apic_id; |
| 115 | int gsi_base; | 117 | int gsi_base; |
| 116 | int gsi_end; | 118 | int gsi_end; |
| 117 | u32 pin_programmed[4]; | 119 | DECLARE_BITMAP(pin_programmed, MP_MAX_IOAPIC_PIN + 1); |
| 118 | }; | 120 | }; |
| 119 | 121 | ||
| 120 | /* I/O APIC entries */ | 122 | /* I/O APIC entries */ |
