Changes in uspace/drv/bus/usb/ohci/ohci.c [27ed734c:8b54fe6] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/ohci/ohci.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci.c
r27ed734c r8b54fe6 76 76 } 77 77 /*----------------------------------------------------------------------------*/ 78 /** Get USB address assigned to root hub. 79 * 80 * @param[in] fun Root hub function. 81 * @param[out] address Store the address here. 82 * @return Error code. 83 */ 84 static int rh_get_my_address(ddf_fun_t *fun, usb_address_t *address) 78 /** Get address of the device identified by handle. 79 * 80 * @param[in] dev DDF instance of the device to use. 81 * @param[in] iid (Unused). 82 * @param[in] call Pointer to the call that represents interrupt. 83 */ 84 static int usb_iface_get_address( 85 ddf_fun_t *fun, devman_handle_t handle, usb_address_t *address) 85 86 { 86 87 assert(fun); 88 usb_device_manager_t *manager = 89 &dev_to_ohci(fun->dev)->hc.generic.dev_manager; 90 91 const usb_address_t addr = usb_device_manager_find(manager, handle); 92 if (addr < 0) { 93 return addr; 94 } 87 95 88 96 if (address != NULL) { 89 *address = dev_to_ohci(fun->dev)->hc.rh.address;97 *address = addr; 90 98 } 91 99 … … 99 107 * @return Error code. 100 108 */ 101 static int rh_get_hc_handle(109 static int usb_iface_get_hc_handle( 102 110 ddf_fun_t *fun, devman_handle_t *handle) 103 111 { … … 113 121 /** Root hub USB interface */ 114 122 static usb_iface_t usb_iface = { 115 .get_hc_handle = rh_get_hc_handle,116 .get_ my_address = rh_get_my_address,123 .get_hc_handle = usb_iface_get_hc_handle, 124 .get_address = usb_iface_get_address 117 125 }; 118 126 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.
