summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/xhci.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2016-08-12 08:05:40 +0000
committerhselasky <hselasky@FreeBSD.org>2016-08-12 08:05:40 +0000
commit1aa48531a6837f05a22a2d17736c03d59bf37ea9 (patch)
treedb422f61f75045d9c2d243d5abc8c01d4a3b4596 /sys/dev/usb/controller/xhci.h
parent40eb2e6a7aa77afc738d95fc034a302e87faff9b (diff)
downloadFreeBSD-src-1aa48531a6837f05a22a2d17736c03d59bf37ea9.zip
FreeBSD-src-1aa48531a6837f05a22a2d17736c03d59bf37ea9.tar.gz
MFC r302371:
Fix regression issue with XHCI on 32-bit ARMv7 Armada-38x. Make sure "struct xhci_dev_ctx_addr" fits into a single 4K page until further.
Diffstat (limited to 'sys/dev/usb/controller/xhci.h')
-rw-r--r--sys/dev/usb/controller/xhci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci.h b/sys/dev/usb/controller/xhci.h
index d4ed740..c50e852 100644
--- a/sys/dev/usb/controller/xhci.h
+++ b/sys/dev/usb/controller/xhci.h
@@ -30,7 +30,7 @@
#define XHCI_MAX_DEVICES MIN(USB_MAX_DEVICES, 128)
#define XHCI_MAX_ENDPOINTS 32 /* hardcoded - do not change */
-#define XHCI_MAX_SCRATCHPADS 1024
+#define XHCI_MAX_SCRATCHPADS 256 /* theoretical max is 1023 */
#define XHCI_MAX_EVENTS (16 * 13)
#define XHCI_MAX_COMMANDS (16 * 1)
#define XHCI_MAX_RSEG 1
OpenPOWER on IntegriCloud