diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2008-01-30 07:33:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:14 -0500 |
commit | 466eed22d127a1f16e1251cdc54a9f8f944140c0 (patch) | |
tree | f9b85efa895f3e2dd7f112a4aded5b2ae0bd0ca2 /include | |
parent | fb8830e72d9bd86f1e7b6886cb1886c391130f86 (diff) |
x86: isolate PIC/PIT in/out calls
Rather than remove and/or mangle inb_p/outb_p we want to remove the use
of them from inappropriate places. For the PIC/PIT this may eventually
depend on 32/64bitism or similar so start by adding inb/outb_pit and
inb/outb_pic so that we can make them use any scheme we settle on without
disturbing the existing, correct (for ISA), port 0x80 usage. (eg we can
make inb_pit use udelay without messing up inb_p).
Floppy already does this for the fdc. That really only leaves the CMOS as
a core logic item to tackle, and bits of parallel port handling in the
chipset layers.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/i8253.h | 3 | ||||
-rw-r--r-- | include/asm-x86/i8259.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/i8253.h b/include/asm-x86/i8253.h index 747548ec5d1d..b51c0487fc41 100644 --- a/include/asm-x86/i8253.h +++ b/include/asm-x86/i8253.h | |||
@@ -12,4 +12,7 @@ extern struct clock_event_device *global_clock_event; | |||
12 | 12 | ||
13 | extern void setup_pit_timer(void); | 13 | extern void setup_pit_timer(void); |
14 | 14 | ||
15 | #define inb_pit inb_p | ||
16 | #define outb_pit outb_p | ||
17 | |||
15 | #endif /* __ASM_I8253_H__ */ | 18 | #endif /* __ASM_I8253_H__ */ |
diff --git a/include/asm-x86/i8259.h b/include/asm-x86/i8259.h index cabcc6cf3923..67c319e0efc7 100644 --- a/include/asm-x86/i8259.h +++ b/include/asm-x86/i8259.h | |||
@@ -29,4 +29,7 @@ extern void enable_8259A_irq(unsigned int irq); | |||
29 | extern void disable_8259A_irq(unsigned int irq); | 29 | extern void disable_8259A_irq(unsigned int irq); |
30 | extern unsigned int startup_8259A_irq(unsigned int irq); | 30 | extern unsigned int startup_8259A_irq(unsigned int irq); |
31 | 31 | ||
32 | #define inb_pic inb_p | ||
33 | #define outb_pic outb_p | ||
34 | |||
32 | #endif /* __ASM_I8259_H__ */ | 35 | #endif /* __ASM_I8259_H__ */ |