[usb] Add the concept of a USB bus maximum transfer size

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-03-16 05:39:14 +00:00
parent 79697c75ee
commit 7b6765ff1b
4 changed files with 12 additions and 3 deletions

View File

@@ -865,6 +865,9 @@ struct usb_bus {
/** Host controller operations set */
struct usb_host_operations *op;
/** Largest transfer allowed on the bus */
size_t mtu;
/** Root hub */
struct usb_hub *hub;
@@ -1138,7 +1141,8 @@ extern void free_usb_hub ( struct usb_hub *hub );
extern void usb_port_changed ( struct usb_port *port );
extern struct usb_bus * alloc_usb_bus ( struct device *dev, unsigned int ports,
extern struct usb_bus * alloc_usb_bus ( struct device *dev,
unsigned int ports, size_t mtu,
struct usb_host_operations *op );
extern int register_usb_bus ( struct usb_bus *bus );
extern void unregister_usb_bus ( struct usb_bus *bus );