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