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