X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FBus%2FPci%2FPciBus%2FDxe%2FPciHotPlugSupport.c;h=7fba0476b5c25d9ec602c5c32c29eb5d1ec0ef55;hp=87074873114c3e708128ff1aa754b429030a2bb9;hb=d97430c57a781ec26d272af0598d47d47f85d96f;hpb=1650d76a3febcd1316768c3fc270ae0c07bccf74 diff --git a/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciHotPlugSupport.c b/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciHotPlugSupport.c index 8707487311..7fba0476b5 100644 --- a/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciHotPlugSupport.c +++ b/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciHotPlugSupport.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -21,7 +21,7 @@ Revision History --*/ -#include "pcibus.h" +#include "Pcibus.h" #include "PciHotPlugSupport.h" EFI_PCI_HOT_PLUG_INIT_PROTOCOL *gPciHotPlugInit; @@ -270,17 +270,18 @@ Returns: EFI_STATUS AllRootHPCInitialized ( - IN UINTN TimeoutInMilliSeconds + IN UINTN TimeoutInMicroSeconds ) /*++ Routine Description: Arguments: + TimeoutInMicroSeconds - microseconds to wait for all root hpc's initialization Returns: - - None + EFI_SUCCESS - All root hpc's initialization is finished before the timeout + EFI_TIMEOUT - Time out --*/ // TODO: TimeoutInMilliSeconds - add argument and description to function comment @@ -290,7 +291,7 @@ Returns: UINT32 Delay; UINTN Index; - Delay = (UINT32) (((TimeoutInMilliSeconds * STALL_1_MILLI_SECOND) / 30) + 1); + Delay = (UINT32) ((TimeoutInMicroSeconds / 30) + 1); do { for (Index = 0; Index < gPciRootHpcCount; Index++) {