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