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