Changeset 41924f30 in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2017-10-12T14:07:27Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5976973
Parents:
7e74911
Message:

WIP usbhost refactoring

This commit replaces callbacks with more systematic virtual-like inheritance-like solution. Currently breaks build of HelenOS, but both xhci and usbhost are buildable. More refactoring follows…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    r7e74911 r41924f30  
    266266        assert(rh);
    267267        assert(batch);
    268         const usb_target_t target = {{
    269                 .address = batch->ep->address,
    270                 .endpoint = batch->ep->endpoint,
    271         }};
     268        const usb_target_t target = batch->ep->target;
    272269        batch->error = virthub_base_request(&rh->base, target,
    273270            usb_transfer_batch_direction(batch), (void*)batch->setup_buffer,
     
    294291        rh->unfinished_interrupt_transfer = NULL;
    295292        if (batch) {
    296                 const usb_target_t target = {{
    297                         .address = batch->ep->address,
    298                         .endpoint = batch->ep->endpoint,
    299                 }};
     293                const usb_target_t target = batch->ep->target;
    300294                batch->error = virthub_base_request(&rh->base, target,
    301295                    usb_transfer_batch_direction(batch),
Note: See TracChangeset for help on using the changeset viewer.