]> git.proxmox.com Git - mirror_edk2.git/blame - OldMdePkg/Include/Ppi/SecPlatformInformation.h
Adding top-level Conf directory for next generation of EDK II build infrastructure...
[mirror_edk2.git] / OldMdePkg / Include / Ppi / SecPlatformInformation.h
CommitLineData
878ddf1f 1/** @file\r
2 This file declares Sec Platform Information PPI.\r
3\r
4 Copyright (c) 2006, 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 Module Name: SecPlatformInformation.h\r
14\r
15 @par Revision Reference:\r
16 This PPI is defined in PEI CIS.\r
17 Version 0.91.\r
18\r
19**/\r
20\r
21#ifndef __SEC_PLATFORM_INFORMATION_PPI_H__\r
22#define __SEC_PLATFORM_INFORMATION_PPI_H__\r
23\r
24#define EFI_SEC_PLATFORM_INFORMATION_GUID \\r
25 { \\r
26 0x6f8c2b35, 0xfef4, 0x448d, {0x82, 0x56, 0xe1, 0x1b, 0x19, 0xd6, 0x10, 0x77 } \\r
27 }\r
28\r
29typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;\r
30\r
31extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r
32\r
9c89ec98 33typedef struct {\r
34 UINTN BootPhase; // entry r20 value\r
35 UINTN UniqueId; // PAL arbitration ID\r
36 UINTN HealthStat; // Health Status\r
37 UINTN PALRetAddress; // return address to PAL\r
38} IPF_HANDOFF_STATUS;\r
39\r
878ddf1f 40///\r
41/// EFI_HEALTH_FLAGS\r
42///\r
43typedef union {\r
44 struct {\r
45 UINT32 Status : 2;\r
46 UINT32 Tested : 1;\r
47 UINT32 Reserved1 :13;\r
48 UINT32 VirtualMemoryUnavailable : 1;\r
49 UINT32 Ia32ExecutionUnavailable : 1;\r
50 UINT32 FloatingPointUnavailable : 1;\r
51 UINT32 MiscFeaturesUnavailable : 1;\r
52 UINT32 Reserved2 :12;\r
53 } Bits;\r
54 UINT32 Uint32;\r
55} EFI_HEALTH_FLAGS;\r
56\r
57typedef struct {\r
58 EFI_HEALTH_FLAGS HealthFlags;\r
59} EFI_SEC_PLATFORM_INFORMATION_RECORD;\r
60\r
61/**\r
62 This interface conveys state information out of the Security (SEC) phase into PEI.\r
63\r
0647c9ad
LG
64 @param PeiServices Pointer to the PEI Services Table.\r
65 @param StructureSize Pointer to the variable describing size of the input buffer.\r
66 @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r
67\r
68 @retval EFI_SUCCESS The data was successfully returned.\r
69 @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r
878ddf1f 70\r
71**/\r
72typedef\r
73EFI_STATUS\r
74(EFIAPI *EFI_SEC_PLATFORM_INFORMATION) (\r
75 IN EFI_PEI_SERVICES **PeiServices,\r
76 IN OUT UINT64 *StructureSize,\r
77 OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r
78 );\r
79\r
80/**\r
81 @par Ppi Description:\r
82\r
83 @param Name\r
84\r
85**/\r
86struct _EFI_SEC_PLATFORM_INFORMATION_PPI {\r
87 EFI_SEC_PLATFORM_INFORMATION PlatformInformation;\r
88};\r
89\r
90#endif\r