22db27708d8ffad9afcfbbed9c7975751ddcb6df
3 Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php.
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #ifndef _FSP_COMMON_LIB_H_
15 #define _FSP_COMMON_LIB_H_
17 #include <FspGlobalData.h>
18 #include <FspMeasurePointId.h>
21 This function sets the FSP global data pointer.
23 @param[in] FspData Fsp global data pointer.
28 SetFspGlobalDataPointer (
29 IN FSP_GLOBAL_DATA
*FspData
33 This function gets the FSP global data pointer.
38 GetFspGlobalDataPointer (
43 This function gets back the FSP API paramter passed by the bootlaoder.
45 @retval ApiParameter FSP API paramter passed by the bootlaoder.
54 This function sets the FSP API paramter in the stack.
56 @param[in] Value New parameter value.
66 This function sets the FSP continuation function parameters in the stack.
68 @param[in] Value New parameter value to set.
69 @param[in] Index Parameter index.
73 SetFspContinuationFuncParameter (
79 This function changes the BootLoader return address in stack.
81 @param[in] ReturnAddress Address to return.
86 SetFspApiReturnAddress (
87 IN UINT32 ReturnAddress
91 This function set the API status code returned to the BootLoader.
93 @param[in] ReturnStatus Status code to return.
98 SetFspApiReturnStatus (
99 IN UINT32 ReturnStatus
103 This function sets the context switching stack to a new stack frame.
105 @param[in] NewStackTop New core stack to be set.
110 SetFspCoreStackPointer (
115 This function sets the platform specific data pointer.
117 @param[in] PlatformData Fsp platform specific data pointer.
122 SetFspPlatformDataPointer (
123 IN VOID
*PlatformData
127 This function gets the platform specific data pointer.
129 @param[in] PlatformData Fsp platform specific data pointer.
134 GetFspPlatformDataPointer (
139 This function sets the UPD data pointer.
141 @param[in] UpdDataRgnPtr UPD data pointer.
145 SetFspUpdDataPointer (
146 IN VOID
*UpdDataRgnPtr
150 This function gets the UPD data pointer.
152 @return UpdDataRgnPtr UPD data pointer.
156 GetFspUpdDataPointer (
161 Set FSP measurement point timestamp.
163 @param[in] Id Measurement point ID.
165 @return performance timestamp.
174 This function gets the FSP info header pointer.
176 @retval FspInfoHeader FSP info header pointer
185 This function gets the VPD data pointer.
187 @return VpdDataRgnPtr VPD data pointer.
191 GetFspVpdDataPointer (
196 This function gets FSP API calling mode.
198 @retval API calling mode
202 GetFspApiCallingMode (
207 This function sets FSP API calling mode.
209 @param[in] Mode API calling mode
213 SetFspApiCallingMode (