48 assert ( ticks <= 0xffff );
60 low = ( ( ticks >> 0 ) & 0xff );
61 high = ( ( ticks >> 8 ) & 0xff );
uint32_t low
Low 16 bits of address.
#define PIT8254_CMD_CHANNEL(channel)
Select channel.
#define PIT8254_CMD_ACCESS_LOHI
Low-byte, high-byte pair.
#define PIT8254_SPKR_ENABLE
PC speaker enabled.
#define PIT8254_CMD
Mode/command register.
void pit8254_speaker_delay(unsigned int ticks)
Delay for a fixed number of timer ticks using the speaker channel.
#define PIT8254_CMD_OP_TERMINAL
Interrupt on terminal count.
#define PIT8254_SPKR_OUT
PC speaker channel output.
#define PIT8254_SPKR
PC speaker control register.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
#define PIT8254_DATA(channel)
Data port.
uint32_t high
High 32 bits of address.
#define PIT8254_CH_SPKR
PC speaker channel.
#define PIT8254_CMD_BINARY
Binary mode.
8254 Programmable Interval Timer
uint8_t inb(volatile uint8_t *io_addr)
Read byte from I/O-mapped device.
#define outb(data, io_addr)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define PIT8254_SPKR_GATE
PC speaker channel gate.