Changeset fdc2253b in mainline for uspace/drv/bus/usb/xhci/endpoint.c


Ignore:
Timestamp:
2018-02-05T00:54:08Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d14688d
Parents:
cc63815
git-author:
Ondřej Hlavatý <aearsis@…> (2018-02-02 14:38:23)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-02-05 00:54:08)
Message:

usb pipes: allocate with policy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.c

    rcc63815 rfdc2253b  
    119119                goto err;
    120120
     121        /* Driver can handle non-contiguous buffers */
     122        ep->transfer_buffer_policy &= ~DMA_POLICY_CONTIGUOUS;
     123
     124        /* Driver can handle buffers crossing boundaries */
     125        ep->transfer_buffer_policy &= ~DMA_POLICY_NOT_CROSSING;
     126
     127        /* Some xHCs can handle 64-bit addresses */
     128        xhci_bus_t *bus = bus_to_xhci_bus(ep->device->bus);
     129        if (bus->hc->ac64)
     130                ep->transfer_buffer_policy &= ~DMA_POLICY_4GiB;
     131
    121132        return EOK;
    122133
Note: See TracChangeset for help on using the changeset viewer.