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

Function usbdebug_tx_byte

src/drivers/usb/console.c:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "ehci_debug.h"
5
6static void usbdebug_tx_byte(struct dbgp_pipe *pipe, unsigned char data)
7{
8 if (!dbgp_try_get(pipe))
9 return;
10 pipe->buf[pipe->bufidx++] = data;
11 if (pipe->bufidx >= 8) {
12 dbgp_bulk_write_x(pipe, pipe->buf, pipe->bufidx);
13 pipe->bufidx = 0;
14 }
15 dbgp_put(pipe);
16}
17
18static void usbdebug_tx_flush(struct dbgp_pipe *pipe)
19{

Callers 1

usb_tx_byteFunction · 0.85

Calls 3

dbgp_try_getFunction · 0.85
dbgp_bulk_write_xFunction · 0.85
dbgp_putFunction · 0.85

Tested by

no test coverage detected