]>
Commit | Line | Data |
---|---|---|
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 | |
22 | EFI_HOB_RESOURCE_DESCRIPTOR *\r | |
23 | EFIAPI\r | |
24 | FspGetResourceDescriptorByOwner (\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 | |
34 | VOID\r | |
35 | EFIAPI\r | |
36 | FspGetSystemMemorySize (\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 | |
45 | VOID\r | |
46 | EFIAPI\r | |
47 | FspMigrateTemporaryMemory (\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 | |
55 | VOID\r | |
56 | EFIAPI\r | |
57 | FspSetNewStackFrame (\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 | |
65 | VOID\r | |
66 | EFIAPI\r | |
67 | FspSiliconInitDone (\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 | |
76 | VOID\r | |
77 | EFIAPI\r | |
78 | FspMemoryInitDone (\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 | |
86 | VOID\r | |
87 | EFIAPI\r | |
88 | FspTempRamExitDone (\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 | |
99 | VOID\r | |
100 | EFIAPI\r | |
101 | FspWaitForNotify (\r | |
102 | VOID\r | |
103 | );\r | |
104 | \r | |
105 | #endif\r |