Changeset 4daee7a in mainline for uspace/lib/usbhost/include/usb/host/hcd.h
- Timestamp:
- 2012-12-16T16:26:30Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8de2cca
- Parents:
- f29931c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
rf29931c r4daee7a 74 74 */ 75 75 static inline void hcd_init(hcd_t *hcd, usb_speed_t max_speed, size_t bandwidth, 76 size_t (*bw_count)(usb_speed_t, usb_transfer_type_t, size_t, size_t))76 bw_count_func_t bw_count) 77 77 { 78 78 assert(hcd); … … 83 83 hcd->ep_add_hook = NULL; 84 84 hcd->ep_remove_hook = NULL; 85 } 86 87 static inline void hcd_set_implementation(hcd_t *hcd, void *data, 88 schedule_hook_t schedule, ep_add_hook_t add_hook, ep_remove_hook_t rem_hook) 89 { 90 assert(hcd); 91 hcd->private_data = data; 92 hcd->schedule = schedule; 93 hcd->ep_add_hook = add_hook; 94 hcd->ep_remove_hook = rem_hook; 95 85 96 } 86 97 … … 98 109 } 99 110 111 int hcd_register_hub(hcd_t *instance, usb_address_t *address, ddf_fun_t *hub_fun); 112 113 100 114 /** Data retrieve wrapper. 101 115 * @param fun ddf function, non-null. … … 107 121 } 108 122 123 109 124 extern usbhc_iface_t hcd_iface; 110 125
Note:
See TracChangeset
for help on using the changeset viewer.