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