blob: 1edbf89680fd57e577e6ccae74e5ef110d285414 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_I8253_H
2#define _ASM_X86_I8253_H
Thomas Gleixner0190dae2007-10-12 23:04:06 +02003
Thomas Gleixner0190dae2007-10-12 23:04:06 +02004/* i8253A PIT registers */
5#define PIT_MODE 0x43
6#define PIT_CH0 0x40
7#define PIT_CH2 0x42
8
9extern spinlock_t i8253_lock;
10
Thomas Gleixner0190dae2007-10-12 23:04:06 +020011extern struct clock_event_device *global_clock_event;
12
13extern void setup_pit_timer(void);
14
Alan Cox466eed22008-01-30 13:33:14 +010015#define inb_pit inb_p
16#define outb_pit outb_p
17
H. Peter Anvin1965aae2008-10-22 22:26:29 -070018#endif /* _ASM_X86_I8253_H */