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

Function uart_tx_flush

src/drivers/uart/sifive.c:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void uart_tx_flush(unsigned int idx)
78{
79 struct sifive_uart_registers *regs = uart_platform_baseptr(idx);
80 uint32_t ip;
81
82 /* Use the TX watermark bit to find out if the TX FIFO is empty */
83 do {
84 ip = read32(&regs->ip);
85 } while (!(ip & IP_TXWM));
86}
87
88unsigned char uart_rx_byte(unsigned int idx)
89{

Callers

nothing calls this directly

Calls 2

uart_platform_baseptrFunction · 0.85
read32Function · 0.50

Tested by

no test coverage detected