Ignore:
Timestamp:
2018-02-11T17:18:17Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1d758fc
Parents:
d345ce2
git-author:
Ondřej Hlavatý <aearsis@…> (2018-02-05 03:52:09)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-02-11 17:18:17)
Message:

usbhost: allow the driver to bounce later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    rd345ce2 r2f762a7  
    7070        } setup;
    7171
    72         /** DMA buffer with enforced policy */
    73         dma_buffer_t dma_buffer;
     72        /**
     73         * In case a bounce buffer is allocated, the original buffer must to be
     74         * stored to be filled after the IN transaction is finished.
     75         */
     76        char *buffer;
    7477        /** Size of memory buffer */
    7578        size_t buffer_size;
    7679
    77         /**
    78          * In case the DMA buffer is allocated, the original buffer must to be
    79          * stored to be filled after the IN transaction is finished.
    80          */
    81         char *original_buffer;
     80        /** DMA buffer with enforced policy */
     81        dma_buffer_t dma_buffer;
     82        bool is_bounced;
    8283
    8384        /** Indicates success/failure of the communication */
     
    114115void usb_transfer_batch_init(usb_transfer_batch_t *, endpoint_t *);
    115116
     117errno_t usb_transfer_batch_bounce(usb_transfer_batch_t *);
    116118/** Buffer preparation */
    117119errno_t usb_transfer_batch_prepare_buffer(usb_transfer_batch_t *, char *);
Note: See TracChangeset for help on using the changeset viewer.