]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspWrapperPkg/Include/Library/FspPlatformSecLib.h
IntelFspWrapperPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFspWrapperPkg / Include / Library / FspPlatformSecLib.h
CommitLineData
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
19486360 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
a33a2f62
JY
6\r
7**/\r
8\r
9#ifndef __FSP_PLATFORM_SEC_LIB_H__\r
10#define __FSP_PLATFORM_SEC_LIB_H__\r
11\r
12/**\r
13 A developer supplied function to perform platform specific operations.\r
14\r
15 It's a developer supplied function to perform any operations appropriate to a\r
16 given platform. It's invoked just before passing control to PEI core by SEC\r
17 core. Platform developer may modify the SecCoreData passed to PEI Core.\r
18 It returns a platform specific PPI list that platform wishes to pass to PEI core.\r
19 The Generic SEC core module will merge this list to join the final list passed to\r
20 PEI core.\r
21\r
22 @param[in,out] SecCoreData The same parameter as passing to PEI core. It\r
23 could be overridden by this function.\r
24\r
25 @return The platform specific PPI list to be passed to PEI core or\r
26 NULL if there is no need of such platform specific PPI list.\r
27\r
28**/\r
29EFI_PEI_PPI_DESCRIPTOR *\r
30EFIAPI\r
31SecPlatformMain (\r
32 IN OUT EFI_SEC_PEI_HAND_OFF *SecCoreData\r
33 );\r
34\r
35/**\r
36 Call PEI core entry point with new temporary RAM.\r
37\r
38 @param[in] FspHobList HobList produced by FSP.\r
39 @param[in] StartOfRange Start of temporary RAM.\r
40 @param[in] EndOfRange End of temporary RAM.\r
41**/\r
42VOID\r
43EFIAPI\r
44CallPeiCoreEntryPoint (\r
45 IN VOID *FspHobList,\r
46 IN VOID *StartOfRange,\r
47 IN VOID *EndOfRange\r
48 );\r
49\r
50/**\r
51 Save SEC context before call FspInit.\r
52\r
53 @param[in] PeiServices Pointer to PEI Services Table.\r
54**/\r
55VOID\r
56EFIAPI\r
57SaveSecContext (\r
58 IN CONST EFI_PEI_SERVICES **PeiServices\r
59 );\r
60\r
61#endif\r