From ea6736a2d0b4f30e564eab25128d9c67058330da Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Mon, 10 Feb 2014 00:00:44 +0200 Subject: usbdebug: Unify console API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/5227 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/console/usbdebug_console.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/console') 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 = { -- cgit v1.2.3