Changeset 0ee999d in mainline for uspace/lib/usbhost/src/ddf_helpers.c


Ignore:
Timestamp:
2013-08-20T12:24:16Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5856b627
Parents:
5dad73d
Message:

libusbhost: Add TT information to usb_enpoint_t structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    r5dad73d r0ee999d  
    114114
    115115        return hcd_add_ep(hcd, target, direction, transfer_type,
    116             max_packet_size, size);
     116            max_packet_size, size, dev->tt_address, dev->port);
    117117}
    118118
     
    391391                    (d->device_version & 0xff));
    392392       
    393                 /* Next, without release number. */     
     393                /* Next, without release number. */
    394394                ADD_MATCHID_OR_RETURN(l, 90, "usb&vendor=%#04x&product=%#04x",
    395395                    d->vendor_id, d->product_id);
     
    453453
    454454        /* 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,
    456456                USB_ADDRESS_DEFAULT, &speed);
    457457        if (ret != EOK) {
     
    473473        }};
    474474
     475        const usb_address_t tt_address = hub ? hub->tt_address : -1;
     476
    475477        /* Add default pipe on default address */
    476478        ret = hcd_add_ep(hcd,
    477479            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);
    479482
    480483        if (ret != EOK) {
     
    501504        /* Register EP on the new address */
    502505        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);
    504507        if (ret != EOK) {
    505508                hcd_remove_ep(hcd, default_target, USB_DIRECTION_BOTH);
Note: See TracChangeset for help on using the changeset viewer.