]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Include/Ppi/SecPlatformInformation.h
Fix doxygen issue:
[mirror_edk2.git] / MdePkg / Include / Ppi / SecPlatformInformation.h
... / ...
CommitLineData
1/** @file\r
2 This file declares Sec Platform Information PPI.\r
3\r
4 Copyright (c) 2006 - 2007, Intel Corporation \r
5 All rights reserved. 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 @par Revision Reference:\r
14 This PPI is defined in PI.\r
15 Version 1.00.\r
16\r
17**/\r
18\r
19#ifndef __SEC_PLATFORM_INFORMATION_PPI_H__\r
20#define __SEC_PLATFORM_INFORMATION_PPI_H__\r
21\r
22#define EFI_SEC_PLATFORM_INFORMATION_GUID \\r
23 { \\r
24 0x6f8c2b35, 0xfef4, 0x448d, {0x82, 0x56, 0xe1, 0x1b, 0x19, 0xd6, 0x10, 0x77 } \\r
25 }\r
26\r
27typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;\r
28\r
29\r
30//\r
31// EFI_HEALTH_FLAGS\r
32//\r
33typedef union {\r
34 struct {\r
35 UINT32 Status : 2;\r
36 UINT32 Tested : 1;\r
37 UINT32 Reserved1 :13;\r
38 UINT32 VirtualMemoryUnavailable : 1;\r
39 UINT32 Ia32ExecutionUnavailable : 1;\r
40 UINT32 FloatingPointUnavailable : 1;\r
41 UINT32 MiscFeaturesUnavailable : 1;\r
42 UINT32 Reserved2 :12;\r
43 } Bits;\r
44 UINT32 Uint32;\r
45} EFI_HEALTH_FLAGS;\r
46\r
47\r
48/**\r
49\r
50 @param BootPhase entry r20 value.\r
51\r
52 @param UniqueId PAL arbitration ID.\r
53\r
54 @param HealthStat Health Status\r
55\r
56 @param PALRetAddress Return address to PAL\r
57 \r
58**/\r
59/*\r
60typedef struct {\r
61 UINTN BootPhase;\r
62 UINTN UniqueId;\r
63 UINTN HealthStat;\r
64 UINTN PALRetAddress;\r
65} IPF_HANDOFF_STATUS;\r
66*/\r
67\r
68#define NORMAL_BOOT_CALL 0x0\r
69#define RECOVERY_CHECK_CALL 0x3\r
70\r
71typedef struct {\r
72 UINT8 BootPhase;\r
73 UINT8 FWStatus;\r
74 UINT16 Reserved1;\r
75 UINT32 Reserved2;\r
76\r
77 UINT16 ProcId;\r
78 UINT16 Reserved3;\r
79 UINT8 IdMask;\r
80 UINT8 EidMask;\r
81 UINT16 Reserved4;\r
82\r
83 UINT64 PalCallAddress;\r
84 UINT64 PalSpecialAddress;\r
85 UINT64 SelfTestStatus;\r
86 UINT64 SelfTestControl;\r
87 UINT64 MemoryBufferRequired;\r
88\r
89} IPF_HANDOFF_STATUS;\r
90\r
91\r
92typedef struct {\r
93 EFI_HEALTH_FLAGS HealthFlags;\r
94} EFI_SEC_PLATFORM_INFORMATION_RECORD;\r
95\r
96\r
97\r
98/**\r
99 This interface conveys state information out of the Security (SEC) phase into PEI.\r
100\r
101 @param PeiServices Pointer to the PEI Services Table.\r
102 @param StructureSize Pointer to the variable describing size of the input buffer.\r
103 @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r
104\r
105 @retval EFI_SUCCESS The data was successfully returned.\r
106 @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r
107\r
108**/\r
109typedef\r
110EFI_STATUS\r
111(EFIAPI *EFI_SEC_PLATFORM_INFORMATION)(\r
112 IN CONST EFI_PEI_SERVICES **PeiServices,\r
113 IN OUT UINT64 *StructureSize,\r
114 OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r
115);\r
116\r
117\r
118/**\r
119 Ppi Description:\r
120\r
121 @param Name\r
122\r
123**/\r
124struct _EFI_SEC_PLATFORM_INFORMATION_PPI {\r
125 EFI_SEC_PLATFORM_INFORMATION PlatformInformation;\r
126};\r
127\r
128\r
129extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r
130\r
131#endif\r