]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/PlatformSecLibNull.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / IntelFsp2Pkg / Library / SecFspSecPlatformLibNull / PlatformSecLibNull.c
CommitLineData
cf1d4549
JY
1/** @file\r
2 Null instance of Platform Sec Lib.\r
3\r
f2cdb268 4 Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
9672cd30 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
6\r
7**/\r
8\r
9#include <PiPei.h>\r
10#include <Library/FspCommonLib.h>\r
11\r
12/**\r
91cc60ba 13 This function check the signature of UPD.\r
cf1d4549
JY
14\r
15 @param[in] ApiIdx Internal index of the FSP API.\r
16 @param[in] ApiParam Parameter of the FSP API.\r
17\r
18**/\r
19EFI_STATUS\r
20EFIAPI\r
21FspUpdSignatureCheck (\r
111f2228
MK
22 IN UINT32 ApiIdx,\r
23 IN VOID *ApiParam\r
cf1d4549
JY
24 )\r
25{\r
26 return EFI_SUCCESS;\r
27}\r
f2cdb268
CC
28\r
29/**\r
30 This function handles FspMultiPhaseSiInitApi.\r
df25a545 31 Starting from FSP 2.4 this function is obsolete and FspMultiPhaseSiInitApiHandlerV2 is the replacement.\r
f2cdb268
CC
32\r
33 @param[in] ApiIdx Internal index of the FSP API.\r
34 @param[in] ApiParam Parameter of the FSP API.\r
35\r
36**/\r
37EFI_STATUS\r
38EFIAPI\r
39FspMultiPhaseSiInitApiHandler (\r
111f2228
MK
40 IN UINT32 ApiIdx,\r
41 IN VOID *ApiParam\r
f2cdb268
CC
42 )\r
43{\r
44 return EFI_SUCCESS;\r
45}\r
df25a545
CC
46\r
47/**\r
48 FSP MultiPhase Platform Get Number Of Phases Function.\r
49\r
50 Allows an FSP binary to dynamically update the number of phases at runtime.\r
51 For example, UPD settings could negate the need to enter the multi-phase flow\r
52 in certain scenarios. If this function returns FALSE, the default number of phases\r
53 provided by PcdMultiPhaseNumberOfPhases will be returned to the bootloader instead.\r
54\r
55 @param[in] ApiIdx - Internal index of the FSP API.\r
56 @param[in] NumberOfPhasesSupported - How many phases are supported by current FSP Component.\r
57\r
58 @retval TRUE - NumberOfPhases are modified by Platform during runtime.\r
59 @retval FALSE - The Default build time NumberOfPhases should be used.\r
60\r
61**/\r
62BOOLEAN\r
63EFIAPI\r
64FspMultiPhasePlatformGetNumberOfPhases (\r
65 IN UINT8 ApiIdx,\r
66 IN OUT UINT32 *NumberOfPhasesSupported\r
67 )\r
68{\r
69 /* Example for platform runtime controlling\r
70 if ((ApiIdx == FspMultiPhaseSiInitApiIndex) && (Feature1Enable == FALSE)) {\r
71 *NumberOfPhasesSupported = 0;\r
72 return TRUE;\r
73 }\r
74 return FALSE\r
75 */\r
76\r
77 return FALSE;\r
78}\r