]>
Commit | Line | Data |
---|---|---|
cf1d4549 JY |
1 | /** @file\r |
2 | Sample to provide FSP wrapper related function.\r | |
3 | \r | |
4 | Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #include <PiPei.h>\r | |
16 | #include <Library/PcdLib.h>\r | |
17 | \r | |
18 | /**\r | |
19 | This function overrides the default configurations in the FSP-M UPD data region.\r | |
20 | \r | |
21 | @note At this point, memory is NOT ready, PeiServices are available to use.\r | |
22 | \r | |
23 | @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.\r | |
24 | \r | |
25 | **/\r | |
26 | VOID\r | |
27 | EFIAPI\r | |
28 | UpdateFspmUpdData (\r | |
29 | IN OUT VOID *FspUpdRgnPtr\r | |
30 | )\r | |
31 | {\r | |
32 | }\r | |
33 | \r | |
34 | /**\r | |
35 | This function overrides the default configurations in the FSP-S UPD data region.\r | |
36 | \r | |
37 | @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.\r | |
38 | \r | |
39 | **/\r | |
40 | VOID\r | |
41 | EFIAPI\r | |
42 | UpdateFspsUpdData (\r | |
43 | IN OUT VOID *FspUpdRgnPtr\r | |
44 | )\r | |
45 | {\r | |
46 | }\r | |
47 | \r | |
48 | /**\r | |
49 | Update TempRamExit parameter.\r | |
50 | \r | |
51 | @note At this point, memory is ready, PeiServices are available to use.\r | |
52 | \r | |
53 | @return TempRamExit parameter.\r | |
54 | **/\r | |
55 | VOID *\r | |
56 | EFIAPI\r | |
57 | UpdateTempRamExitParam (\r | |
58 | VOID\r | |
59 | )\r | |
60 | {\r | |
61 | return NULL;\r | |
62 | }\r | |
63 | \r | |
64 | /**\r | |
65 | Get S3 PEI memory information.\r | |
66 | \r | |
67 | @note At this point, memory is ready, and PeiServices are available to use.\r | |
68 | Platform can get some data from SMRAM directly.\r | |
69 | \r | |
70 | @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.\r | |
71 | @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.\r | |
72 | \r | |
73 | @return If S3 PEI memory information is got successfully.\r | |
74 | **/\r | |
75 | EFI_STATUS\r | |
76 | EFIAPI\r | |
77 | GetS3MemoryInfo (\r | |
78 | OUT UINT64 *S3PeiMemSize,\r | |
79 | OUT EFI_PHYSICAL_ADDRESS *S3PeiMemBase\r | |
80 | )\r | |
81 | {\r | |
82 | return EFI_UNSUPPORTED;\r | |
f862a3b6 JY |
83 | }\r |
84 | \r | |
85 | /**\r | |
86 | Perform platform related reset in FSP wrapper.\r | |
87 | \r | |
88 | This function will reset the system with requested ResetType.\r | |
89 | \r | |
90 | @param[in] FspStatusResetType The type of reset the platform has to perform.\r | |
91 | **/\r | |
92 | VOID\r | |
93 | EFIAPI\r | |
94 | CallFspWrapperResetSystem (\r | |
95 | IN UINT32 FspStatusResetType\r | |
96 | )\r | |
97 | {\r | |
98 | //\r | |
99 | // Perform reset according to the type.\r | |
100 | //\r | |
101 | \r | |
102 | CpuDeadLoop();\r | |
103 | }\r |