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