diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-02 12:24:43 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-02 12:24:43 -0500 |
commit | d83c25c318564080ce647795e5ee49133b97e87d (patch) | |
tree | 90a3a706c345d8f64f415ecdc22e8ff0efa3bf73 /include/usb.h | |
parent | 8e8106dcd540e4c735da6a0b71919747c15ce93a (diff) | |
parent | ac3abf0b7d3a0c59a8a6697efbe9187692f199f0 (diff) |
Merge git://git.denx.de/u-boot-usb
Diffstat (limited to 'include/usb.h')
-rw-r--r-- | include/usb.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/usb.h b/include/usb.h index 55b9268ea16..25393645659 100644 --- a/include/usb.h +++ b/include/usb.h @@ -266,8 +266,9 @@ int usb_submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer, int transfer_len, int interval); int usb_disable_asynch(int disable); int usb_maxpacket(struct usb_device *dev, unsigned long pipe); -int usb_get_configuration_no(struct usb_device *dev, unsigned char *buffer, - int cfgno); +int usb_get_configuration_no(struct usb_device *dev, int cfgno, + unsigned char *buffer, int length); +int usb_get_configuration_len(struct usb_device *dev, int cfgno); int usb_get_report(struct usb_device *dev, int ifnum, unsigned char type, unsigned char id, void *buf, int size); int usb_get_class_descriptor(struct usb_device *dev, int ifnum, @@ -874,6 +875,18 @@ int legacy_hub_port_reset(struct usb_device *dev, int port, int hub_port_reset(struct udevice *dev, int port, unsigned short *portstat); +/* + * usb_find_usb2_hub_address_port() - Get hub address and port for TT setting + * + * Searches for the first HS hub above the given device. If a + * HS hub is found, the hub address and the port the device is + * connected to is return, as required for SPLIT transactions + * + * @param: udev full speed or low speed device + */ +void usb_find_usb2_hub_address_port(struct usb_device *udev, + uint8_t *hub_address, uint8_t *hub_port); + /** * usb_alloc_new_device() - Allocate a new device * |