Changeset 176a70a in mainline for uspace/drv/bus/usb/xhci/endpoint.h


Ignore:
Timestamp:
2017-08-17T17:49:32Z (8 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d3dce3f
Parents:
c0ec9e7
Message:

Simple implementation of endpoint management with slot id's.

File:
1 edited

Legend:

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

    rc0ec9e7 r176a70a  
    4343#include <usb/host/hcd.h>
    4444
     45/** Connector structure linking endpoint context to the endpoint. */
     46typedef struct xhci_endpoint {
     47  uint32_t slot_id;
     48} xhci_endpoint_t;
     49
    4550int endpoint_init(hcd_t *hcd, endpoint_t *ep);
    4651void endpoint_fini(hcd_t *hcd, endpoint_t *ep);
     52
     53static inline xhci_endpoint_t * endpoint_get(const endpoint_t *ep)
     54{
     55  assert(ep);
     56        return ep->hc_data.data;
     57}
    4758
    4859#endif
Note: See TracChangeset for help on using the changeset viewer.