Changeset 1f1fa64 in mainline for uspace/lib/usbdev/src/hub.c
- Timestamp:
- 2014-07-28T21:53:11Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c3b25985, f2f4c00
- Parents:
- cbfece7 (diff), 7eb6c96 (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/lib/usbdev/src/hub.c
rcbfece7 r1f1fa64 155 155 * request or requests for descriptors when creating match ids). 156 156 */ 157 int usb_hc_new_device_wrapper(ddf_dev_t *parent, 157 int usb_hc_new_device_wrapper(ddf_dev_t *parent, ddf_fun_t *fun, 158 158 usb_hc_connection_t *hc_conn, usb_speed_t dev_speed, 159 159 int (*enable_port)(void *arg), void *arg, usb_address_t *assigned_address, 160 ddf_dev_ops_t *dev_ops , void *new_dev_data, ddf_fun_t **new_fun)160 ddf_dev_ops_t *dev_ops) 161 161 { 162 if ( (new_fun == NULL) || (hc_conn == NULL))162 if (hc_conn == NULL) 163 163 return EINVAL; 164 164 … … 271 271 /* Register the device with devman. */ 272 272 /* FIXME: create device_register that will get opened ctrl pipe. */ 273 ddf_fun_t *child_fun;274 273 rc = usb_device_register_child_in_devman(&ctrl_pipe, 275 parent, dev_ops, new_dev_data, &child_fun);274 parent, fun, dev_ops); 276 275 if (rc != EOK) { 277 276 goto leave_release_free_address; … … 280 279 const usb_hub_attached_device_t new_device = { 281 280 .address = dev_addr, 282 .fun = child_fun,281 .fun = fun, 283 282 }; 284 283 … … 288 287 if (rc != EOK) { 289 288 /* The child function is already created. */ 290 ddf_fun_destroy(child_fun);291 289 rc = EDESTADDRREQ; 292 290 goto leave_release_free_address; … … 296 294 *assigned_address = dev_addr; 297 295 } 298 299 *new_fun = child_fun;300 296 301 297 rc = EOK;
Note:
See TracChangeset
for help on using the changeset viewer.