Changeset 25251bb in mainline for uspace/drv/bus/usb/xhci/endpoint.h


Ignore:
Timestamp:
2017-10-26T08:38:53Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
928afc8d
Parents:
62558202
Message:

xhci: move pointer to hc from device to bus

Also, fixes the bug of hc ptr not set on tier 2+ device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.h

    r62558202 r25251bb  
    117117        uint8_t active_endpoint_count;
    118118
    119         /** Need HC to schedule commands from bus callbacks. TODO: Move this elsewhere. */
    120         xhci_hc_t *hc;
    121 
    122119        /** Flag indicating whether the device is USB3 (it's USB2 otherwise). */
    123120        bool usb3;
     
    137134void xhci_setup_endpoint_context(xhci_endpoint_t *, xhci_ep_ctx_t *);
    138135
    139 int xhci_device_add_endpoint(xhci_device_t *, xhci_endpoint_t *);
    140 int xhci_device_remove_endpoint(xhci_device_t *, xhci_endpoint_t *);
     136int xhci_device_add_endpoint(xhci_hc_t *, xhci_device_t *, xhci_endpoint_t *);
     137int xhci_device_remove_endpoint(xhci_hc_t *, xhci_device_t *, xhci_endpoint_t *);
    141138xhci_endpoint_t * xhci_device_get_endpoint(xhci_device_t *, usb_endpoint_t);
    142139
Note: See TracChangeset for help on using the changeset viewer.