From 46249be26753319877d67b2958c5070f179b5937 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Mon, 27 Oct 2014 14:07:28 +0200 Subject: usbdebug: Refactor descriptor probing of dongle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Organized such that it is easy to support devices that do not export special Debug Descriptor. Some of these can still work in a fixed configuration and/or require additional initialisation for UART clocks etc. Change-Id: Id07fd6b69007332d67d9e9a456f58fdbca1999cd Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/7209 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/drivers/usb/ehci_debug.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/drivers/usb/ehci_debug.h') diff --git a/src/drivers/usb/ehci_debug.h b/src/drivers/usb/ehci_debug.h index d7ea91b4f9..c060a70db3 100644 --- a/src/drivers/usb/ehci_debug.h +++ b/src/drivers/usb/ehci_debug.h @@ -37,6 +37,11 @@ void ehci_debug_select_port(unsigned int port); #define DBGP_EP_BUSY (1<<2) #define DBGP_EP_STATMASK (DBGP_EP_VALID | DBGP_EP_ENABLED) +#define DBGP_MAX_ENDPOINTS 4 +#define DBGP_SETUP_EP0 0 /* Compulsory endpoint 0. */ +#define DBGP_CONSOLE_EPOUT 1 +#define DBGP_CONSOLE_EPIN 2 + struct ehci_dbg_port; struct dbgp_pipe -- cgit v1.2.3