Changeset f9d0a86 in mainline for uspace/lib/usbhost/src/hcd.c
- Timestamp:
- 2017-11-14T12:24:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cad776
- Parents:
- 887c9de (diff), d2d142a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
- git-committer:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/hcd.c
r887c9de rf9d0a86 82 82 int hcd_send_batch(hcd_t *hcd, device_t *device, usb_target_t target, 83 83 usb_direction_t direction, char *data, size_t size, uint64_t setup_data, 84 usb _transfer_batch_callback_t on_complete, void *arg, const char *name)84 usbhc_iface_transfer_callback_t on_complete, void *arg, const char *name) 85 85 { 86 86 assert(hcd); … … 153 153 } sync_data_t; 154 154 155 static int sync_transfer_complete( usb_transfer_batch_t *batch)155 static int sync_transfer_complete(void *arg, int error, size_t transfered_size) 156 156 { 157 sync_data_t *d = batch->on_complete_data;157 sync_data_t *d = arg; 158 158 assert(d); 159 d->transfered_size = batch->transfered_size;160 d->error = batch->error;159 d->transfered_size = transfered_size; 160 d->error = error; 161 161 fibril_mutex_lock(&d->done_mtx); 162 162 d->done = 1;
Note:
See TracChangeset
for help on using the changeset viewer.