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