10 #define TIMER_FREQ 1193182
12 #define BIT(n) (0x01<<(n))
21 #define TIMER_CTRL 0x43
23 #define SPEAKER_CTRL 0x61
29 #define TIMER_SEL0 0x00
30 #define TIMER_SEL1 BIT(6)
31 #define TIMER_SEL2 BIT(7)
32 #define TIMER_RB_CMD (BIT(7)|BIT(6))
36 #define TIMER_LSB BIT(4)
37 #define TIMER_MSB BIT(5)
38 #define TIMER_LSB_MSB (TIMER_LSB | TIMER_MSB)
42 #define TIMER_SQR_WAVE (BIT(2)|BIT(1))
43 #define TIMER_RATE_GEN BIT(2)
47 #define TIMER_BCD 0x01
48 #define TIMER_BIN 0x00
52 #define TIMER_RB_COUNT_ BIT(5)
53 #define TIMER_RB_STATUS_ BIT(4)
54 #define TIMER_RB_SEL(n) BIT((n)+1)