Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 741bcdeb in mainline for uspace/drv/bus/usb/ehci/hc.c


Ignore:
Timestamp:
2017-10-13T09:21:22Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
c0e4b5b2
Parents:
e6b9182
Message:

WIP usbhost refactoring: ehci completed

vhc to go…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hc.c

    re6b9182 r741bcdeb  
    190190            &instance->rh, instance->caps, instance->registers, "ehci rh");
    191191
     192        ehci_bus_init(&instance->bus, instance);
    192193        return EOK;
    193194}
     
    214215        ehci_endpoint_t *ehci_ep = ehci_endpoint_get(ep);
    215216        usb_log_debug("HC(%p) enqueue EP(%d:%d:%s:%s)\n", instance,
    216             ep->address, ep->endpoint,
     217            ep->target.address, ep->target.endpoint,
    217218            usb_str_transfer_type_short(ep->transfer_type),
    218219            usb_str_direction(ep->direction));
     
    238239        ehci_endpoint_t *ehci_ep = ehci_endpoint_get(ep);
    239240        usb_log_debug("HC(%p) dequeue EP(%d:%d:%s:%s)\n", instance,
    240             ep->address, ep->endpoint,
     241            ep->target.address, ep->target.endpoint,
    241242            usb_str_transfer_type_short(ep->transfer_type),
    242243            usb_str_direction(ep->direction));
     
    290291
    291292        /* Check for root hub communication */
    292         if (batch->ep->address == ehci_rh_get_address(&instance->rh)) {
     293        if (batch->ep->target.address == ehci_rh_get_address(&instance->rh)) {
    293294                usb_log_debug("HC(%p): Scheduling BATCH(%p) for RH(%p)",
    294295                    instance, batch, &instance->rh);
Note: See TracChangeset for help on using the changeset viewer.