]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Pi/PiMultiPhase.h
Removed IntelframeworkPkg contamination from MdeModulePkg modules.
[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
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
959ccb23 13 @par Revision Reference:\r
14 Version 1.0.\r
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
30//\r
31// Status Code Type Definition\r
32//\r
00edb218 33typedef UINT32 EFI_STATUS_CODE_TYPE;\r
959ccb23 34\r
35//\r
36// A Status Code Type is made up of the code type and severity\r
37// All values masked by EFI_STATUS_CODE_RESERVED_MASK are\r
38// reserved for use by this specification.\r
39//\r
00edb218 40#define EFI_STATUS_CODE_TYPE_MASK 0x000000FF\r
959ccb23 41#define EFI_STATUS_CODE_SEVERITY_MASK 0xFF000000\r
42#define EFI_STATUS_CODE_RESERVED_MASK 0x00FFFF00\r
43\r
44//\r
45// Definition of code types, all other values masked by\r
46// EFI_STATUS_CODE_TYPE_MASK are reserved for use by\r
47// this specification.\r
48//\r
00edb218
A
49#define EFI_PROGRESS_CODE 0x00000001\r
50#define EFI_ERROR_CODE 0x00000002\r
51#define EFI_DEBUG_CODE 0x00000003\r
959ccb23 52\r
53//\r
54// Definitions of severities, all other values masked by\r
55// EFI_STATUS_CODE_SEVERITY_MASK are reserved for use by\r
56// this specification.\r
57// Uncontained errors are major errors that could not contained\r
58// to the specific component that is reporting the error\r
59// For example, if a memory error was not detected early enough,\r
60// the bad data could be consumed by other drivers.\r
61//\r
00edb218
A
62#define EFI_ERROR_MINOR 0x40000000\r
63#define EFI_ERROR_MAJOR 0x80000000\r
64#define EFI_ERROR_UNRECOVERED 0x90000000\r
65#define EFI_ERROR_UNCONTAINED 0xa0000000\r
959ccb23 66\r
67//\r
68// Status Code Value Definition\r
69//\r
70typedef UINT32 EFI_STATUS_CODE_VALUE;\r
71//\r
72// A Status Code Value is made up of the class, subclass, and\r
73// an operation.\r
74//\r
00edb218
A
75#define EFI_STATUS_CODE_CLASS_MASK 0xFF000000\r
76#define EFI_STATUS_CODE_SUBCLASS_MASK 0x00FF0000\r
77#define EFI_STATUS_CODE_OPERATION_MASK 0x0000FFFF\r
959ccb23 78//\r
79// Definition of Status Code extended data header.\r
80// The data will follow HeaderSize bytes from the beginning of\r
81// the structure and is Size bytes long.\r
82//\r
83typedef struct {\r
00edb218
A
84 UINT16 HeaderSize;\r
85 UINT16 Size;\r
86 EFI_GUID Type;\r
959ccb23 87} EFI_STATUS_CODE_DATA;\r
88\r
ba237732
A
89\r
90//\r
91// Bit values for AuthenticationStatus\r
92//\r
93#define EFI_AUTH_STATUS_PLATFORM_OVERRIDE 0x01\r
94#define EFI_AUTH_STATUS_IMAGE_SIGNED 0x02\r
95#define EFI_AUTH_STATUS_NOT_TESTED 0x04\r
96#define EFI_AUTH_STATUS_TEST_FAILED 0x08\r
97\r
959ccb23 98#endif\r