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
|
|
|
#define inb_pit inb_p
|
|
|
|
#define outb_pit outb_p
|
|
|
|
|
|
|
|
extern raw_spinlock_t i8253_lock;
|
|
|
|
|
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 */
|