]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspPkg/Include/Library/FspCommonLib.h
IntelFspPkg: Fix typos in comments
[mirror_edk2.git] / IntelFspPkg / Include / Library / FspCommonLib.h
CommitLineData
c8ec22a2
JY
1/** @file\r
2\r
d5fb1edf 3 Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
c8ec22a2
JY
4 This program and the accompanying materials\r
5 are licensed and made available under the terms and conditions of the BSD License\r
6 which accompanies this distribution. The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.php.\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12**/\r
13\r
14#ifndef _FSP_COMMON_LIB_H_\r
15#define _FSP_COMMON_LIB_H_\r
16\r
17#include <FspGlobalData.h>\r
18#include <FspMeasurePointId.h>\r
19\r
20/**\r
21 This function sets the FSP global data pointer.\r
22\r
23 @param[in] FspData Fsp global data pointer.\r
24\r
25**/\r
26VOID\r
27EFIAPI\r
28SetFspGlobalDataPointer (\r
29 IN FSP_GLOBAL_DATA *FspData\r
30 );\r
31\r
32/**\r
33 This function gets the FSP global data pointer.\r
34\r
35**/\r
36FSP_GLOBAL_DATA *\r
37EFIAPI\r
38GetFspGlobalDataPointer (\r
39 VOID\r
40 );\r
41\r
42/**\r
13ca714c 43 This function gets back the FSP API parameter passed by the bootlaoder.\r
c8ec22a2 44\r
13ca714c 45 @retval ApiParameter FSP API parameter passed by the bootlaoder.\r
c8ec22a2
JY
46**/\r
47UINT32\r
48EFIAPI\r
49GetFspApiParameter (\r
50 VOID\r
51 );\r
52\r
53/**\r
13ca714c 54 This function sets the FSP API parameter in the stack.\r
c8ec22a2
JY
55\r
56 @param[in] Value New parameter value.\r
57\r
58**/\r
59VOID\r
60EFIAPI\r
61SetFspApiParameter (\r
62 IN UINT32 Value\r
63 );\r
64\r
65/**\r
66 This function sets the FSP continuation function parameters in the stack.\r
67\r
68 @param[in] Value New parameter value to set.\r
69 @param[in] Index Parameter index.\r
70**/\r
71VOID\r
72EFIAPI\r
73SetFspContinuationFuncParameter (\r
74 IN UINT32 Value,\r
75 IN UINT32 Index\r
76 );\r
77\r
78/**\r
9da59186 79 This function changes the BootLoader return address in stack.\r
c8ec22a2
JY
80\r
81 @param[in] ReturnAddress Address to return.\r
82\r
83**/\r
84VOID\r
85EFIAPI\r
86SetFspApiReturnAddress (\r
87 IN UINT32 ReturnAddress\r
88 );\r
89\r
90/**\r
9da59186 91 This function set the API status code returned to the BootLoader.\r
c8ec22a2
JY
92\r
93 @param[in] ReturnStatus Status code to return.\r
94\r
95**/\r
96VOID\r
97EFIAPI\r
98SetFspApiReturnStatus (\r
99 IN UINT32 ReturnStatus\r
100 );\r
101\r
102/**\r
103 This function sets the context switching stack to a new stack frame.\r
104\r
105 @param[in] NewStackTop New core stack to be set.\r
106\r
107**/\r
108VOID\r
109EFIAPI\r
110SetFspCoreStackPointer (\r
111 IN VOID *NewStackTop\r
112 );\r
113\r
114/**\r
115 This function sets the platform specific data pointer.\r
116\r
117 @param[in] PlatformData Fsp platform specific data pointer.\r
118\r
119**/\r
120VOID\r
121EFIAPI\r
122SetFspPlatformDataPointer (\r
123 IN VOID *PlatformData\r
124 );\r
125\r
126/**\r
127 This function gets the platform specific data pointer.\r
128\r
129 @param[in] PlatformData Fsp platform specific data pointer.\r
130\r
131**/\r
132VOID *\r
133EFIAPI\r
134GetFspPlatformDataPointer (\r
135 VOID\r
136 );\r
137\r
138/**\r
139 This function sets the UPD data pointer.\r
140\r
141 @param[in] UpdDataRgnPtr UPD data pointer.\r
142**/\r
143VOID\r
144EFIAPI\r
145SetFspUpdDataPointer (\r
146 IN VOID *UpdDataRgnPtr\r
147 );\r
148\r
149/**\r
150 This function gets the UPD data pointer.\r
151\r
152 @return UpdDataRgnPtr UPD data pointer.\r
153**/\r
154VOID *\r
155EFIAPI\r
156GetFspUpdDataPointer (\r
157 VOID\r
158 );\r
159\r
b2344187
JY
160/**\r
161 This function sets the memory init UPD data pointer.\r
162\r
163 @param[in] MemoryInitUpdPtr memory init UPD data pointer.\r
164**/\r
165VOID\r
166EFIAPI\r
167SetFspMemoryInitUpdDataPointer (\r
168 IN VOID *MemoryInitUpdPtr\r
169 );\r
170\r
171/**\r
172 This function gets the memory init UPD data pointer.\r
173\r
174 @return memory init UPD data pointer.\r
175**/\r
176VOID *\r
177EFIAPI\r
178GetFspMemoryInitUpdDataPointer (\r
179 VOID\r
180 );\r
181\r
182/**\r
183 This function sets the silicon init UPD data pointer.\r
184\r
185 @param[in] SiliconInitUpdPtr silicon init UPD data pointer.\r
186**/\r
187VOID\r
188EFIAPI\r
189SetFspSiliconInitUpdDataPointer (\r
190 IN VOID *SiliconInitUpdPtr\r
191 );\r
192\r
193/**\r
194 This function gets the silicon init UPD data pointer.\r
195\r
196 @return silicon init UPD data pointer.\r
197**/\r
198VOID *\r
199EFIAPI\r
200GetFspSiliconInitUpdDataPointer (\r
201 VOID\r
202 );\r
203\r
c8ec22a2
JY
204/**\r
205 Set FSP measurement point timestamp.\r
206\r
207 @param[in] Id Measurement point ID.\r
208\r
209 @return performance timestamp.\r
210**/\r
211UINT64\r
212EFIAPI\r
213SetFspMeasurePoint (\r
214 IN UINT8 Id\r
215 );\r
216\r
d5fb1edf
JY
217/**\r
218 This function gets the FSP info header pointer.\r
219\r
220 @retval FspInfoHeader FSP info header pointer\r
221**/\r
222FSP_INFO_HEADER *\r
223EFIAPI\r
224GetFspInfoHeader (\r
225 VOID\r
226 );\r
227\r
3b17b245
MM
228/**\r
229 This function gets the FSP info header pointer from the API context.\r
230\r
231 @retval FspInfoHeader FSP info header pointer\r
232**/\r
233FSP_INFO_HEADER *\r
234EFIAPI\r
235GetFspInfoHeaderFromApiContext (\r
236 VOID\r
237 );\r
238\r
9da59186
JY
239/**\r
240 This function gets the VPD data pointer.\r
241\r
242 @return VpdDataRgnPtr VPD data pointer.\r
243**/\r
244VOID *\r
245EFIAPI\r
246GetFspVpdDataPointer (\r
247 VOID\r
248 );\r
249\r
d5fb1edf 250/**\r
6ca9135a 251 This function gets FSP API calling mode.\r
d5fb1edf
JY
252\r
253 @retval API calling mode\r
254**/\r
255UINT8\r
256EFIAPI\r
257GetFspApiCallingMode (\r
258 VOID\r
259 );\r
260\r
261/**\r
6ca9135a 262 This function sets FSP API calling mode.\r
d5fb1edf
JY
263\r
264 @param[in] Mode API calling mode\r
265**/\r
266VOID\r
267EFIAPI\r
268SetFspApiCallingMode (\r
269 UINT8 Mode\r
270 );\r
271\r
c8ec22a2 272#endif\r