]>
Commit | Line | Data |
---|---|---|
b522c77b HW |
1 | /** @file\r |
2 | Status Code Definitions, according to Intel Platform Innovation Framework\r | |
3 | for EFI Status Codes Specification\r | |
4 | \r | |
5 | Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | \r | |
8 | @par Revision Reference:\r | |
9 | Intel Platform Innovation Framework for EFI Status Codes Specification\r | |
10 | Version 0.92.\r | |
11 | \r | |
12 | **/\r | |
13 | \r | |
14 | #ifndef _FRAMEWORK_STATUS_CODE_H_\r | |
15 | #define _FRAMEWORK_STATUS_CODE_H_\r | |
16 | \r | |
17 | //\r | |
18 | // Required for X64 defines for CPU exception types\r | |
19 | //\r | |
20 | #include <Protocol/DebugSupport.h>\r | |
21 | \r | |
22 | ///\r | |
23 | /// Software Class DXE BS Driver Subclass Progress Code definitions.\r | |
24 | ///\r | |
25 | /// Inconsistent with specification here:\r | |
26 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
27 | ///\r | |
28 | ///@{\r | |
ac0a286f MK |
29 | #define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS (EFI_SUBCLASS_SPECIFIC | 0x00000005)\r |
30 | #define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD (EFI_SUBCLASS_SPECIFIC | 0x00000006)\r | |
b522c77b HW |
31 | ///@}\r |
32 | \r | |
33 | ///\r | |
34 | /// Software Class DXE RT Driver Subclass Progress Code definitions.\r | |
35 | ///\r | |
36 | /// Inconsistent with specification here:\r | |
37 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
38 | ///\r | |
39 | ///@{\r | |
ac0a286f MK |
40 | #define EFI_SW_DXE_RT_PC_S0 (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r |
41 | #define EFI_SW_DXE_RT_PC_S1 (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
42 | #define EFI_SW_DXE_RT_PC_S2 (EFI_SUBCLASS_SPECIFIC | 0x00000002)\r | |
43 | #define EFI_SW_DXE_RT_PC_S3 (EFI_SUBCLASS_SPECIFIC | 0x00000003)\r | |
44 | #define EFI_SW_DXE_RT_PC_S4 (EFI_SUBCLASS_SPECIFIC | 0x00000004)\r | |
45 | #define EFI_SW_DXE_RT_PC_S5 (EFI_SUBCLASS_SPECIFIC | 0x00000005)\r | |
b522c77b HW |
46 | ///@}\r |
47 | \r | |
48 | ///\r | |
49 | /// Software Subclass definitions.\r | |
50 | ///\r | |
51 | /// Inconsistent with specification here:\r | |
52 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
53 | ///\r | |
ac0a286f | 54 | #define EFI_SOFTWARE_X64_EXCEPTION (EFI_SOFTWARE | 0x00130000)\r |
b522c77b HW |
55 | \r |
56 | ///\r | |
57 | /// Software Class X64 Exception Subclass Error Code definitions.\r | |
58 | /// These exceptions are derived from the debug protocol definitions in the EFI\r | |
59 | /// specification.\r | |
60 | ///\r | |
61 | /// Inconsistent with specification here:\r | |
62 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
63 | ///\r | |
64 | ///@{\r | |
ac0a286f MK |
65 | #define EFI_SW_EC_X64_DIVIDE_ERROR EXCEPT_X64_DIVIDE_ERROR\r |
66 | #define EFI_SW_EC_X64_DEBUG EXCEPT_X64_DEBUG\r | |
67 | #define EFI_SW_EC_X64_NMI EXCEPT_X64_NMI\r | |
68 | #define EFI_SW_EC_X64_BREAKPOINT EXCEPT_X64_BREAKPOINT\r | |
69 | #define EFI_SW_EC_X64_OVERFLOW EXCEPT_X64_OVERFLOW\r | |
70 | #define EFI_SW_EC_X64_BOUND EXCEPT_X64_BOUND\r | |
71 | #define EFI_SW_EC_X64_INVALID_OPCODE EXCEPT_X64_INVALID_OPCODE\r | |
72 | #define EFI_SW_EC_X64_DOUBLE_FAULT EXCEPT_X64_DOUBLE_FAULT\r | |
73 | #define EFI_SW_EC_X64_INVALID_TSS EXCEPT_X64_INVALID_TSS\r | |
74 | #define EFI_SW_EC_X64_SEG_NOT_PRESENT EXCEPT_X64_SEG_NOT_PRESENT\r | |
75 | #define EFI_SW_EC_X64_STACK_FAULT EXCEPT_X64_STACK_FAULT\r | |
76 | #define EFI_SW_EC_X64_GP_FAULT EXCEPT_X64_GP_FAULT\r | |
77 | #define EFI_SW_EC_X64_PAGE_FAULT EXCEPT_X64_PAGE_FAULT\r | |
78 | #define EFI_SW_EC_X64_FP_ERROR EXCEPT_X64_FP_ERROR\r | |
79 | #define EFI_SW_EC_X64_ALIGNMENT_CHECK EXCEPT_X64_ALIGNMENT_CHECK\r | |
80 | #define EFI_SW_EC_X64_MACHINE_CHECK EXCEPT_X64_MACHINE_CHECK\r | |
81 | #define EFI_SW_EC_X64_SIMD EXCEPT_X64_SIMD\r | |
b522c77b HW |
82 | ///@}\r |
83 | \r | |
84 | ///\r | |
85 | /// Software Class EFI After Life Subclass Progress Code definitions.\r | |
86 | ///\r | |
87 | ///@{\r | |
ac0a286f MK |
88 | #define EFI_SW_AL_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r |
89 | #define EFI_SW_AL_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
b522c77b HW |
90 | ///@}\r |
91 | \r | |
92 | ///\r | |
93 | /// Software Class DXE Core Subclass Error Code definitions.\r | |
94 | ///\r | |
95 | /// Inconsistent with specification here:\r | |
96 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
97 | ///\r | |
ac0a286f | 98 | #define EFI_SW_CSM_LEGACY_ROM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r |
b522c77b HW |
99 | \r |
100 | ///\r | |
101 | /// IO Bus Class ATA/ATAPI Subclass Progress Code definitions.\r | |
102 | ///\r | |
103 | ///\r | |
104 | /// Inconsistent with specification here:\r | |
105 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
106 | ///\r | |
107 | ///@{\r | |
108 | #define EFI_IOB_ATA_BUS_SMART_ENABLE (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r | |
109 | #define EFI_IOB_ATA_BUS_SMART_DISABLE (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
110 | #define EFI_IOB_ATA_BUS_SMART_OVERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000002)\r | |
111 | #define EFI_IOB_ATA_BUS_SMART_UNDERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000003)\r | |
112 | ///@}\r | |
113 | \r | |
114 | ///\r | |
115 | /// IO Bus Class ATA/ATAPI Subclass Error Code definitions.\r | |
116 | ///\r | |
117 | ///\r | |
118 | /// Inconsistent with specification here:\r | |
119 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
120 | ///\r | |
121 | ///@{\r | |
122 | #define EFI_IOB_ATA_BUS_SMART_NOTSUPPORTED (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r | |
123 | #define EFI_IOB_ATA_BUS_SMART_DISABLED (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
124 | ///@}\r | |
125 | \r | |
126 | ///\r | |
127 | /// The reason that the processor was disabled.\r | |
128 | ///\r | |
129 | /// Inconsistent with specification here:\r | |
130 | /// The Framework Specification, StatusCodes 0.92, does not define the macros.\r | |
131 | ///\r | |
132 | ///@{\r | |
ac0a286f | 133 | #define EFI_CPU_CAUSE_NOT_DISABLED 0x0000\r |
b522c77b HW |
134 | ///@}\r |
135 | \r | |
136 | ///\r | |
137 | /// Software Class PEI Module Subclass Progress Code definitions.\r | |
138 | ///\r | |
139 | ///@{\r | |
140 | #define EFI_SW_PEIM_PC_RECOVERY_BEGIN EFI_SW_PEI_PC_RECOVERY_BEGIN\r | |
141 | #define EFI_SW_PEIM_PC_CAPSULE_LOAD EFI_SW_PEI_PC_CAPSULE_LOAD\r | |
142 | #define EFI_SW_PEIM_PC_CAPSULE_START EFI_SW_PEI_PC_CAPSULE_START\r | |
143 | #define EFI_SW_PEIM_PC_RECOVERY_USER EFI_SW_PEI_PC_RECOVERY_USER\r | |
144 | #define EFI_SW_PEIM_PC_RECOVERY_AUTO EFI_SW_PEI_PC_RECOVERY_AUTO\r | |
145 | ///@}\r | |
146 | \r | |
147 | ///\r | |
148 | /// Software Class PEI Core Subclass Error Code definitions.\r | |
149 | ///\r | |
150 | ///@{\r | |
151 | #define EFI_SW_PEIM_CORE_EC_DXE_CORRUPT EFI_SW_PEI_CORE_EC_DXE_CORRUPT\r | |
152 | #define EFI_SW_PEIM_CORE_EC_DXEIPL_NOT_FOUND EFI_SW_PEI_CORE_EC_DXEIPL_NOT_FOUND\r | |
153 | ///@}\r | |
154 | \r | |
155 | #endif\r |