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)
This commit is contained in:
Kyösti Mälkki
2014-02-25 20:11:52 +02:00
parent 7bb4f86d07
commit 83fe6d7fd2
5 changed files with 155 additions and 105 deletions

View File

@@ -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_ */