]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This file declares Sec Platform Information PPI.\r | |
3 | \r | |
4 | This service is the primary handoff state into the PEI Foundation. \r | |
5 | The Security (SEC) component creates the early, transitory memory \r | |
6 | environment and also encapsulates knowledge of at least the \r | |
7 | location of the Boot Firmware Volume (BFV).\r | |
8 | \r | |
9 | Copyright (c) 2006 - 2008, Intel Corporation \r | |
10 | All rights reserved. This program and the accompanying materials \r | |
11 | are licensed and made available under the terms and conditions of the BSD License \r | |
12 | which accompanies this distribution. The full text of the license may be found at \r | |
13 | http://opensource.org/licenses/bsd-license.php \r | |
14 | \r | |
15 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
16 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
17 | \r | |
18 | @par Revision Reference:\r | |
19 | This PPI is defined in PI.\r | |
20 | Version 1.00.\r | |
21 | \r | |
22 | **/\r | |
23 | \r | |
24 | #ifndef __SEC_PLATFORM_INFORMATION_PPI_H__\r | |
25 | #define __SEC_PLATFORM_INFORMATION_PPI_H__\r | |
26 | \r | |
27 | #define EFI_SEC_PLATFORM_INFORMATION_GUID \\r | |
28 | { \\r | |
29 | 0x6f8c2b35, 0xfef4, 0x448d, {0x82, 0x56, 0xe1, 0x1b, 0x19, 0xd6, 0x10, 0x77 } \\r | |
30 | }\r | |
31 | \r | |
32 | typedef struct _EFI_SEC_PLATFORM_INFORMATION_PPI EFI_SEC_PLATFORM_INFORMATION_PPI;\r | |
33 | \r | |
34 | \r | |
35 | //\r | |
36 | // EFI_HEALTH_FLAGS\r | |
37 | // Contains information generated by microcode, hardware, and/or the Itanium\r | |
38 | // processor PAL code about the state of the processor upon reset.\r | |
39 | //\r | |
40 | typedef union {\r | |
41 | struct {\r | |
42 | UINT32 Status : 2;\r | |
43 | UINT32 Tested : 1;\r | |
44 | UINT32 Reserved1 :13;\r | |
45 | UINT32 VirtualMemoryUnavailable : 1;\r | |
46 | UINT32 Ia32ExecutionUnavailable : 1;\r | |
47 | UINT32 FloatingPointUnavailable : 1;\r | |
48 | UINT32 MiscFeaturesUnavailable : 1;\r | |
49 | UINT32 Reserved2 :12;\r | |
50 | } Bits;\r | |
51 | UINT32 Uint32;\r | |
52 | } EFI_HEALTH_FLAGS;\r | |
53 | \r | |
54 | #define NORMAL_BOOT_CALL 0x0\r | |
55 | #define RECOVERY_CHECK_CALL 0x3\r | |
56 | \r | |
57 | typedef struct {\r | |
58 | UINT8 BootPhase;\r | |
59 | UINT8 FWStatus;\r | |
60 | UINT16 Reserved1;\r | |
61 | UINT32 Reserved2;\r | |
62 | \r | |
63 | UINT16 ProcId;\r | |
64 | UINT16 Reserved3;\r | |
65 | UINT8 IdMask;\r | |
66 | UINT8 EidMask;\r | |
67 | UINT16 Reserved4;\r | |
68 | \r | |
69 | UINT64 PalCallAddress;\r | |
70 | UINT64 PalSpecialAddress;\r | |
71 | UINT64 SelfTestStatus;\r | |
72 | UINT64 SelfTestControl;\r | |
73 | UINT64 MemoryBufferRequired;\r | |
74 | \r | |
75 | } IPF_HANDOFF_STATUS;\r | |
76 | \r | |
77 | \r | |
78 | typedef struct {\r | |
79 | EFI_HEALTH_FLAGS HealthFlags;\r | |
80 | } EFI_SEC_PLATFORM_INFORMATION_RECORD;\r | |
81 | \r | |
82 | \r | |
83 | \r | |
84 | /**\r | |
85 | This interface conveys state information out of the Security (SEC) phase into PEI.\r | |
86 | \r | |
87 | @param PeiServices Pointer to the PEI Services Table.\r | |
88 | @param StructureSize Pointer to the variable describing size of the input buffer.\r | |
89 | @param PlatformInformationRecord Pointer to the EFI_SEC_PLATFORM_INFORMATION_RECORD.\r | |
90 | \r | |
91 | @retval EFI_SUCCESS The data was successfully returned.\r | |
92 | @retval EFI_BUFFER_TOO_SMALL The buffer was too small.\r | |
93 | \r | |
94 | **/\r | |
95 | typedef\r | |
96 | EFI_STATUS\r | |
97 | (EFIAPI *EFI_SEC_PLATFORM_INFORMATION)(\r | |
98 | IN CONST EFI_PEI_SERVICES **PeiServices,\r | |
99 | IN OUT UINT64 *StructureSize,\r | |
100 | OUT EFI_SEC_PLATFORM_INFORMATION_RECORD *PlatformInformationRecord\r | |
101 | );\r | |
102 | \r | |
103 | \r | |
104 | /**\r | |
105 | @par Ppi Description:\r | |
106 | This service abstracts platform-specific information. It is necessary \r | |
107 | to convey this information to the PEI Foundation so that it can \r | |
108 | discover where to begin dispatching PEIMs.\r | |
109 | \r | |
110 | @param PlatformInformation \r | |
111 | Conveys state information out of the SEC phase into PEI.\r | |
112 | \r | |
113 | **/\r | |
114 | struct _EFI_SEC_PLATFORM_INFORMATION_PPI {\r | |
115 | EFI_SEC_PLATFORM_INFORMATION PlatformInformation;\r | |
116 | };\r | |
117 | \r | |
118 | \r | |
119 | extern EFI_GUID gEfiSecPlatformInformationPpiGuid;\r | |
120 | \r | |
121 | #endif\r |