Changeset f9d0a86 in mainline for uspace/lib/usbhost/src/hcd.c


Ignore:
Timestamp:
2017-11-14T12:24:42Z (6 years ago)
Author:
Aearsis <Hlavaty.Ondrej@…>
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)
Message:

Merge tag '0.7.1'

The merge wasn't clean, because of changes in build system. The most
significant change was partial revert of usbhc callback refactoring,
which now does not take usb transfer batch, but few named fields again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/hcd.c

    r887c9de rf9d0a86  
    8282int hcd_send_batch(hcd_t *hcd, device_t *device, usb_target_t target,
    8383    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)
    8585{
    8686        assert(hcd);
     
    153153} sync_data_t;
    154154
    155 static int sync_transfer_complete(usb_transfer_batch_t *batch)
     155static int sync_transfer_complete(void *arg, int error, size_t transfered_size)
    156156{
    157         sync_data_t *d = batch->on_complete_data;
     157        sync_data_t *d = arg;
    158158        assert(d);
    159         d->transfered_size = batch->transfered_size;
    160         d->error = batch->error;
     159        d->transfered_size = transfered_size;
     160        d->error = error;
    161161        fibril_mutex_lock(&d->done_mtx);
    162162        d->done = 1;
Note: See TracChangeset for help on using the changeset viewer.