|
@@ -1736,11 +1736,12 @@ void free_usb_hub ( struct usb_hub *hub ) {
|
1736
|
1736
|
*
|
1737
|
1737
|
* @v dev Underlying hardware device
|
1738
|
1738
|
* @v ports Number of root hub ports
|
|
1739
|
+ * @v mtu Largest transfer allowed on the bus
|
1739
|
1740
|
* @v op Host controller operations
|
1740
|
1741
|
* @ret bus USB bus, or NULL on allocation failure
|
1741
|
1742
|
*/
|
1742
|
1743
|
struct usb_bus * alloc_usb_bus ( struct device *dev, unsigned int ports,
|
1743
|
|
- struct usb_host_operations *op ) {
|
|
1744
|
+ size_t mtu, struct usb_host_operations *op ) {
|
1744
|
1745
|
struct usb_bus *bus;
|
1745
|
1746
|
|
1746
|
1747
|
/* Allocate and initialise structure */
|
|
@@ -1749,6 +1750,7 @@ struct usb_bus * alloc_usb_bus ( struct device *dev, unsigned int ports,
|
1749
|
1750
|
goto err_alloc_bus;
|
1750
|
1751
|
bus->name = dev->name;
|
1751
|
1752
|
bus->dev = dev;
|
|
1753
|
+ bus->mtu = mtu;
|
1752
|
1754
|
bus->op = op;
|
1753
|
1755
|
INIT_LIST_HEAD ( &bus->devices );
|
1754
|
1756
|
INIT_LIST_HEAD ( &bus->hubs );
|