From 83fe6d7fd270aeca7b703dbd0f7e23902144840b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 25 Feb 2014 20:11:52 +0200 Subject: usbdebug: Move initialisation of the optional hub MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add new file for device-specific initialisation transactions. Change-Id: I339df400a41675f178c7af613f03b2b44c826189 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/7208 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/drivers/usb/ehci_debug.h | 8 ++++++++ 1 file changed, 8 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 39f5f7239a..d7ea91b4f9 100644 --- a/src/drivers/usb/ehci_debug.h +++ b/src/drivers/usb/ehci_debug.h @@ -37,6 +37,8 @@ void ehci_debug_select_port(unsigned int port); #define DBGP_EP_BUSY (1<<2) #define DBGP_EP_STATMASK (DBGP_EP_VALID | DBGP_EP_ENABLED) +struct ehci_dbg_port; + struct dbgp_pipe { u8 devnum; @@ -59,4 +61,10 @@ int dbgp_ep_is_active(struct dbgp_pipe *pipe); int dbgp_bulk_write_x(struct dbgp_pipe *pipe, const char *bytes, int size); int dbgp_bulk_read_x(struct dbgp_pipe *pipe, void *data, int size); +int dbgp_control_msg(struct ehci_dbg_port *ehci_debug, unsigned devnum, + int requesttype, int request, int value, int index, void *data, int size); +void dbgp_mdelay(int ms); + +int dbgp_probe_gadget(struct ehci_dbg_port *ehci_debug, struct dbgp_pipe *pipe); + #endif /* _EHCI_DEBUG_H_ */ -- cgit v1.2.3