Add IntelFsp2Pkg and IntelFsp2WrapperPkg.
[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
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
26VOID\r
27EFIAPI\r
28UpdateFspmUpdData (\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
40VOID\r
41EFIAPI\r
42UpdateFspsUpdData (\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
55VOID *\r
56EFIAPI\r
57UpdateTempRamExitParam (\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
75EFI_STATUS\r
76EFIAPI\r
77GetS3MemoryInfo (\r
78 OUT UINT64 *S3PeiMemSize,\r
79 OUT EFI_PHYSICAL_ADDRESS *S3PeiMemBase\r
80 )\r
81{\r
82 return EFI_UNSUPPORTED;\r
83}