Changeset fdc2253b in mainline for uspace/lib/usbdev/src/pipes.c


Ignore:
Timestamp:
2018-02-05T00:54:08Z (7 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/lib/usbdev/src/pipes.c

    rcc63815 rfdc2253b  
    171171void *usb_pipe_alloc_buffer(usb_pipe_t *pipe, size_t size)
    172172{
    173         // FIXME: Do not use the default policy, but the one required by HC.
    174 
    175173        dma_buffer_t buf;
    176         if (dma_buffer_alloc(&buf, size))
     174        if (dma_buffer_alloc_policy(&buf, size, pipe->desc.transfer_buffer_policy))
    177175                return NULL;
    178176
Note: See TracChangeset for help on using the changeset viewer.