summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/usb.h
diff options
context:
space:
mode:
authorMichael Brown2015-03-16 06:39:14 +0100
committerMichael Brown2015-03-16 16:40:53 +0100
commit7b6765ff1b13f088f2ac41556b8639a35bd6b893 (patch)
tree0b9fda41653e73a378aeb5fb99d473672722da34 /src/include/ipxe/usb.h
parent[libc] Add ffs(), ffsl(), and ffsll() (diff)
downloadipxe-7b6765ff1b13f088f2ac41556b8639a35bd6b893.tar.gz
ipxe-7b6765ff1b13f088f2ac41556b8639a35bd6b893.tar.xz
ipxe-7b6765ff1b13f088f2ac41556b8639a35bd6b893.zip
[usb] Add the concept of a USB bus maximum transfer size
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/usb.h')
-rw-r--r--src/include/ipxe/usb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h
index 59661f70..fd027d18 100644
--- a/src/include/ipxe/usb.h
+++ b/src/include/ipxe/usb.h
@@ -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 );