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