summaryrefslogtreecommitdiff
path: root/IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h')
-rw-r--r--IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h b/IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h
index 920115e..c91ea4a 100644
--- a/IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h
+++ b/IntelFsp2Pkg/Include/Library/FspSecPlatformLib.h
@@ -81,6 +81,7 @@ FspUpdSignatureCheck (
/**
This function handles FspMultiPhaseSiInitApi.
+ Starting from FSP 2.4 this function is obsolete and FspMultiPhaseSiInitApiHandlerV2 is the replacement.
@param[in] ApiIdx Internal index of the FSP API.
@param[in] ApiParam Parameter of the FSP API.
@@ -93,4 +94,26 @@ FspMultiPhaseSiInitApiHandler (
IN VOID *ApiParam
);
+/**
+ FSP MultiPhase Platform Get Number Of Phases Function.
+
+ Allows an FSP binary to dynamically update the number of phases at runtime.
+ For example, UPD settings could negate the need to enter the multi-phase flow
+ in certain scenarios. If this function returns FALSE, the default number of phases
+ provided by PcdMultiPhaseNumberOfPhases will be returned to the bootloader instead.
+
+ @param[in] ApiIdx - Internal index of the FSP API.
+ @param[in] NumberOfPhasesSupported - How many phases are supported by current FSP Component.
+
+ @retval TRUE - NumberOfPhases are modified by Platform during runtime.
+ @retval FALSE - The Default build time NumberOfPhases should be used.
+
+**/
+BOOLEAN
+EFIAPI
+FspMultiPhasePlatformGetNumberOfPhases (
+ IN UINTN ApiIdx,
+ IN OUT UINT32 *NumberOfPhasesSupported
+ );
+
#endif