Changeset 8e4219ab in mainline for uspace/lib/usbhost/src
- Timestamp:
- 2013-08-02T14:04:51Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6fe7683
- Parents:
- 9d15d1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/ddf_helpers.c
r9d15d1b r8e4219ab 216 216 } 217 217 218 /** Gets handle of the respective hc (this device, hc function). 219 * 220 * @param[in] root_hub_fun Root hub function seeking hc handle. 221 * @param[out] handle Place to write the handle. 222 * @return Error code. 223 */ 224 static int get_device_handle(ddf_fun_t *fun, devman_handle_t *handle) 225 { 226 assert(fun); 227 if (handle) 228 *handle = ddf_fun_get_handle(fun); 229 return EOK; 230 } 231 218 232 /** Root hub USB interface */ 219 233 static usb_iface_t usb_iface = { 220 234 .get_hc_handle = get_hc_handle, 221 235 .get_my_address = get_my_address, 236 237 .get_device_handle = get_device_handle, 222 238 223 239 .reserve_default_address = reserve_default_address, … … 228 244 .unregister_endpoint = unregister_endpoint, 229 245 }; 230 /** Standard USB RH options (RH interface) */ 246 247 /** Standard USB RH options (device interface) */ 231 248 static ddf_dev_ops_t usb_ops = { 232 249 .interfaces[USB_DEV_IFACE] = &usb_iface,
Note:
See TracChangeset
for help on using the changeset viewer.