Changeset 0ee999d in mainline for uspace/lib/usbhost/src/ddf_helpers.c
- Timestamp:
- 2013-08-20T12:24:16Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5856b627
- Parents:
- 5dad73d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/ddf_helpers.c
r5dad73d r0ee999d 114 114 115 115 return hcd_add_ep(hcd, target, direction, transfer_type, 116 max_packet_size, size );116 max_packet_size, size, dev->tt_address, dev->port); 117 117 } 118 118 … … 391 391 (d->device_version & 0xff)); 392 392 393 /* Next, without release number. */ 393 /* Next, without release number. */ 394 394 ADD_MATCHID_OR_RETURN(l, 90, "usb&vendor=%#04x&product=%#04x", 395 395 d->vendor_id, d->product_id); … … 453 453 454 454 /* This checks whether the default address is reserved and gets speed */ 455 int ret = usb_endpoint_manager_get_ info_by_address(&hcd->ep_manager,455 int ret = usb_endpoint_manager_get_speed(&hcd->ep_manager, 456 456 USB_ADDRESS_DEFAULT, &speed); 457 457 if (ret != EOK) { … … 473 473 }}; 474 474 475 const usb_address_t tt_address = hub ? hub->tt_address : -1; 476 475 477 /* Add default pipe on default address */ 476 478 ret = hcd_add_ep(hcd, 477 479 default_target, USB_DIRECTION_BOTH, USB_TRANSFER_CONTROL, 478 CTRL_PIPE_MIN_PACKET_SIZE, CTRL_PIPE_MIN_PACKET_SIZE); 480 CTRL_PIPE_MIN_PACKET_SIZE, CTRL_PIPE_MIN_PACKET_SIZE, 481 tt_address, port); 479 482 480 483 if (ret != EOK) { … … 501 504 /* Register EP on the new address */ 502 505 ret = hcd_add_ep(hcd, target, USB_DIRECTION_BOTH, USB_TRANSFER_CONTROL, 503 desc.max_packet_size, desc.max_packet_size );506 desc.max_packet_size, desc.max_packet_size, tt_address, port); 504 507 if (ret != EOK) { 505 508 hcd_remove_ep(hcd, default_target, USB_DIRECTION_BOTH);
Note:
See TracChangeset
for help on using the changeset viewer.