Changeset 398a94c in mainline for uspace/drv/bus/usb/xhci/endpoint.c
- Timestamp:
- 2018-01-10T13:32:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8bab0d2
- Parents:
- 4a00bc9
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-10 13:32:19)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-10 13:32:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.c
r4a00bc9 r398a94c 65 65 endpoint_init(ep, dev, desc); 66 66 67 xhci_ep->max_streams = 1 << (USB_SSC_MAX_STREAMS(desc->companion));68 67 xhci_ep->max_burst = desc->companion.max_burst + 1; 69 xhci_ep->mult = USB_SSC_MULT(desc->companion) + 1; 68 69 if (ep->transfer_type == USB_TRANSFER_BULK) 70 xhci_ep->max_streams = 1 << (USB_SSC_MAX_STREAMS(desc->companion)); 71 else 72 xhci_ep->max_streams = 1; 73 74 if (ep->transfer_type == USB_TRANSFER_ISOCHRONOUS) 75 xhci_ep->mult = USB_SSC_MULT(desc->companion) + 1; 76 else 77 xhci_ep->mult = 1; 70 78 71 79 /* In USB 3, the semantics of wMaxPacketSize changed. Now the number of … … 314 322 } 315 323 316 isoch_fini(xhci_ep); 324 if (xhci_ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS) 325 isoch_fini(xhci_ep); 317 326 } 318 327
Note:
See TracChangeset
for help on using the changeset viewer.