]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Pi/PiMultiPhase.h
Originally, there are following implementation:
[mirror_edk2.git] / MdePkg / Include / Pi / PiMultiPhase.h
CommitLineData
959ccb23 1/** @file\r
2 Include file matches things in PI for multiple module types.\r
3\r
4b503a77 4 Copyright (c) 2006 - 2008, Intel Corporation \r
959ccb23 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
959ccb23 13 @par Revision Reference:\r
0047820e 14 PI Version 1.0\r
959ccb23 15\r
16**/\r
17\r
18#ifndef __PI_MULTIPHASE_H__\r
19#define __PI_MULTIPHASE_H__\r
20\r
21#include <Uefi/UefiMultiPhase.h>\r
22\r
23#include <Pi/PiFirmwareVolume.h>\r
24#include <Pi/PiFirmwareFile.h>\r
25#include <Pi/PiBootMode.h>\r
26\r
27#include <Pi/PiHob.h>\r
28#include <Pi/PiDependency.h>\r
29\r
211a2649 30\r
31#define EFI_NOT_AVAILABLE_YET EFIERR (32)\r
32\r
dc53faa3 33///\r
34/// Status Code Type Definition\r
35///\r
00edb218 36typedef UINT32 EFI_STATUS_CODE_TYPE;\r
959ccb23 37\r
38//\r
39// A Status Code Type is made up of the code type and severity\r
40// All values masked by EFI_STATUS_CODE_RESERVED_MASK are\r
41// reserved for use by this specification.\r
42//\r
00edb218 43#define EFI_STATUS_CODE_TYPE_MASK 0x000000FF\r
959ccb23 44#define EFI_STATUS_CODE_SEVERITY_MASK 0xFF000000\r
45#define EFI_STATUS_CODE_RESERVED_MASK 0x00FFFF00\r
46\r
47//\r
48// Definition of code types, all other values masked by\r
49// EFI_STATUS_CODE_TYPE_MASK are reserved for use by\r
50// this specification.\r
51//\r
00edb218
A
52#define EFI_PROGRESS_CODE 0x00000001\r
53#define EFI_ERROR_CODE 0x00000002\r
54#define EFI_DEBUG_CODE 0x00000003\r
959ccb23 55\r
56//\r
57// Definitions of severities, all other values masked by\r
58// EFI_STATUS_CODE_SEVERITY_MASK are reserved for use by\r
59// this specification.\r
60// Uncontained errors are major errors that could not contained\r
61// to the specific component that is reporting the error\r
62// For example, if a memory error was not detected early enough,\r
63// the bad data could be consumed by other drivers.\r
64//\r
00edb218
A
65#define EFI_ERROR_MINOR 0x40000000\r
66#define EFI_ERROR_MAJOR 0x80000000\r
67#define EFI_ERROR_UNRECOVERED 0x90000000\r
68#define EFI_ERROR_UNCONTAINED 0xa0000000\r
959ccb23 69\r
dc53faa3 70///\r
71/// Status Code Value Definition\r
72///\r
959ccb23 73typedef UINT32 EFI_STATUS_CODE_VALUE;\r
dc53faa3 74\r
959ccb23 75//\r
76// A Status Code Value is made up of the class, subclass, and\r
77// an operation.\r
78//\r
00edb218
A
79#define EFI_STATUS_CODE_CLASS_MASK 0xFF000000\r
80#define EFI_STATUS_CODE_SUBCLASS_MASK 0x00FF0000\r
81#define EFI_STATUS_CODE_OPERATION_MASK 0x0000FFFF\r
dc53faa3 82\r
83///\r
84/// Definition of Status Code extended data header.\r
85/// The data will follow HeaderSize bytes from the beginning of\r
86/// the structure and is Size bytes long.\r
87///\r
959ccb23 88typedef struct {\r
1bf79370
LG
89 ///\r
90 /// The size of the structure. This is specified to enable future expansion.\r
91 ///\r
00edb218 92 UINT16 HeaderSize;\r
1bf79370
LG
93 ///\r
94 /// The size of the data in bytes. This does not include the size of the header structure.\r
95 ///\r
00edb218 96 UINT16 Size;\r
1bf79370
LG
97 ///\r
98 /// The GUID defining the type of the data.\r
99 ///\r
00edb218 100 EFI_GUID Type;\r
959ccb23 101} EFI_STATUS_CODE_DATA;\r
102\r
ba237732 103\r
9319d2c2
LG
104///\r
105/// Bit values for Authentication Status\r
106///\r
107/// xx00 Image was not signed.\r
108/// xxx1 Platform security policy override. Assumes same meaning as 0010 (the image was signed, the\r
109/// signature was tested, and the signature passed authentication test).\r
110/// 0010 Image was signed, the signature was tested, and the signature passed authentication test.\r
111/// 0110 Image was signed and the signature was not tested.\r
112/// 1010 Image was signed, the signature was tested, and the signature failed the authentication test.\r
113///\r
ba237732
A
114#define EFI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01\r
115#define EFI_AUTH_STATUS_IMAGE_SIGNED 0x02\r
116#define EFI_AUTH_STATUS_NOT_TESTED 0x04\r
117#define EFI_AUTH_STATUS_TEST_FAILED 0x08\r
797a9d67 118#define EFI_AUTH_STATUS_ALL 0x0f\r
ba237732 119\r
959ccb23 120#endif\r