Changeset 41924f30 in mainline for uspace/drv/bus/usb/xhci/endpoint.h
- Timestamp:
- 2017-10-12T14:07:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5976973
- Parents:
- 7e74911
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.h
r7e74911 r41924f30 43 43 #include <usb/host/hcd.h> 44 44 45 typedef struct xhci_endpoint xhci_endpoint_t; 46 typedef struct xhci_bus xhci_bus_t; 47 45 48 enum { 46 49 EP_TYPE_INVALID = 0, … … 56 59 /** Connector structure linking endpoint context to the endpoint. */ 57 60 typedef struct xhci_endpoint { 61 endpoint_t base; /**< Inheritance. Keep this first. */ 62 58 63 uint32_t slot_id; 59 64 } xhci_endpoint_t; 60 65 61 int endpoint_init(hcd_t *hcd, endpoint_t *ep);62 void endpoint_fini(hcd_t *hcd, endpoint_t *ep);66 int xhci_endpoint_init(xhci_endpoint_t *, xhci_bus_t *); 67 void xhci_endpoint_fini(xhci_endpoint_t *); 63 68 64 static inline xhci_endpoint_t * endpoint_get(constendpoint_t *ep)69 static inline xhci_endpoint_t * xhci_endpoint_get(endpoint_t *ep) 65 70 { 66 71 assert(ep); 67 return ep->hc_data.data;72 return (xhci_endpoint_t *) ep; 68 73 } 69 74
Note:
See TracChangeset
for help on using the changeset viewer.