Changeset b0fc92c in mainline for uspace/lib/usbhost/src/iface.c
- Timestamp:
- 2013-07-26T13:29:05Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 059d507
- Parents:
- f3922c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/iface.c
rf3922c2 rb0fc92c 41 41 #include <usb/host/hcd.h> 42 42 #include "ddf_helpers.h" 43 44 /** Find device handle by address interface function.45 *46 * @param[in] fun DDF function that was called.47 * @param[in] address Address in question.48 * @param[out] handle Where to store device handle if found.49 * @return Error code.50 */51 static int find_by_address(ddf_fun_t *fun, usb_address_t address,52 devman_handle_t *handle)53 {54 assert(fun);55 hcd_t *hcd = dev_to_hcd(ddf_fun_get_dev(fun));56 assert(hcd);57 return usb_device_manager_get_info_by_address(58 &hcd->dev_manager, address, handle, NULL);59 }60 43 61 44 /** Register endpoint interface function. … … 148 131 /** usbhc Interface implementation using hcd_t from libusbhost library. */ 149 132 usbhc_iface_t hcd_iface = { 150 .get_handle = find_by_address,151 152 133 .register_endpoint = register_endpoint, 153 134 .unregister_endpoint = unregister_endpoint,
Note:
See TracChangeset
for help on using the changeset viewer.