1 #ifndef _BITS_NS16550_H 2 #define _BITS_NS16550_H 43 #define COM1_BASE 0x3f8 44 #define COM2_BASE 0x2f8 45 #define COM3_BASE 0x3e8 46 #define COM4_BASE 0x2e8
void * base
Register base address.
uint8_t ioread8(volatile uint8_t *io_addr)
Read byte from I/O-mapped or memory-mapped device.
static unsigned int address
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void iowrite8(uint8_t data, volatile uint8_t *io_addr)
Write byte to I/O-mapped or memory-mapped device.
uint8_t ns16550_read(struct ns16550_uart *ns16550, unsigned int address)
static __attribute__((always_inline)) void ns16550_write(struct ns16550_uart *ns16550
Write to UART register.
static unsigned int uint8_t data
void ns16550_write(struct ns16550_uart *ns16550, unsigned int address, uint8_t data)
Dummy COM1 UART for non-x86 platforms.