X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FEhciDxe%2FEhciSched.c;h=349b5c233a955d838cf29bc56328505fef341168;hp=4c2dc86f06631b9ee7e6900c9dcbf7c87b9b2660;hb=41e8ff2781f3ca14f73ef5f39e781ccba8cb373d;hpb=ba5711102a63d081cb388289983a0e2734e42fb5 diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c b/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c index 4c2dc86f06..349b5c233a 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c @@ -342,7 +342,7 @@ EhcUnlinkQhFromAsync ( // // Set and wait the door bell to synchronize with the hardware // - Status = EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIME); + Status = EhcSetAndWaitDoorBell (Ehc, EHC_GENERIC_TIMEOUT); if (EFI_ERROR (Status)) { EHC_ERROR (("EhcUnlinkQhFromAsync: Failed to synchronize with doorbell\n")); @@ -659,7 +659,7 @@ EhcExecTransfer ( BOOLEAN Finished; Status = EFI_SUCCESS; - Loop = (TimeOut * EHC_STALL_1_MILLISECOND / EHC_SYNC_POLL_TIME) + 1; + Loop = (TimeOut * EHC_1_MILLISECOND / EHC_SYNC_POLL_INTERVAL) + 1; Finished = FALSE; for (Index = 0; Index < Loop; Index++) { @@ -669,7 +669,7 @@ EhcExecTransfer ( break; } - gBS->Stall (EHC_SYNC_POLL_TIME); + gBS->Stall (EHC_SYNC_POLL_INTERVAL); } if (!Finished) {