2011-06-01 18:04:57 +00: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 18:04:58 +00:00
|
|
|
*
|
|
|
|
* Machine specific IO port address definition for generic.
|
|
|
|
* Written by Osamu Tomita <tomita@cinet.co.jp>
|
2011-06-01 18:04:57 +00:00
|
|
|
*/
|
|
|
|
#ifndef __LINUX_I8253_H
|
|
|
|
#define __LINUX_I8253_H
|
|
|
|
|
2011-06-01 18:05:07 +00:00
|
|
|
#include <linux/param.h>
|
2011-06-01 18:04:58 +00:00
|
|
|
#include <linux/spinlock.h>
|
2011-06-01 18:05:07 +00:00
|
|
|
#include <linux/timex.h>
|
2011-06-01 18:04:57 +00:00
|
|
|
|
2011-06-01 18:04:58 +00:00
|
|
|
/* i8253A PIT registers */
|
|
|
|
#define PIT_MODE 0x43
|
|
|
|
#define PIT_CH0 0x40
|
|
|
|
#define PIT_CH2 0x42
|
|
|
|
|
2011-06-01 18:05:07 +00:00
|
|
|
#define PIT_LATCH ((PIT_TICK_RATE + HZ/2) / HZ)
|
|
|
|
|
2011-06-01 18:04:58 +00:00
|
|
|
extern raw_spinlock_t i8253_lock;
|
2018-11-04 03:48:54 +00:00
|
|
|
extern bool i8253_clear_counter_on_shutdown;
|
2011-06-09 13:08:25 +00:00
|
|
|
extern struct clock_event_device i8253_clockevent;
|
|
|
|
extern void clockevent_i8253_init(bool oneshot);
|
2011-06-01 18:04:58 +00:00
|
|
|
|
2011-06-01 18:05:08 +00:00
|
|
|
extern void setup_pit_timer(void);
|
|
|
|
|
2011-06-01 18:04:57 +00:00
|
|
|
#endif /* __LINUX_I8253_H */
|