Changes in uspace/drv/ohci/hcd_endpoint.c [02cacce:545764b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hcd_endpoint.c
r02cacce r545764b 35 35 #include "hcd_endpoint.h" 36 36 37 /** Callback to set toggle on ED.38 *39 * @param[in] hcd_ep hcd endpoint structure40 * @param[in] toggle new value of toggle bit41 */42 37 static void hcd_ep_toggle_set(void *hcd_ep, int toggle) 43 38 { … … 47 42 ed_toggle_set(instance->ed, toggle); 48 43 } 49 /*----------------------------------------------------------------------------*/50 /** Callback to get value of toggle bit.51 *52 * @param[in] hcd_ep hcd endpoint structure53 * @return Current value of toggle bit.54 */55 44 static int hcd_ep_toggle_get(void *hcd_ep) 56 45 { … … 60 49 return ed_toggle_get(instance->ed); 61 50 } 62 /*----------------------------------------------------------------------------*/ 63 /** Creates new hcd endpoint representation. 64 * 65 * @param[in] ep USBD endpoint structure 66 * @return pointer to a new hcd endpoint structure, NULL on failure. 67 */ 51 52 68 53 hcd_endpoint_t * hcd_endpoint_assign(endpoint_t *ep) 69 54 { … … 93 78 } 94 79 /*----------------------------------------------------------------------------*/ 95 /** Disposes assigned hcd endpoint structure 96 * 97 * @param[in] ep USBD endpoint structure 98 */ 80 hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep) 81 { 82 assert(ep); 83 return ep->hc_data.data; 84 } 85 /*----------------------------------------------------------------------------*/ 99 86 void hcd_endpoint_clear(endpoint_t *ep) 100 87 {
Note:
See TracChangeset
for help on using the changeset viewer.