]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Pi/PiMultiPhase.h
Fixed typo in PiPeiCis.h.
[mirror_edk2.git] / MdePkg / Include / Pi / PiMultiPhase.h
1 /** @file
2 Include file matches things in PI for multiple module types.
3
4 Copyright (c) 2006 - 2007, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 Module Name: PiMultiPhase.h
14
15 @par Revision Reference:
16 Version 1.0.
17
18 **/
19
20 #ifndef __PI_MULTIPHASE_H__
21 #define __PI_MULTIPHASE_H__
22
23 #include <Uefi/UefiMultiPhase.h>
24
25 #include <Pi/PiFirmwareVolume.h>
26 #include <Pi/PiFirmwareFile.h>
27 #include <Pi/PiBootMode.h>
28
29 #include <Pi/PiHob.h>
30 #include <Pi/PiDependency.h>
31
32 //
33 // Status Code Type Definition
34 //
35 typedef UINT32 EFI_STATUS_CODE_TYPE;
36
37 //
38 // A Status Code Type is made up of the code type and severity
39 // All values masked by EFI_STATUS_CODE_RESERVED_MASK are
40 // reserved for use by this specification.
41 //
42 #define EFI_STATUS_CODE_TYPE_MASK 0x000000FF
43 #define EFI_STATUS_CODE_SEVERITY_MASK 0xFF000000
44 #define EFI_STATUS_CODE_RESERVED_MASK 0x00FFFF00
45
46 //
47 // Definition of code types, all other values masked by
48 // EFI_STATUS_CODE_TYPE_MASK are reserved for use by
49 // this specification.
50 //
51 #define EFI_PROGRESS_CODE 0x00000001
52 #define EFI_ERROR_CODE 0x00000002
53 #define EFI_DEBUG_CODE 0x00000003
54
55 //
56 // Definitions of severities, all other values masked by
57 // EFI_STATUS_CODE_SEVERITY_MASK are reserved for use by
58 // this specification.
59 // Uncontained errors are major errors that could not contained
60 // to the specific component that is reporting the error
61 // For example, if a memory error was not detected early enough,
62 // the bad data could be consumed by other drivers.
63 //
64 #define EFI_ERROR_MINOR 0x40000000
65 #define EFI_ERROR_MAJOR 0x80000000
66 #define EFI_ERROR_UNRECOVERED 0x90000000
67 #define EFI_ERROR_UNCONTAINED 0xa0000000
68
69 //
70 // Status Code Value Definition
71 //
72 typedef UINT32 EFI_STATUS_CODE_VALUE;
73 //
74 // A Status Code Value is made up of the class, subclass, and
75 // an operation.
76 //
77 #define EFI_STATUS_CODE_CLASS_MASK 0xFF000000
78 #define EFI_STATUS_CODE_SUBCLASS_MASK 0x00FF0000
79 #define EFI_STATUS_CODE_OPERATION_MASK 0x0000FFFF
80 //
81 // Definition of Status Code extended data header.
82 // The data will follow HeaderSize bytes from the beginning of
83 // the structure and is Size bytes long.
84 //
85 typedef struct {
86 UINT16 HeaderSize;
87 UINT16 Size;
88 EFI_GUID Type;
89 } EFI_STATUS_CODE_DATA;
90
91 #endif