XHCI: Rename ERST_EHB to ERDP_BUSY for clarity's sake.

No functional change intended.
This commit is contained in:
Augustin Cavalier 2019-08-10 23:02:20 -04:00
parent a614ac8101
commit 8bfe3d25f4
2 changed files with 3 additions and 4 deletions

View File

@ -2378,8 +2378,8 @@ XHCI::Ring(uint8 slot, uint8 endpoint)
WriteDoorReg32(XHCI_DOORBELL(slot), XHCI_DOORBELL_TARGET(endpoint)
| XHCI_DOORBELL_STREAMID(0));
/* Flush PCI posted writes */
ReadDoorReg32(XHCI_DOORBELL(slot));
// Flush PCI writes
}
@ -2829,8 +2829,7 @@ XHCI::ProcessEvents()
fEventCcs = j;
uint64 addr = fErst->rs_addr + i * sizeof(xhci_trb);
addr |= ERST_EHB;
WriteRunReg32(XHCI_ERDP_LO(0), (uint32)addr);
WriteRunReg32(XHCI_ERDP_LO(0), (uint32)addr | ERDP_BUSY);
WriteRunReg32(XHCI_ERDP_HI(0), (uint32)(addr >> 32));
}

View File

@ -120,7 +120,7 @@
#define XHCI_ERDP_LO(n) (0x0038 + (0x20 * (n)))
#define XHCI_ERDP_HI(n) (0x003C + (0x20 * (n)))
// Event Handler Busy (EHB)
#define ERST_EHB (1 << 3)
#define ERDP_BUSY (1 << 3)
// Host Controller Doorbell Registers