]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkPkg/Include/Framework/StatusCode.h
30fde7b0bc4ae8ab75b77998fec45f6ce5ab07c3
[mirror_edk2.git] / IntelFrameworkPkg / Include / Framework / StatusCode.h
1 /** @file
2 Status Code Definitions, according to Intel Platform Innovation Framework
3 for EFI Status Codes Specification
4
5 The file is divided into sections for ease of use.
6
7 <pre>
8 Section: Contents:
9 1 Class definitions
10 2 Computing Unit Subclasses, Progress and Error Codes
11 3 Peripheral Subclasses, Progress and Error Codes.
12 4 IO Bus Subclasses, Progress and Error Codes.
13 5 Software Subclasses, Progress and Error Codes.
14 6 Debug Codes
15 </pre>
16
17 Copyright (c) 2007, Intel Corporation
18 All rights reserved. This program and the accompanying materials
19 are licensed and made available under the terms and conditions of the BSD License
20 which accompanies this distribution. The full text of the license may be found at
21 http://opensource.org/licenses/bsd-license.php
22
23 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
24 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
25
26 @par Revision Reference:
27 Intel Platform Innovation Framework for EFI Status Codes Specification
28 Version 0.92.
29
30 **/
31
32 #ifndef _STATUS_CODE_H_
33 #define _STATUS_CODE_H_
34
35 #include <Protocol/DebugSupport.h>
36 ///
37 /// Section 1
38 /// Class definitions
39 /// Values of 4-127 are reserved for future use by this
40 /// specification.
41 /// Values in the range 127-255 are reserved for OEM use.
42 ///@{
43 #define EFI_COMPUTING_UNIT 0x00000000
44 #define EFI_PERIPHERAL 0x01000000
45 #define EFI_IO_BUS 0x02000000
46 #define EFI_SOFTWARE 0x03000000
47 ///@}
48
49 ///
50 /// General partitioning scheme for Progress and Error Codes are
51 /// 0x0000-0x0FFF - Shared by all sub-classes in a given class
52 /// 0x1000-0x7FFF - Subclass Specific
53 /// 0x8000-0xFFFF - OEM specific
54 ///@{
55 #define EFI_SUBCLASS_SPECIFIC 0x1000
56 #define EFI_OEM_SPECIFIC 0x8000
57 ///@}
58
59 ///
60 /// Section 2
61 /// Computing Unit Subclass definitions.
62 /// Values of 8-127 are reserved for future use by this
63 /// specification.
64 /// Values of 128-255 are reserved for OEM use.
65 ///@{
66 #define EFI_COMPUTING_UNIT_UNSPECIFIED (EFI_COMPUTING_UNIT | 0x00000000)
67 #define EFI_COMPUTING_UNIT_HOST_PROCESSOR (EFI_COMPUTING_UNIT | 0x00010000)
68 #define EFI_COMPUTING_UNIT_FIRMWARE_PROCESSOR (EFI_COMPUTING_UNIT | 0x00020000)
69 #define EFI_COMPUTING_UNIT_IO_PROCESSOR (EFI_COMPUTING_UNIT | 0x00030000)
70 #define EFI_COMPUTING_UNIT_CACHE (EFI_COMPUTING_UNIT | 0x00040000)
71 #define EFI_COMPUTING_UNIT_MEMORY (EFI_COMPUTING_UNIT | 0x00050000)
72 #define EFI_COMPUTING_UNIT_CHIPSET (EFI_COMPUTING_UNIT | 0x00060000)
73 ///@}
74
75 ///
76 /// Computing Unit Class Progress Code definitions.
77 /// These are shared by all subclasses.
78 ///@{
79 #define EFI_CU_PC_INIT_BEGIN 0x00000000
80 #define EFI_CU_PC_INIT_END 0x00000001
81 ///@}
82
83 ///
84 /// The reason that the processor was disabled.
85 ///@{
86 #define EFI_CPU_CAUSE_NOT_DISABLED 0x0000
87 #define EFI_CPU_CAUSE_INTERNAL_ERROR 0x0001
88 #define EFI_CPU_CAUSE_THERMAL_ERROR 0x0002
89 #define EFI_CPU_CAUSE_SELFTEST_FAILURE 0x0004
90 #define EFI_CPU_CAUSE_PREBOOT_TIMEOUT 0x0008
91 #define EFI_CPU_CAUSE_FAILED_TO_START 0x0010
92 #define EFI_CPU_CAUSE_CONFIG_ERROR 0x0020
93 #define EFI_CPU_CAUSE_USER_SELECTION 0x0080
94 #define EFI_CPU_CAUSE_BY_ASSOCIATION 0x0100
95 #define EFI_CPU_CAUSE_UNSPECIFIED 0x8000
96 ///@}
97
98 typedef UINT32 EFI_CPU_STATE_CHANGE_CAUSE;
99 //
100 // Computing Unit Unspecified Subclass Progress Code definitions.
101 //
102 ///
103 /// Computing Unit Host Processor Subclass Progress Code definitions.
104 ///@{
105 #define EFI_CU_HP_PC_POWER_ON_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
106 #define EFI_CU_HP_PC_CACHE_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
107 #define EFI_CU_HP_PC_RAM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000002)
108 #define EFI_CU_HP_PC_MEMORY_CONTROLLER_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000003)
109 #define EFI_CU_HP_PC_IO_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000004)
110 #define EFI_CU_HP_PC_BSP_SELECT (EFI_SUBCLASS_SPECIFIC | 0x00000005)
111 #define EFI_CU_HP_PC_BSP_RESELECT (EFI_SUBCLASS_SPECIFIC | 0x00000006)
112 #define EFI_CU_HP_PC_AP_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000007)
113 #define EFI_CU_HP_PC_SMM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000008)
114 ///@}
115
116 //
117 // Computing Unit Firmware Processor Subclass Progress Code definitions.
118 //
119 //
120 // Computing Unit IO Processor Subclass Progress Code definitions.
121 //
122 ///
123 /// Computing Unit Cache Subclass Progress Code definitions.
124 ///@{
125 #define EFI_CU_CACHE_PC_PRESENCE_DETECT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
126 #define EFI_CU_CACHE_PC_CONFIGURATION (EFI_SUBCLASS_SPECIFIC | 0x00000001)
127 ///@}
128
129 ///
130 /// Computing Unit Memory Subclass Progress Code definitions.
131 ///@{
132 #define EFI_CU_MEMORY_PC_SPD_READ (EFI_SUBCLASS_SPECIFIC | 0x00000000)
133 #define EFI_CU_MEMORY_PC_PRESENCE_DETECT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
134 #define EFI_CU_MEMORY_PC_TIMING (EFI_SUBCLASS_SPECIFIC | 0x00000002)
135 #define EFI_CU_MEMORY_PC_CONFIGURING (EFI_SUBCLASS_SPECIFIC | 0x00000003)
136 #define EFI_CU_MEMORY_PC_OPTIMIZING (EFI_SUBCLASS_SPECIFIC | 0x00000004)
137 #define EFI_CU_MEMORY_PC_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000005)
138 #define EFI_CU_MEMORY_PC_TEST (EFI_SUBCLASS_SPECIFIC | 0x00000006)
139 ///@}
140
141 //
142 // Computing Unit Chipset Subclass Progress Code definitions.
143 //
144 ///
145 /// Computing Unit Class Error Code definitions.
146 /// These are shared by all subclasses.
147 ///@{
148 #define EFI_CU_EC_NON_SPECIFIC 0x00000000
149 #define EFI_CU_EC_DISABLED 0x00000001
150 #define EFI_CU_EC_NOT_SUPPORTED 0x00000002
151 #define EFI_CU_EC_NOT_DETECTED 0x00000003
152 #define EFI_CU_EC_NOT_CONFIGURED 0x00000004
153 ///@}
154
155 //
156 // Computing Unit Unspecified Subclass Error Code definitions.
157 //
158 ///
159 /// Computing Unit Host Processor Subclass Error Code definitions.
160 ///@{
161 #define EFI_CU_HP_EC_INVALID_TYPE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
162 #define EFI_CU_HP_EC_INVALID_SPEED (EFI_SUBCLASS_SPECIFIC | 0x00000001)
163 #define EFI_CU_HP_EC_MISMATCH (EFI_SUBCLASS_SPECIFIC | 0x00000002)
164 #define EFI_CU_HP_EC_TIMER_EXPIRED (EFI_SUBCLASS_SPECIFIC | 0x00000003)
165 #define EFI_CU_HP_EC_SELF_TEST (EFI_SUBCLASS_SPECIFIC | 0x00000004)
166 #define EFI_CU_HP_EC_INTERNAL (EFI_SUBCLASS_SPECIFIC | 0x00000005)
167 #define EFI_CU_HP_EC_THERMAL (EFI_SUBCLASS_SPECIFIC | 0x00000006)
168 #define EFI_CU_HP_EC_LOW_VOLTAGE (EFI_SUBCLASS_SPECIFIC | 0x00000007)
169 #define EFI_CU_HP_EC_HIGH_VOLTAGE (EFI_SUBCLASS_SPECIFIC | 0x00000008)
170 #define EFI_CU_HP_EC_CACHE (EFI_SUBCLASS_SPECIFIC | 0x00000009)
171 #define EFI_CU_HP_EC_MICROCODE_UPDATE (EFI_SUBCLASS_SPECIFIC | 0x0000000A)
172 #define EFI_CU_HP_EC_CORRECTABLE (EFI_SUBCLASS_SPECIFIC | 0x0000000B)
173 #define EFI_CU_HP_EC_UNCORRECTABLE (EFI_SUBCLASS_SPECIFIC | 0x0000000C)
174 #define EFI_CU_HP_EC_NO_MICROCODE_UPDATE (EFI_SUBCLASS_SPECIFIC | 0x0000000D)
175 ///@}
176
177 ///
178 /// Computing Unit Firmware Processor Subclass Error Code definitions.
179 ///@{
180 #define EFI_CU_FP_EC_HARD_FAIL (EFI_SUBCLASS_SPECIFIC | 0x00000000)
181 #define EFI_CU_FP_EC_SOFT_FAIL (EFI_SUBCLASS_SPECIFIC | 0x00000001)
182 #define EFI_CU_FP_EC_COMM_ERROR (EFI_SUBCLASS_SPECIFIC | 0x00000002)
183 ///@}
184
185 //
186 // Computing Unit IO Processor Subclass Error Code definitions.
187 //
188 ///
189 /// Computing Unit Cache Subclass Error Code definitions.
190 ///@{
191 #define EFI_CU_CACHE_EC_INVALID_TYPE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
192 #define EFI_CU_CACHE_EC_INVALID_SPEED (EFI_SUBCLASS_SPECIFIC | 0x00000001)
193 #define EFI_CU_CACHE_EC_INVALID_SIZE (EFI_SUBCLASS_SPECIFIC | 0x00000002)
194 #define EFI_CU_CACHE_EC_MISMATCH (EFI_SUBCLASS_SPECIFIC | 0x00000003)
195 ///@}
196
197 ///
198 /// Computing Unit Memory Subclass Error Code definitions.
199 ///@{
200 #define EFI_CU_MEMORY_EC_INVALID_TYPE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
201 #define EFI_CU_MEMORY_EC_INVALID_SPEED (EFI_SUBCLASS_SPECIFIC | 0x00000001)
202 #define EFI_CU_MEMORY_EC_CORRECTABLE (EFI_SUBCLASS_SPECIFIC | 0x00000002)
203 #define EFI_CU_MEMORY_EC_UNCORRECTABLE (EFI_SUBCLASS_SPECIFIC | 0x00000003)
204 #define EFI_CU_MEMORY_EC_SPD_FAIL (EFI_SUBCLASS_SPECIFIC | 0x00000004)
205 #define EFI_CU_MEMORY_EC_INVALID_SIZE (EFI_SUBCLASS_SPECIFIC | 0x00000005)
206 #define EFI_CU_MEMORY_EC_MISMATCH (EFI_SUBCLASS_SPECIFIC | 0x00000006)
207 #define EFI_CU_MEMORY_EC_S3_RESUME_FAIL (EFI_SUBCLASS_SPECIFIC | 0x00000007)
208 #define EFI_CU_MEMORY_EC_UPDATE_FAIL (EFI_SUBCLASS_SPECIFIC | 0x00000008)
209 #define EFI_CU_MEMORY_EC_NONE_DETECTED (EFI_SUBCLASS_SPECIFIC | 0x00000009)
210 #define EFI_CU_MEMORY_EC_NONE_USEFUL (EFI_SUBCLASS_SPECIFIC | 0x0000000A)
211 ///@}
212
213 //
214 // Computing Unit Chipset Subclass Error Code definitions.
215 //
216
217 ///
218 /// Section 3
219 /// Peripheral Subclass definitions.
220 /// Values of 12-127 are reserved for future use by this
221 /// specification.
222 /// Values of 128-255 are reserved for OEM use.
223 ///@{
224 #define EFI_PERIPHERAL_UNSPECIFIED (EFI_PERIPHERAL | 0x00000000)
225 #define EFI_PERIPHERAL_KEYBOARD (EFI_PERIPHERAL | 0x00010000)
226 #define EFI_PERIPHERAL_MOUSE (EFI_PERIPHERAL | 0x00020000)
227 #define EFI_PERIPHERAL_LOCAL_CONSOLE (EFI_PERIPHERAL | 0x00030000)
228 #define EFI_PERIPHERAL_REMOTE_CONSOLE (EFI_PERIPHERAL | 0x00040000)
229 #define EFI_PERIPHERAL_SERIAL_PORT (EFI_PERIPHERAL | 0x00050000)
230 #define EFI_PERIPHERAL_PARALLEL_PORT (EFI_PERIPHERAL | 0x00060000)
231 #define EFI_PERIPHERAL_FIXED_MEDIA (EFI_PERIPHERAL | 0x00070000)
232 #define EFI_PERIPHERAL_REMOVABLE_MEDIA (EFI_PERIPHERAL | 0x00080000)
233 #define EFI_PERIPHERAL_AUDIO_INPUT (EFI_PERIPHERAL | 0x00090000)
234 #define EFI_PERIPHERAL_AUDIO_OUTPUT (EFI_PERIPHERAL | 0x000A0000)
235 #define EFI_PERIPHERAL_LCD_DEVICE (EFI_PERIPHERAL | 0x000B0000)
236 #define EFI_PERIPHERAL_NETWORK (EFI_PERIPHERAL | 0x000C0000)
237 ///@}
238
239 ///
240 /// Peripheral Class Progress Code definitions.
241 /// These are shared by all subclasses.
242 ///@{
243 #define EFI_P_PC_INIT 0x00000000
244 #define EFI_P_PC_RESET 0x00000001
245 #define EFI_P_PC_DISABLE 0x00000002
246 #define EFI_P_PC_PRESENCE_DETECT 0x00000003
247 #define EFI_P_PC_ENABLE 0x00000004
248 #define EFI_P_PC_RECONFIG 0x00000005
249 #define EFI_P_PC_DETECTED 0x00000006
250 ///@}
251
252 //
253 // Peripheral Class Unspecified Subclass Progress Code definitions.
254 //
255 ///
256 /// Peripheral Class Keyboard Subclass Progress Code definitions.
257 ///@{
258 #define EFI_P_KEYBOARD_PC_CLEAR_BUFFER (EFI_SUBCLASS_SPECIFIC | 0x00000000)
259 #define EFI_P_KEYBOARD_PC_SELF_TEST (EFI_SUBCLASS_SPECIFIC | 0x00000001)
260 ///@}
261
262 //
263 // Peripheral Class Mouse Subclass Progress Code definitions.
264 //
265 #define EFI_P_MOUSE_PC_SELF_TEST (EFI_SUBCLASS_SPECIFIC | 0x00000000)
266
267 //
268 // Peripheral Class Local Console Subclass Progress Code definitions.
269 //
270 //
271 // Peripheral Class Remote Console Subclass Progress Code definitions.
272 //
273 //
274 // Peripheral Class Serial Port Subclass Progress Code definitions.
275 //
276 #define EFI_P_SERIAL_PORT_PC_CLEAR_BUFFER (EFI_SUBCLASS_SPECIFIC | 0x00000000)
277
278 //
279 // Peripheral Class Parallel Port Subclass Progress Code definitions.
280 //
281 //
282 // Peripheral Class Fixed Media Subclass Progress Code definitions.
283 //
284 //
285 // Peripheral Class Removable Media Subclass Progress Code definitions.
286 //
287 //
288 // Peripheral Class Audio Input Subclass Progress Code definitions.
289 //
290 //
291 // Peripheral Class Audio Output Subclass Progress Code definitions.
292 //
293 //
294 // Peripheral Class LCD Device Subclass Progress Code definitions.
295 //
296 //
297 // Peripheral Class Network Subclass Progress Code definitions.
298 //
299 ///
300 /// Peripheral Class Error Code definitions.
301 /// These are shared by all subclasses.
302 ///@{
303 #define EFI_P_EC_NON_SPECIFIC 0x00000000
304 #define EFI_P_EC_DISABLED 0x00000001
305 #define EFI_P_EC_NOT_SUPPORTED 0x00000002
306 #define EFI_P_EC_NOT_DETECTED 0x00000003
307 #define EFI_P_EC_NOT_CONFIGURED 0x00000004
308 #define EFI_P_EC_INTERFACE_ERROR 0x00000005
309 #define EFI_P_EC_CONTROLLER_ERROR 0x00000006
310 #define EFI_P_EC_INPUT_ERROR 0x00000007
311 #define EFI_P_EC_OUTPUT_ERROR 0x00000008
312 #define EFI_P_EC_RESOURCE_CONFLICT 0x00000009
313 ///@}
314
315 //
316 // Peripheral Class Unspecified Subclass Error Code definitions.
317 //
318 ///
319 /// Peripheral Class Keyboard Subclass Error Code definitions.
320 ///@{
321 #define EFI_P_KEYBOARD_EC_LOCKED (EFI_SUBCLASS_SPECIFIC | 0x00000000)
322 #define EFI_P_KEYBOARD_EC_STUCK_KEY (EFI_SUBCLASS_SPECIFIC | 0x00000001)
323 ///@}
324
325 //
326 // Peripheral Class Mouse Subclass Error Code definitions.
327 //
328 #define EFI_P_MOUSE_EC_LOCKED (EFI_SUBCLASS_SPECIFIC | 0x00000000)
329
330 //
331 // Peripheral Class Local Console Subclass Error Code definitions.
332 //
333 //
334 // Peripheral Class Remote Console Subclass Error Code definitions.
335 //
336 //
337 // Peripheral Class Serial Port Subclass Error Code definitions.
338 //
339 //
340 // Peripheral Class Parallel Port Subclass Error Code definitions.
341 //
342 //
343 // Peripheral Class Fixed Media Subclass Error Code definitions.
344 //
345 //
346 // Peripheral Class Removable Media Subclass Error Code definitions.
347 //
348 //
349 // Peripheral Class Audio Input Subclass Error Code definitions.
350 //
351 //
352 // Peripheral Class Audio Output Subclass Error Code definitions.
353 //
354 //
355 // Peripheral Class LCD Device Subclass Error Code definitions.
356 //
357 //
358 // Peripheral Class Network Subclass Error Code definitions.
359 //
360
361 ///
362 /// Section 4
363 /// IO Bus Subclass definitions.
364 /// Values of 14-127 are reserved for future use by this
365 /// specification.
366 /// Values of 128-255 are reserved for OEM use.
367 ///@{
368 #define EFI_IO_BUS_UNSPECIFIED (EFI_IO_BUS | 0x00000000)
369 #define EFI_IO_BUS_PCI (EFI_IO_BUS | 0x00010000)
370 #define EFI_IO_BUS_USB (EFI_IO_BUS | 0x00020000)
371 #define EFI_IO_BUS_IBA (EFI_IO_BUS | 0x00030000)
372 #define EFI_IO_BUS_AGP (EFI_IO_BUS | 0x00040000)
373 #define EFI_IO_BUS_PC_CARD (EFI_IO_BUS | 0x00050000)
374 #define EFI_IO_BUS_LPC (EFI_IO_BUS | 0x00060000)
375 #define EFI_IO_BUS_SCSI (EFI_IO_BUS | 0x00070000)
376 #define EFI_IO_BUS_ATA_ATAPI (EFI_IO_BUS | 0x00080000)
377 #define EFI_IO_BUS_FC (EFI_IO_BUS | 0x00090000)
378 #define EFI_IO_BUS_IP_NETWORK (EFI_IO_BUS | 0x000A0000)
379 #define EFI_IO_BUS_SMBUS (EFI_IO_BUS | 0x000B0000)
380 #define EFI_IO_BUS_I2C (EFI_IO_BUS | 0x000C0000)
381 ///@}
382
383 ///
384 /// IO Bus Class Progress Code definitions.
385 /// These are shared by all subclasses.
386 ///@{
387 #define EFI_IOB_PC_INIT 0x00000000
388 #define EFI_IOB_PC_RESET 0x00000001
389 #define EFI_IOB_PC_DISABLE 0x00000002
390 #define EFI_IOB_PC_DETECT 0x00000003
391 #define EFI_IOB_PC_ENABLE 0x00000004
392 #define EFI_IOB_PC_RECONFIG 0x00000005
393 #define EFI_IOB_PC_HOTPLUG 0x00000006
394 ///@}
395
396 //
397 // IO Bus Class Unspecified Subclass Progress Code definitions.
398 //
399 ///
400 /// IO Bus Class PCI Subclass Progress Code definitions.
401 ///@{
402 #define EFI_IOB_PCI_PC_BUS_ENUM (EFI_SUBCLASS_SPECIFIC | 0x00000000)
403 #define EFI_IOB_PCI_PC_RES_ALLOC (EFI_SUBCLASS_SPECIFIC | 0x00000001)
404 #define EFI_IOB_PCI_PC_HPC_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000002)
405 ///@}
406
407 //
408 // IO Bus Class USB Subclass Progress Code definitions.
409 //
410 //
411 // IO Bus Class IBA Subclass Progress Code definitions.
412 //
413 //
414 // IO Bus Class AGP Subclass Progress Code definitions.
415 //
416 //
417 // IO Bus Class PC Card Subclass Progress Code definitions.
418 //
419 //
420 // IO Bus Class LPC Subclass Progress Code definitions.
421 //
422 //
423 // IO Bus Class SCSI Subclass Progress Code definitions.
424 //
425 //
426 // IO Bus Class ATA/ATAPI Subclass Progress Code definitions.
427 //
428 ///
429 /// Inconsistent with specification here:
430 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
431 /// is expected to be adopt by PI Spec.
432 ///@{
433 #define EFI_IOB_ATA_BUS_SMART_ENABLE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
434 #define EFI_IOB_ATA_BUS_SMART_DISABLE (EFI_SUBCLASS_SPECIFIC | 0x00000001)
435 #define EFI_IOB_ATA_BUS_SMART_OVERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000002)
436 #define EFI_IOB_ATA_BUS_SMART_UNDERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000003)
437 ///@}
438
439 //
440 // IO Bus Class FC Subclass Progress Code definitions.
441 //
442 //
443 // IO Bus Class IP Network Subclass Progress Code definitions.
444 //
445 //
446 // IO Bus Class SMBUS Subclass Progress Code definitions.
447 //
448 //
449 // IO Bus Class I2C Subclass Progress Code definitions.
450 //
451 ///
452 /// IO Bus Class Error Code definitions.
453 /// These are shared by all subclasses.
454 ///@{
455 #define EFI_IOB_EC_NON_SPECIFIC 0x00000000
456 #define EFI_IOB_EC_DISABLED 0x00000001
457 #define EFI_IOB_EC_NOT_SUPPORTED 0x00000002
458 #define EFI_IOB_EC_NOT_DETECTED 0x00000003
459 #define EFI_IOB_EC_NOT_CONFIGURED 0x00000004
460 #define EFI_IOB_EC_INTERFACE_ERROR 0x00000005
461 #define EFI_IOB_EC_CONTROLLER_ERROR 0x00000006
462 #define EFI_IOB_EC_READ_ERROR 0x00000007
463 #define EFI_IOB_EC_WRITE_ERROR 0x00000008
464 #define EFI_IOB_EC_RESOURCE_CONFLICT 0x00000009
465 ///@}
466
467 //
468 // IO Bus Class Unspecified Subclass Error Code definitions.
469 //
470 ///
471 /// IO Bus Class PCI Subclass Error Code definitions.
472 ///@{
473 #define EFI_IOB_PCI_EC_PERR (EFI_SUBCLASS_SPECIFIC | 0x00000000)
474 #define EFI_IOB_PCI_EC_SERR (EFI_SUBCLASS_SPECIFIC | 0x00000001)
475 ///@}
476
477 //
478 // IO Bus Class USB Subclass Error Code definitions.
479 //
480 //
481 // IO Bus Class IBA Subclass Error Code definitions.
482 //
483 //
484 // IO Bus Class AGP Subclass Error Code definitions.
485 //
486 //
487 // IO Bus Class PC Card Subclass Error Code definitions.
488 //
489 //
490 // IO Bus Class LPC Subclass Error Code definitions.
491 //
492 //
493 // IO Bus Class SCSI Subclass Error Code definitions.
494 //
495 //
496 // IO Bus Class ATA/ATAPI Subclass Error Code definitions.
497 //
498 ///
499 /// Inconsistent with specification here:
500 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
501 /// is expected to be adopt by PI Spec.
502 ///@{
503 #define EFI_IOB_ATA_BUS_SMART_NOTSUPPORTED (EFI_SUBCLASS_SPECIFIC | 0x00000000)
504 #define EFI_IOB_ATA_BUS_SMART_DISABLED (EFI_SUBCLASS_SPECIFIC | 0x00000001)
505 ///@}
506
507 //
508 // IO Bus Class FC Subclass Error Code definitions.
509 //
510 //
511 // IO Bus Class IP Network Subclass Error Code definitions.
512 //
513 //
514 // IO Bus Class SMBUS Subclass Error Code definitions.
515 //
516 //
517 // IO Bus Class I2C Subclass Error Code definitions.
518 //
519
520 ///
521 /// Section 5
522 /// Software Subclass definitions.
523 /// Values of 14-127 are reserved for future use by this
524 /// specification.
525 /// Values of 128-255 are reserved for OEM use.
526 ///@{
527 #define EFI_SOFTWARE_UNSPECIFIED (EFI_SOFTWARE | 0x00000000)
528 #define EFI_SOFTWARE_SEC (EFI_SOFTWARE | 0x00010000)
529 #define EFI_SOFTWARE_PEI_CORE (EFI_SOFTWARE | 0x00020000)
530 #define EFI_SOFTWARE_PEI_MODULE (EFI_SOFTWARE | 0x00030000)
531 #define EFI_SOFTWARE_DXE_CORE (EFI_SOFTWARE | 0x00040000)
532 #define EFI_SOFTWARE_DXE_BS_DRIVER (EFI_SOFTWARE | 0x00050000)
533 #define EFI_SOFTWARE_DXE_RT_DRIVER (EFI_SOFTWARE | 0x00060000)
534 #define EFI_SOFTWARE_SMM_DRIVER (EFI_SOFTWARE | 0x00070000)
535 #define EFI_SOFTWARE_EFI_APPLICATION (EFI_SOFTWARE | 0x00080000)
536 #define EFI_SOFTWARE_EFI_OS_LOADER (EFI_SOFTWARE | 0x00090000)
537 #define EFI_SOFTWARE_RT (EFI_SOFTWARE | 0x000A0000)
538 #define EFI_SOFTWARE_AL (EFI_SOFTWARE | 0x000B0000)
539 #define EFI_SOFTWARE_EBC_EXCEPTION (EFI_SOFTWARE | 0x000C0000)
540 #define EFI_SOFTWARE_IA32_EXCEPTION (EFI_SOFTWARE | 0x000D0000)
541 #define EFI_SOFTWARE_IPF_EXCEPTION (EFI_SOFTWARE | 0x000E0000)
542 #define EFI_SOFTWARE_PEI_SERVICE (EFI_SOFTWARE | 0x000F0000)
543 #define EFI_SOFTWARE_EFI_BOOT_SERVICE (EFI_SOFTWARE | 0x00100000)
544 #define EFI_SOFTWARE_EFI_RUNTIME_SERVICE (EFI_SOFTWARE | 0x00110000)
545 #define EFI_SOFTWARE_EFI_DXE_SERVICE (EFI_SOFTWARE | 0x00120000)
546 ///
547 /// Inconsistent with specification here:
548 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
549 /// is expected to be adopt by PI Spec.
550 ///
551 #define EFI_SOFTWARE_X64_EXCEPTION (EFI_SOFTWARE | 0x00130000)
552 ///@}
553
554 ///
555 /// Software Class Progress Code definitions.
556 /// These are shared by all subclasses.
557 ///@{
558 #define EFI_SW_PC_INIT 0x00000000
559 #define EFI_SW_PC_LOAD 0x00000001
560 #define EFI_SW_PC_INIT_BEGIN 0x00000002
561 #define EFI_SW_PC_INIT_END 0x00000003
562 #define EFI_SW_PC_AUTHENTICATE_BEGIN 0x00000004
563 #define EFI_SW_PC_AUTHENTICATE_END 0x00000005
564 #define EFI_SW_PC_INPUT_WAIT 0x00000006
565 #define EFI_SW_PC_USER_SETUP 0x00000007
566 ///@}
567
568 //
569 // Software Class Unspecified Subclass Progress Code definitions.
570 //
571 ///
572 /// Software Class SEC Subclass Progress Code definitions.
573 ///@{
574 #define EFI_SW_SEC_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
575 #define EFI_SW_SEC_PC_HANDOFF_TO_NEXT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
576 ///@}
577
578 ///
579 /// Software Class PEI Core Subclass Progress Code definitions.
580 ///@{
581 #define EFI_SW_PEI_CORE_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
582 #define EFI_SW_PEI_CORE_PC_HANDOFF_TO_NEXT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
583 #define EFI_SW_PEI_CORE_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000002)
584 ///@}
585
586 ///
587 /// Software Class PEI Module Subclass Progress Code definitions.
588 ///@{
589 #define EFI_SW_PEIM_PC_RECOVERY_BEGIN (EFI_SUBCLASS_SPECIFIC | 0x00000000)
590 #define EFI_SW_PEIM_PC_CAPSULE_LOAD (EFI_SUBCLASS_SPECIFIC | 0x00000001)
591 #define EFI_SW_PEIM_PC_CAPSULE_START (EFI_SUBCLASS_SPECIFIC | 0x00000002)
592 #define EFI_SW_PEIM_PC_RECOVERY_USER (EFI_SUBCLASS_SPECIFIC | 0x00000003)
593 #define EFI_SW_PEIM_PC_RECOVERY_AUTO (EFI_SUBCLASS_SPECIFIC | 0x00000004)
594 ///@}
595
596 ///
597 /// Software Class DXE Core Subclass Progress Code definitions.
598 ///@{
599 #define EFI_SW_DXE_CORE_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
600 #define EFI_SW_DXE_CORE_PC_HANDOFF_TO_NEXT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
601 #define EFI_SW_DXE_CORE_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000002)
602 #define EFI_SW_DXE_CORE_PC_START_DRIVER (EFI_SUBCLASS_SPECIFIC | 0x00000003)
603 ///@}
604
605 ///
606 /// Software Class DXE BS Driver Subclass Progress Code definitions.
607 ///@{
608 #define EFI_SW_DXE_BS_PC_LEGACY_OPROM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
609 #define EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
610 #define EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000002)
611 #define EFI_SW_DXE_BS_PC_EXIT_BOOT_SERVICES_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000003)
612 #define EFI_SW_DXE_BS_PC_VIRTUAL_ADDRESS_CHANGE_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000004)
613 ///@}
614
615 ///
616 /// Inconsistent with specification here:
617 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
618 /// is expected to be adopt by PI Spec.
619 ///@{
620 #define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS (EFI_SUBCLASS_SPECIFIC | 0x00000005)
621 #define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD (EFI_SUBCLASS_SPECIFIC | 0x00000006)
622 ///@}
623
624 ///
625 /// Software Class DXE RT Driver Subclass Progress Code definitions.
626 ///
627 /// Inconsistent with specification here:
628 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
629 /// is expected to be adopt by PI Spec.
630 ///@{
631 #define EFI_SW_DXE_RT_PC_S0 (EFI_SUBCLASS_SPECIFIC | 0x00000000)
632 #define EFI_SW_DXE_RT_PC_S1 (EFI_SUBCLASS_SPECIFIC | 0x00000001)
633 #define EFI_SW_DXE_RT_PC_S2 (EFI_SUBCLASS_SPECIFIC | 0x00000002)
634 #define EFI_SW_DXE_RT_PC_S3 (EFI_SUBCLASS_SPECIFIC | 0x00000003)
635 #define EFI_SW_DXE_RT_PC_S4 (EFI_SUBCLASS_SPECIFIC | 0x00000004)
636 #define EFI_SW_DXE_RT_PC_S5 (EFI_SUBCLASS_SPECIFIC | 0x00000005)
637 ///@}
638
639 //
640 // Software Class SMM Driver Subclass Progress Code definitions.
641 //
642 //
643 // Software Class EFI Application Subclass Progress Code definitions.
644 //
645 //
646 // Software Class EFI OS Loader Subclass Progress Code definitions.
647 //
648 ///
649 /// Software Class EFI RT Subclass Progress Code definitions.
650 ///@{
651 #define EFI_SW_RT_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
652 #define EFI_SW_RT_PC_HANDOFF_TO_NEXT (EFI_SUBCLASS_SPECIFIC | 0x00000001)
653 #define EFI_SW_RT_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000002)
654 ///@}
655
656 ///
657 /// Software Class EFI AL Subclass Progress Code definitions.
658 ///@{
659 #define EFI_SW_AL_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
660 #define EFI_SW_AL_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000001)
661 ///@}
662
663 //
664 // Software Class EBC Exception Subclass Progress Code definitions.
665 //
666 //
667 // Software Class IA32 Exception Subclass Progress Code definitions.
668 //
669 //
670 // Software Class X64 Exception Subclass Progress Code definitions.
671 //
672 //
673 // Software Class IPF Exception Subclass Progress Code definitions.
674 //
675 ///
676 /// Software Class PEI Services Subclass Progress Code definitions.
677 ///@{
678 #define EFI_SW_PS_PC_INSTALL_PPI (EFI_SUBCLASS_SPECIFIC | 0x00000000)
679 #define EFI_SW_PS_PC_REINSTALL_PPI (EFI_SUBCLASS_SPECIFIC | 0x00000001)
680 #define EFI_SW_PS_PC_LOCATE_PPI (EFI_SUBCLASS_SPECIFIC | 0x00000002)
681 #define EFI_SW_PS_PC_NOTIFY_PPI (EFI_SUBCLASS_SPECIFIC | 0x00000003)
682 #define EFI_SW_PS_PC_GET_BOOT_MODE (EFI_SUBCLASS_SPECIFIC | 0x00000004)
683 #define EFI_SW_PS_PC_SET_BOOT_MODE (EFI_SUBCLASS_SPECIFIC | 0x00000005)
684 #define EFI_SW_PS_PC_GET_HOB_LIST (EFI_SUBCLASS_SPECIFIC | 0x00000006)
685 #define EFI_SW_PS_PC_CREATE_HOB (EFI_SUBCLASS_SPECIFIC | 0x00000007)
686 #define EFI_SW_PS_PC_FFS_FIND_NEXT_VOLUME (EFI_SUBCLASS_SPECIFIC | 0x00000008)
687 #define EFI_SW_PS_PC_FFS_FIND_NEXT_FILE (EFI_SUBCLASS_SPECIFIC | 0x00000009)
688 #define EFI_SW_PS_PC_FFS_FIND_SECTION_DATA (EFI_SUBCLASS_SPECIFIC | 0x0000000A)
689 #define EFI_SW_PS_PC_INSTALL_PEI_MEMORY (EFI_SUBCLASS_SPECIFIC | 0x0000000B)
690 #define EFI_SW_PS_PC_ALLOCATE_PAGES (EFI_SUBCLASS_SPECIFIC | 0x0000000C)
691 #define EFI_SW_PS_PC_ALLOCATE_POOL (EFI_SUBCLASS_SPECIFIC | 0x0000000D)
692 #define EFI_SW_PS_PC_COPY_MEM (EFI_SUBCLASS_SPECIFIC | 0x0000000E)
693 #define EFI_SW_PS_PC_SET_MEM (EFI_SUBCLASS_SPECIFIC | 0x0000000F)
694 ///@}
695
696 ///
697 /// Software Class EFI Boot Services Subclass Progress Code definitions.
698 ///@{
699 #define EFI_SW_BS_PC_RAISE_TPL (EFI_SUBCLASS_SPECIFIC | 0x00000000)
700 #define EFI_SW_BS_PC_RESTORE_TPL (EFI_SUBCLASS_SPECIFIC | 0x00000001)
701 #define EFI_SW_BS_PC_ALLOCATE_PAGES (EFI_SUBCLASS_SPECIFIC | 0x00000002)
702 #define EFI_SW_BS_PC_FREE_PAGES (EFI_SUBCLASS_SPECIFIC | 0x00000003)
703 #define EFI_SW_BS_PC_GET_MEMORY_MAP (EFI_SUBCLASS_SPECIFIC | 0x00000004)
704 #define EFI_SW_BS_PC_ALLOCATE_POOL (EFI_SUBCLASS_SPECIFIC | 0x00000005)
705 #define EFI_SW_BS_PC_FREE_POOL (EFI_SUBCLASS_SPECIFIC | 0x00000006)
706 #define EFI_SW_BS_PC_CREATE_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000007)
707 #define EFI_SW_BS_PC_SET_TIMER (EFI_SUBCLASS_SPECIFIC | 0x00000008)
708 #define EFI_SW_BS_PC_WAIT_FOR_EVENT (EFI_SUBCLASS_SPECIFIC | 0x00000009)
709 #define EFI_SW_BS_PC_SIGNAL_EVENT (EFI_SUBCLASS_SPECIFIC | 0x0000000A)
710 #define EFI_SW_BS_PC_CLOSE_EVENT (EFI_SUBCLASS_SPECIFIC | 0x0000000B)
711 #define EFI_SW_BS_PC_CHECK_EVENT (EFI_SUBCLASS_SPECIFIC | 0x0000000C)
712 #define EFI_SW_BS_PC_INSTALL_PROTOCOL_INTERFACE (EFI_SUBCLASS_SPECIFIC | 0x0000000D)
713 #define EFI_SW_BS_PC_REINSTALL_PROTOCOL_INTERFACE (EFI_SUBCLASS_SPECIFIC | 0x0000000E)
714 #define EFI_SW_BS_PC_UNINSTALL_PROTOCOL_INTERFACE (EFI_SUBCLASS_SPECIFIC | 0x0000000F)
715 #define EFI_SW_BS_PC_HANDLE_PROTOCOL (EFI_SUBCLASS_SPECIFIC | 0x00000010)
716 #define EFI_SW_BS_PC_PC_HANDLE_PROTOCOL (EFI_SUBCLASS_SPECIFIC | 0x00000011)
717 #define EFI_SW_BS_PC_REGISTER_PROTOCOL_NOTIFY (EFI_SUBCLASS_SPECIFIC | 0x00000012)
718 #define EFI_SW_BS_PC_LOCATE_HANDLE (EFI_SUBCLASS_SPECIFIC | 0x00000013)
719 #define EFI_SW_BS_PC_INSTALL_CONFIGURATION_TABLE (EFI_SUBCLASS_SPECIFIC | 0x00000014)
720 #define EFI_SW_BS_PC_LOAD_IMAGE (EFI_SUBCLASS_SPECIFIC | 0x00000015)
721 #define EFI_SW_BS_PC_START_IMAGE (EFI_SUBCLASS_SPECIFIC | 0x00000016)
722 #define EFI_SW_BS_PC_EXIT (EFI_SUBCLASS_SPECIFIC | 0x00000017)
723 #define EFI_SW_BS_PC_UNLOAD_IMAGE (EFI_SUBCLASS_SPECIFIC | 0x00000018)
724 #define EFI_SW_BS_PC_EXIT_BOOT_SERVICES (EFI_SUBCLASS_SPECIFIC | 0x00000019)
725 #define EFI_SW_BS_PC_GET_NEXT_MONOTONIC_COUNT (EFI_SUBCLASS_SPECIFIC | 0x0000001A)
726 #define EFI_SW_BS_PC_STALL (EFI_SUBCLASS_SPECIFIC | 0x0000001B)
727 #define EFI_SW_BS_PC_SET_WATCHDOG_TIMER (EFI_SUBCLASS_SPECIFIC | 0x0000001C)
728 #define EFI_SW_BS_PC_CONNECT_CONTROLLER (EFI_SUBCLASS_SPECIFIC | 0x0000001D)
729 #define EFI_SW_BS_PC_DISCONNECT_CONTROLLER (EFI_SUBCLASS_SPECIFIC | 0x0000001E)
730 #define EFI_SW_BS_PC_OPEN_PROTOCOL (EFI_SUBCLASS_SPECIFIC | 0x0000001F)
731 #define EFI_SW_BS_PC_CLOSE_PROTOCOL (EFI_SUBCLASS_SPECIFIC | 0x00000020)
732 #define EFI_SW_BS_PC_OPEN_PROTOCOL_INFORMATION (EFI_SUBCLASS_SPECIFIC | 0x00000021)
733 #define EFI_SW_BS_PC_PROTOCOLS_PER_HANDLE (EFI_SUBCLASS_SPECIFIC | 0x00000022)
734 #define EFI_SW_BS_PC_LOCATE_HANDLE_BUFFER (EFI_SUBCLASS_SPECIFIC | 0x00000023)
735 #define EFI_SW_BS_PC_LOCATE_PROTOCOL (EFI_SUBCLASS_SPECIFIC | 0x00000024)
736 #define EFI_SW_BS_PC_INSTALL_MULTIPLE_INTERFACES (EFI_SUBCLASS_SPECIFIC | 0x00000025)
737 #define EFI_SW_BS_PC_UNINSTALL_MULTIPLE_INTERFACES (EFI_SUBCLASS_SPECIFIC | 0x00000026)
738 #define EFI_SW_BS_PC_CALCULATE_CRC_32 (EFI_SUBCLASS_SPECIFIC | 0x00000027)
739 #define EFI_SW_BS_PC_COPY_MEM (EFI_SUBCLASS_SPECIFIC | 0x00000028)
740 #define EFI_SW_BS_PC_SET_MEM (EFI_SUBCLASS_SPECIFIC | 0x00000029)
741 ///@}
742
743 ///
744 /// Software Class EFI Runtime Services Subclass Progress Code definitions.
745 ///@{
746 #define EFI_SW_RS_PC_GET_TIME (EFI_SUBCLASS_SPECIFIC | 0x00000000)
747 #define EFI_SW_RS_PC_SET_TIME (EFI_SUBCLASS_SPECIFIC | 0x00000001)
748 #define EFI_SW_RS_PC_GET_WAKEUP_TIME (EFI_SUBCLASS_SPECIFIC | 0x00000002)
749 #define EFI_SW_RS_PC_SET_WAKEUP_TIME (EFI_SUBCLASS_SPECIFIC | 0x00000003)
750 #define EFI_SW_RS_PC_SET_VIRTUAL_ADDRESS_MAP (EFI_SUBCLASS_SPECIFIC | 0x00000004)
751 #define EFI_SW_RS_PC_CONVERT_POINTER (EFI_SUBCLASS_SPECIFIC | 0x00000005)
752 #define EFI_SW_RS_PC_GET_VARIABLE (EFI_SUBCLASS_SPECIFIC | 0x00000006)
753 #define EFI_SW_RS_PC_GET_NEXT_VARIABLE_NAME (EFI_SUBCLASS_SPECIFIC | 0x00000007)
754 #define EFI_SW_RS_PC_SET_VARIABLE (EFI_SUBCLASS_SPECIFIC | 0x00000008)
755 #define EFI_SW_RS_PC_GET_NEXT_HIGH_MONOTONIC_COUNT (EFI_SUBCLASS_SPECIFIC | 0x00000009)
756 #define EFI_SW_RS_PC_RESET_SYSTEM (EFI_SUBCLASS_SPECIFIC | 0x0000000A)
757 ///@{
758
759 ///
760 /// Software Class EFI DXE Services Subclass Progress Code definitions
761 ///@{
762 #define EFI_SW_DS_PC_ADD_MEMORY_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
763 #define EFI_SW_DS_PC_ALLOCATE_MEMORY_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000001)
764 #define EFI_SW_DS_PC_FREE_MEMORY_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000002)
765 #define EFI_SW_DS_PC_REMOVE_MEMORY_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000003)
766 #define EFI_SW_DS_PC_GET_MEMORY_SPACE_DESCRIPTOR (EFI_SUBCLASS_SPECIFIC | 0x00000004)
767 #define EFI_SW_DS_PC_SET_MEMORY_SPACE_ATTRIBUTES (EFI_SUBCLASS_SPECIFIC | 0x00000005)
768 #define EFI_SW_DS_PC_GET_MEMORY_SPACE_MAP (EFI_SUBCLASS_SPECIFIC | 0x00000006)
769 #define EFI_SW_DS_PC_ADD_IO_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000007)
770 #define EFI_SW_DS_PC_ALLOCATE_IO_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000008)
771 #define EFI_SW_DS_PC_FREE_IO_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000009)
772 #define EFI_SW_DS_PC_REMOVE_IO_SPACE (EFI_SUBCLASS_SPECIFIC | 0x0000000A)
773 #define EFI_SW_DS_PC_GET_IO_SPACE_DESCRIPTOR (EFI_SUBCLASS_SPECIFIC | 0x0000000B)
774 #define EFI_SW_DS_PC_GET_IO_SPACE_MAP (EFI_SUBCLASS_SPECIFIC | 0x0000000C)
775 #define EFI_SW_DS_PC_DISPATCH (EFI_SUBCLASS_SPECIFIC | 0x0000000D)
776 #define EFI_SW_DS_PC_SCHEDULE (EFI_SUBCLASS_SPECIFIC | 0x0000000E)
777 #define EFI_SW_DS_PC_TRUST (EFI_SUBCLASS_SPECIFIC | 0x0000000F)
778 #define EFI_SW_DS_PC_PROCESS_FIRMWARE_VOLUME (EFI_SUBCLASS_SPECIFIC | 0x00000010)
779 ///@}
780
781 ///
782 /// Software Class Error Code definitions.
783 /// These are shared by all subclasses.
784 ///@{
785 #define EFI_SW_EC_NON_SPECIFIC 0x00000000
786 #define EFI_SW_EC_LOAD_ERROR 0x00000001
787 #define EFI_SW_EC_INVALID_PARAMETER 0x00000002
788 #define EFI_SW_EC_UNSUPPORTED 0x00000003
789 #define EFI_SW_EC_INVALID_BUFFER 0x00000004
790 #define EFI_SW_EC_OUT_OF_RESOURCES 0x00000005
791 #define EFI_SW_EC_ABORTED 0x00000006
792 #define EFI_SW_EC_ILLEGAL_SOFTWARE_STATE 0x00000007
793 #define EFI_SW_EC_ILLEGAL_HARDWARE_STATE 0x00000008
794 #define EFI_SW_EC_START_ERROR 0x00000009
795 #define EFI_SW_EC_BAD_DATE_TIME 0x0000000A
796 #define EFI_SW_EC_CFG_INVALID 0x0000000B
797 #define EFI_SW_EC_CFG_CLR_REQUEST 0x0000000C
798 #define EFI_SW_EC_CFG_DEFAULT 0x0000000D
799 #define EFI_SW_EC_PWD_INVALID 0x0000000E
800 #define EFI_SW_EC_PWD_CLR_REQUEST 0x0000000F
801 #define EFI_SW_EC_PWD_CLEARED 0x00000010
802 #define EFI_SW_EC_EVENT_LOG_FULL 0x00000011
803 ///@}
804
805 //
806 // Software Class Unspecified Subclass Error Code definitions.
807 //
808 //
809 // Software Class SEC Subclass Error Code definitions.
810 //
811 ///
812 /// Software Class PEI Core Subclass Error Code definitions.
813 ///
814 #define EFI_SW_PEI_CORE_EC_DXE_CORRUPT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
815
816 ///
817 /// Software Class PEI Module Subclass Error Code definitions.
818 ///@{
819 #define EFI_SW_PEIM_EC_NO_RECOVERY_CAPSULE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
820 #define EFI_SW_PEIM_EC_INVALID_CAPSULE_DESCRIPTOR (EFI_SUBCLASS_SPECIFIC | 0x00000001)
821 ///@}
822
823 ///
824 /// Software Class DXE Core Subclass Error Code definitions.
825 ///
826 /// Inconsistent with specification here:
827 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
828 /// is expected to be adopt by PI Spec.
829 ///
830 #define EFI_SW_CSM_LEGACY_ROM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000)
831 ///
832 /// Software Class DXE Boot Service Driver Subclass Error Code definitions.
833 ///
834 #define EFI_SW_DXE_BS_EC_LEGACY_OPROM_NO_SPACE (EFI_SUBCLASS_SPECIFIC | 0x00000000)
835
836 //
837 // Software Class DXE Runtime Service Driver Subclass Error Code definitions.
838 //
839 //
840 // Software Class SMM Driver Subclass Error Code definitions.
841 //
842 //
843 // Software Class EFI Application Subclass Error Code definitions.
844 //
845 //
846 // Software Class EFI OS Loader Subclass Error Code definitions.
847 //
848 //
849 // Software Class EFI RT Subclass Error Code definitions.
850 //
851 //
852 // Software Class EFI AL Subclass Error Code definitions.
853 //
854 ///
855 /// Software Class EBC Exception Subclass Error Code definitions.
856 /// These exceptions are derived from the debug protocol definitions in the EFI
857 /// specification.
858 ///@{
859 #define EFI_SW_EC_EBC_UNDEFINED 0x00000000
860 #define EFI_SW_EC_EBC_DIVIDE_ERROR EXCEPT_EBC_DIVIDE_ERROR
861 #define EFI_SW_EC_EBC_DEBUG EXCEPT_EBC_DEBUG
862 #define EFI_SW_EC_EBC_BREAKPOINT EXCEPT_EBC_BREAKPOINT
863 #define EFI_SW_EC_EBC_OVERFLOW EXCEPT_EBC_OVERFLOW
864 #define EFI_SW_EC_EBC_INVALID_OPCODE EXCEPT_EBC_INVALID_OPCODE
865 #define EFI_SW_EC_EBC_STACK_FAULT EXCEPT_EBC_STACK_FAULT
866 #define EFI_SW_EC_EBC_ALIGNMENT_CHECK EXCEPT_EBC_ALIGNMENT_CHECK
867 #define EFI_SW_EC_EBC_INSTRUCTION_ENCODING EXCEPT_EBC_INSTRUCTION_ENCODING
868 #define EFI_SW_EC_EBC_BAD_BREAK EXCEPT_EBC_BAD_BREAK
869 #define EFI_SW_EC_EBC_STEP EXCEPT_EBC_STEP
870 ///@}
871
872 ///
873 /// Software Class IA32 Exception Subclass Error Code definitions.
874 /// These exceptions are derived from the debug protocol definitions in the EFI
875 /// specification.
876 ///@{
877 #define EFI_SW_EC_IA32_DIVIDE_ERROR EXCEPT_IA32_DIVIDE_ERROR
878 #define EFI_SW_EC_IA32_DEBUG EXCEPT_IA32_DEBUG
879 #define EFI_SW_EC_IA32_NMI EXCEPT_IA32_NMI
880 #define EFI_SW_EC_IA32_BREAKPOINT EXCEPT_IA32_BREAKPOINT
881 #define EFI_SW_EC_IA32_OVERFLOW EXCEPT_IA32_OVERFLOW
882 #define EFI_SW_EC_IA32_BOUND EXCEPT_IA32_BOUND
883 #define EFI_SW_EC_IA32_INVALID_OPCODE EXCEPT_IA32_INVALID_OPCODE
884 #define EFI_SW_EC_IA32_DOUBLE_FAULT EXCEPT_IA32_DOUBLE_FAULT
885 #define EFI_SW_EC_IA32_INVALID_TSS EXCEPT_IA32_INVALID_TSS
886 #define EFI_SW_EC_IA32_SEG_NOT_PRESENT EXCEPT_IA32_SEG_NOT_PRESENT
887 #define EFI_SW_EC_IA32_STACK_FAULT EXCEPT_IA32_STACK_FAULT
888 #define EFI_SW_EC_IA32_GP_FAULT EXCEPT_IA32_GP_FAULT
889 #define EFI_SW_EC_IA32_PAGE_FAULT EXCEPT_IA32_PAGE_FAULT
890 #define EFI_SW_EC_IA32_FP_ERROR EXCEPT_IA32_FP_ERROR
891 #define EFI_SW_EC_IA32_ALIGNMENT_CHECK EXCEPT_IA32_ALIGNMENT_CHECK
892 #define EFI_SW_EC_IA32_MACHINE_CHECK EXCEPT_IA32_MACHINE_CHECK
893 #define EFI_SW_EC_IA32_SIMD EXCEPT_IA32_SIMD
894 ///@}
895
896 ///
897 /// Software Class X64 Exception Subclass Error Code definitions.
898 /// These exceptions are derived from the debug protocol definitions in the EFI
899 /// specification.
900 ///
901 /// Inconsistent with specification here:
902 /// The Framework Spec, StatusCodes0.92, does not define the macro. And the definition
903 /// is expected to be adopt by PI Spec.
904 ///@{
905 #define EFI_SW_EC_X64_DIVIDE_ERROR EXCEPT_X64_DIVIDE_ERROR
906 #define EFI_SW_EC_X64_DEBUG EXCEPT_X64_DEBUG
907 #define EFI_SW_EC_X64_NMI EXCEPT_X64_NMI
908 #define EFI_SW_EC_X64_BREAKPOINT EXCEPT_X64_BREAKPOINT
909 #define EFI_SW_EC_X64_OVERFLOW EXCEPT_X64_OVERFLOW
910 #define EFI_SW_EC_X64_BOUND EXCEPT_X64_BOUND
911 #define EFI_SW_EC_X64_INVALID_OPCODE EXCEPT_X64_INVALID_OPCODE
912 #define EFI_SW_EC_X64_DOUBLE_FAULT EXCEPT_X64_DOUBLE_FAULT
913 #define EFI_SW_EC_X64_INVALID_TSS EXCEPT_X64_INVALID_TSS
914 #define EFI_SW_EC_X64_SEG_NOT_PRESENT EXCEPT_X64_SEG_NOT_PRESENT
915 #define EFI_SW_EC_X64_STACK_FAULT EXCEPT_X64_STACK_FAULT
916 #define EFI_SW_EC_X64_GP_FAULT EXCEPT_X64_GP_FAULT
917 #define EFI_SW_EC_X64_PAGE_FAULT EXCEPT_X64_PAGE_FAULT
918 #define EFI_SW_EC_X64_FP_ERROR EXCEPT_X64_FP_ERROR
919 #define EFI_SW_EC_X64_ALIGNMENT_CHECK EXCEPT_X64_ALIGNMENT_CHECK
920 #define EFI_SW_EC_X64_MACHINE_CHECK EXCEPT_X64_MACHINE_CHECK
921 #define EFI_SW_EC_X64_SIMD EXCEPT_X64_SIMD
922 ///@}
923
924 ///
925 /// Software Class IPF Exception Subclass Error Code definitions.
926 /// These exceptions are derived from the debug protocol definitions in the EFI
927 /// specification.
928 ///@{
929 #define EFI_SW_EC_IPF_ALT_DTLB EXCEPT_IPF_ALT_DTLB
930 #define EFI_SW_EC_IPF_DNESTED_TLB EXCEPT_IPF_DNESTED_TLB
931 #define EFI_SW_EC_IPF_BREAKPOINT EXCEPT_IPF_BREAKPOINT
932 #define EFI_SW_EC_IPF_EXTERNAL_INTERRUPT EXCEPT_IPF_EXTERNAL_INTERRUPT
933 #define EFI_SW_EC_IPF_GEN_EXCEPT EXCEPT_IPF_GEN_EXCEPT
934 #define EFI_SW_EC_IPF_NAT_CONSUMPTION EXCEPT_IPF_NAT_CONSUMPTION
935 #define EFI_SW_EC_IPF_DEBUG_EXCEPT EXCEPT_IPF_DEBUG_EXCEPT
936 #define EFI_SW_EC_IPF_UNALIGNED_ACCESS EXCEPT_IPF_UNALIGNED_ACCESS
937 #define EFI_SW_EC_IPF_FP_FAULT EXCEPT_IPF_FP_FAULT
938 #define EFI_SW_EC_IPF_FP_TRAP EXCEPT_IPF_FP_TRAP
939 #define EFI_SW_EC_IPF_TAKEN_BRANCH EXCEPT_IPF_TAKEN_BRANCH
940 #define EFI_SW_EC_IPF_SINGLE_STEP EXCEPT_IPF_SINGLE_STEP
941 ///@}
942
943 //
944 // Software Class PEI Service Subclass Error Code definitions.
945 //
946 //
947 // Software Class EFI Boot Service Subclass Error Code definitions.
948 //
949 //
950 // Software Class EFI Runtime Service Subclass Error Code definitions.
951 //
952 //
953 // Software Class EFI DXE Service Subclass Error Code definitions.
954 //
955
956 ///
957 /// Section 6
958 /// Debug Code definitions for all classes and subclass
959 /// Only one debug code is defined at this point and should
960 /// be used for anything that gets sent to debug stream.
961 ///
962 #define EFI_DC_UNSPECIFIED 0x0
963
964 #endif