1 /** @file
2   Provide FSP wrapper platform sec related function.
3 
4   Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
5   This program and the accompanying materials
6   are licensed and made available under the terms and conditions of the BSD License
7   which accompanies this distribution.  The full text of the license may be found at
8   http://opensource.org/licenses/bsd-license.php.
9 
10   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 
13 **/
14 
15 #ifndef __FSP_PLATFORM_SEC_LIB_H__
16 #define __FSP_PLATFORM_SEC_LIB_H__
17 
18 /**
19   A developer supplied function to perform platform specific operations.
20 
21   It's a developer supplied function to perform any operations appropriate to a
22   given platform. It's invoked just before passing control to PEI core by SEC
23   core. Platform developer may modify the SecCoreData passed to PEI Core.
24   It returns a platform specific PPI list that platform wishes to pass to PEI core.
25   The Generic SEC core module will merge this list to join the final list passed to
26   PEI core.
27 
28   @param[in,out] SecCoreData           The same parameter as passing to PEI core. It
29                                        could be overridden by this function.
30 
31   @return The platform specific PPI list to be passed to PEI core or
32           NULL if there is no need of such platform specific PPI list.
33 
34 **/
35 EFI_PEI_PPI_DESCRIPTOR *
36 EFIAPI
37 SecPlatformMain (
38   IN OUT   EFI_SEC_PEI_HAND_OFF        *SecCoreData
39   );
40 
41 /**
42   Call PEI core entry point with new temporary RAM.
43 
44   @param[in] FspHobList   HobList produced by FSP.
45   @param[in] StartOfRange Start of temporary RAM.
46   @param[in] EndOfRange   End of temporary RAM.
47 **/
48 VOID
49 EFIAPI
50 CallPeiCoreEntryPoint (
51   IN VOID                 *FspHobList,
52   IN VOID                 *StartOfRange,
53   IN VOID                 *EndOfRange
54   );
55 
56 /**
57   Save SEC context before call FspInit.
58 
59   @param[in] PeiServices  Pointer to PEI Services Table.
60 **/
61 VOID
62 EFIAPI
63 SaveSecContext (
64   IN CONST EFI_PEI_SERVICES                     **PeiServices
65   );
66 
67 #endif
68