Changeset 7265558 in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2011-10-28T20:53:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48ae3ef
- Parents:
- 83c3123
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
r83c3123 r7265558 37 37 38 38 #include <assert.h> 39 #include <usbhc_iface.h> 39 40 #include <usb/host/usb_device_manager.h> 40 41 #include <usb/host/usb_endpoint_manager.h> 41 42 #include <usb/host/usb_transfer_batch.h> 42 #include <usbhc_iface.h>43 43 44 44 typedef struct hcd hcd_t; … … 53 53 }; 54 54 /*----------------------------------------------------------------------------*/ 55 static inline inthcd_init(hcd_t *hcd, size_t bandwidth,55 static inline void hcd_init(hcd_t *hcd, size_t bandwidth, 56 56 size_t (*bw_count)(usb_speed_t, usb_transfer_type_t, size_t, size_t)) 57 57 { 58 58 assert(hcd); 59 59 usb_device_manager_init(&hcd->dev_manager); 60 return usb_endpoint_manager_init(&hcd->ep_manager, bandwidth, bw_count); 61 } 62 /*----------------------------------------------------------------------------*/ 63 static inline void hcd_destroy(hcd_t *hcd) 64 { 65 usb_endpoint_manager_destroy(&hcd->ep_manager); 60 usb_endpoint_manager_init(&hcd->ep_manager, bandwidth, bw_count); 66 61 } 67 62 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.