aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/usb/ehci_debug.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-25 20:11:52 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-11-23 20:35:03 +0100
commit83fe6d7fd270aeca7b703dbd0f7e23902144840b (patch)
tree96153d08b2f28f3abbcf60c314e75cc760dad41c /src/drivers/usb/ehci_debug.h
parent7bb4f86d07934373fa427af3dad17ae59bc89bc9 (diff)
usbdebug: Move initialisation of the optional hub
Add new file for device-specific initialisation transactions. Change-Id: I339df400a41675f178c7af613f03b2b44c826189 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7208 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers/usb/ehci_debug.h')
-rw-r--r--src/drivers/usb/ehci_debug.h8
1 files changed, 8 insertions, 0 deletions
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_ */