x86: use bitmap library for pin_programmed

Use bitmap library for pin_programmed rather than reinvent
bitmaps.

Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Akinobu Mita 2008-04-19 23:55:13 +09:00 • committed by Ingo Molnar
commit a1a33fa315
2 changed files with 9 additions and 11 deletions

View file

@ -1,7 +1,7 @@
#ifndef __ASM_IO_APIC_H
#define __ASM_IO_APIC_H
#include <asm/types.h>
#include <linux/types.h>
#include <asm/mpspec.h>
#include <asm/apicdef.h>
@ -110,11 +110,13 @@ extern int nr_ioapic_registers[MAX_IO_APICS];
* MP-BIOS irq configuration table structures:
*/
#define MP_MAX_IOAPIC_PIN 127
struct mp_ioapic_routing {
int apic_id;
int gsi_base;
int gsi_end;
u32 pin_programmed[4];
DECLARE_BITMAP(pin_programmed, MP_MAX_IOAPIC_PIN + 1);
};
/* I/O APIC entries */