diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-02-10 00:00:44 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-02-20 23:29:12 +0100 |
commit | ea6736a2d0b4f30e564eab25128d9c67058330da (patch) | |
tree | 2c656191cd65112e07e2a38644fcebfa3b5777c0 /src/console | |
parent | 902626c23c5b56765900a7c8e3dded109f4044fa (diff) |
usbdebug: Unify console API
Struct dbgp_pipe would not be suitable for use with xHCI.
Just use an index, it is easy to setup in Kconfig if our
future debug setup has separate pipes for console
output and debugging/traceings.
Change-Id: Icbbd28f03113b208016f80217ab801d598d443a8
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5227
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/usbdebug_console.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/console/usbdebug_console.c b/src/console/usbdebug_console.c index cb627bb96a..833147372b 100644 --- a/src/console/usbdebug_console.c +++ b/src/console/usbdebug_console.c @@ -29,22 +29,22 @@ static void dbgp_init(void) static void dbgp_tx_byte(unsigned char data) { - usbdebug_tx_byte(dbgp_console_output(), data); + usb_tx_byte(0, data); } static unsigned char dbgp_rx_byte(void) { - return usbdebug_rx_byte(dbgp_console_input()); + return usb_rx_byte(0); } static void dbgp_tx_flush(void) { - usbdebug_tx_flush(dbgp_console_output()); + usb_tx_flush(0); } static int dbgp_tst_byte(void) { - return dbgp_ep_is_active(dbgp_console_input()); + return usb_can_rx_byte(0); } static const struct console_driver usbdebug_direct_console __console = { |