]>
Commit | Line | Data |
---|---|---|
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 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include <PiPei.h>\r | |
10 | #include <Library/PcdLib.h>\r | |
11 | \r | |
12 | /**\r | |
13 | This function overrides the default configurations in the FSP-M UPD data region.\r | |
14 | \r | |
15 | @note At this point, memory is NOT ready, PeiServices are available to use.\r | |
16 | \r | |
17 | @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure.\r | |
18 | \r | |
19 | **/\r | |
20 | VOID\r | |
21 | EFIAPI\r | |
22 | UpdateFspmUpdData (\r | |
23 | IN OUT VOID *FspUpdRgnPtr\r | |
24 | )\r | |
25 | {\r | |
26 | }\r | |
27 | \r | |
28 | /**\r | |
29 | This function overrides the default configurations in the FSP-S UPD data region.\r | |
30 | \r | |
31 | @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure.\r | |
32 | \r | |
33 | **/\r | |
34 | VOID\r | |
35 | EFIAPI\r | |
36 | UpdateFspsUpdData (\r | |
37 | IN OUT VOID *FspUpdRgnPtr\r | |
38 | )\r | |
39 | {\r | |
40 | }\r | |
41 | \r | |
42 | /**\r | |
43 | Update TempRamExit parameter.\r | |
44 | \r | |
45 | @note At this point, memory is ready, PeiServices are available to use.\r | |
46 | \r | |
47 | @return TempRamExit parameter.\r | |
48 | **/\r | |
49 | VOID *\r | |
50 | EFIAPI\r | |
51 | UpdateTempRamExitParam (\r | |
52 | VOID\r | |
53 | )\r | |
54 | {\r | |
55 | return NULL;\r | |
56 | }\r | |
57 | \r | |
58 | /**\r | |
59 | Get S3 PEI memory information.\r | |
60 | \r | |
61 | @note At this point, memory is ready, and PeiServices are available to use.\r | |
62 | Platform can get some data from SMRAM directly.\r | |
63 | \r | |
64 | @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.\r | |
65 | @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.\r | |
66 | \r | |
67 | @return If S3 PEI memory information is got successfully.\r | |
68 | **/\r | |
69 | EFI_STATUS\r | |
70 | EFIAPI\r | |
71 | GetS3MemoryInfo (\r | |
72 | OUT UINT64 *S3PeiMemSize,\r | |
73 | OUT EFI_PHYSICAL_ADDRESS *S3PeiMemBase\r | |
74 | )\r | |
75 | {\r | |
76 | return EFI_UNSUPPORTED;\r | |
77 | }\r | |
78 | \r | |
79 | /**\r | |
80 | Perform platform related reset in FSP wrapper.\r | |
81 | \r | |
82 | This function will reset the system with requested ResetType.\r | |
83 | \r | |
84 | @param[in] FspStatusResetType The type of reset the platform has to perform.\r | |
85 | **/\r | |
86 | VOID\r | |
87 | EFIAPI\r | |
88 | CallFspWrapperResetSystem (\r | |
89 | IN UINT32 FspStatusResetType\r | |
90 | )\r | |
91 | {\r | |
92 | //\r | |
93 | // Perform reset according to the type.\r | |
94 | //\r | |
95 | \r | |
96 | CpuDeadLoop();\r | |
97 | }\r |