Changes in uspace/drv/ohci/hcd_endpoint.h [2759c52:02cacce] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hcd_endpoint.h
r2759c52 r02cacce 37 37 #include <assert.h> 38 38 #include <adt/list.h> 39 40 39 #include <usb/host/endpoint.h> 41 40 … … 43 42 #include "hw_struct/transfer_descriptor.h" 44 43 44 /** Connector structure linking ED to to prepared TD. */ 45 45 typedef struct hcd_endpoint { 46 /** OHCI endpoint descriptor */ 46 47 ed_t *ed; 48 /** Currently enqueued transfer descriptor */ 47 49 td_t *td; 50 /** Linked list used by driver software */ 48 51 link_t link; 49 52 } hcd_endpoint_t; 50 53 51 54 hcd_endpoint_t * hcd_endpoint_assign(endpoint_t *ep); 55 void hcd_endpoint_clear(endpoint_t *ep); 52 56 53 hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep); 57 /** Get and convert assigned hcd_endpoint_t structure 58 * @param[in] ep USBD endpoint structure. 59 * @return Pointer to assigned hcd endpoint structure 60 */ 61 static inline hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep) 62 { 63 assert(ep); 64 return ep->hc_data.data; 65 } 54 66 55 void hcd_endpoint_clear(endpoint_t *ep);56 67 #endif 57 68 /**
Note:
See TracChangeset
for help on using the changeset viewer.