Changeset 27ed734c in mainline for uspace/drv/bus
- Timestamp:
- 2011-10-31T13:06:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e07cbc0
- Parents:
- d25e0a4
- Location:
- uspace/drv/bus/usb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci.c
rd25e0a4 r27ed734c 76 76 } 77 77 /*----------------------------------------------------------------------------*/ 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) 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) 86 85 { 87 86 assert(fun); 88 assert(handle == 0);89 87 90 88 if (address != NULL) { … … 101 99 * @return Error code. 102 100 */ 103 static int usb_iface_get_hc_handle(101 static int rh_get_hc_handle( 104 102 ddf_fun_t *fun, devman_handle_t *handle) 105 103 { … … 115 113 /** Root hub USB interface */ 116 114 static usb_iface_t usb_iface = { 117 .get_hc_handle = usb_iface_get_hc_handle,118 .get_ address = usb_iface_get_address115 .get_hc_handle = rh_get_hc_handle, 116 .get_my_address = rh_get_my_address, 119 117 }; 120 118 /*----------------------------------------------------------------------------*/ -
uspace/drv/bus/usb/usbmid/usbmid.c
rd25e0a4 r27ed734c 63 63 static usb_iface_t child_usb_iface = { 64 64 .get_hc_handle = usb_iface_get_hc_handle_device_impl, 65 .get_ address = usb_iface_get_address_forward_impl,66 .get_interface = usb_iface_get_interface_impl 65 .get_my_address = usb_iface_get_my_address_forward_impl, 66 .get_interface = usb_iface_get_interface_impl, 67 67 }; 68 68 -
uspace/drv/bus/usb/vhc/connhost.c
rd25e0a4 r27ed734c 479 479 } 480 480 481 static int tell_address(ddf_fun_t *fun, devman_handle_t handle, 482 usb_address_t *address) 481 static int tell_address(ddf_fun_t *fun, usb_address_t *address) 483 482 { 484 483 UNSUPPORTED("tell_address"); … … 497 496 } 498 497 499 static int tell_address_rh(ddf_fun_t *root_hub_fun, devman_handle_t handle, 500 usb_address_t *address) 498 static int tell_address_rh(ddf_fun_t *root_hub_fun, usb_address_t *address) 501 499 { 502 500 VHC_DATA(vhc, root_hub_fun); 503 501 504 if (handle == 0) { 505 handle = root_hub_fun->handle; 506 } 502 devman_handle_t handle = root_hub_fun->handle; 507 503 508 504 usb_log_debug("tell_address_rh(handle=%" PRIun ")\n", handle); … … 532 528 usb_iface_t vhc_usb_iface = { 533 529 .get_hc_handle = usb_iface_get_hc_handle_hc_impl, 534 .get_ address = tell_address530 .get_my_address = tell_address 535 531 }; 536 532 537 533 usb_iface_t rh_usb_iface = { 538 534 .get_hc_handle = usb_iface_get_hc_handle_rh_impl, 539 .get_ address = tell_address_rh535 .get_my_address = tell_address_rh 540 536 }; 541 537
Note:
See TracChangeset
for help on using the changeset viewer.