From d564c8537d6a3a3b4d0082bceb9894de08c665f8 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 16 Mar 2005 20:54:48 +0000 Subject: [PATCH] Customize this for the alpha by removing pc98 defines (unused on alpha) as well as saying that the alpha is wired up in a certain way. --- sys/alpha/alpha/timerreg.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/sys/alpha/alpha/timerreg.h b/sys/alpha/alpha/timerreg.h index 21eba904db6..9f0b1aff522 100644 --- a/sys/alpha/alpha/timerreg.h +++ b/sys/alpha/alpha/timerreg.h @@ -55,7 +55,7 @@ * in undefined behavior (but hopefully not fry the chip). * Reading in this manner has no side effects. * - * [IBM-PC] + * [ALPHA] * The outputs of the three timers are connected as follows: * * timer 0 -> irq 0 @@ -64,31 +64,15 @@ * * Timer 0 is used to call hardclock. * Timer 2 is used to generate console beeps. - * - * [PC-9801] - * The outputs of the three timers are connected as follows: - * - * timer 0 -> irq 0 - * timer 1 -> speaker (via keyboard controller) - * timer 2 -> RS232C - * - * Timer 0 is used to call hardclock. - * Timer 1 is used to generate console beeps. */ /* * Macros for specifying values to be written into a mode register. */ #define TIMER_CNTR0 (IO_TIMER1 + 0) /* timer 0 counter port */ -#ifdef PC98 -#define TIMER_CNTR1 0x3fdb /* timer 1 counter port */ -#define TIMER_CNTR2 (IO_TIMER1 + 4) /* timer 2 counter port */ -#define TIMER_MODE (IO_TIMER1 + 6) /* timer mode port */ -#else #define TIMER_CNTR1 (IO_TIMER1 + 1) /* timer 1 counter port */ #define TIMER_CNTR2 (IO_TIMER1 + 2) /* timer 2 counter port */ #define TIMER_MODE (IO_TIMER1 + 3) /* timer mode port */ -#endif #define TIMER_SEL0 0x00 /* select counter 0 */ #define TIMER_SEL1 0x40 /* select counter 1 */ #define TIMER_SEL2 0x80 /* select counter 2 */