]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Ppi/SecPlatformInformation.h
Add IPF_HANDOFF_STATUS definition in Ppi/SecPlatformInformation.h.
[mirror_edk2.git] / MdePkg / Include / Ppi / SecPlatformInformation.h
CommitLineData
5879b875 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
5879b875 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
d6033584 30//\r
31// EFI_HEALTH_FLAGS\r
32//\r
5879b875 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
d6033584 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
59typedef struct {\r
60 UINTN BootPhase;\r
61 UINTN UniqueId;\r
62 UINTN HealthStat;\r
63 UINTN PALRetAddress;\r
64} IPF_HANDOFF_STATUS;\r
65\r
5879b875 66typedef struct {\r
67 EFI_HEALTH_FLAGS HealthFlags;\r
68} EFI_SEC_PLATFORM_INFORMATION_RECORD;\r
69\r
70\r
71\r
72/**\r
73 This interface conveys state information out of the Security (SEC) phase into PEI.\r
74\r
75 @param PeiServices Pointer to the PEI Services Table.\r
76 @param StructureSize Pointer to the variable describing size of the input buffer.\r
77 @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r
78\r
79 @retval EFI_SUCCESS The data was successfully returned.\r
80 @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r
81\r
82**/\r
83typedef\r
84EFI_STATUS\r
85(EFIAPI *EFI_SEC_PLATFORM_INFORMATION) (\r
00edb218
A
86 IN CONST EFI_PEI_SERVICES **PeiServices,\r
87 IN OUT UINT64 *StructureSize,\r
88 OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r
5879b875 89);\r
90\r
91\r
92/**\r
00edb218 93 Ppi Description:\r
5879b875 94\r
95 @param Name\r
96\r
97**/\r
98struct _EFI_SEC_PLATFORM_INFORMATION_PPI {\r
99 EFI_SEC_PLATFORM_INFORMATION PlatformInformation;\r
100};\r
101\r
102\r
103extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r
104\r
105#endif\r