]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
2 Provide FSP platform information related function.
4 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef __FSP_PLATFORM_INFO_LIB_H__
10 #define __FSP_PLATFORM_INFO_LIB_H__
13 Get current boot mode.
15 @note At this point, memory is ready, PeiServices are NOT available to use.
16 Platform can get some data from chipset register.
18 @return BootMode current boot mode.
27 Get NVS buffer parameter.
29 @note At this point, memory is NOT ready, PeiServices are available to use.
31 @return NvsBuffer NVS buffer parameter.
42 @note At this point, memory is NOT ready, PeiServices are available to use.
44 @return UPD region size.
53 This function overrides the default configurations in the UPD data region.
55 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.
57 @return FspUpdRgnPtr A pointer to the UPD data region data strcture.
62 IN OUT VOID
*FspUpdRgnPtr
66 Get BootLoader Tolum size.
68 @note At this point, memory is NOT ready, PeiServices are available to use.
70 @return BootLoader Tolum size.
74 GetBootLoaderTolumSize (
79 Get TempRamExit parameter.
81 @note At this point, memory is ready, PeiServices are available to use.
83 @return TempRamExit parameter.
92 Get FspSiliconInit parameter.
94 @note At this point, memory is ready, PeiServices are available to use.
96 @return FspSiliconInit parameter.
100 GetFspSiliconInitParam (
105 Get S3 PEI memory information.
107 @note At this point, memory is ready, and PeiServices are available to use.
108 Platform can get some data from SMRAM directly.
110 @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.
111 @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.
113 @return If S3 PEI memory information is got successfully.
118 OUT UINT64
*S3PeiMemSize
,
119 OUT EFI_PHYSICAL_ADDRESS
*S3PeiMemBase
123 Get stack information according to boot mode.
125 @note If BootMode is BOOT_ON_S3_RESUME or BOOT_ON_FLASH_UPDATE,
126 this stack should be in some reserved memory space.
128 @note If FspInitDone is TRUE, memory is ready, but no PeiServices there.
129 Platform can get some data from SMRAM directly.
130 @note If FspInitDone is FALSE, memory is NOT ready, but PeiServices are available to use.
131 Platform can get some data from variable via VariablePpi.
133 @param[in] BootMode Current boot mode.
134 @param[in] FspInitDone If FspInit is called.
135 @param[out] StackSize Stack size to be used in PEI phase.
136 @param[out] StackBase Stack base to be used in PEI phase.
138 @return If Stack information is got successfully.
144 IN BOOLEAN FspInitDone
,
145 OUT UINT64
*StackSize
,
146 OUT EFI_PHYSICAL_ADDRESS
*StackBase