Changeset a5b3de6 in mainline for uspace/drv/bus/usb/xhci/bus.c


Ignore:
Timestamp:
2017-10-25T11:55:15Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2b35478
Parents:
c3d926f
Message:

usbhost endpoint: removed target

The reasons for having usb_target_t inside endpoint have been dismissed. Enpoint is not a target of a transaction, so this was just misleading.

File:
1 edited

Legend:

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

    rc3d926f ra5b3de6  
    6363{
    6464        /* Extract information from endpoint_desc */
    65         ep->base.target = (usb_target_t) {{
    66                 .address = ep->base.device->address,
    67                 .endpoint = desc->endpoint_no,
    68         }};
     65        ep->base.endpoint = desc->endpoint_no;
    6966        ep->base.direction = desc->direction;
    7067        ep->base.transfer_type = desc->transfer_type;
     
    109106
    110107        /* Register EP0, passing Temporary reference */
    111         ep0->base.target.address = dev->base.address;
    112108        dev->endpoints[0] = ep0;
    113109
     
    254250                return err;
    255251
    256         usb_log_info("Endpoint(%d:%d) registered to XHCI bus.", ep->target.address, ep->target.endpoint);
     252        usb_log_info("Endpoint(%d:%d) registered to XHCI bus.", ep->device->address, ep->endpoint);
    257253        return xhci_device_add_endpoint(xhci_dev, xhci_ep);
    258254}
     
    263259        assert(bus);
    264260
    265         usb_log_info("Endpoint(%d:%d) unregistered from XHCI bus.", ep->target.address, ep->target.endpoint);
     261        usb_log_info("Endpoint(%d:%d) unregistered from XHCI bus.", ep->device->address, ep->endpoint);
    266262
    267263        xhci_device_t *xhci_dev = xhci_device_get(ep->device);
Note: See TracChangeset for help on using the changeset viewer.