git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patch-2_6_7-vs1_9_1_12
[linux-2.6.git]
/
arch
/
alpha
/
kernel
/
sys_ruffian.c
diff --git
a/arch/alpha/kernel/sys_ruffian.c
b/arch/alpha/kernel/sys_ruffian.c
index
3438b8d
..
ccabcb1
100644
(file)
--- a/
arch/alpha/kernel/sys_ruffian.c
+++ b/
arch/alpha/kernel/sys_ruffian.c
@@
-25,6
+25,7
@@
#include <asm/pgtable.h>
#include <asm/core_cia.h>
#include <asm/tlbflush.h>
#include <asm/pgtable.h>
#include <asm/core_cia.h>
#include <asm/tlbflush.h>
+#include <asm/8253pit.h>
#include "proto.h"
#include "irq_impl.h"
#include "proto.h"
#include "irq_impl.h"
@@
-64,6
+65,8
@@
ruffian_init_irq(void)
common_init_isa_dma();
}
common_init_isa_dma();
}
+#define RUFFIAN_LATCH ((PIT_TICK_RATE + HZ / 2) / HZ)
+
static void __init
ruffian_init_rtc(void)
{
static void __init
ruffian_init_rtc(void)
{
@@
-72,8
+75,8
@@
ruffian_init_rtc(void)
/* Setup interval timer. */
outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */
/* Setup interval timer. */
outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */
- outb(LATCH & 0xff, 0x40); /* LSB */
- outb(LATCH >> 8, 0x40); /* MSB */
+ outb(
RUFFIAN_
LATCH & 0xff, 0x40); /* LSB */
+ outb(
RUFFIAN_
LATCH >> 8, 0x40); /* MSB */
outb(0xb6, 0x43); /* pit counter 2: speaker */
outb(0x31, 0x42);
outb(0xb6, 0x43); /* pit counter 2: speaker */
outb(0x31, 0x42);