Changes in uspace/lib/usbhost/include/usb/host/hcd.h [7711296:549ff23] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r7711296 r549ff23 63 63 /*----------------------------------------------------------------------------*/ 64 64 /** Initialize hcd_t structure. 65 * Initializes device and endpoint managers. Sets data and hook pointer to NULL.65 * Initializes device and endpoint managers. Sets data nd hook pointer to NULL. 66 66 * @param hcd hcd_t structure to initialize, non-null. 67 67 * @param bandwidth Available bandwidth, passed to endpoint manager. 68 68 * @param bw_count Bandwidth compute function, passed to endpoint manager. 69 69 */ 70 static inline void hcd_init(hcd_t *hcd, usb_speed_t max_speed,size_t bandwidth,70 static inline void hcd_init(hcd_t *hcd, size_t bandwidth, 71 71 size_t (*bw_count)(usb_speed_t, usb_transfer_type_t, size_t, size_t)) 72 72 { 73 73 assert(hcd); 74 usb_device_manager_init(&hcd->dev_manager , max_speed);74 usb_device_manager_init(&hcd->dev_manager); 75 75 usb_endpoint_manager_init(&hcd->ep_manager, bandwidth, bw_count); 76 76 hcd->private_data = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.