]>
Commit | Line | Data |
---|---|---|
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 | Module Name: SecPlatformInformation.h\r | |
14 | \r | |
15 | @par Revision Reference:\r | |
16 | This PPI is defined in PI.\r | |
17 | Version 1.00.\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 | |
29 | typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;\r | |
30 | \r | |
31 | \r | |
32 | ///\r | |
33 | /// EFI_HEALTH_FLAGS\r | |
34 | ///\r | |
35 | typedef union {\r | |
36 | struct {\r | |
37 | UINT32 Status : 2;\r | |
38 | UINT32 Tested : 1;\r | |
39 | UINT32 Reserved1 :13;\r | |
40 | UINT32 VirtualMemoryUnavailable : 1;\r | |
41 | UINT32 Ia32ExecutionUnavailable : 1;\r | |
42 | UINT32 FloatingPointUnavailable : 1;\r | |
43 | UINT32 MiscFeaturesUnavailable : 1;\r | |
44 | UINT32 Reserved2 :12;\r | |
45 | } Bits;\r | |
46 | UINT32 Uint32;\r | |
47 | } EFI_HEALTH_FLAGS;\r | |
48 | \r | |
49 | typedef struct {\r | |
50 | EFI_HEALTH_FLAGS HealthFlags;\r | |
51 | } EFI_SEC_PLATFORM_INFORMATION_RECORD;\r | |
52 | \r | |
53 | \r | |
54 | \r | |
55 | /**\r | |
56 | This interface conveys state information out of the Security (SEC) phase into PEI.\r | |
57 | \r | |
58 | @param PeiServices Pointer to the PEI Services Table.\r | |
59 | @param StructureSize Pointer to the variable describing size of the input buffer.\r | |
60 | @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r | |
61 | \r | |
62 | @retval EFI_SUCCESS The data was successfully returned.\r | |
63 | @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r | |
64 | \r | |
65 | **/\r | |
66 | typedef\r | |
67 | EFI_STATUS\r | |
68 | (EFIAPI *EFI_SEC_PLATFORM_INFORMATION) (\r | |
69 | IN CONST EFI_PEI_SERVICES **PeiServices,\r | |
70 | IN OUT UINT64 *StructureSize,\r | |
71 | OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r | |
72 | );\r | |
73 | \r | |
74 | \r | |
75 | /**\r | |
76 | Ppi Description:\r | |
77 | \r | |
78 | @param Name\r | |
79 | \r | |
80 | **/\r | |
81 | struct _EFI_SEC_PLATFORM_INFORMATION_PPI {\r | |
82 | EFI_SEC_PLATFORM_INFORMATION PlatformInformation;\r | |
83 | };\r | |
84 | \r | |
85 | \r | |
86 | extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r | |
87 | \r | |
88 | #endif\r |