]>
Commit | Line | Data |
---|---|---|
cf1d4549 JY |
1 | /** @file\r |
2 | Provide FSP wrapper platform 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 | #ifndef __FSP_WRAPPER_PLATFORM_LIB_H__\r | |
16 | #define __FSP_WRAPPER_PLATFORM_LIB_H__\r | |
17 | \r | |
18 | /**\r | |
19 | This function overrides the default configurations in the FSP-M UPD data region.\r | |
20 | \r | |
21 | @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.\r | |
22 | \r | |
23 | **/\r | |
24 | VOID\r | |
25 | EFIAPI\r | |
26 | UpdateFspmUpdData (\r | |
27 | IN OUT VOID *FspUpdRgnPtr\r | |
28 | );\r | |
29 | \r | |
30 | /**\r | |
31 | This function overrides the default configurations in the FSP-S UPD data region.\r | |
32 | \r | |
33 | @param[in,out] FspUpdRgnPtr A pointer to the UPD data region data strcture.\r | |
34 | \r | |
35 | **/\r | |
36 | VOID\r | |
37 | EFIAPI\r | |
38 | UpdateFspsUpdData (\r | |
39 | IN OUT VOID *FspUpdRgnPtr\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 | /**\r | |
56 | Get S3 PEI memory information.\r | |
57 | \r | |
58 | @note At this point, memory is ready, and PeiServices are available to use.\r | |
59 | Platform can get some data from SMRAM directly.\r | |
60 | \r | |
61 | @param[out] S3PeiMemSize PEI memory size to be installed in S3 phase.\r | |
62 | @param[out] S3PeiMemBase PEI memory base to be installed in S3 phase.\r | |
63 | \r | |
64 | @return If S3 PEI memory information is got successfully.\r | |
65 | **/\r | |
66 | EFI_STATUS\r | |
67 | EFIAPI\r | |
68 | GetS3MemoryInfo (\r | |
69 | OUT UINT64 *S3PeiMemSize,\r | |
70 | OUT EFI_PHYSICAL_ADDRESS *S3PeiMemBase\r | |
71 | );\r | |
72 | \r | |
f862a3b6 JY |
73 | /**\r |
74 | Perform platform related reset in FSP wrapper.\r | |
75 | \r | |
76 | This function will reset the system with requested ResetType.\r | |
77 | \r | |
78 | @param[in] FspStatusResetType The type of reset the platform has to perform.\r | |
79 | **/\r | |
80 | VOID\r | |
81 | EFIAPI\r | |
82 | CallFspWrapperResetSystem (\r | |
83 | IN UINT32 FspStatusResetType\r | |
84 | );\r | |
85 | \r | |
cf1d4549 | 86 | #endif\r |