H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_I8253_H |
| 2 | #define _ASM_X86_I8253_H |
Thomas Gleixner | 0190dae | 2007-10-12 23:04:06 +0200 | [diff] [blame] | 3 | |
Thomas Gleixner | 0190dae | 2007-10-12 23:04:06 +0200 | [diff] [blame] | 4 | /* i8253A PIT registers */ |
| 5 | #define PIT_MODE 0x43 |
| 6 | #define PIT_CH0 0x40 |
| 7 | #define PIT_CH2 0x42 |
| 8 | |
Russell King | 8249145 | 2011-05-08 18:55:19 +0100 | [diff] [blame] | 9 | #define PIT_LATCH LATCH |
| 10 | |
Thomas Gleixner | ced918e | 2010-02-17 16:47:10 +0000 | [diff] [blame] | 11 | extern raw_spinlock_t i8253_lock; |
Thomas Gleixner | 0190dae | 2007-10-12 23:04:06 +0200 | [diff] [blame] | 12 | |
Thomas Gleixner | 0190dae | 2007-10-12 23:04:06 +0200 | [diff] [blame] | 13 | extern struct clock_event_device *global_clock_event; |
| 14 | |
| 15 | extern void setup_pit_timer(void); |
| 16 | |
Alan Cox | 466eed2 | 2008-01-30 13:33:14 +0100 | [diff] [blame] | 17 | #define inb_pit inb_p |
| 18 | #define outb_pit outb_p |
| 19 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 20 | #endif /* _ASM_X86_I8253_H */ |