i8253reg.h File Reference

Back to the index.

Macros
i8253reg.h File Reference

Go to the source code of this file.

Macros

#define I8253_TIMER_FREQ   1193182
 
#define I8253_TIMER_DIV(x)   ((I8253_TIMER_FREQ+(x)/2)/(x))
 
#define I8253_TIMER_CNTR0   0 /* timer 0 counter port */
 
#define I8253_TIMER_CNTR1   1 /* timer 1 counter port */
 
#define I8253_TIMER_CNTR2   2 /* timer 2 counter port */
 
#define I8253_TIMER_MODE   3 /* timer mode port */
 
#define I8253_TIMER_SEL0   0x00 /* select counter 0 */
 
#define I8253_TIMER_SEL1   0x40 /* select counter 1 */
 
#define I8253_TIMER_SEL2   0x80 /* select counter 2 */
 
#define I8253_TIMER_INTTC   0x00 /* mode 0, intr on terminal cnt */
 
#define I8253_TIMER_ONESHOT   0x02 /* mode 1, one shot */
 
#define I8253_TIMER_RATEGEN   0x04 /* mode 2, rate generator */
 
#define I8253_TIMER_SQWAVE   0x06 /* mode 3, square wave */
 
#define I8253_TIMER_SWSTROBE   0x08 /* mode 4, s/w triggered strobe */
 
#define I8253_TIMER_HWSTROBE   0x0a /* mode 5, h/w triggered strobe */
 
#define I8253_TIMER_LATCH   0x00 /* latch counter for reading */
 
#define I8253_TIMER_LSB   0x10 /* r/w counter LSB */
 
#define I8253_TIMER_MSB   0x20 /* r/w counter MSB */
 
#define I8253_TIMER_16BIT   0x30 /* r/w counter 16 bits, LSB first */
 
#define I8253_TIMER_BCD   0x01 /* count in BCD */
 

Macro Definition Documentation

◆ I8253_TIMER_16BIT

#define I8253_TIMER_16BIT   0x30 /* r/w counter 16 bits, LSB first */

Definition at line 98 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_BCD

#define I8253_TIMER_BCD   0x01 /* count in BCD */

Definition at line 99 of file i8253reg.h.

◆ I8253_TIMER_CNTR0

#define I8253_TIMER_CNTR0   0 /* timer 0 counter port */

Definition at line 82 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_CNTR1

#define I8253_TIMER_CNTR1   1 /* timer 1 counter port */

Definition at line 83 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_CNTR2

#define I8253_TIMER_CNTR2   2 /* timer 2 counter port */

Definition at line 84 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_DIV

#define I8253_TIMER_DIV (   x)    ((I8253_TIMER_FREQ+(x)/2)/(x))

Definition at line 77 of file i8253reg.h.

◆ I8253_TIMER_FREQ

#define I8253_TIMER_FREQ   1193182

Definition at line 75 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_HWSTROBE

#define I8253_TIMER_HWSTROBE   0x0a /* mode 5, h/w triggered strobe */

Definition at line 94 of file i8253reg.h.

◆ I8253_TIMER_INTTC

#define I8253_TIMER_INTTC   0x00 /* mode 0, intr on terminal cnt */

Definition at line 89 of file i8253reg.h.

◆ I8253_TIMER_LATCH

#define I8253_TIMER_LATCH   0x00 /* latch counter for reading */

Definition at line 95 of file i8253reg.h.

◆ I8253_TIMER_LSB

#define I8253_TIMER_LSB   0x10 /* r/w counter LSB */

Definition at line 96 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_MODE

#define I8253_TIMER_MODE   3 /* timer mode port */

Definition at line 85 of file i8253reg.h.

◆ I8253_TIMER_MSB

#define I8253_TIMER_MSB   0x20 /* r/w counter MSB */

Definition at line 97 of file i8253reg.h.

Referenced by DEVICE_ACCESS().

◆ I8253_TIMER_ONESHOT

#define I8253_TIMER_ONESHOT   0x02 /* mode 1, one shot */

Definition at line 90 of file i8253reg.h.

◆ I8253_TIMER_RATEGEN

#define I8253_TIMER_RATEGEN   0x04 /* mode 2, rate generator */

Definition at line 91 of file i8253reg.h.

Referenced by DEVINIT().

◆ I8253_TIMER_SEL0

#define I8253_TIMER_SEL0   0x00 /* select counter 0 */

Definition at line 86 of file i8253reg.h.

◆ I8253_TIMER_SEL1

#define I8253_TIMER_SEL1   0x40 /* select counter 1 */

Definition at line 87 of file i8253reg.h.

◆ I8253_TIMER_SEL2

#define I8253_TIMER_SEL2   0x80 /* select counter 2 */

Definition at line 88 of file i8253reg.h.

◆ I8253_TIMER_SQWAVE

#define I8253_TIMER_SQWAVE   0x06 /* mode 3, square wave */

Definition at line 92 of file i8253reg.h.

◆ I8253_TIMER_SWSTROBE

#define I8253_TIMER_SWSTROBE   0x08 /* mode 4, s/w triggered strobe */

Definition at line 93 of file i8253reg.h.


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13