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

Function flashconsole_tx_byte

src/drivers/spi/flashconsole.c:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void flashconsole_tx_byte(unsigned char c)
71{
72 if (!rdev_ptr)
73 return;
74
75 size_t region_size = region_device_sz(rdev_ptr);
76
77 if (line_offset < LINE_BUFFER_SIZE)
78 line_buffer[line_offset++] = c;
79
80 if (line_offset >= LINE_BUFFER_SIZE ||
81 offset + line_offset >= region_size || c == '\n') {
82 flashconsole_tx_flush();
83 }
84}
85
86void flashconsole_tx_flush(void)
87{

Callers 1

__flashconsole_tx_byteFunction · 0.85

Calls 2

region_device_szFunction · 0.85
flashconsole_tx_flushFunction · 0.85

Tested by

no test coverage detected