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

Function uart_tx_byte

src/drivers/uart/sifive.c:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void uart_tx_byte(unsigned int idx, unsigned char data)
68{
69 struct sifive_uart_registers *regs = uart_platform_baseptr(idx);
70
71 while (!uart_can_tx(regs))
72 ; /* TODO: implement a timeout */
73
74 write32(&regs->txdata, data);
75}
76
77void uart_tx_flush(unsigned int idx)
78{

Callers

nothing calls this directly

Calls 3

uart_platform_baseptrFunction · 0.85
uart_can_txFunction · 0.85
write32Function · 0.50

Tested by

no test coverage detected