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


Ignore:
Timestamp:
2017-10-13T12:32:57Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
063dfe8
Parents:
366e9b6
Message:

Refactored XHCI bus to hold devices instead of endpoints. Added middle layer to keep track of endpoints within devices.

File:
1 edited

Legend:

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

    r366e9b6 rc10daa8  
    150150        xhci_endpoint_t *xhci_ep = xhci_endpoint_get(batch->ep);
    151151
    152         uint8_t slot_id = xhci_ep->slot_id;
     152        uint8_t slot_id = xhci_ep->device->slot_id;
    153153        xhci_trb_ring_t* ring = hc->dcbaa_virt[slot_id].trs[0];
    154154
     
    234234
    235235        xhci_endpoint_t *xhci_ep = xhci_endpoint_get(batch->ep);
    236         uint8_t slot_id = xhci_ep->slot_id;
     236        uint8_t slot_id = xhci_ep->device->slot_id;
    237237        xhci_trb_ring_t* ring = hc->dcbaa_virt[slot_id].trs[batch->ep->target.endpoint];
    238238
Note: See TracChangeset for help on using the changeset viewer.