mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 13:05:03 +08:00
74521c28e5
The Jazz machines have to use the PIT timer for dyntick and highresolution kernels. This may break because currently just like i386 used to do MIPS uses two separate spinlocks in the actual PIT code and the PC speaker code. So switch to do it the same that x86 currently does PIT locking. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 lines
382 B
C
20 lines
382 B
C
/*
|
|
* Machine specific IO port address definition for generic.
|
|
* Written by Osamu Tomita <tomita@cinet.co.jp>
|
|
*/
|
|
#ifndef __ASM_I8253_H
|
|
#define __ASM_I8253_H
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
/* i8253A PIT registers */
|
|
#define PIT_MODE 0x43
|
|
#define PIT_CH0 0x40
|
|
#define PIT_CH2 0x42
|
|
|
|
extern spinlock_t i8253_lock;
|
|
|
|
extern void setup_pit_timer(void);
|
|
|
|
#endif /* __ASM_I8253_H */
|