Changeset 12fba858 in mainline
- Timestamp:
- 2017-07-19T18:29:32Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9af3281
- Parents:
- 955e988
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r955e988 r12fba858 320 320 321 321 uint64_t erstptr = addr_to_phys(hc->event_ring.erst); 322 uint64_t erdp = hc->event_ring.dequeue_ptr; 322 323 xhci_interrupter_regs_t *intr0 = &hc->rt_regs->ir[0]; 323 324 XHCI_REG_WR(intr0, XHCI_INTR_ERSTSZ, hc->event_ring.segment_count); 324 XHCI_REG_WR(intr0, XHCI_INTR_ERDP_LO, LOWER32(er stptr));325 XHCI_REG_WR(intr0, XHCI_INTR_ERDP_HI, UPPER32(er stptr));325 XHCI_REG_WR(intr0, XHCI_INTR_ERDP_LO, LOWER32(erdp)); 326 XHCI_REG_WR(intr0, XHCI_INTR_ERDP_HI, UPPER32(erdp)); 326 327 XHCI_REG_WR(intr0, XHCI_INTR_ERSTBA_LO, LOWER32(erstptr)); 327 328 XHCI_REG_WR(intr0, XHCI_INTR_ERSTBA_HI, UPPER32(erstptr)); … … 397 398 398 399 /* Update the ERDP to make room in the ring */ 399 uint64_t er stptr = addr_to_phys(hc->event_ring.erst);400 XHCI_REG_WR(intr, XHCI_INTR_ERDP_LO, LOWER32(er stptr));401 XHCI_REG_WR(intr, XHCI_INTR_ERDP_HI, UPPER32(er stptr));400 uint64_t erdp = hc->event_ring.dequeue_ptr; 401 XHCI_REG_WR(intr, XHCI_INTR_ERDP_LO, LOWER32(erdp)); 402 XHCI_REG_WR(intr, XHCI_INTR_ERDP_HI, UPPER32(erdp)); 402 403 } 403 404
Note:
See TracChangeset
for help on using the changeset viewer.