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