]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFspPkg/Include/Library/FspCommonLib.h
3 Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #ifndef _FSP_COMMON_LIB_H_
9 #define _FSP_COMMON_LIB_H_
11 #include <FspGlobalData.h>
12 #include <FspMeasurePointId.h>
15 This function sets the FSP global data pointer.
17 @param[in] FspData Fsp global data pointer.
22 SetFspGlobalDataPointer (
23 IN FSP_GLOBAL_DATA
*FspData
27 This function gets the FSP global data pointer.
32 GetFspGlobalDataPointer (
37 This function gets back the FSP API parameter passed by the bootlaoder.
39 @retval ApiParameter FSP API parameter passed by the bootlaoder.
48 This function sets the FSP API parameter in the stack.
50 @param[in] Value New parameter value.
60 This function sets the FSP continuation function parameters in the stack.
62 @param[in] Value New parameter value to set.
63 @param[in] Index Parameter index.
67 SetFspContinuationFuncParameter (
73 This function changes the BootLoader return address in stack.
75 @param[in] ReturnAddress Address to return.
80 SetFspApiReturnAddress (
81 IN UINT32 ReturnAddress
85 This function set the API status code returned to the BootLoader.
87 @param[in] ReturnStatus Status code to return.
92 SetFspApiReturnStatus (
93 IN UINT32 ReturnStatus
97 This function sets the context switching stack to a new stack frame.
99 @param[in] NewStackTop New core stack to be set.
104 SetFspCoreStackPointer (
109 This function sets the platform specific data pointer.
111 @param[in] PlatformData Fsp platform specific data pointer.
116 SetFspPlatformDataPointer (
117 IN VOID
*PlatformData
121 This function gets the platform specific data pointer.
123 @param[in] PlatformData Fsp platform specific data pointer.
128 GetFspPlatformDataPointer (
133 This function sets the UPD data pointer.
135 @param[in] UpdDataRgnPtr UPD data pointer.
139 SetFspUpdDataPointer (
140 IN VOID
*UpdDataRgnPtr
144 This function gets the UPD data pointer.
146 @return UpdDataRgnPtr UPD data pointer.
150 GetFspUpdDataPointer (
155 This function sets the memory init UPD data pointer.
157 @param[in] MemoryInitUpdPtr memory init UPD data pointer.
161 SetFspMemoryInitUpdDataPointer (
162 IN VOID
*MemoryInitUpdPtr
166 This function gets the memory init UPD data pointer.
168 @return memory init UPD data pointer.
172 GetFspMemoryInitUpdDataPointer (
177 This function sets the silicon init UPD data pointer.
179 @param[in] SiliconInitUpdPtr silicon init UPD data pointer.
183 SetFspSiliconInitUpdDataPointer (
184 IN VOID
*SiliconInitUpdPtr
188 This function gets the silicon init UPD data pointer.
190 @return silicon init UPD data pointer.
194 GetFspSiliconInitUpdDataPointer (
199 Set FSP measurement point timestamp.
201 @param[in] Id Measurement point ID.
203 @return performance timestamp.
212 This function gets the FSP info header pointer.
214 @retval FspInfoHeader FSP info header pointer
223 This function gets the FSP info header pointer from the API context.
225 @retval FspInfoHeader FSP info header pointer
229 GetFspInfoHeaderFromApiContext (
234 This function gets the VPD data pointer.
236 @return VpdDataRgnPtr VPD data pointer.
240 GetFspVpdDataPointer (
245 This function gets FSP API calling mode.
247 @retval API calling mode
251 GetFspApiCallingMode (
256 This function sets FSP API calling mode.
258 @param[in] Mode API calling mode
262 SetFspApiCallingMode (