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