Russell King | 8c414ff | 2011-05-08 18:50:20 +0100 | [diff] [blame] | 1 | #ifndef __ASMARM_I8253_H |
2 | #define __ASMARM_I8253_H | ||||
3 | |||||
4 | /* i8253A PIT registers */ | ||||
5 | #define PIT_MODE 0x43 | ||||
6 | #define PIT_CH0 0x40 | ||||
7 | |||||
8 | #define PIT_LATCH ((PIT_TICK_RATE + HZ / 2) / HZ) | ||||
9 | |||||
10 | extern raw_spinlock_t i8253_lock; | ||||
11 | |||||
12 | #define outb_pit outb_p | ||||
13 | #define inb_pit inb_p | ||||
14 | |||||
15 | #endif |