diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-14 03:12:57 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-14 03:12:57 +0000 |
commit | bcd70414877e56f3bffff0bf11b07a30ef51a68f (patch) | |
tree | f85543ec5a77ffd11383071acd5d68305a2cfc83 /IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei | |
parent | e1a09a0eaa2de7bb9cd41c98e2f5fa383fb7a401 (diff) | |
download | edk2-platforms-bcd70414877e56f3bffff0bf11b07a30ef51a68f.tar.xz |
Coding style modification.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5058 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c | 13 | ||||
-rw-r--r-- | IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg2.c | 11 |
2 files changed, 17 insertions, 7 deletions
diff --git a/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c b/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c index 2162b63557..5becfe4701 100644 --- a/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c +++ b/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c @@ -54,7 +54,7 @@ PciCfgRead ( UINTN PciLibAddress;
PciLibAddress = PciCfgAddressConvert ((EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS *) &Address);
- switch (Width) {
+ switch (Width) {
case EfiPeiPciCfgWidthUint8:
* (UINT8 *) Buffer = PciRead8 (PciLibAddress);
break;
@@ -70,7 +70,7 @@ PciCfgRead ( default:
return EFI_INVALID_PARAMETER;
}
- return EFI_SUCCESS;
+ return EFI_SUCCESS;
}
@@ -119,8 +119,8 @@ PciCfgWrite ( default:
return EFI_INVALID_PARAMETER;
- }
- return EFI_SUCCESS;
+ }
+ return EFI_SUCCESS;
}
@@ -154,7 +154,7 @@ PciCfgModify ( UINTN PciLibAddress;
PciLibAddress = PciCfgAddressConvert ((EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS *) &Address);
- switch (Width) {
+ switch (Width) {
case EfiPeiPciCfgWidthUint8:
PciAndThenOr8 (PciLibAddress, (UINT8)~ClearBits, (UINT8)SetBits);
break;
@@ -170,5 +170,6 @@ PciCfgModify ( default:
return EFI_INVALID_PARAMETER;
}
- return EFI_SUCCESS;
+ return EFI_SUCCESS;
}
+
diff --git a/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg2.c b/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg2.c index 2055db3f45..3ce363251b 100644 --- a/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg2.c +++ b/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg2.c @@ -260,7 +260,15 @@ PciCfg2Modify ( return EFI_SUCCESS;
}
-
+/**
+ Module's entry function.
+ This routine will install EFI_PEI_PCI_CFG2_PPI or EFI_PEI_PCI_CFG_PPI
+ according to PeiServices's version.
+
+ @param FfsHeader Image's header
+ @param PeiServices Pointer of EFI_PEI_SERVICES
+ @return Whether success to install service
+**/
EFI_STATUS
EFIAPI
PeimInitializePciCfg (
@@ -298,3 +306,4 @@ PeimInitializePciCfg ( return Status;
}
+
|