]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Status Code Definitions, according to Intel Platform Innovation Framework\r | |
3 | for EFI Status Codes Specification\r | |
4 | \r | |
5 | Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials are licensed and made available under \r | |
7 | the terms and conditions of the BSD License that accompanies this distribution. \r | |
8 | The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php. \r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | @par Revision Reference:\r | |
15 | Intel Platform Innovation Framework for EFI Status Codes Specification\r | |
16 | Version 0.92.\r | |
17 | \r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef _FRAMEWORK_STATUS_CODE_H_\r | |
21 | #define _FRAMEWORK_STATUS_CODE_H_\r | |
22 | \r | |
23 | //\r | |
24 | // Required for X64 defines for CPU exception types\r | |
25 | //\r | |
26 | #include <Protocol/DebugSupport.h>\r | |
27 | \r | |
28 | ///\r | |
29 | /// Software Class DXE BS Driver Subclass Progress Code definitions.\r | |
30 | ///\r | |
31 | /// Inconsistent with specification here: \r | |
32 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
33 | ///\r | |
34 | ///@{\r | |
35 | #define EFI_SW_DXE_BS_PC_BEGIN_CONNECTING_DRIVERS (EFI_SUBCLASS_SPECIFIC | 0x00000005)\r | |
36 | #define EFI_SW_DXE_BS_PC_VERIFYING_PASSWORD (EFI_SUBCLASS_SPECIFIC | 0x00000006)\r | |
37 | ///@}\r | |
38 | \r | |
39 | ///\r | |
40 | /// Software Class DXE RT Driver Subclass Progress Code definitions.\r | |
41 | ///\r | |
42 | /// Inconsistent with specification here: \r | |
43 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
44 | ///\r | |
45 | ///@{\r | |
46 | #define EFI_SW_DXE_RT_PC_S0 (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r | |
47 | #define EFI_SW_DXE_RT_PC_S1 (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
48 | #define EFI_SW_DXE_RT_PC_S2 (EFI_SUBCLASS_SPECIFIC | 0x00000002)\r | |
49 | #define EFI_SW_DXE_RT_PC_S3 (EFI_SUBCLASS_SPECIFIC | 0x00000003)\r | |
50 | #define EFI_SW_DXE_RT_PC_S4 (EFI_SUBCLASS_SPECIFIC | 0x00000004)\r | |
51 | #define EFI_SW_DXE_RT_PC_S5 (EFI_SUBCLASS_SPECIFIC | 0x00000005)\r | |
52 | ///@}\r | |
53 | \r | |
54 | ///\r | |
55 | /// Software Subclass definitions.\r | |
56 | ///\r | |
57 | /// Inconsistent with specification here: \r | |
58 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
59 | ///\r | |
60 | #define EFI_SOFTWARE_X64_EXCEPTION (EFI_SOFTWARE | 0x00130000)\r | |
61 | \r | |
62 | ///\r | |
63 | /// Software Class X64 Exception Subclass Error Code definitions.\r | |
64 | /// These exceptions are derived from the debug protocol definitions in the EFI\r | |
65 | /// specification.\r | |
66 | ///\r | |
67 | /// Inconsistent with specification here: \r | |
68 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
69 | ///\r | |
70 | ///@{\r | |
71 | #define EFI_SW_EC_X64_DIVIDE_ERROR EXCEPT_X64_DIVIDE_ERROR\r | |
72 | #define EFI_SW_EC_X64_DEBUG EXCEPT_X64_DEBUG\r | |
73 | #define EFI_SW_EC_X64_NMI EXCEPT_X64_NMI\r | |
74 | #define EFI_SW_EC_X64_BREAKPOINT EXCEPT_X64_BREAKPOINT\r | |
75 | #define EFI_SW_EC_X64_OVERFLOW EXCEPT_X64_OVERFLOW\r | |
76 | #define EFI_SW_EC_X64_BOUND EXCEPT_X64_BOUND\r | |
77 | #define EFI_SW_EC_X64_INVALID_OPCODE EXCEPT_X64_INVALID_OPCODE\r | |
78 | #define EFI_SW_EC_X64_DOUBLE_FAULT EXCEPT_X64_DOUBLE_FAULT\r | |
79 | #define EFI_SW_EC_X64_INVALID_TSS EXCEPT_X64_INVALID_TSS\r | |
80 | #define EFI_SW_EC_X64_SEG_NOT_PRESENT EXCEPT_X64_SEG_NOT_PRESENT\r | |
81 | #define EFI_SW_EC_X64_STACK_FAULT EXCEPT_X64_STACK_FAULT\r | |
82 | #define EFI_SW_EC_X64_GP_FAULT EXCEPT_X64_GP_FAULT\r | |
83 | #define EFI_SW_EC_X64_PAGE_FAULT EXCEPT_X64_PAGE_FAULT\r | |
84 | #define EFI_SW_EC_X64_FP_ERROR EXCEPT_X64_FP_ERROR\r | |
85 | #define EFI_SW_EC_X64_ALIGNMENT_CHECK EXCEPT_X64_ALIGNMENT_CHECK\r | |
86 | #define EFI_SW_EC_X64_MACHINE_CHECK EXCEPT_X64_MACHINE_CHECK\r | |
87 | #define EFI_SW_EC_X64_SIMD EXCEPT_X64_SIMD\r | |
88 | ///@}\r | |
89 | \r | |
90 | ///\r | |
91 | /// Software Class EFI After Life Subclass Progress Code definitions.\r | |
92 | ///\r | |
93 | ///@{\r | |
94 | #define EFI_SW_AL_PC_ENTRY_POINT (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r | |
95 | #define EFI_SW_AL_PC_RETURN_TO_LAST (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
96 | ///@}\r | |
97 | \r | |
98 | ///\r | |
99 | /// Software Class DXE Core Subclass Error Code definitions.\r | |
100 | ///\r | |
101 | /// Inconsistent with specification here: \r | |
102 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
103 | ///\r | |
104 | #define EFI_SW_CSM_LEGACY_ROM_INIT (EFI_SUBCLASS_SPECIFIC | 0x00000000) \r | |
105 | \r | |
106 | ///\r | |
107 | /// IO Bus Class ATA/ATAPI Subclass Progress Code definitions.\r | |
108 | ///\r | |
109 | ///\r | |
110 | /// Inconsistent with specification here: \r | |
111 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
112 | ///\r | |
113 | ///@{\r | |
114 | #define EFI_IOB_ATA_BUS_SMART_ENABLE (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r | |
115 | #define EFI_IOB_ATA_BUS_SMART_DISABLE (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
116 | #define EFI_IOB_ATA_BUS_SMART_OVERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000002)\r | |
117 | #define EFI_IOB_ATA_BUS_SMART_UNDERTHRESHOLD (EFI_SUBCLASS_SPECIFIC | 0x00000003)\r | |
118 | ///@}\r | |
119 | \r | |
120 | ///\r | |
121 | /// IO Bus Class ATA/ATAPI Subclass Error Code definitions.\r | |
122 | ///\r | |
123 | ///\r | |
124 | /// Inconsistent with specification here: \r | |
125 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
126 | ///\r | |
127 | ///@{\r | |
128 | #define EFI_IOB_ATA_BUS_SMART_NOTSUPPORTED (EFI_SUBCLASS_SPECIFIC | 0x00000000)\r | |
129 | #define EFI_IOB_ATA_BUS_SMART_DISABLED (EFI_SUBCLASS_SPECIFIC | 0x00000001)\r | |
130 | ///@}\r | |
131 | \r | |
132 | ///\r | |
133 | /// The reason that the processor was disabled.\r | |
134 | ///\r | |
135 | /// Inconsistent with specification here: \r | |
136 | /// The Framework Specification, StatusCodes 0.92, does not define the macros. \r | |
137 | ///\r | |
138 | ///@{\r | |
139 | #define EFI_CPU_CAUSE_NOT_DISABLED 0x0000\r | |
140 | ///@}\r | |
141 | \r | |
142 | #endif\r |