Changeset 7ec7b7e in mainline for uspace/drv/bus/usb/xhci/endpoint.c


Ignore:
Timestamp:
2018-01-19T21:04:32Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
726af29
Parents:
c6f82e5
Message:

Handling HCs with 32 or 64-bytes context size

File:
1 edited

Legend:

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

    rc6f82e5 r7ec7b7e  
    326326        unsigned idx = xhci_endpoint_index(ep);
    327327        xhci_device_ctx_t *ctx = dev->dev_ctx.virt;
    328         xhci_ep_ctx_t *ep_ctx = &ctx->endpoint_ctx[idx];
     328        const xhci_hc_t * hc = bus_to_hc(dev->base.bus);
     329        xhci_ep_ctx_t *ep_ctx = XHCI_GET_EP_CTX(ctx, hc, idx);
    329330
    330331        return XHCI_EP_STATE(*ep_ctx);
Note: See TracChangeset for help on using the changeset viewer.