From 77dfa7c7fc4f5be4ab6eb45e05d77060c7c309ec Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 8 Feb 2010 11:43:19 +0000 Subject: Update MdeModulePkg to not use EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION in source code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9951 6f19259b-4bc3-4df7-8a09-765794883524 --- .../PcatSingleSegmentPciCfg2Pei/PcatSingleSegmentPciCfg2Pei.inf | 5 ++--- MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei') diff --git a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PcatSingleSegmentPciCfg2Pei.inf b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PcatSingleSegmentPciCfg2Pei.inf index 308fc08c6e..a8a9dcd68c 100644 --- a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PcatSingleSegmentPciCfg2Pei.inf +++ b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PcatSingleSegmentPciCfg2Pei.inf @@ -3,7 +3,7 @@ # to provide read, write and modify access to Pci configuration space in PEI phase. # To follow PI specification, these services also support access to the unaligned Pci address. # -# Copyright (c) 2006 - 2008, Intel Corporation +# Copyright (c) 2006 - 2010, 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 @@ -22,7 +22,6 @@ MODULE_TYPE = PEIM VERSION_STRING = 1.0 ENTRY_POINT = PeimInitializePciCfg - PI_SPECIFICATION_VERSION = 0x00010000 # # The following information is for reference only and not required by the build tools. @@ -42,7 +41,7 @@ PciLib BaseLib DebugLib - + PeiServicesLib [Ppis] gEfiPciCfg2PpiGuid ## PRODUCED diff --git a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c index d2ca19c7b0..32dc96e249 100644 --- a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c +++ b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c @@ -3,7 +3,7 @@ to provide read, write and modify access to Pci configuration space in PEI phase. To follow PI specification, these services also support access to the unaligned Pci address. - Copyright (c) 2006 - 2008, Intel Corporation + Copyright (c) 2006 - 2010, 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 @@ -20,6 +20,7 @@ #include #include #include +#include #include /** @@ -308,10 +309,9 @@ PeimInitializePciCfg ( { EFI_STATUS Status; - ASSERT ((**PeiServices).Hdr.Revision >= PI_SPECIFICATION_VERSION); - (**(EFI_PEI_SERVICES **)PeiServices).PciCfg = &gPciCfg2Ppi; - Status = (**PeiServices).InstallPpi (PeiServices, &gPciCfg2PpiList); + Status = PeiServicesInstallPpi (&gPciCfg2PpiList); + ASSERT_EFI_ERROR (Status); return Status; } -- cgit v1.2.3