Changeset 4c25c2fb in mainline for uspace/drv


Ignore:
Timestamp:
2018-01-15T15:02:57Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
745a3f1
Parents:
01d9707
Message:

usbhost: move managing TT to the library

Location:
uspace/drv/bus/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hw_struct/queue_head.c

    r01d9707 r4c25c2fb  
    8383        uint32_t ep_cap = QH_EP_CAP_C_MASK_SET(3 << 2) |
    8484                    QH_EP_CAP_MULTI_SET(ep->packets_per_uframe);
    85         if (ep->device->speed != USB_SPEED_HIGH) {
     85        if (usb_speed_is_11(ep->device->speed)) {
     86                assert(ep->device->tt.dev != NULL);
    8687                ep_cap |=
    8788                    QH_EP_CAP_TT_PORT_SET(ep->device->tt.port) |
    88                     QH_EP_CAP_TT_ADDR_SET(ep->device->tt.address);
     89                    QH_EP_CAP_TT_ADDR_SET(ep->device->tt.dev->address);
    8990        }
    9091        if (ep->transfer_type == USB_TRANSFER_INTERRUPT) {
  • uspace/drv/bus/usb/xhci/bus.c

    r01d9707 r4c25c2fb  
    149149        xhci_device_t *xhci_dev = xhci_device_get(dev);
    150150
    151         hcd_setup_device_tt(dev);
    152 
    153151        /* Calculate route string */
    154152        xhci_device_t *xhci_hub = xhci_device_get(dev->hub);
Note: See TracChangeset for help on using the changeset viewer.