Changeset 90994fa in mainline for uspace/lib/usbdev/src/hub.c
- Timestamp:
- 2011-10-12T20:03:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 162726b
- Parents:
- 205f0766
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/hub.c
r205f0766 r90994fa 105 105 int rc = async_req_3_0(exch, DEV_IFACE_ID(USBHC_DEV_IFACE), 106 106 IPC_M_USBHC_BIND_ADDRESS, 107 attached_device->address, attached_device-> handle);107 attached_device->address, attached_device->fun->handle); 108 108 async_exchange_end(exch); 109 109 … … 320 320 */ 321 321 /* FIXME: create device_register that will get opened ctrl pipe. */ 322 d evman_handle_t child_handle;322 ddf_fun_t *child_fun; 323 323 rc = usb_device_register_child_in_devman(dev_addr, dev_conn.hc_handle, 324 parent, &child_handle,325 dev_ops, new_dev_data, new_fun);324 parent, NULL, 325 dev_ops, new_dev_data, &child_fun); 326 326 if (rc != EOK) { 327 327 rc = ESTALL; … … 334 334 usb_hub_attached_device_t new_device = { 335 335 .address = dev_addr, 336 . handle = child_handle336 .fun = child_fun, 337 337 }; 338 338 rc = usb_hc_register_device(&hc_conn, &new_device); … … 351 351 } 352 352 if (assigned_handle != NULL) { 353 *assigned_handle = child_handle; 353 *assigned_handle = child_fun->handle; 354 } 355 if (new_fun != NULL) { 356 *new_fun = child_fun; 354 357 } 355 358
Note:
See TracChangeset
for help on using the changeset viewer.