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

Changeset 001778c in mainline


Ignore:
Timestamp:
2018-01-13T17:35:59Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
1ed3eb4
Parents:
36fb6d7
Message:

xhci: set slot context entries to maximum

File:
1 edited

Legend:

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

    r36fb6d7 r001778c  
    714714        XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, 0);
    715715
     716        // As we always allocate space for whole input context, we can set this to maximum
     717        XHCI_SLOT_CTX_ENTRIES_SET(ictx->slot_ctx, 31);
     718
    716719        return EOK;
    717720}
     
    829832        XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, ep_idx + 1); /* Preceded by slot ctx */
    830833        memcpy(&ictx->endpoint_ctx[ep_idx], ep_ctx, sizeof(xhci_ep_ctx_t));
     834
    831835        // TODO: Set slot context and other flags. (probably forgot a lot of 'em)
    832836
Note: See TracChangeset for help on using the changeset viewer.