2011-06-01 22:04:57 +04:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
2011-06-01 22:04:58 +04:00
|
|
|
*
|
|
|
|
* Machine specific IO port address definition for generic.
|
|
|
|
* Written by Osamu Tomita <tomita@cinet.co.jp>
|
2011-06-01 22:04:57 +04:00
|
|
|
*/
|
|
|
|
#ifndef __LINUX_I8253_H
|
|
|
|
#define __LINUX_I8253_H
|
|
|
|
|
2011-06-01 22:05:07 +04:00
|
|
|
#include <linux/param.h>
|
2011-06-01 22:04:58 +04:00
|
|
|
#include <linux/spinlock.h>
|
2011-06-01 22:05:07 +04:00
|
|
|
#include <linux/timex.h>
|
2011-06-01 22:04:57 +04:00
|
|
|
|
2011-06-01 22:04:58 +04:00
|
|
|
/* i8253A PIT registers */
|
|
|
|
#define PIT_MODE 0x43
|
|
|
|
#define PIT_CH0 0x40
|
|
|
|
#define PIT_CH2 0x42
|
|
|
|
|
2011-06-01 22:05:07 +04:00
|
|
|
#define PIT_LATCH ((PIT_TICK_RATE + HZ/2) / HZ)
|
|
|
|
|
2011-06-01 22:04:58 +04:00
|
|
|
extern raw_spinlock_t i8253_lock;
|
2011-06-09 17:08:25 +04:00
|
|
|
extern struct clock_event_device i8253_clockevent;
|
|
|
|
extern void clockevent_i8253_init(bool oneshot);
|
2011-06-01 22:04:58 +04:00
|
|
|
|
2011-06-01 22:05:08 +04:00
|
|
|
extern void setup_pit_timer(void);
|
|
|
|
|
2011-06-01 22:04:57 +04:00
|
|
|
#endif /* __LINUX_I8253_H */
|