Changes in uspace/drv/bus/usb/uhci/uhci.c [b500d60a:8b54fe6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci.c
rb500d60a r8b54fe6 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 = usb_device_manager_find(manager, handle); 104 105 if (addr < 0) { 106 return addr; 107 } 108 109 if (address != NULL) { 110 *address = addr; 111 } 112 113 return EOK; 114 } 115 /*----------------------------------------------------------------------------*/ 91 116 /** Gets handle of the respective hc. 92 117 * … … 109 134 static usb_iface_t usb_iface = { 110 135 .get_hc_handle = usb_iface_get_hc_handle, 136 .get_address = usb_iface_get_address 111 137 }; 112 138 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.