Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8a98e4a in mainline


Ignore:
Timestamp:
2018-01-15T16:33:20Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
c1a966e
Parents:
745a3f1
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-15 16:27:29)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-15 16:33:20)
Message:

xhci: implemented TT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hc.c

    r745a3f1 r8a98e4a  
    757757        XHCI_SLOT_SPEED_SET(ictx->slot_ctx, usb_speed_to_psiv[dev->base.speed]);
    758758
    759         /* In a very specific case, we have to set also these. But before that,
    760          * we need to refactor how TT is handled in libusbhost. */
    761         XHCI_SLOT_TT_HUB_SLOT_ID_SET(ictx->slot_ctx, 0);
    762         XHCI_SLOT_TT_HUB_PORT_SET(ictx->slot_ctx, 0);
    763         XHCI_SLOT_MTT_SET(ictx->slot_ctx, 0);
     759        /* Setup Transaction Translation. TODO: Test this with HS hub. */
     760        if (dev->base.tt.dev != NULL) {
     761                xhci_device_t *hub = xhci_device_get(dev->base.tt.dev);
     762                XHCI_SLOT_TT_HUB_SLOT_ID_SET(ictx->slot_ctx, hub->slot_id);
     763                XHCI_SLOT_TT_HUB_PORT_SET(ictx->slot_ctx, dev->base.tt.port);
     764                XHCI_SLOT_MTT_SET(ictx->slot_ctx, 0); // MTT not supported yet
     765        }
    764766
    765767        /* Copy endpoint 0 context and set A1 flag. */
Note: See TracChangeset for help on using the changeset viewer.