Changes in uspace/lib/usbhost/include/usb/host/hcd.h [7711296:56fd7cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r7711296 r56fd7cf 33 33 * 34 34 */ 35 35 36 #ifndef LIBUSBHOST_HOST_HCD_H 36 37 #define LIBUSBHOST_HOST_HCD_H … … 61 62 void (*ep_remove_hook)(hcd_t *, endpoint_t *); 62 63 }; 63 /*----------------------------------------------------------------------------*/ 64 64 65 /** Initialize hcd_t structure. 65 66 * Initializes device and endpoint managers. Sets data and hook pointer to NULL. … … 79 80 hcd->ep_remove_hook = NULL; 80 81 } 81 /*----------------------------------------------------------------------------*/ 82 82 83 /** Check registered endpoints and reset toggle bit if necessary. 83 84 * @param hcd hcd_t structure, non-null. … … 92 93 &hcd->ep_manager, target, (const uint8_t *)setup_data); 93 94 } 94 /*----------------------------------------------------------------------------*/ 95 95 96 /** Data retrieve wrapper. 96 97 * @param fun ddf function, non-null. 97 98 * @return pointer cast to hcd_t*. 98 99 */ 99 static inline hcd_t * fun_to_hcd(constddf_fun_t *fun)100 static inline hcd_t *fun_to_hcd(ddf_fun_t *fun) 100 101 { 101 assert(fun); 102 return fun->driver_data; 102 return ddf_fun_data_get(fun); 103 103 } 104 /*----------------------------------------------------------------------------*/ 104 105 105 extern usbhc_iface_t hcd_iface; 106 106 107 107 #endif 108 108 109 /** 109 110 * @}
Note:
See TracChangeset
for help on using the changeset viewer.