Changeset fb28cde in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2018-01-18T17:12:30Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8fe29a7c
Parents:
e7f21884
Message:

xhci: changed api to get dequeue state of trb ring

File:
1 edited

Legend:

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

    re7f21884 rfb28cde  
    477477        XHCI_REG_WR(hc->op_regs, XHCI_OP_MAX_SLOTS_EN, hc->max_slots);
    478478
    479         uint64_t crcr = xhci_trb_ring_get_dequeue_ptr(&hc->cr.trb_ring);
    480         if (hc->cr.trb_ring.pcs)
    481                 crcr |= XHCI_REG_MASK(XHCI_OP_RCS);
     479        uintptr_t crcr;
     480        xhci_trb_ring_reset_dequeue_state(&hc->cr.trb_ring, &crcr);
    482481        XHCI_REG_WR(hc->op_regs, XHCI_OP_CRCR_LO, LOWER32(crcr));
    483482        XHCI_REG_WR(hc->op_regs, XHCI_OP_CRCR_HI, UPPER32(crcr));
Note: See TracChangeset for help on using the changeset viewer.