| Ralf Baechle | 334955e | 2011-06-01 19:04:57 +0100 | [diff] [blame] | 1 | /* | 
 | 2 |  * This file is subject to the terms and conditions of the GNU General Public | 
 | 3 |  * License.  See the file "COPYING" in the main directory of this archive | 
 | 4 |  * for more details. | 
| Ralf Baechle | cb2455a | 2011-06-01 19:04:58 +0100 | [diff] [blame] | 5 |  * | 
 | 6 |  *  Machine specific IO port address definition for generic. | 
 | 7 |  *  Written by Osamu Tomita <tomita@cinet.co.jp> | 
| Ralf Baechle | 334955e | 2011-06-01 19:04:57 +0100 | [diff] [blame] | 8 |  */ | 
 | 9 | #ifndef __LINUX_I8253_H | 
 | 10 | #define __LINUX_I8253_H | 
 | 11 |  | 
| Ralf Baechle | 49cf3f2 | 2011-06-01 19:05:07 +0100 | [diff] [blame] | 12 | #include <linux/param.h> | 
| Ralf Baechle | cb2455a | 2011-06-01 19:04:58 +0100 | [diff] [blame] | 13 | #include <linux/spinlock.h> | 
| Ralf Baechle | 49cf3f2 | 2011-06-01 19:05:07 +0100 | [diff] [blame] | 14 | #include <linux/timex.h> | 
| Ralf Baechle | 334955e | 2011-06-01 19:04:57 +0100 | [diff] [blame] | 15 |  | 
| Ralf Baechle | cb2455a | 2011-06-01 19:04:58 +0100 | [diff] [blame] | 16 | /* i8253A PIT registers */ | 
 | 17 | #define PIT_MODE	0x43 | 
 | 18 | #define PIT_CH0		0x40 | 
 | 19 | #define PIT_CH2		0x42 | 
 | 20 |  | 
| Ralf Baechle | 49cf3f2 | 2011-06-01 19:05:07 +0100 | [diff] [blame] | 21 | #define PIT_LATCH	((PIT_TICK_RATE + HZ/2) / HZ) | 
 | 22 |  | 
| Ralf Baechle | cb2455a | 2011-06-01 19:04:58 +0100 | [diff] [blame] | 23 | extern raw_spinlock_t i8253_lock; | 
| Thomas Gleixner | e6220bd | 2011-06-09 13:08:25 +0000 | [diff] [blame] | 24 | extern struct clock_event_device i8253_clockevent; | 
 | 25 | extern void clockevent_i8253_init(bool oneshot); | 
| Ralf Baechle | cb2455a | 2011-06-01 19:04:58 +0100 | [diff] [blame] | 26 |  | 
| Ralf Baechle | 8504927 | 2011-06-01 19:05:08 +0100 | [diff] [blame] | 27 | extern void setup_pit_timer(void); | 
 | 28 |  | 
| Ralf Baechle | 334955e | 2011-06-01 19:04:57 +0100 | [diff] [blame] | 29 | #endif /* __LINUX_I8253_H */ |