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