IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::arch::anonymous_namespace{serial.cpp} Namespace Reference

Anonymous namespace. More...

Enumerations

enum class  SERIAL_REG : igros_word_t {
  DATA = 0x00_u16 , IER = 0x01_u16 , IIR = 0x02_u16 , LCR = 0x03_u16 ,
  MCR = 0x04_u16 , LSR = 0x05_u16 , MSR = 0x06_u16 , SCRATCH = 0x07_u16
}
 Serial port registers (offsets from port base). More...
enum class  SERIAL_LSR : igros_byte_t { DATA_READY = 0x01_u8 , THR_EMPTY = 0x20_u8 , TX_IDLE = 0x40_u8 }
 Line status register bits. More...
enum class  SERIAL_IER : igros_byte_t { RX_READY = 0x01_u8 }
 Interrupt enable register bits. More...
enum class  SERIAL_MCR : igros_byte_t {
  DTR = 0x01_u8 , RTS = 0x02_u8 , OUT1 = 0x04_u8 , OUT2 = 0x08_u8 ,
  LOOPBACK = 0x10_u8
}
 Modem control register bits. More...

Detailed Description

Anonymous namespace.

Enumeration Type Documentation

◆ SERIAL_IER

enum class igros::arch::anonymous_namespace{serial.cpp}::SERIAL_IER : igros_byte_t
strong

Interrupt enable register bits.

Enumerator
RX_READY 

Received data available.

Definition at line 53 of file serial.cpp.

◆ SERIAL_LSR

enum class igros::arch::anonymous_namespace{serial.cpp}::SERIAL_LSR : igros_byte_t
strong

Line status register bits.

Enumerator
DATA_READY 

Received byte available.

THR_EMPTY 

Transmitter holding register empty.

TX_IDLE 

Holding and shift registers empty.

Definition at line 46 of file serial.cpp.

◆ SERIAL_MCR

enum class igros::arch::anonymous_namespace{serial.cpp}::SERIAL_MCR : igros_byte_t
strong

Modem control register bits.

Enumerator
DTR 

Data terminal ready.

RTS 

Request to send.

OUT1 

Auxiliary output 1.

OUT2 

Auxiliary output 2 (IRQ line enable on PC).

LOOPBACK 

Loopback test mode.

Definition at line 58 of file serial.cpp.

◆ SERIAL_REG

enum class igros::arch::anonymous_namespace{serial.cpp}::SERIAL_REG : igros_word_t
strong

Serial port registers (offsets from port base).

Enumerator
DATA 

Data (DLAB = 0) / divisor low byte (DLAB = 1).

IER 

Interrupt enable (DLAB = 0) / divisor high byte (DLAB = 1).

IIR 

Interrupt identification (read) / FIFO control (write).

LCR 

Line control.

MCR 

Modem control.

LSR 

Line status.

MSR 

Modem status.

SCRATCH 

Scratch.

Definition at line 34 of file serial.cpp.