MCPcopy Create free account
hub / github.com/coreboot/coreboot / uart_init

Function uart_init

src/drivers/uart/uart8250mem.c:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void uart_init(unsigned int idx)
101{
102 void *base = uart_platform_baseptr(idx);
103 if (!base)
104 return;
105
106 unsigned int div = uart_get_baudrate_divisor();
107 uart8250_mem_init(base, div);
108}
109
110void uart_tx_byte(unsigned int idx, unsigned char data)
111{

Callers

nothing calls this directly

Calls 3

uart_platform_baseptrFunction · 0.85
uart8250_mem_initFunction · 0.85

Tested by

no test coverage detected