Changes in uspace/lib/usbhost/src/iface.c [77ad86c:cbd568b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/iface.c
r77ad86c rcbd568b 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 28 /** @addtogroup libusbhost 30 29 * @{ … … 33 32 * @brief HCD DDF interface implementation 34 33 */ 35 36 34 #include <ddf/driver.h> 37 35 #include <errno.h> … … 100 98 return ret; 101 99 } 102 100 /*----------------------------------------------------------------------------*/ 103 101 /** Calls ep_add_hook upon endpoint registration. 104 102 * @param ep Endpoint to be registered. … … 115 113 return EOK; 116 114 } 117 115 /*----------------------------------------------------------------------------*/ 118 116 /** Calls ep_remove_hook upon endpoint removal. 119 117 * @param ep Endpoint to be unregistered. … … 128 126 hcd->ep_remove_hook(hcd, ep); 129 127 } 130 128 /*----------------------------------------------------------------------------*/ 131 129 /** Calls ep_remove_hook upon endpoint removal. Prints warning. 132 130 * @param ep Endpoint to be unregistered. … … 143 141 hcd->ep_remove_hook(hcd, ep); 144 142 } 145 143 /*----------------------------------------------------------------------------*/ 146 144 /** Request address interface function. 147 145 * … … 166 164 &hcd->dev_manager, address, strict, speed); 167 165 } 168 166 /*----------------------------------------------------------------------------*/ 169 167 /** Bind address interface function. 170 168 * … … 185 183 &hcd->dev_manager, address, handle); 186 184 } 187 185 /*----------------------------------------------------------------------------*/ 188 186 /** Find device handle by address interface function. 189 187 * … … 202 200 &hcd->dev_manager, address, handle, NULL); 203 201 } 204 202 /*----------------------------------------------------------------------------*/ 205 203 /** Release address interface function. 206 204 * … … 220 218 return EOK; 221 219 } 222 220 /*----------------------------------------------------------------------------*/ 223 221 /** Register endpoint interface function. 224 222 * @param fun DDF function. … … 256 254 register_helper, hcd); 257 255 } 258 256 /*----------------------------------------------------------------------------*/ 259 257 /** Unregister endpoint interface function. 260 258 * @param fun DDF function. … … 276 274 endpoint, direction, unregister_helper, hcd); 277 275 } 278 276 /*----------------------------------------------------------------------------*/ 279 277 /** Inbound communication interface function. 280 278 * @param fun DDF function. … … 294 292 setup_data, callback, NULL, arg, "READ"); 295 293 } 296 294 /*----------------------------------------------------------------------------*/ 297 295 /** Outbound communication interface function. 298 296 * @param fun DDF function. … … 312 310 setup_data, NULL, callback, arg, "WRITE"); 313 311 } 314 312 /*----------------------------------------------------------------------------*/ 315 313 /** usbhc Interface implementation using hcd_t from libusbhost library. */ 316 314 usbhc_iface_t hcd_iface = { … … 326 324 .write = usb_write, 327 325 }; 328 329 326 /** 330 327 * @}
Note:
See TracChangeset
for help on using the changeset viewer.