Ignore:
Timestamp:
2018-01-15T15:02:57Z (6 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

File:
1 edited

Legend:

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

    r01d9707 r4c25c2f  
    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) {
Note: See TracChangeset for help on using the changeset viewer.