2 Sample to provide FSP wrapper related function.
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include <Library/PcdLib.h>
19 This function overrides the default configurations in the FSP-M UPD data region.
21 @note At this point, memory is NOT ready, PeiServices are available to use.
23 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.
29 IN OUT VOID
*FspUpdRgnPtr
35 This function overrides the default configurations in the FSP-S UPD data region.
37 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.
43 IN OUT VOID
*FspUpdRgnPtr
49 Update TempRamExit parameter.
51 @note At this point, memory is ready, PeiServices are available to use.
53 @return TempRamExit parameter.
57 UpdateTempRamExitParam (
65 Get S3 PEI memory information.
67 @note At this point, memory is ready, and PeiServices are available to use.
68 Platform can get some data from SMRAM directly.
70 @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.
71 @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.
73 @return If S3 PEI memory information is got successfully.
78 OUT UINT64
*S3PeiMemSize
,
79 OUT EFI_PHYSICAL_ADDRESS
*S3PeiMemBase
82 return EFI_UNSUPPORTED
;
86 Perform platform related reset in FSP wrapper.
88 This function will reset the system with requested ResetType.
90 @param[in] FspStatusResetType The type of reset the platform has to perform.
94 CallFspWrapperResetSystem (
95 IN UINT32 FspStatusResetType
99 // Perform reset according to the type.