MFC r278477:
Fix DMA address casts.
This commit is contained in:
parent
f8653b32cf
commit
5bf9aa9b6f
@ -496,7 +496,7 @@ xhci_start_controller(struct xhci_softc *sc)
|
||||
XWRITE4(sc, runt, XHCI_ERDP_LO(0), (uint32_t)addr);
|
||||
XWRITE4(sc, runt, XHCI_ERDP_HI(0), (uint32_t)(addr >> 32));
|
||||
|
||||
addr = (uint64_t)buf_res.physaddr;
|
||||
addr = buf_res.physaddr;
|
||||
|
||||
DPRINTF("ERSTBA(0)=0x%016llx\n", (unsigned long long)addr);
|
||||
|
||||
@ -1118,7 +1118,7 @@ xhci_interrupt_poll(struct xhci_softc *sc)
|
||||
* register.
|
||||
*/
|
||||
|
||||
addr = (uint32_t)buf_res.physaddr;
|
||||
addr = buf_res.physaddr;
|
||||
addr += (uintptr_t)&((struct xhci_hw_root *)0)->hwr_events[i];
|
||||
|
||||
/* try to clear busy bit */
|
||||
|
Loading…
x
Reference in New Issue
Block a user