Changeset 54464f6a in mainline for uspace/drv/bus/usb/uhci/uhci.c
- Timestamp:
- 2011-11-11T19:48:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50a01a9
- Parents:
- c2e50d7 (diff), 747ef72 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci.c
rc2e50d7 r54464f6a 89 89 }; 90 90 /*----------------------------------------------------------------------------*/ 91 /** Get address of the device identified by handle.92 *93 * @param[in] fun DDF instance of the function to use.94 * @param[in] handle DDF handle of the driver seeking its USB address.95 * @param[out] address Found address.96 */97 static int usb_iface_get_address(98 ddf_fun_t *fun, devman_handle_t handle, usb_address_t *address)99 {100 assert(fun);101 usb_device_manager_t *manager =102 &dev_to_uhci(fun->dev)->hc.generic.dev_manager;103 const usb_address_t addr =104 usb_device_manager_find_address(manager, handle);105 106 if (addr < 0) {107 return addr;108 }109 110 if (address != NULL) {111 *address = addr;112 }113 114 return EOK;115 }116 /*----------------------------------------------------------------------------*/117 91 /** Gets handle of the respective hc. 118 92 * … … 135 109 static usb_iface_t usb_iface = { 136 110 .get_hc_handle = usb_iface_get_hc_handle, 137 .get_address = usb_iface_get_address138 111 }; 139 112 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.