-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IntelFsp2Pkg: Add FSP 2.4 MultiPhase interface.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3916 Provide FSP 2.4 MultiPhase interface and scripts support. Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Star Zeng <star.zeng@intel.com> Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
- Loading branch information
1 parent
4b7bd4c
commit df25a54
Showing
10 changed files
with
450 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** @file | ||
FSP MultiPhase Library. | ||
Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#ifndef _FSP_MULTIPHASE_LIB_H_ | ||
#define _FSP_MULTIPHASE_LIB_H_ | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
FspMultiPhaseSwitchStack ( | ||
); | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
FspVariableRequestSwitchStack ( | ||
IN FSP_MULTI_PHASE_VARIABLE_REQUEST_INFO_PARAMS *FspVariableRequestParams | ||
); | ||
|
||
/** | ||
This function handles FspMultiPhaseMemInitApi. | ||
@param[in] ApiIdx Internal index of the FSP API. | ||
@param[in] ApiParam Parameter of the FSP API. | ||
@retval EFI_SUCCESS FSP execution was successful. | ||
@retval EFI_INVALID_PARAMETER Input parameters are invalid. | ||
@retval EFI_UNSUPPORTED The FSP calling conditions were not met. | ||
@retval EFI_DEVICE_ERROR FSP initialization failed. | ||
**/ | ||
EFI_STATUS | ||
EFIAPI | ||
FspMultiPhaseMemInitApiHandler ( | ||
IN UINT32 ApiIdx, | ||
IN VOID *ApiParam | ||
); | ||
|
||
/** | ||
This function handles FspMultiPhaseSiInitApi. | ||
@param[in] ApiIdx Internal index of the FSP API. | ||
@param[in] ApiParam Parameter of the FSP API. | ||
**/ | ||
EFI_STATUS | ||
EFIAPI | ||
FspMultiPhaseSiInitApiHandlerV2 ( | ||
IN UINT32 ApiIdx, | ||
IN VOID *ApiParam | ||
); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
IntelFsp2Pkg/Library/BaseFspMultiPhaseLib/BaseFspMultiPhaseLib.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## @file | ||
# FSP MultiPhase Lib. | ||
# | ||
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
# | ||
## | ||
|
||
################################################################################ | ||
# | ||
# Defines Section - statements that will be processed to create a Makefile. | ||
# | ||
################################################################################ | ||
[Defines] | ||
INF_VERSION = 0x00010005 | ||
BASE_NAME = BaseFspMultiPhaseLib | ||
FILE_GUID = C128CADC-623E-4E41-97CB-A7138E627460 | ||
MODULE_TYPE = SEC | ||
VERSION_STRING = 1.0 | ||
LIBRARY_CLASS = FspMultiPhaseLib | ||
|
||
# | ||
# The following information is for reference only and not required by the build tools. | ||
# | ||
# VALID_ARCHITECTURES = IA32 X64 | ||
# | ||
|
||
################################################################################ | ||
# | ||
# Sources Section - list of files that are required for the build to succeed. | ||
# | ||
################################################################################ | ||
|
||
[Sources] | ||
FspMultiPhaseLib.c | ||
|
||
################################################################################ | ||
# | ||
# Package Dependency Section - list of Package files that are required for | ||
# this module. | ||
# | ||
################################################################################ | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec | ||
IntelFsp2Pkg/IntelFsp2Pkg.dec | ||
|
||
[Pcd] | ||
gIntelFsp2PkgTokenSpaceGuid.PcdMultiPhaseNumberOfPhases # CONSUMES |
Oops, something went wrong.