summaryrefslogtreecommitdiffstats
path: root/src/drivers/usb
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/drivers/usb
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/drivers/usb')
-rw-r--r--src/drivers/usb/xhci.c2
-rw-r--r--src/drivers/usb/xhci.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/usb/xhci.c b/src/drivers/usb/xhci.c
index 5d067bd0..34290774 100644
--- a/src/drivers/usb/xhci.c
+++ b/src/drivers/usb/xhci.c
@@ -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;
diff --git a/src/drivers/usb/xhci.h b/src/drivers/usb/xhci.h
index 269f50b8..30320807 100644
--- a/src/drivers/usb/xhci.h
+++ b/src/drivers/usb/xhci.h
@@ -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