2 Sample to provide FSP wrapper related function.
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/PcdLib.h>
13 This function overrides the default configurations in the FSP-M UPD data region.
15 @note At this point, memory is NOT ready, PeiServices are available to use.
17 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.
23 IN OUT VOID
*FspUpdRgnPtr
29 This function overrides the default configurations in the FSP-S UPD data region.
31 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.
37 IN OUT VOID
*FspUpdRgnPtr
43 Update TempRamExit parameter.
45 @note At this point, memory is ready, PeiServices are available to use.
47 @return TempRamExit parameter.
51 UpdateTempRamExitParam (
59 Get S3 PEI memory information.
61 @note At this point, memory is ready, and PeiServices are available to use.
62 Platform can get some data from SMRAM directly.
64 @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.
65 @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.
67 @return If S3 PEI memory information is got successfully.
72 OUT UINT64
*S3PeiMemSize
,
73 OUT EFI_PHYSICAL_ADDRESS
*S3PeiMemBase
76 return EFI_UNSUPPORTED
;
80 Perform platform related reset in FSP wrapper.
82 This function will reset the system with requested ResetType.
84 @param[in] FspStatusResetType The type of reset the platform has to perform.
88 CallFspWrapperResetSystem (
89 IN UINT32 FspStatusResetType
93 // Perform reset according to the type.