Changeset 58ac3ec in mainline for uspace/drv/bus/usb/uhci/uhci_batch.h


Ignore:
Timestamp:
2017-10-28T10:39:17Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40a3bfa
Parents:
8b8c164
Message:

uhci: finished forgotten refactoring to generic batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci_batch.h

    r8b8c164 r58ac3ec  
    6363        /** Data buffer, must be accessible by the UHCI hw */
    6464        void *device_buffer;
    65         /** Generic transfer data */
    66         usb_transfer_batch_t *usb_batch;
    6765        /** List element */
    6866        link_t link;
     
    9593{
    9694        assert(uhci_batch);
    97         assert(uhci_batch->usb_batch);
    9895        return uhci_transfer_batch_setup_buffer(uhci_batch) +
    9996            (uhci_batch->base.ep->transfer_type == USB_TRANSFER_CONTROL ? USB_SETUP_PACKET_SIZE : 0);
     
    108105{
    109106        assert(uhci_batch);
    110         assert(uhci_batch->usb_batch);
    111         uhci_batch->usb_batch->error = EINTR;
    112         uhci_batch->usb_batch->transfered_size = 0;
     107        uhci_batch->base.error = EINTR;
     108        uhci_batch->base.transfered_size = 0;
    113109        usb_transfer_batch_finish(&uhci_batch->base);
    114110}
Note: See TracChangeset for help on using the changeset viewer.