]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2Pkg/Include/Library/FspPlatformLib.h
Add IntelFsp2Pkg and IntelFsp2WrapperPkg.
[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
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_PLATFORM_LIB_H_\r
15#define _FSP_PLATFORM_LIB_H_\r
16\r
17/**\r
18 Get system memory resource descriptor by owner.\r
19\r
20 @param[in] OwnerGuid resource owner guid\r
21**/\r
22EFI_HOB_RESOURCE_DESCRIPTOR *\r
23EFIAPI\r
24FspGetResourceDescriptorByOwner (\r
25 IN EFI_GUID *OwnerGuid\r
26 );\r
27\r
28/**\r
29 Get system memory from HOB.\r
30\r
31 @param[in,out] LowMemoryLength less than 4G memory length\r
32 @param[in,out] HighMemoryLength greater than 4G memory length\r
33**/\r
34VOID\r
35EFIAPI\r
36FspGetSystemMemorySize (\r
37 IN OUT UINT64 *LowMemoryLength,\r
38 IN OUT UINT64 *HighMemoryLength\r
39 );\r
40\r
41/**\r
42 Migrate BootLoader data before destroying CAR.\r
43\r
44**/\r
45VOID\r
46EFIAPI\r
47FspMigrateTemporaryMemory (\r
48 VOID\r
49 );\r
50\r
51/**\r
52 Set a new stack frame for the continuation function.\r
53\r
54**/\r
55VOID\r
56EFIAPI\r
57FspSetNewStackFrame (\r
58 VOID\r
59 );\r
60\r
61/**\r
62 This function transfer control back to BootLoader after FspSiliconInit.\r
63\r
64**/\r
65VOID\r
66EFIAPI\r
67FspSiliconInitDone (\r
68 VOID\r
69 );\r
70\r
71/**\r
72 This function returns control to BootLoader after MemoryInitApi.\r
73\r
74 @param[in,out] HobListPtr The address of HobList pointer.\r
75**/\r
76VOID\r
77EFIAPI\r
78FspMemoryInitDone (\r
79 IN OUT VOID **HobListPtr\r
80 );\r
81\r
82/**\r
83 This function returns control to BootLoader after TempRamExitApi.\r
84\r
85**/\r
86VOID\r
87EFIAPI\r
88FspTempRamExitDone (\r
89 VOID\r
90 );\r
91\r
92/**\r
93 This function handle NotifyPhase API call from the BootLoader.\r
94 It gives control back to the BootLoader after it is handled. If the\r
95 Notification code is a ReadyToBoot event, this function will return\r
96 and FSP continues the remaining execution until it reaches the DxeIpl.\r
97\r
98**/\r
99VOID\r
100EFIAPI\r
101FspWaitForNotify (\r
102 VOID\r
103 );\r
104\r
105#endif\r