From cebc8d486e39ffbbf37f67914db0a49455181e0f Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 11 Dec 2008 09:30:13 +0000 Subject: Code Scrub for Pcd, PlatformDriOverride and PlatOverMngr driver. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6998 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei') diff --git a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c index 0d899c9260..6ea2cfb8e8 100644 --- a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c +++ b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c @@ -55,7 +55,7 @@ PciCfg2Read ( IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN OUT VOID *Buffer -); + ); /** Write to a given location in the PCI configuration space. @@ -89,7 +89,7 @@ PciCfg2Write ( IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN OUT VOID *Buffer -); + ); /** @@ -130,7 +130,7 @@ PciCfg2Modify ( IN UINT64 Address, IN VOID *SetBits, IN VOID *ClearBits -); + ); @@ -218,7 +218,7 @@ PciCfg2Read ( IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN OUT VOID *Buffer -) + ) { UINTN PciLibAddress; @@ -269,7 +269,7 @@ PciCfg2Write ( IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, IN UINT64 Address, IN OUT VOID *Buffer -) + ) { UINTN PciLibAddress; @@ -327,7 +327,7 @@ PciCfg2Modify ( IN UINT64 Address, IN VOID *SetBits, IN VOID *ClearBits -) + ) { UINTN PciLibAddress; UINT16 ClearValue16; @@ -353,7 +353,15 @@ PciCfg2Modify ( return EFI_SUCCESS; } +/** + Module's entry function. + This routine will install EFI_PEI_PCI_CFG2_PPI. + + @param FileHandle Handle of the file being invoked. + @param PeiServices Describes the list of possible PEI Services. + @return Whether success to install service. +**/ EFI_STATUS EFIAPI PeimInitializePciCfg ( -- cgit v1.2.3