TianoCore EDK2 master
Loading...
Searching...
No Matches
PiMultiPhase.h
Go to the documentation of this file.
1
12#ifndef __PI_MULTIPHASE_H__
13#define __PI_MULTIPHASE_H__
14
15#include <Pi/PiFirmwareVolume.h>
16#include <Pi/PiFirmwareFile.h>
17#include <Pi/PiBootMode.h>
18#include <Pi/PiHob.h>
19#include <Pi/PiDependency.h>
20#include <Pi/PiStatusCode.h>
21#include <Pi/PiS3BootScript.h>
22
23//
24// PI Specification Version Information
25//
26#define PI_SPECIFICATION_MAJOR_REVISION 1
27#define PI_SPECIFICATION_MINOR_REVISION 80
28#define PI_SPECIFICATION_VERSION ((PI_SPECIFICATION_MAJOR_REVISION << 16) | (PI_SPECIFICATION_MINOR_REVISION))
29
43#define DXE_ERROR(StatusCode) (MAX_BIT | (MAX_BIT >> 2) | StatusCode)
44
48#define EFI_REQUEST_UNLOAD_IMAGE DXE_ERROR (1)
49
54#define EFI_NOT_AVAILABLE_YET DXE_ERROR (2)
55
61#define PI_ENCODE_WARNING(a) ((MAX_BIT >> 2) | (a))
62
68#define PI_ENCODE_ERROR(a) (MAX_BIT | (MAX_BIT >> 2) | (a))
69
73#define EFI_INTERRUPT_PENDING PI_ENCODE_ERROR (0)
74
75#define EFI_WARN_INTERRUPT_SOURCE_PENDING PI_ENCODE_WARNING (0)
76#define EFI_WARN_INTERRUPT_SOURCE_QUIESCED PI_ENCODE_WARNING (1)
77
91#define EFI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01
92#define EFI_AUTH_STATUS_IMAGE_SIGNED 0x02
93#define EFI_AUTH_STATUS_NOT_TESTED 0x04
94#define EFI_AUTH_STATUS_TEST_FAILED 0x08
95#define EFI_AUTH_STATUS_ALL 0x0f
97
101#define EFI_MMRAM_OPEN 0x00000001
102#define EFI_MMRAM_CLOSED 0x00000002
103#define EFI_MMRAM_LOCKED 0x00000004
104#define EFI_CACHEABLE 0x00000008
105#define EFI_ALLOCATED 0x00000010
106#define EFI_NEEDS_TESTING 0x00000020
107#define EFI_NEEDS_ECC_INITIALIZATION 0x00000040
108
109#define EFI_SMRAM_OPEN EFI_MMRAM_OPEN
110#define EFI_SMRAM_CLOSED EFI_MMRAM_CLOSED
111#define EFI_SMRAM_LOCKED EFI_MMRAM_LOCKED
112
116typedef struct {
140
142
158
159typedef enum {
160 EFI_PCD_TYPE_8,
161 EFI_PCD_TYPE_16,
162 EFI_PCD_TYPE_32,
163 EFI_PCD_TYPE_64,
164 EFI_PCD_TYPE_BOOL,
165 EFI_PCD_TYPE_PTR
166} EFI_PCD_TYPE;
167
168typedef struct {
173 EFI_PCD_TYPE PcdType;
185 CHAR8 *PcdName;
187
196typedef
197VOID
198(EFIAPI *EFI_AP_PROCEDURE)(
199 IN OUT VOID *Buffer
200 );
201
212typedef
214(EFIAPI *EFI_AP_PROCEDURE2)(
215 IN VOID *ProcedureArgument
216 );
217
218#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID(EFIAPI * EFI_AP_PROCEDURE)(IN OUT VOID *Buffer)
Definition: PiMultiPhase.h:198
EFI_STATUS(EFIAPI * EFI_AP_PROCEDURE2)(IN VOID *ProcedureArgument)
Definition: PiMultiPhase.h:214
struct _EFI_MM_RESERVED_MMRAM_REGION EFI_MM_RESERVED_MMRAM_REGION
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_PHYSICAL_ADDRESS MmramReservedStart
Definition: PiMultiPhase.h:151
EFI_PHYSICAL_ADDRESS CpuStart
Definition: PiMultiPhase.h:127
EFI_PHYSICAL_ADDRESS PhysicalStart
Definition: PiMultiPhase.h:122
EFI_PCD_TYPE PcdType
Definition: PiMultiPhase.h:173
CHAR8 * PcdName
Definition: PiMultiPhase.h:185