summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei')
-rw-r--r--IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg.c13
-rw-r--r--IntelFrameworkModulePkg/Universal/PcatSingleSegmentPciCfgPei/PciCfg2.c11
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;
}
+