Ignore:
Timestamp:
2011-08-31T21:45:59Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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/drv/bus/usb/uhci/uhci_batch.c

    r70fb822 rf18d82f0  
    6666        assert(uhci_batch);
    6767        assert(uhci_batch->usb_batch);
    68         /* Copy data unless we are sure we sent it */
    69         if (uhci_batch->usb_batch->ep->direction != USB_DIRECTION_OUT) {
    70                 memcpy(uhci_batch->usb_batch->buffer,
    71                     uhci_transfer_batch_data_buffer(uhci_batch),
    72                     uhci_batch->usb_batch->buffer_size);
    73         }
    74         if (uhci_batch->usb_batch->callback_out)
    75                 usb_transfer_batch_call_out(uhci_batch->usb_batch);
    76         if (uhci_batch->usb_batch->callback_in)
    77                 usb_transfer_batch_call_in(uhci_batch->usb_batch);
     68        usb_transfer_batch_finish(uhci_batch->usb_batch,
     69            uhci_transfer_batch_data_buffer(uhci_batch),
     70            uhci_batch->usb_batch->buffer_size);
    7871        uhci_transfer_batch_dispose(uhci_batch);
    7972}
Note: See TracChangeset for help on using the changeset viewer.