Changeset 41924f30 in mainline for uspace/drv/bus/usb/xhci/hc.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/hc.c

    r7e74911 r41924f30  
    447447
    448448        /* Check for root hub communication */
    449         if (batch->ep->address == xhci_rh_get_address(&hc->rh)) {
     449        if (batch->ep->target.address == xhci_rh_get_address(&hc->rh)) {
    450450                usb_log_debug("XHCI root hub request.\n");
    451451                return xhci_rh_schedule(&hc->rh, batch);
     
    453453
    454454        usb_log_debug2("EP(%d:%d) started %s transfer of size %lu.",
    455                 batch->ep->address, batch->ep->endpoint,
     455                batch->ep->target.address, batch->ep->target.endpoint,
    456456                usb_str_transfer_type(batch->ep->transfer_type),
    457457                batch->buffer_size);
    458458
    459         if (!batch->ep->address) {
     459        if (!batch->ep->target.address) {
    460460                usb_log_error("Attempted to schedule transfer to address 0.");
    461461                return EINVAL;
Note: See TracChangeset for help on using the changeset viewer.