/*++\r
\r
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
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
#include "Tiano.h"\r
#include "pei.h"\r
#include "cpuio.h"\r
-#include "pcicfg.h"\r
-#include "pcicfg2.h"\r
+#include EFI_PPI_CONSUMER (PciCfg)\r
+#include EFI_PPI_CONSUMER (PciCfg2)\r
#include EFI_PROTOCOL_CONSUMER (PciRootBridgeIo)\r
\r
//\r
\r
--*/\r
{\r
- EFI_STATUS Status;\r
-\r
mPeiServices = NULL;\r
CpuIoPpi = NULL;\r
PciCfgPpi = NULL;\r
EFI_STATUS Status;\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *RootBridgeIo;\r
\r
- if (mPeiServices == NULL) {\r
+ if (mPeiServices != NULL) {\r
//\r
// The function is called in PEI phase, use PEI interfaces\r
//\r
EFI_STATUS Status;\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *RootBridgeIo;\r
\r
- if (mPeiServices == NULL) {\r
+ if (mPeiServices != NULL) {\r
//\r
// The function is called in PEI phase, use PEI interfaces\r
//\r
UINT8 *Buffer8;\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *RootBridgeIo;\r
\r
- if (mPeiServices == NULL) {\r
+ if (mPeiServices != NULL) {\r
//\r
// The function is called in PEI phase, use PEI interfaces\r
//\r