Changeset 1d758fc in mainline for uspace/drv/bus/usb/xhci/endpoint.c
- Timestamp:
- 2018-02-12T10:11:47Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5fe3f954
- Parents:
- 2f762a7
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-02-05 03:28:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-02-12 10:11:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.c
r2f762a7 r1d758fc 116 116 goto err; 117 117 118 /* Driver can handle non-contiguous buffers */ 119 ep->transfer_buffer_policy &= ~DMA_POLICY_CONTIGUOUS; 120 121 /* Driver can handle buffers crossing boundaries */ 122 ep->transfer_buffer_policy &= ~DMA_POLICY_NOT_CROSSING; 118 unsigned flags = -1U; 123 119 124 120 /* Some xHCs can handle 64-bit addresses */ 125 121 xhci_bus_t *bus = bus_to_xhci_bus(ep->device->bus); 126 122 if (bus->hc->ac64) 127 ep->transfer_buffer_policy &= ~DMA_POLICY_4GiB; 123 flags &= ~DMA_POLICY_4GiB; 124 125 /* xHCI works best if it can fit 65k transfers in one TRB */ 126 ep->transfer_buffer_policy = dma_policy_create(flags, 1 << 16); 127 128 /* But actualy can do full scatter-gather. */ 129 ep->required_transfer_buffer_policy = dma_policy_create(flags, PAGE_SIZE); 128 130 129 131 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.