]>
Commit | Line | Data |
---|---|---|
a33a2f62 JY |
1 | /** @file\r |
2 | Provide FSP wrapper platform sec related function.\r | |
3 | \r | |
4 | Copyright (c) 2014, 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_PLATFORM_SEC_LIB_H__\r | |
16 | #define __FSP_PLATFORM_SEC_LIB_H__\r | |
17 | \r | |
18 | /**\r | |
19 | A developer supplied function to perform platform specific operations.\r | |
20 | \r | |
21 | It's a developer supplied function to perform any operations appropriate to a\r | |
22 | given platform. It's invoked just before passing control to PEI core by SEC\r | |
23 | core. Platform developer may modify the SecCoreData passed to PEI Core.\r | |
24 | It returns a platform specific PPI list that platform wishes to pass to PEI core.\r | |
25 | The Generic SEC core module will merge this list to join the final list passed to\r | |
26 | PEI core.\r | |
27 | \r | |
28 | @param[in,out] SecCoreData The same parameter as passing to PEI core. It\r | |
29 | could be overridden by this function.\r | |
30 | \r | |
31 | @return The platform specific PPI list to be passed to PEI core or\r | |
32 | NULL if there is no need of such platform specific PPI list.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_PEI_PPI_DESCRIPTOR *\r | |
36 | EFIAPI\r | |
37 | SecPlatformMain (\r | |
38 | IN OUT EFI_SEC_PEI_HAND_OFF *SecCoreData\r | |
39 | );\r | |
40 | \r | |
41 | /**\r | |
42 | Call PEI core entry point with new temporary RAM.\r | |
43 | \r | |
44 | @param[in] FspHobList HobList produced by FSP.\r | |
45 | @param[in] StartOfRange Start of temporary RAM.\r | |
46 | @param[in] EndOfRange End of temporary RAM.\r | |
47 | **/\r | |
48 | VOID\r | |
49 | EFIAPI\r | |
50 | CallPeiCoreEntryPoint (\r | |
51 | IN VOID *FspHobList,\r | |
52 | IN VOID *StartOfRange,\r | |
53 | IN VOID *EndOfRange\r | |
54 | );\r | |
55 | \r | |
56 | /**\r | |
57 | Save SEC context before call FspInit.\r | |
58 | \r | |
59 | @param[in] PeiServices Pointer to PEI Services Table.\r | |
60 | **/\r | |
61 | VOID\r | |
62 | EFIAPI\r | |
63 | SaveSecContext (\r | |
64 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
65 | );\r | |
66 | \r | |
67 | #endif\r |