IntelFsp2WrapperPkg: Rename PlatformMultiPhaseLibSample.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3916

Basing on offline feedbacks to rename
FspWrapperPlatformMultiPhaseLibSample to
FspWrapperPlatformMultiPhaseLibNull.

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>
This commit is contained in:
Chasel Chiu
2022-08-31 22:45:37 -07:00
committed by mergify[bot]
parent 6edd257861
commit ec87181192
3 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,37 @@
## @file
# FSP Wrapper to handle platform specific actions for
# FSP MultiPhase (SeparatePhase) Initialization.
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = BaseFspWrapperPlatformMultiPhaseLibNull
FILE_GUID = DB63E5AA-21C6-40BB-879A-CD1762C8427B
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = FspWrapperPlatformMultiPhaseLib
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64
#
[Sources]
FspWrapperPlatformMultiPhaseLibNull.c
[Packages]
MdePkg/MdePkg.dec
IntelFsp2Pkg/IntelFsp2Pkg.dec
IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
[LibraryClasses]
DebugLib
BaseLib
PcdLib
PeiServicesLib

View File

@@ -0,0 +1,50 @@
/** @file
FSP Wrapper to handle platform specific actions for
FSP MultiPhase (SeparatePhase) Initialization.
Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
/**
FSP Wrapper Platform MultiPhase Handler
@param[in] FspHobListPtr - Pointer to FSP HobList (valid after FSP-M completed)
@param[in] ComponentIndex - FSP Component which executing MultiPhase initialization.
@param[in] PhaseIndex - Indicates current execution phase of FSP MultiPhase initialization.
@retval EFI_STATUS Always return EFI_SUCCESS
**/
VOID
EFIAPI
FspWrapperPlatformMultiPhaseHandler (
IN OUT VOID **FspHobListPtr,
IN UINT8 ComponentIndex,
IN UINT32 PhaseIndex
)
{
/* Example platform actions as below
switch (ComponentIndex) {
case FspMultiPhaseMemInitApiIndex:
switch (PhaseIndex) {
case 1:
PlatformAction1 ();
break;
}
break;
case FspMultiPhaseSiInitApiIndex:
switch (PhaseIndex) {
case 1:
PlatformAction2 ();
break;
}
break;
}
*/
}