| 4 | #include "ehci_debug.h" |
| 5 | |
| 6 | static 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 | |
| 18 | static void usbdebug_tx_flush(struct dbgp_pipe *pipe) |
| 19 | { |
no test coverage detected