]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFspWrapperPkg/Include/Library/FspPlatformInfoLib.h
ebbe9a7eaf14431c4515669b6741d043a317c1bb
2 Provide FSP platform information related function.
4 Copyright (c) 2014, 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.
15 #ifndef __FSP_PLATFORM_INFO_LIB_H__
16 #define __FSP_PLATFORM_INFO_LIB_H__
19 Get current boot mode.
21 @note At this point, memory is ready, PeiServices are NOT available to use.
22 Platform can get some data from chipset register.
24 @return BootMode current boot mode.
33 Get NVS buffer parameter.
35 @note At this point, memory is NOT ready, PeiServices are available to use.
37 @return NvsBuffer NVS buffer parameter.
48 @note At this point, memory is NOT ready, PeiServices are available to use.
50 @return UPD region size.
59 This function overrides the default configurations in the UPD data region.
61 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.
63 @return FspUpdRgnPtr A pointer to the UPD data region data strcture.
68 IN OUT VOID
*FspUpdRgnPtr
72 Get S3 PEI memory information.
74 @note At this point, memory is ready, and PeiServices are available to use.
75 Platform can get some data from SMRAM directly.
77 @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.
78 @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.
80 @return If S3 PEI memory information is got successfully.
85 OUT UINT64
*S3PeiMemSize
,
86 OUT EFI_PHYSICAL_ADDRESS
*S3PeiMemBase
90 Get stack information according to boot mode.
92 @note If BootMode is BOOT_ON_S3_RESUME or BOOT_ON_FLASH_UPDATE,
93 this stack should be in some reserved memory space.
95 @note If FspInitDone is TRUE, memory is ready, but no PeiServices there.
96 Platform can get some data from SMRAM directly.
97 @note If FspInitDone is FALSE, memory is NOT ready, but PeiServices are available to use.
98 Platform can get some data from variable via VariablePpi.
100 @param[in] BootMode Current boot mode.
101 @param[in] FspInitDone If FspInit is called.
102 @param[out] StackSize Stack size to be used in PEI phase.
103 @param[out] StackBase Stack base to be used in PEI phase.
105 @return If Stack information is got successfully.
111 IN BOOLEAN FspInitDone
,
112 OUT UINT64
*StackSize
,
113 OUT EFI_PHYSICAL_ADDRESS
*StackBase