Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2011-08-31T21:45:59Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
9c10e51
Parents:
70fb822
Message:

libusbhost: change finish functions to do the data copying if necessary

uhci: use new finish functions instead of manual copy

File:
1 edited

Legend:

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

    r70fb822 rf18d82f0  
    9090);
    9191
    92 void usb_transfer_batch_finish(usb_transfer_batch_t *instance);
     92void usb_transfer_batch_finish(usb_transfer_batch_t *instance,
     93    const void* data, size_t size);
    9394void usb_transfer_batch_call_in(usb_transfer_batch_t *instance);
    9495void usb_transfer_batch_call_out(usb_transfer_batch_t *instance);
     
    120121/*----------------------------------------------------------------------------*/
    121122static inline void usb_transfer_batch_finish_error(
    122     usb_transfer_batch_t *instance, int error)
     123    usb_transfer_batch_t *instance, const void* data, size_t size, int error)
    123124{
    124125        assert(instance);
    125126        instance->error = error;
    126         usb_transfer_batch_finish(instance);
     127        usb_transfer_batch_finish(instance, data, size);
    127128}
    128129/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.