[usb] Add the concept of a USB bus maximum transfer size
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -3117,7 +3117,7 @@ static int xhci_probe ( struct pci_device *pci ) {
|
||||
goto err_reset;
|
||||
|
||||
/* Allocate USB bus */
|
||||
xhci->bus = alloc_usb_bus ( &pci->dev, xhci->ports,
|
||||
xhci->bus = alloc_usb_bus ( &pci->dev, xhci->ports, XHCI_MTU,
|
||||
&xhci_operations );
|
||||
if ( ! xhci->bus ) {
|
||||
rc = -ENOMEM;
|
||||
|
||||
@@ -24,6 +24,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
*/
|
||||
#define XHCI_MIN_ALIGN 64
|
||||
|
||||
/** Maximum transfer size */
|
||||
#define XHCI_MTU 65536
|
||||
|
||||
/** xHCI PCI BAR */
|
||||
#define XHCI_BAR PCI_BASE_ADDRESS_0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user