diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-08-02 21:01:58 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-08-02 21:01:58 +0000 |
commit | b766e5260f3ad773f54eb6d107d7d9a7a0cf949c (patch) | |
tree | ec6aad05d826baf78281c021d1d09ce75ec94270 /sys/dev/usb/controller/xhci.h | |
parent | ad96ca7b3d4bef8f449685519767cfb9ee317934 (diff) | |
download | FreeBSD-src-b766e5260f3ad773f54eb6d107d7d9a7a0cf949c.zip FreeBSD-src-b766e5260f3ad773f54eb6d107d7d9a7a0cf949c.tar.gz |
MFC r269139:
Split the XHCI TRB allocations into smaller parts, so that we don't
end up allocating contiguous busdma buffers above PAGE_SIZE bytes.
Diffstat (limited to 'sys/dev/usb/controller/xhci.h')
-rw-r--r-- | sys/dev/usb/controller/xhci.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/controller/xhci.h b/sys/dev/usb/controller/xhci.h index b000e4f..408b429 100644 --- a/sys/dev/usb/controller/xhci.h +++ b/sys/dev/usb/controller/xhci.h @@ -316,8 +316,8 @@ struct xhci_trb { } __aligned(4); struct xhci_dev_endpoint_trbs { - struct xhci_trb trb[XHCI_MAX_ENDPOINTS] - [(XHCI_MAX_STREAMS * XHCI_MAX_TRANSFERS) + XHCI_MAX_STREAMS]; + struct xhci_trb trb[(XHCI_MAX_STREAMS * + XHCI_MAX_TRANSFERS) + XHCI_MAX_STREAMS]; }; #define XHCI_TD_PAGE_NBUF 17 /* units, room enough for 64Kbytes */ @@ -385,11 +385,11 @@ enum { struct xhci_hw_dev { struct usb_page_cache device_pc; struct usb_page_cache input_pc; - struct usb_page_cache endpoint_pc; + struct usb_page_cache endpoint_pc[XHCI_MAX_ENDPOINTS]; struct usb_page device_pg; struct usb_page input_pg; - struct usb_page endpoint_pg; + struct usb_page endpoint_pg[XHCI_MAX_ENDPOINTS]; struct xhci_endpoint_ext endp[XHCI_MAX_ENDPOINTS]; |