mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 20:51:47 +00:00
466eed22d1
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>
19 lines
345 B
C
19 lines
345 B
C
#ifndef __ASM_I8253_H__
|
|
#define __ASM_I8253_H__
|
|
|
|
/* i8253A PIT registers */
|
|
#define PIT_MODE 0x43
|
|
#define PIT_CH0 0x40
|
|
#define PIT_CH2 0x42
|
|
|
|
extern spinlock_t i8253_lock;
|
|
|
|
extern struct clock_event_device *global_clock_event;
|
|
|
|
extern void setup_pit_timer(void);
|
|
|
|
#define inb_pit inb_p
|
|
#define outb_pit outb_p
|
|
|
|
#endif /* __ASM_I8253_H__ */
|