Changeset 4abb134 in mainline for uspace/drv/bus/usb/xhci/hc.c
- Timestamp:
- 2017-12-21T13:49:38Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 503086d8
- Parents:
- 6f3700d
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-21 13:47:22)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-21 13:49:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r6f3700d r4abb134 401 401 XHCI_REG_WR(hc->op_regs, XHCI_OP_MAX_SLOTS_EN, hc->max_slots); 402 402 403 uint64_t crptr = xhci_trb_ring_get_dequeue_ptr(&hc->cr.trb_ring); 404 XHCI_REG_WR(hc->op_regs, XHCI_OP_CRCR_LO, LOWER32(crptr) >> 6); 405 XHCI_REG_WR(hc->op_regs, XHCI_OP_CRCR_HI, UPPER32(crptr)); 403 uint64_t crcr = xhci_trb_ring_get_dequeue_ptr(&hc->cr.trb_ring); 404 if (hc->cr.trb_ring.pcs) 405 crcr |= XHCI_REG_MASK(XHCI_OP_RCS); 406 XHCI_REG_WR(hc->op_regs, XHCI_OP_CRCR_LO, LOWER32(crcr)); 407 XHCI_REG_WR(hc->op_regs, XHCI_OP_CRCR_HI, UPPER32(crcr)); 406 408 407 409 xhci_interrupter_regs_t *intr0 = &hc->rt_regs->ir[0];
Note:
See TracChangeset
for help on using the changeset viewer.