i8253reg.h Source File
Back to the index.
Go to the documentation of this file.
74 #ifndef I8253_TIMER_FREQ
75 #define I8253_TIMER_FREQ 1193182
77 #define I8253_TIMER_DIV(x) ((I8253_TIMER_FREQ+(x)/2)/(x))
82 #define I8253_TIMER_CNTR0 0
83 #define I8253_TIMER_CNTR1 1
84 #define I8253_TIMER_CNTR2 2
85 #define I8253_TIMER_MODE 3
86 #define I8253_TIMER_SEL0 0x00
87 #define I8253_TIMER_SEL1 0x40
88 #define I8253_TIMER_SEL2 0x80
89 #define I8253_TIMER_INTTC 0x00
90 #define I8253_TIMER_ONESHOT 0x02
91 #define I8253_TIMER_RATEGEN 0x04
92 #define I8253_TIMER_SQWAVE 0x06
93 #define I8253_TIMER_SWSTROBE 0x08
94 #define I8253_TIMER_HWSTROBE 0x0a
95 #define I8253_TIMER_LATCH 0x00
96 #define I8253_TIMER_LSB 0x10
97 #define I8253_TIMER_MSB 0x20
98 #define I8253_TIMER_16BIT 0x30
99 #define I8253_TIMER_BCD 0x01
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18