]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2Pkg/Include/Library/FspPlatformLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / IntelFsp2Pkg / Include / Library / FspPlatformLib.h
CommitLineData
cf1d4549
JY
1/** @file\r
2\r
3 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
9672cd30 4 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
5\r
6**/\r
7\r
8#ifndef _FSP_PLATFORM_LIB_H_\r
9#define _FSP_PLATFORM_LIB_H_\r
10\r
11/**\r
12 Get system memory resource descriptor by owner.\r
13\r
14 @param[in] OwnerGuid resource owner guid\r
15**/\r
16EFI_HOB_RESOURCE_DESCRIPTOR *\r
17EFIAPI\r
18FspGetResourceDescriptorByOwner (\r
111f2228 19 IN EFI_GUID *OwnerGuid\r
cf1d4549
JY
20 );\r
21\r
22/**\r
23 Get system memory from HOB.\r
24\r
25 @param[in,out] LowMemoryLength less than 4G memory length\r
26 @param[in,out] HighMemoryLength greater than 4G memory length\r
27**/\r
28VOID\r
29EFIAPI\r
30FspGetSystemMemorySize (\r
111f2228
MK
31 IN OUT UINT64 *LowMemoryLength,\r
32 IN OUT UINT64 *HighMemoryLength\r
cf1d4549
JY
33 );\r
34\r
cf1d4549
JY
35/**\r
36 Set a new stack frame for the continuation function.\r
37\r
38**/\r
39VOID\r
40EFIAPI\r
41FspSetNewStackFrame (\r
42 VOID\r
43 );\r
44\r
45/**\r
46 This function transfer control back to BootLoader after FspSiliconInit.\r
47\r
48**/\r
49VOID\r
50EFIAPI\r
51FspSiliconInitDone (\r
52 VOID\r
53 );\r
54\r
55/**\r
56 This function returns control to BootLoader after MemoryInitApi.\r
57\r
58 @param[in,out] HobListPtr The address of HobList pointer.\r
59**/\r
60VOID\r
61EFIAPI\r
62FspMemoryInitDone (\r
111f2228 63 IN OUT VOID **HobListPtr\r
cf1d4549
JY
64 );\r
65\r
66/**\r
67 This function returns control to BootLoader after TempRamExitApi.\r
68\r
69**/\r
70VOID\r
71EFIAPI\r
72FspTempRamExitDone (\r
73 VOID\r
74 );\r
75\r
76/**\r
77 This function handle NotifyPhase API call from the BootLoader.\r
78 It gives control back to the BootLoader after it is handled. If the\r
79 Notification code is a ReadyToBoot event, this function will return\r
80 and FSP continues the remaining execution until it reaches the DxeIpl.\r
81\r
82**/\r
83VOID\r
84EFIAPI\r
85FspWaitForNotify (\r
86 VOID\r
87 );\r
88\r
f56ae7bf
TRM
89/**\r
90 This function transfer control back to BootLoader after FspSiliconInit.\r
91\r
92 @param[in] Status return status for the FspSiliconInit.\r
93**/\r
94VOID\r
95EFIAPI\r
96FspSiliconInitDone2 (\r
111f2228 97 IN EFI_STATUS Status\r
f56ae7bf
TRM
98 );\r
99\r
100/**\r
101 This function returns control to BootLoader after MemoryInitApi.\r
102\r
103 @param[in] Status return status for the MemoryInitApi.\r
104 @param[in,out] HobListPtr The address of HobList pointer.\r
105**/\r
106VOID\r
107EFIAPI\r
108FspMemoryInitDone2 (\r
111f2228
MK
109 IN EFI_STATUS Status,\r
110 IN OUT VOID **HobListPtr\r
f56ae7bf
TRM
111 );\r
112\r
113/**\r
114 This function returns control to BootLoader after TempRamExitApi.\r
115\r
116 @param[in] Status return status for the TempRamExitApi.\r
117**/\r
118VOID\r
119EFIAPI\r
120FspTempRamExitDone2 (\r
111f2228 121 IN EFI_STATUS Status\r
f56ae7bf
TRM
122 );\r
123\r
cf1d4549 124#endif\r