]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/FspWrapperPlatformLibSample.c
IntelFsp2WrapperPkg: Fix various typos
[mirror_edk2.git] / IntelFsp2WrapperPkg / Library / BaseFspWrapperPlatformLibSample / FspWrapperPlatformLibSample.c
CommitLineData
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
512e23a3 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
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
97eedf5d 17 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure.\r
cf1d4549
JY
18\r
19**/\r
20VOID\r
21EFIAPI\r
22UpdateFspmUpdData (\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
97eedf5d 31 @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data structure.\r
cf1d4549
JY
32\r
33**/\r
34VOID\r
35EFIAPI\r
36UpdateFspsUpdData (\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
49VOID *\r
50EFIAPI\r
51UpdateTempRamExitParam (\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
69EFI_STATUS\r
70EFIAPI\r
71GetS3MemoryInfo (\r
72 OUT UINT64 *S3PeiMemSize,\r
73 OUT EFI_PHYSICAL_ADDRESS *S3PeiMemBase\r
74 )\r
75{\r
76 return EFI_UNSUPPORTED;\r
f862a3b6
JY
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
86VOID\r
87EFIAPI\r
88CallFspWrapperResetSystem (\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