/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
\r
--*/\r
\r
-#include "pcibus.h"\r
+#include "Pcibus.h"\r
#include "PciHotPlugSupport.h"\r
\r
EFI_PCI_HOT_PLUG_INIT_PROTOCOL *gPciHotPlugInit;\r
\r
EFI_STATUS\r
AllRootHPCInitialized (\r
- IN UINTN TimeoutInMilliSeconds\r
+ IN UINTN TimeoutInMicroSeconds\r
)\r
/*++\r
\r
Routine Description:\r
\r
Arguments:\r
+ TimeoutInMicroSeconds - microseconds to wait for all root hpc's initialization\r
\r
Returns:\r
-\r
- None\r
+ EFI_SUCCESS - All root hpc's initialization is finished before the timeout\r
+ EFI_TIMEOUT - Time out\r
\r
--*/\r
// TODO: TimeoutInMilliSeconds - add argument and description to function comment\r
UINT32 Delay;\r
UINTN Index;\r
\r
- Delay = (UINT32) (((TimeoutInMilliSeconds * STALL_1_MILLI_SECOND) / 30) + 1);\r
+ Delay = (UINT32) ((TimeoutInMicroSeconds / 30) + 1);\r
do {\r
\r
for (Index = 0; Index < gPciRootHpcCount; Index++) {\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
#ifndef _EFI_PCI_HOT_PLUG_SUPPORT_H\r
#define _EFI_PCI_HOT_PLUG_SUPPORT_H\r
\r
-//\r
-// stall 1 ms\r
-//\r
-#define STALL_1_MILLI_SECOND 1000 \r
\r
//\r
// stall 1 second\r
\r
EFI_STATUS\r
AllRootHPCInitialized (\r
- IN UINTN TimeoutInMilliSeconds\r
+ IN UINTN TimeoutInMicroSeconds\r
)\r
/*++\r
\r
TODO: Add function description\r
\r
Arguments:\r
-\r
- TimeoutInMilliSeconds - TODO: add argument description\r
+ TimeoutInMicroSeconds - microseconds to wait for all root hpc's initialization\r
\r
Returns:\r
-\r
- TODO: add return values\r
+ EFI_SUCCESS - All root hpc's initialization is finished before the timeout\r
+ EFI_TIMEOUT - Time out\r
\r
--*/\r
;\r
RootBridgeDev\r
);\r
\r
+ DestroyRootBridge (RootBridgeDev);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
-\r
- DestroyRootBridge (RootBridgeDev);\r
-\r
- //\r
- // Error proccess here\r
- //\r
}\r
\r
//\r