]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Null instance of Platform Sec Lib.\r | |
3 | \r | |
4 | Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include <PiPei.h>\r | |
10 | \r | |
11 | #include <Ppi/SecPlatformInformation.h>\r | |
12 | \r | |
13 | /**\r | |
14 | A developer supplied function to perform platform specific operations.\r | |
15 | \r | |
16 | It's a developer supplied function to perform any operations appropriate to a\r | |
17 | given platform. It's invoked just before passing control to PEI core by SEC\r | |
18 | core. Platform developer may modify the SecCoreData passed to PEI Core.\r | |
19 | It returns a platform specific PPI list that platform wishes to pass to PEI core.\r | |
20 | The Generic SEC core module will merge this list to join the final list passed to\r | |
21 | PEI core.\r | |
22 | \r | |
23 | @param SecCoreData The same parameter as passing to PEI core. It\r | |
24 | could be overridden by this function.\r | |
25 | \r | |
26 | @return The platform specific PPI list to be passed to PEI core or\r | |
27 | NULL if there is no need of such platform specific PPI list.\r | |
28 | \r | |
29 | **/\r | |
30 | EFI_PEI_PPI_DESCRIPTOR *\r | |
31 | EFIAPI\r | |
32 | SecPlatformMain (\r | |
33 | IN OUT EFI_SEC_PEI_HAND_OFF *SecCoreData\r | |
34 | )\r | |
35 | {\r | |
36 | return NULL;\r | |
37 | }\r | |
38 | \r | |
39 | /**\r | |
40 | This interface conveys state information out of the Security (SEC) phase into PEI.\r | |
41 | \r | |
42 | @param PeiServices Pointer to the PEI Services Table.\r | |
43 | @param StructureSize Pointer to the variable describing size of the input buffer.\r | |
44 | @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r | |
45 | \r | |
46 | @retval EFI_SUCCESS The data was successfully returned.\r | |
47 | @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r | |
48 | \r | |
49 | **/\r | |
50 | EFI_STATUS\r | |
51 | EFIAPI\r | |
52 | SecPlatformInformation (\r | |
53 | IN CONST EFI_PEI_SERVICES **PeiServices,\r | |
54 | IN OUT UINT64 *StructureSize,\r | |
55 | OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r | |
56 | )\r | |
57 | {\r | |
58 | return EFI_SUCCESS;\r | |
59 | }\r | |
60 | \r | |
61 | /**\r | |
62 | This interface disables temporary memory in SEC Phase.\r | |
63 | **/\r | |
64 | VOID\r | |
65 | EFIAPI\r | |
66 | SecPlatformDisableTemporaryMemory (\r | |
67 | VOID\r | |
68 | )\r | |
69 | {\r | |
70 | }\r | |
71 | \r | |
72 | /**\r | |
73 | This function provides dummy function so that SecCore can pass build\r | |
74 | validation. All real platform library instances need to implement the real\r | |
75 | entry point in assembly.\r | |
76 | **/\r | |
77 | VOID\r | |
78 | EFIAPI\r | |
79 | _ModuleEntryPoint (\r | |
80 | VOID\r | |
81 | )\r | |
82 | {\r | |
83 | return;\r | |
84 | }\r |