]>
Commit | Line | Data |
---|---|---|
f85e38bf | 1 | /** @file\r |
2 | GUIDs and definitions used for Common Platform Error Record.\r | |
3 | \r | |
bb427a23 | 4 | Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r |
cb5d7341 | 5 | (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r |
9344f092 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
f85e38bf | 7 | \r |
8 | @par Revision Reference:\r | |
bb427a23 | 9 | GUIDs defined in UEFI 2.7 Specification.\r |
f85e38bf | 10 | \r |
11 | **/\r | |
12 | \r | |
13 | #ifndef __CPER_GUID_H__\r | |
14 | #define __CPER_GUID_H__\r | |
15 | \r | |
16 | #pragma pack(1)\r | |
17 | \r | |
2f88bd3a MK |
18 | #define EFI_ERROR_RECORD_SIGNATURE_START SIGNATURE_32('C', 'P', 'E', 'R')\r |
19 | #define EFI_ERROR_RECORD_SIGNATURE_END 0xFFFFFFFF\r | |
f85e38bf | 20 | \r |
2f88bd3a | 21 | #define EFI_ERROR_RECORD_REVISION 0x0101\r |
cb5d7341 | 22 | \r |
f85e38bf | 23 | ///\r |
24 | /// Error Severity in Error Record Header and Error Section Descriptor\r | |
25 | ///@{\r | |
2f88bd3a MK |
26 | #define EFI_GENERIC_ERROR_RECOVERABLE 0x00000000\r |
27 | #define EFI_GENERIC_ERROR_FATAL 0x00000001\r | |
28 | #define EFI_GENERIC_ERROR_CORRECTED 0x00000002\r | |
29 | #define EFI_GENERIC_ERROR_INFO 0x00000003\r | |
f85e38bf | 30 | ///@}\r |
31 | \r | |
32 | ///\r | |
33 | /// The validation bit mask indicates the validity of the following fields\r | |
34 | /// in Error Record Header.\r | |
35 | ///@{\r | |
2f88bd3a MK |
36 | #define EFI_ERROR_RECORD_HEADER_PLATFORM_ID_VALID BIT0\r |
37 | #define EFI_ERROR_RECORD_HEADER_TIME_STAMP_VALID BIT1\r | |
38 | #define EFI_ERROR_RECORD_HEADER_PARTITION_ID_VALID BIT2\r | |
f85e38bf | 39 | ///@}\r |
40 | \r | |
41 | ///\r | |
42 | /// Timestamp is precise if this bit is set and correlates to the time of the\r | |
43 | /// error event.\r | |
44 | ///\r | |
2f88bd3a | 45 | #define EFI_ERROR_TIME_STAMP_PRECISE BIT0\r |
f85e38bf | 46 | \r |
47 | ///\r | |
48 | /// The timestamp correlates to the time when the error information was collected\r | |
49 | /// by the system software and may not necessarily represent the time of the error\r | |
50 | /// event. The timestamp contains the local time in BCD format.\r | |
51 | ///\r | |
52 | typedef struct {\r | |
2f88bd3a MK |
53 | UINT8 Seconds;\r |
54 | UINT8 Minutes;\r | |
55 | UINT8 Hours;\r | |
56 | UINT8 Flag;\r | |
57 | UINT8 Day;\r | |
58 | UINT8 Month;\r | |
59 | UINT8 Year;\r | |
60 | UINT8 Century;\r | |
f85e38bf | 61 | } EFI_ERROR_TIME_STAMP;\r |
62 | \r | |
63 | ///\r | |
64 | /// GUID value indicating the record association with an error event notification type.\r | |
65 | ///@{\r | |
66 | #define EFI_EVENT_NOTIFICATION_TYEP_CMC_GUID \\r | |
67 | { \\r | |
68 | 0x2DCE8BB1, 0xBDD7, 0x450e, { 0xB9, 0xAD, 0x9C, 0xF4, 0xEB, 0xD4, 0xF8, 0x90 } \\r | |
69 | }\r | |
70 | #define EFI_EVENT_NOTIFICATION_TYEP_CPE_GUID \\r | |
71 | { \\r | |
72 | 0x4E292F96, 0xD843, 0x4a55, { 0xA8, 0xC2, 0xD4, 0x81, 0xF2, 0x7E, 0xBE, 0xEE } \\r | |
73 | }\r | |
74 | #define EFI_EVENT_NOTIFICATION_TYEP_MCE_GUID \\r | |
75 | { \\r | |
76 | 0xE8F56FFE, 0x919C, 0x4cc5, { 0xBA, 0x88, 0x65, 0xAB, 0xE1, 0x49, 0x13, 0xBB } \\r | |
77 | }\r | |
78 | #define EFI_EVENT_NOTIFICATION_TYEP_PCIE_GUID \\r | |
79 | { \\r | |
80 | 0xCF93C01F, 0x1A16, 0x4dfc, { 0xB8, 0xBC, 0x9C, 0x4D, 0xAF, 0x67, 0xC1, 0x04 } \\r | |
81 | }\r | |
82 | #define EFI_EVENT_NOTIFICATION_TYEP_INIT_GUID \\r | |
83 | { \\r | |
84 | 0xCC5263E8, 0x9308, 0x454a, { 0x89, 0xD0, 0x34, 0x0B, 0xD3, 0x9B, 0xC9, 0x8E } \\r | |
85 | }\r | |
86 | #define EFI_EVENT_NOTIFICATION_TYEP_NMI_GUID \\r | |
87 | { \\r | |
88 | 0x5BAD89FF, 0xB7E6, 0x42c9, { 0x81, 0x4A, 0xCF, 0x24, 0x85, 0xD6, 0xE9, 0x8A } \\r | |
89 | }\r | |
90 | #define EFI_EVENT_NOTIFICATION_TYEP_BOOT_GUID \\r | |
91 | { \\r | |
92 | 0x3D61A466, 0xAB40, 0x409a, { 0xA6, 0x98, 0xF3, 0x62, 0xD4, 0x64, 0xB3, 0x8F } \\r | |
93 | }\r | |
94 | #define EFI_EVENT_NOTIFICATION_TYEP_DMAR_GUID \\r | |
95 | { \\r | |
96 | 0x667DD791, 0xC6B3, 0x4c27, { 0x8A, 0x6B, 0x0F, 0x8E, 0x72, 0x2D, 0xEB, 0x41 } \\r | |
97 | }\r | |
5af8fccd OY |
98 | #define EFI_EVENT_NOTIFICATION_TYPE_DMAR_SEA \\r |
99 | { \\r | |
100 | 0x9A78788A, 0xBBE8, 0x11E4, { 0x80, 0x9E, 0x67, 0x61, 0x1E, 0x5D, 0x46, 0xB0 } \\r | |
101 | }\r | |
102 | #define EFI_EVENT_NOTIFICATION_TYPE_DMAR_SEI \\r | |
103 | { \\r | |
104 | 0x5C284C81, 0xB0AE, 0x4E87, { 0xA3, 0x22, 0xB0, 0x4C, 0x85, 0x62, 0x43, 0x23 } \\r | |
105 | }\r | |
106 | #define EFI_EVENT_NOTIFICATION_TYPE_DMAR_PEI \\r | |
107 | { \\r | |
108 | 0x09A9D5AC, 0x5204, 0x4214, { 0x96, 0xE5, 0x94, 0x99, 0x2E, 0x75, 0x2B, 0xCD } \\r | |
109 | }\r | |
f85e38bf | 110 | ///@}\r |
111 | \r | |
112 | ///\r | |
113 | /// Error Record Header Flags\r | |
114 | ///@{\r | |
2f88bd3a MK |
115 | #define EFI_HW_ERROR_FLAGS_RECOVERED 0x00000001\r |
116 | #define EFI_HW_ERROR_FLAGS_PREVERR 0x00000002\r | |
117 | #define EFI_HW_ERROR_FLAGS_SIMULATED 0x00000004\r | |
f85e38bf | 118 | ///@}\r |
119 | \r | |
120 | ///\r | |
121 | /// Common error record header\r | |
122 | ///\r | |
123 | typedef struct {\r | |
2f88bd3a MK |
124 | UINT32 SignatureStart;\r |
125 | UINT16 Revision;\r | |
126 | UINT32 SignatureEnd;\r | |
127 | UINT16 SectionCount;\r | |
128 | UINT32 ErrorSeverity;\r | |
129 | UINT32 ValidationBits;\r | |
130 | UINT32 RecordLength;\r | |
131 | EFI_ERROR_TIME_STAMP TimeStamp;\r | |
132 | EFI_GUID PlatformID;\r | |
133 | EFI_GUID PartitionID;\r | |
134 | EFI_GUID CreatorID;\r | |
135 | EFI_GUID NotificationType;\r | |
136 | UINT64 RecordID;\r | |
137 | UINT32 Flags;\r | |
138 | UINT64 PersistenceInfo;\r | |
139 | UINT8 Resv1[12];\r | |
f85e38bf | 140 | ///\r |
141 | /// An array of SectionCount descriptors for the associated\r | |
142 | /// sections. The number of valid sections is equivalent to the\r | |
143 | /// SectionCount. The buffer size of the record may include\r | |
144 | /// more space to dynamically add additional Section\r | |
145 | /// Descriptors to the error record.\r | |
146 | ///\r | |
147 | } EFI_COMMON_ERROR_RECORD_HEADER;\r | |
148 | \r | |
cb5d7341 SEHM |
149 | #define EFI_ERROR_SECTION_REVISION 0x0100\r |
150 | \r | |
f85e38bf | 151 | ///\r |
152 | /// Validity Fields in Error Section Descriptor.\r | |
153 | ///\r | |
2f88bd3a MK |
154 | #define EFI_ERROR_SECTION_FRU_ID_VALID BIT0\r |
155 | #define EFI_ERROR_SECTION_FRU_STRING_VALID BIT1\r | |
f85e38bf | 156 | \r |
157 | ///\r | |
158 | /// Flag field contains information that describes the error section\r | |
159 | /// in Error Section Descriptor.\r | |
160 | ///\r | |
2f88bd3a MK |
161 | #define EFI_ERROR_SECTION_FLAGS_PRIMARY BIT0\r |
162 | #define EFI_ERROR_SECTION_FLAGS_CONTAINMENT_WARNING BIT1\r | |
163 | #define EFI_ERROR_SECTION_FLAGS_RESET BIT2\r | |
164 | #define EFI_ERROR_SECTION_FLAGS_ERROR_THRESHOLD_EXCEEDED BIT3\r | |
165 | #define EFI_ERROR_SECTION_FLAGS_RESOURCE_NOT_ACCESSIBLE BIT4\r | |
166 | #define EFI_ERROR_SECTION_FLAGS_LATENT_ERROR BIT5\r | |
f85e38bf | 167 | \r |
168 | ///\r | |
169 | /// Error Sectition Type GUIDs in Error Section Descriptor\r | |
170 | ///@{\r | |
171 | #define EFI_ERROR_SECTION_PROCESSOR_GENERIC_GUID \\r | |
172 | { \\r | |
173 | 0x9876ccad, 0x47b4, 0x4bdb, { 0xb6, 0x5e, 0x16, 0xf1, 0x93, 0xc4, 0xf3, 0xdb } \\r | |
174 | }\r | |
175 | #define EFI_ERROR_SECTION_PROCESSOR_SPECIFIC_GUID \\r | |
176 | { \\r | |
177 | 0xdc3ea0b0, 0xa144, 0x4797, { 0xb9, 0x5b, 0x53, 0xfa, 0x24, 0x2b, 0x6e, 0x1d } \\r | |
178 | }\r | |
cb5d7341 SEHM |
179 | #define EFI_ERROR_SECTION_PROCESSOR_SPECIFIC_IA32X64_GUID \\r |
180 | { \\r | |
181 | 0xdc3ea0b0, 0xa144, 0x4797, { 0xb9, 0x5b, 0x53, 0xfa, 0x24, 0x2b, 0x6e, 0x1d } \\r | |
182 | }\r | |
183 | #define EFI_ERROR_SECTION_PROCESSOR_SPECIFIC_ARM_GUID \\r | |
184 | { \\r | |
185 | 0xe19e3d16, 0xbc11, 0x11e4, { 0x9c, 0xaa, 0xc2, 0x05, 0x1d, 0x5d, 0x46, 0xb0 } \\r | |
186 | }\r | |
f85e38bf | 187 | #define EFI_ERROR_SECTION_PLATFORM_MEMORY_GUID \\r |
188 | { \\r | |
189 | 0xa5bc1114, 0x6f64, 0x4ede, { 0xb8, 0x63, 0x3e, 0x83, 0xed, 0x7c, 0x83, 0xb1 } \\r | |
190 | }\r | |
a301e4a9 QS |
191 | #define EFI_ERROR_SECTION_PLATFORM_MEMORY2_GUID \\r |
192 | { \\r | |
193 | 0x61EC04FC, 0x48E6, 0xD813, { 0x25, 0xC9, 0x8D, 0xAA, 0x44, 0x75, 0x0B, 0x12 } \\r | |
194 | }\r | |
f85e38bf | 195 | #define EFI_ERROR_SECTION_PCIE_GUID \\r |
196 | { \\r | |
197 | 0xd995e954, 0xbbc1, 0x430f, { 0xad, 0x91, 0xb4, 0x4d, 0xcb, 0x3c, 0x6f, 0x35 } \\r | |
198 | }\r | |
199 | #define EFI_ERROR_SECTION_FW_ERROR_RECORD_GUID \\r | |
200 | { \\r | |
201 | 0x81212a96, 0x09ed, 0x4996, { 0x94, 0x71, 0x8d, 0x72, 0x9c, 0x8e, 0x69, 0xed } \\r | |
202 | }\r | |
203 | #define EFI_ERROR_SECTION_PCI_PCIX_BUS_GUID \\r | |
204 | { \\r | |
205 | 0xc5753963, 0x3b84, 0x4095, { 0xbf, 0x78, 0xed, 0xda, 0xd3, 0xf9, 0xc9, 0xdd } \\r | |
206 | }\r | |
207 | #define EFI_ERROR_SECTION_PCI_DEVICE_GUID \\r | |
208 | { \\r | |
209 | 0xeb5e4685, 0xca66, 0x4769, { 0xb6, 0xa2, 0x26, 0x06, 0x8b, 0x00, 0x13, 0x26 } \\r | |
210 | }\r | |
211 | #define EFI_ERROR_SECTION_DMAR_GENERIC_GUID \\r | |
212 | { \\r | |
213 | 0x5b51fef7, 0xc79d, 0x4434, { 0x8f, 0x1b, 0xaa, 0x62, 0xde, 0x3e, 0x2c, 0x64 } \\r | |
214 | }\r | |
215 | #define EFI_ERROR_SECTION_DIRECTED_IO_DMAR_GUID \\r | |
216 | { \\r | |
217 | 0x71761d37, 0x32b2, 0x45cd, { 0xa7, 0xd0, 0xb0, 0xfe, 0xdd, 0x93, 0xe8, 0xcf } \\r | |
218 | }\r | |
219 | #define EFI_ERROR_SECTION_IOMMU_DMAR_GUID \\r | |
220 | { \\r | |
221 | 0x036f84e1, 0x7f37, 0x428c, { 0xa7, 0x9e, 0x57, 0x5f, 0xdf, 0xaa, 0x84, 0xec } \\r | |
222 | }\r | |
223 | ///@}\r | |
224 | \r | |
225 | ///\r | |
226 | /// Error Section Descriptor\r | |
227 | ///\r | |
228 | typedef struct {\r | |
2f88bd3a MK |
229 | UINT32 SectionOffset;\r |
230 | UINT32 SectionLength;\r | |
231 | UINT16 Revision;\r | |
232 | UINT8 SecValidMask;\r | |
233 | UINT8 Resv1;\r | |
234 | UINT32 SectionFlags;\r | |
235 | EFI_GUID SectionType;\r | |
236 | EFI_GUID FruId;\r | |
237 | UINT32 Severity;\r | |
238 | CHAR8 FruString[20];\r | |
f85e38bf | 239 | } EFI_ERROR_SECTION_DESCRIPTOR;\r |
240 | \r | |
241 | ///\r | |
242 | /// The validation bit mask indicates whether or not each of the following fields are\r | |
243 | /// valid in Proessor Generic Error section.\r | |
244 | ///@{\r | |
2f88bd3a MK |
245 | #define EFI_GENERIC_ERROR_PROC_TYPE_VALID BIT0\r |
246 | #define EFI_GENERIC_ERROR_PROC_ISA_VALID BIT1\r | |
247 | #define EFI_GENERIC_ERROR_PROC_ERROR_TYPE_VALID BIT2\r | |
248 | #define EFI_GENERIC_ERROR_PROC_OPERATION_VALID BIT3\r | |
249 | #define EFI_GENERIC_ERROR_PROC_FLAGS_VALID BIT4\r | |
250 | #define EFI_GENERIC_ERROR_PROC_LEVEL_VALID BIT5\r | |
251 | #define EFI_GENERIC_ERROR_PROC_VERSION_VALID BIT6\r | |
252 | #define EFI_GENERIC_ERROR_PROC_BRAND_VALID BIT7\r | |
253 | #define EFI_GENERIC_ERROR_PROC_ID_VALID BIT8\r | |
254 | #define EFI_GENERIC_ERROR_PROC_TARGET_ADDR_VALID BIT9\r | |
255 | #define EFI_GENERIC_ERROR_PROC_REQUESTER_ID_VALID BIT10\r | |
256 | #define EFI_GENERIC_ERROR_PROC_RESPONDER_ID_VALID BIT11\r | |
257 | #define EFI_GENERIC_ERROR_PROC_INST_IP_VALID BIT12\r | |
f85e38bf | 258 | ///@}\r |
259 | \r | |
260 | ///\r | |
261 | /// The type of the processor architecture in Proessor Generic Error section.\r | |
262 | ///@{\r | |
2f88bd3a MK |
263 | #define EFI_GENERIC_ERROR_PROC_TYPE_IA32_X64 0x00\r |
264 | #define EFI_GENERIC_ERROR_PROC_TYPE_IA64 0x01\r | |
265 | #define EFI_GENERIC_ERROR_PROC_TYPE_ARM 0x02\r | |
f85e38bf | 266 | ///@}\r |
267 | \r | |
268 | ///\r | |
269 | /// The type of the instruction set executing when the error occurred in Proessor\r | |
270 | /// Generic Error section.\r | |
271 | ///@{\r | |
2f88bd3a MK |
272 | #define EFI_GENERIC_ERROR_PROC_ISA_IA32 0x00\r |
273 | #define EFI_GENERIC_ERROR_PROC_ISA_IA64 0x01\r | |
274 | #define EFI_GENERIC_ERROR_PROC_ISA_X64 0x02\r | |
275 | #define EFI_GENERIC_ERROR_PROC_ISA_ARM_A32_T32 0x03\r | |
276 | #define EFI_GENERIC_ERROR_PROC_ISA_ARM_A64 0x04\r | |
f85e38bf | 277 | ///@}\r |
278 | \r | |
279 | ///\r | |
280 | /// The type of error that occurred in Proessor Generic Error section.\r | |
281 | ///@{\r | |
2f88bd3a MK |
282 | #define EFI_GENERIC_ERROR_PROC_ERROR_TYPE_UNKNOWN 0x00\r |
283 | #define EFI_GENERIC_ERROR_PROC_ERROR_TYPE_CACHE 0x01\r | |
284 | #define EFI_GENERIC_ERROR_PROC_ERROR_TYPE_TLB 0x02\r | |
285 | #define EFI_GENERIC_ERROR_PROC_ERROR_TYPE_BUS 0x04\r | |
286 | #define EFI_GENERIC_ERROR_PROC_ERROR_TYPE_MICRO_ARCH 0x08\r | |
f85e38bf | 287 | ///@}\r |
288 | \r | |
289 | ///\r | |
290 | /// The type of operation in Proessor Generic Error section.\r | |
291 | ///@{\r | |
2f88bd3a MK |
292 | #define EFI_GENERIC_ERROR_PROC_OPERATION_GENERIC 0x00\r |
293 | #define EFI_GENERIC_ERROR_PROC_OPERATION_DATA_READ 0x01\r | |
294 | #define EFI_GENERIC_ERROR_PROC_OPERATION_DATA_WRITE 0x02\r | |
295 | #define EFI_GENERIC_ERROR_PROC_OPERATION_INSTRUCTION_EXEC 0x03\r | |
f85e38bf | 296 | ///@}\r |
297 | \r | |
298 | ///\r | |
299 | /// Flags bit mask indicates additional information about the error in Proessor Generic\r | |
300 | /// Error section\r | |
301 | ///@{\r | |
2f88bd3a MK |
302 | #define EFI_GENERIC_ERROR_PROC_FLAGS_RESTARTABLE BIT0\r |
303 | #define EFI_GENERIC_ERROR_PROC_FLAGS_PRECISE_IP BIT1\r | |
304 | #define EFI_GENERIC_ERROR_PROC_FLAGS_OVERFLOW BIT2\r | |
305 | #define EFI_GENERIC_ERROR_PROC_FLAGS_CORRECTED BIT3\r | |
f85e38bf | 306 | ///@}\r |
307 | \r | |
308 | ///\r | |
309 | /// Processor Generic Error Section\r | |
310 | /// describes processor reported hardware errors for logical processors in the system.\r | |
311 | ///\r | |
312 | typedef struct {\r | |
2f88bd3a MK |
313 | UINT64 ValidFields;\r |
314 | UINT8 Type;\r | |
315 | UINT8 Isa;\r | |
316 | UINT8 ErrorType;\r | |
317 | UINT8 Operation;\r | |
318 | UINT8 Flags;\r | |
319 | UINT8 Level;\r | |
320 | UINT16 Resv1;\r | |
321 | UINT64 VersionInfo;\r | |
322 | CHAR8 BrandString[128];\r | |
323 | UINT64 ApicId;\r | |
324 | UINT64 TargetAddr;\r | |
325 | UINT64 RequestorId;\r | |
326 | UINT64 ResponderId;\r | |
327 | UINT64 InstructionIP;\r | |
f85e38bf | 328 | } EFI_PROCESSOR_GENERIC_ERROR_DATA;\r |
329 | \r | |
f85e38bf | 330 | #if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)\r |
331 | ///\r | |
332 | /// IA32 and x64 Specific definitions.\r | |
333 | ///\r | |
334 | \r | |
335 | ///\r | |
336 | /// GUID value indicating the type of Processor Error Information structure\r | |
337 | /// in IA32/X64 Processor Error Information Structure.\r | |
338 | ///@{\r | |
339 | #define EFI_IA32_X64_ERROR_TYPE_CACHE_CHECK_GUID \\r | |
340 | { \\r | |
341 | 0xA55701F5, 0xE3EF, 0x43de, {0xAC, 0x72, 0x24, 0x9B, 0x57, 0x3F, 0xAD, 0x2C } \\r | |
342 | }\r | |
343 | #define EFI_IA32_X64_ERROR_TYPE_TLB_CHECK_GUID \\r | |
344 | { \\r | |
345 | 0xFC06B535, 0x5E1F, 0x4562, {0x9F, 0x25, 0x0A, 0x3B, 0x9A, 0xDB, 0x63, 0xC3 } \\r | |
346 | }\r | |
347 | #define EFI_IA32_X64_ERROR_TYPE_BUS_CHECK_GUID \\r | |
348 | { \\r | |
349 | 0x1CF3F8B3, 0xC5B1, 0x49a2, {0xAA, 0x59, 0x5E, 0xEF, 0x92, 0xFF, 0xA6, 0x3C } \\r | |
350 | }\r | |
351 | #define EFI_IA32_X64_ERROR_TYPE_MS_CHECK_GUID \\r | |
352 | { \\r | |
353 | 0x48AB7F57, 0xDC34, 0x4f6c, {0xA7, 0xD3, 0xB0, 0xB5, 0xB0, 0xA7, 0x43, 0x14 } \\r | |
354 | }\r | |
355 | ///@}\r | |
356 | \r | |
24c2f313 HW |
357 | ///\r |
358 | /// The validation bit mask indicates which fields in the IA32/X64 Processor\r | |
359 | /// Error Record structure are valid.\r | |
360 | ///@{\r | |
2f88bd3a MK |
361 | #define EFI_IA32_X64_PROCESSOR_ERROR_APIC_ID_VALID BIT0\r |
362 | #define EFI_IA32_X64_PROCESSOR_ERROR_CPU_ID_INFO_VALID BIT1\r | |
24c2f313 HW |
363 | ///@}\r |
364 | \r | |
365 | ///\r | |
366 | /// IA32/X64 Processor Error Record\r | |
367 | ///\r | |
368 | typedef struct {\r | |
2f88bd3a MK |
369 | UINT64 ValidFields;\r |
370 | UINT64 ApicId;\r | |
371 | UINT8 CpuIdInfo[48];\r | |
24c2f313 HW |
372 | } EFI_IA32_X64_PROCESSOR_ERROR_RECORD;\r |
373 | \r | |
f85e38bf | 374 | ///\r |
375 | /// The validation bit mask indicates which fields in the Cache Check structure\r | |
376 | /// are valid.\r | |
377 | ///@{\r | |
2f88bd3a MK |
378 | #define EFI_CACHE_CHECK_TRANSACTION_TYPE_VALID BIT0\r |
379 | #define EFI_CACHE_CHECK_OPERATION_VALID BIT1\r | |
380 | #define EFI_CACHE_CHECK_LEVEL_VALID BIT2\r | |
381 | #define EFI_CACHE_CHECK_CONTEXT_CORRUPT_VALID BIT3\r | |
382 | #define EFI_CACHE_CHECK_UNCORRECTED_VALID BIT4\r | |
383 | #define EFI_CACHE_CHECK_PRECISE_IP_VALID BIT5\r | |
384 | #define EFI_CACHE_CHECK_RESTARTABLE_VALID BIT6\r | |
385 | #define EFI_CACHE_CHECK_OVERFLOW_VALID BIT7\r | |
f85e38bf | 386 | ///@}\r |
387 | \r | |
388 | ///\r | |
389 | /// Type of cache error in the Cache Check structure\r | |
390 | ///@{\r | |
2f88bd3a MK |
391 | #define EFI_CACHE_CHECK_ERROR_TYPE_INSTRUCTION 0\r |
392 | #define EFI_CACHE_CHECK_ERROR_TYPE_DATA_ACCESS 1\r | |
393 | #define EFI_CACHE_CHECK_ERROR_TYPE_GENERIC 2\r | |
f85e38bf | 394 | ///@}\r |
395 | \r | |
396 | ///\r | |
397 | /// Type of cache operation that caused the error in the Cache\r | |
398 | /// Check structure\r | |
399 | ///@{\r | |
2f88bd3a MK |
400 | #define EFI_CACHE_CHECK_OPERATION_TYPE_GENERIC 0\r |
401 | #define EFI_CACHE_CHECK_OPERATION_TYPE_GENERIC_READ 1\r | |
402 | #define EFI_CACHE_CHECK_OPERATION_TYPE_GENERIC_WRITE 2\r | |
403 | #define EFI_CACHE_CHECK_OPERATION_TYPE_DATA_READ 3\r | |
404 | #define EFI_CACHE_CHECK_OPERATION_TYPE_DATA_WRITE 4\r | |
405 | #define EFI_CACHE_CHECK_OPERATION_TYPE_INSTRUCTION_FETCH 5\r | |
406 | #define EFI_CACHE_CHECK_OPERATION_TYPE_PREFETCH 6\r | |
407 | #define EFI_CACHE_CHECK_OPERATION_TYPE_EVICTION 7\r | |
408 | #define EFI_CACHE_CHECK_OPERATION_TYPE_SNOOP 8\r | |
f85e38bf | 409 | ///@}\r |
410 | \r | |
411 | ///\r | |
412 | /// IA32/X64 Cache Check Structure\r | |
413 | ///\r | |
414 | typedef struct {\r | |
2f88bd3a MK |
415 | UINT64 ValidFields : 16;\r |
416 | UINT64 TransactionType : 2;\r | |
417 | UINT64 Operation : 4;\r | |
418 | UINT64 Level : 3;\r | |
419 | UINT64 ContextCorrupt : 1;\r | |
420 | UINT64 ErrorUncorrected : 1;\r | |
421 | UINT64 PreciseIp : 1;\r | |
422 | UINT64 RestartableIp : 1;\r | |
423 | UINT64 Overflow : 1;\r | |
424 | UINT64 Resv1 : 34;\r | |
f85e38bf | 425 | } EFI_IA32_X64_CACHE_CHECK_INFO;\r |
426 | \r | |
427 | ///\r | |
428 | /// The validation bit mask indicates which fields in the TLB Check structure\r | |
429 | /// are valid.\r | |
430 | ///@{\r | |
2f88bd3a MK |
431 | #define EFI_TLB_CHECK_TRANSACTION_TYPE_VALID BIT0\r |
432 | #define EFI_TLB_CHECK_OPERATION_VALID BIT1\r | |
433 | #define EFI_TLB_CHECK_LEVEL_VALID BIT2\r | |
434 | #define EFI_TLB_CHECK_CONTEXT_CORRUPT_VALID BIT3\r | |
435 | #define EFI_TLB_CHECK_UNCORRECTED_VALID BIT4\r | |
436 | #define EFI_TLB_CHECK_PRECISE_IP_VALID BIT5\r | |
437 | #define EFI_TLB_CHECK_RESTARTABLE_VALID BIT6\r | |
438 | #define EFI_TLB_CHECK_OVERFLOW_VALID BIT7\r | |
f85e38bf | 439 | ///@}\r |
440 | \r | |
441 | ///\r | |
442 | /// Type of cache error in the TLB Check structure\r | |
443 | ///@{\r | |
2f88bd3a MK |
444 | #define EFI_TLB_CHECK_ERROR_TYPE_INSTRUCTION 0\r |
445 | #define EFI_TLB_CHECK_ERROR_TYPE_DATA_ACCESS 1\r | |
446 | #define EFI_TLB_CHECK_ERROR_TYPE_GENERIC 2\r | |
f85e38bf | 447 | ///@}\r |
448 | \r | |
449 | ///\r | |
450 | /// Type of cache operation that caused the error in the TLB\r | |
451 | /// Check structure\r | |
452 | ///@{\r | |
2f88bd3a MK |
453 | #define EFI_TLB_CHECK_OPERATION_TYPE_GENERIC 0\r |
454 | #define EFI_TLB_CHECK_OPERATION_TYPE_GENERIC_READ 1\r | |
455 | #define EFI_TLB_CHECK_OPERATION_TYPE_GENERIC_WRITE 2\r | |
456 | #define EFI_TLB_CHECK_OPERATION_TYPE_DATA_READ 3\r | |
457 | #define EFI_TLB_CHECK_OPERATION_TYPE_DATA_WRITE 4\r | |
458 | #define EFI_TLB_CHECK_OPERATION_TYPE_INST_FETCH 5\r | |
459 | #define EFI_TLB_CHECK_OPERATION_TYPE_PREFETCH 6\r | |
f85e38bf | 460 | ///@}\r |
461 | \r | |
462 | ///\r | |
463 | /// IA32/X64 TLB Check Structure\r | |
464 | ///\r | |
465 | typedef struct {\r | |
2f88bd3a MK |
466 | UINT64 ValidFields : 16;\r |
467 | UINT64 TransactionType : 2;\r | |
468 | UINT64 Operation : 4;\r | |
469 | UINT64 Level : 3;\r | |
470 | UINT64 ContextCorrupt : 1;\r | |
471 | UINT64 ErrorUncorrected : 1;\r | |
472 | UINT64 PreciseIp : 1;\r | |
473 | UINT64 RestartableIp : 1;\r | |
474 | UINT64 Overflow : 1;\r | |
475 | UINT64 Resv1 : 34;\r | |
f85e38bf | 476 | } EFI_IA32_X64_TLB_CHECK_INFO;\r |
477 | \r | |
478 | ///\r | |
479 | /// The validation bit mask indicates which fields in the MS Check structure\r | |
480 | /// are valid.\r | |
481 | ///@{\r | |
2f88bd3a MK |
482 | #define EFI_BUS_CHECK_TRANSACTION_TYPE_VALID BIT0\r |
483 | #define EFI_BUS_CHECK_OPERATION_VALID BIT1\r | |
484 | #define EFI_BUS_CHECK_LEVEL_VALID BIT2\r | |
485 | #define EFI_BUS_CHECK_CONTEXT_CORRUPT_VALID BIT3\r | |
486 | #define EFI_BUS_CHECK_UNCORRECTED_VALID BIT4\r | |
487 | #define EFI_BUS_CHECK_PRECISE_IP_VALID BIT5\r | |
488 | #define EFI_BUS_CHECK_RESTARTABLE_VALID BIT6\r | |
489 | #define EFI_BUS_CHECK_OVERFLOW_VALID BIT7\r | |
490 | #define EFI_BUS_CHECK_PARTICIPATION_TYPE_VALID BIT8\r | |
491 | #define EFI_BUS_CHECK_TIME_OUT_VALID BIT9\r | |
492 | #define EFI_BUS_CHECK_ADDRESS_SPACE_VALID BIT10\r | |
f85e38bf | 493 | ///@}\r |
494 | \r | |
495 | ///\r | |
496 | /// Type of cache error in the Bus Check structure\r | |
497 | ///@{\r | |
2f88bd3a MK |
498 | #define EFI_BUS_CHECK_ERROR_TYPE_INSTRUCTION 0\r |
499 | #define EFI_BUS_CHECK_ERROR_TYPE_DATA_ACCESS 1\r | |
500 | #define EFI_BUS_CHECK_ERROR_TYPE_GENERIC 2\r | |
f85e38bf | 501 | ///@}\r |
502 | \r | |
503 | ///\r | |
504 | /// Type of cache operation that caused the error in the Bus\r | |
505 | /// Check structure\r | |
506 | ///@{\r | |
2f88bd3a MK |
507 | #define EFI_BUS_CHECK_OPERATION_TYPE_GENERIC 0\r |
508 | #define EFI_BUS_CHECK_OPERATION_TYPE_GENERIC_READ 1\r | |
509 | #define EFI_BUS_CHECK_OPERATION_TYPE_GENERIC_WRITE 2\r | |
510 | #define EFI_BUS_CHECK_OPERATION_TYPE_DATA_READ 3\r | |
511 | #define EFI_BUS_CHECK_OPERATION_TYPE_DATA_WRITE 4\r | |
512 | #define EFI_BUS_CHECK_OPERATION_TYPE_INST_FETCH 5\r | |
513 | #define EFI_BUS_CHECK_OPERATION_TYPE_PREFETCH 6\r | |
f85e38bf | 514 | ///@}\r |
515 | \r | |
516 | ///\r | |
517 | /// Type of Participation\r | |
518 | ///@{\r | |
2f88bd3a MK |
519 | #define EFI_BUS_CHECK_PARTICIPATION_TYPE_REQUEST 0\r |
520 | #define EFI_BUS_CHECK_PARTICIPATION_TYPE_RESPONDED 1\r | |
521 | #define EFI_BUS_CHECK_PARTICIPATION_TYPE_OBSERVED 2\r | |
522 | #define EFI_BUS_CHECK_PARTICIPATION_TYPE_GENERIC 3\r | |
f85e38bf | 523 | ///@}\r |
524 | \r | |
525 | ///\r | |
526 | /// Type of Address Space\r | |
527 | ///@{\r | |
2f88bd3a MK |
528 | #define EFI_BUS_CHECK_ADDRESS_SPACE_TYPE_MEMORY 0\r |
529 | #define EFI_BUS_CHECK_ADDRESS_SPACE_TYPE_RESERVED 1\r | |
530 | #define EFI_BUS_CHECK_ADDRESS_SPACE_TYPE_IO 2\r | |
531 | #define EFI_BUS_CHECK_ADDRESS_SPACE_TYPE_OTHER 3\r | |
f85e38bf | 532 | ///@}\r |
533 | \r | |
534 | ///\r | |
535 | /// IA32/X64 Bus Check Structure\r | |
536 | ///\r | |
537 | typedef struct {\r | |
2f88bd3a MK |
538 | UINT64 ValidFields : 16;\r |
539 | UINT64 TransactionType : 2;\r | |
540 | UINT64 Operation : 4;\r | |
541 | UINT64 Level : 3;\r | |
542 | UINT64 ContextCorrupt : 1;\r | |
543 | UINT64 ErrorUncorrected : 1;\r | |
544 | UINT64 PreciseIp : 1;\r | |
545 | UINT64 RestartableIp : 1;\r | |
546 | UINT64 Overflow : 1;\r | |
547 | UINT64 ParticipationType : 2;\r | |
548 | UINT64 TimeOut : 1;\r | |
549 | UINT64 AddressSpace : 2;\r | |
550 | UINT64 Resv1 : 29;\r | |
f85e38bf | 551 | } EFI_IA32_X64_BUS_CHECK_INFO;\r |
552 | \r | |
553 | ///\r | |
554 | /// The validation bit mask indicates which fields in the MS Check structure\r | |
555 | /// are valid.\r | |
556 | ///@{\r | |
2f88bd3a MK |
557 | #define EFI_MS_CHECK_ERROR_TYPE_VALID BIT0\r |
558 | #define EFI_MS_CHECK_CONTEXT_CORRUPT_VALID BIT1\r | |
559 | #define EFI_MS_CHECK_UNCORRECTED_VALID BIT2\r | |
560 | #define EFI_MS_CHECK_PRECISE_IP_VALID BIT3\r | |
561 | #define EFI_MS_CHECK_RESTARTABLE_VALID BIT4\r | |
562 | #define EFI_MS_CHECK_OVERFLOW_VALID BIT5\r | |
f85e38bf | 563 | ///@}\r |
564 | \r | |
565 | ///\r | |
566 | /// Error type identifies the operation that caused the error.\r | |
567 | ///@{\r | |
2f88bd3a MK |
568 | #define EFI_MS_CHECK_ERROR_TYPE_NO 0\r |
569 | #define EFI_MS_CHECK_ERROR_TYPE_UNCLASSIFIED 1\r | |
570 | #define EFI_MS_CHECK_ERROR_TYPE_MICROCODE_PARITY 2\r | |
571 | #define EFI_MS_CHECK_ERROR_TYPE_EXTERNAL 3\r | |
572 | #define EFI_MS_CHECK_ERROR_TYPE_FRC 4\r | |
573 | #define EFI_MS_CHECK_ERROR_TYPE_INTERNAL_UNCLASSIFIED 5\r | |
f85e38bf | 574 | ///@}\r |
575 | \r | |
576 | ///\r | |
577 | /// IA32/X64 MS Check Field Description\r | |
578 | ///\r | |
579 | typedef struct {\r | |
2f88bd3a MK |
580 | UINT64 ValidFields : 16;\r |
581 | UINT64 ErrorType : 3;\r | |
582 | UINT64 ContextCorrupt : 1;\r | |
583 | UINT64 ErrorUncorrected : 1;\r | |
584 | UINT64 PreciseIp : 1;\r | |
585 | UINT64 RestartableIp : 1;\r | |
586 | UINT64 Overflow : 1;\r | |
587 | UINT64 Resv1 : 40;\r | |
f85e38bf | 588 | } EFI_IA32_X64_MS_CHECK_INFO;\r |
589 | \r | |
590 | ///\r | |
591 | /// IA32/X64 Check Information Item\r | |
592 | ///\r | |
593 | typedef union {\r | |
2f88bd3a MK |
594 | EFI_IA32_X64_CACHE_CHECK_INFO CacheCheck;\r |
595 | EFI_IA32_X64_TLB_CHECK_INFO TlbCheck;\r | |
596 | EFI_IA32_X64_BUS_CHECK_INFO BusCheck;\r | |
597 | EFI_IA32_X64_MS_CHECK_INFO MsCheck;\r | |
598 | UINT64 Data64;\r | |
f85e38bf | 599 | } EFI_IA32_X64_CHECK_INFO_ITEM;\r |
600 | \r | |
601 | ///\r | |
602 | /// The validation bit mask indicates which fields in the IA32/X64 Processor Error\r | |
603 | /// Information Structure are valid.\r | |
604 | ///@{\r | |
2f88bd3a MK |
605 | #define EFI_IA32_X64_ERROR_PROC_CHECK_INFO_VALID BIT0\r |
606 | #define EFI_IA32_X64_ERROR_PROC_TARGET_ADDR_VALID BIT1\r | |
607 | #define EFI_IA32_X64_ERROR_PROC_REQUESTER_ID_VALID BIT2\r | |
608 | #define EFI_IA32_X64_ERROR_PROC_RESPONDER_ID_VALID BIT3\r | |
609 | #define EFI_IA32_X64_ERROR_PROC_INST_IP_VALID BIT4\r | |
f85e38bf | 610 | ///@}\r |
611 | \r | |
612 | ///\r | |
613 | /// IA32/X64 Processor Error Information Structure\r | |
614 | ///\r | |
615 | typedef struct {\r | |
2f88bd3a MK |
616 | EFI_GUID ErrorType;\r |
617 | UINT64 ValidFields;\r | |
618 | EFI_IA32_X64_CHECK_INFO_ITEM CheckInfo;\r | |
619 | UINT64 TargetId;\r | |
620 | UINT64 RequestorId;\r | |
621 | UINT64 ResponderId;\r | |
622 | UINT64 InstructionIP;\r | |
f85e38bf | 623 | } EFI_IA32_X64_PROCESS_ERROR_INFO;\r |
624 | \r | |
625 | ///\r | |
626 | /// IA32/X64 Processor Context Information Structure\r | |
627 | ///\r | |
628 | typedef struct {\r | |
2f88bd3a MK |
629 | UINT16 RegisterType;\r |
630 | UINT16 ArraySize;\r | |
631 | UINT32 MsrAddress;\r | |
632 | UINT64 MmRegisterAddress;\r | |
f85e38bf | 633 | //\r |
634 | // This field will provide the contents of the actual registers or raw data.\r | |
635 | // The number of Registers or size of the raw data reported is determined\r | |
636 | // by (Array Size / 8) or otherwise specified by the context structure type\r | |
637 | // definition.\r | |
638 | //\r | |
639 | } EFI_IA32_X64_PROCESSOR_CONTEXT_INFO;\r | |
640 | \r | |
641 | ///\r | |
642 | /// Register Context Type\r | |
643 | ///@{\r | |
2f88bd3a MK |
644 | #define EFI_REG_CONTEXT_TYPE_UNCLASSIFIED 0x0000\r |
645 | #define EFI_REG_CONTEXT_TYPE_MSR 0x0001\r | |
646 | #define EFI_REG_CONTEXT_TYPE_IA32 0x0002\r | |
647 | #define EFI_REG_CONTEXT_TYPE_X64 0x0003\r | |
648 | #define EFI_REG_CONTEXT_TYPE_FXSAVE 0x0004\r | |
649 | #define EFI_REG_CONTEXT_TYPE_DR_IA32 0x0005\r | |
650 | #define EFI_REG_CONTEXT_TYPE_DR_X64 0x0006\r | |
651 | #define EFI_REG_CONTEXT_TYPE_MEM_MAP 0x0007\r | |
f85e38bf | 652 | ///@}\r |
653 | \r | |
654 | ///\r | |
655 | /// IA32 Register State\r | |
656 | ///\r | |
657 | typedef struct {\r | |
2f88bd3a MK |
658 | UINT32 Eax;\r |
659 | UINT32 Ebx;\r | |
660 | UINT32 Ecx;\r | |
661 | UINT32 Edx;\r | |
662 | UINT32 Esi;\r | |
663 | UINT32 Edi;\r | |
664 | UINT32 Ebp;\r | |
665 | UINT32 Esp;\r | |
666 | UINT16 Cs;\r | |
667 | UINT16 Ds;\r | |
668 | UINT16 Ss;\r | |
669 | UINT16 Es;\r | |
670 | UINT16 Fs;\r | |
671 | UINT16 Gs;\r | |
672 | UINT32 Eflags;\r | |
673 | UINT32 Eip;\r | |
674 | UINT32 Cr0;\r | |
675 | UINT32 Cr1;\r | |
676 | UINT32 Cr2;\r | |
677 | UINT32 Cr3;\r | |
678 | UINT32 Cr4;\r | |
679 | UINT32 Gdtr[2];\r | |
680 | UINT32 Idtr[2];\r | |
681 | UINT16 Ldtr;\r | |
682 | UINT16 Tr;\r | |
f85e38bf | 683 | } EFI_CONTEXT_IA32_REGISTER_STATE;\r |
684 | \r | |
685 | ///\r | |
686 | /// X64 Register State\r | |
687 | ///\r | |
688 | typedef struct {\r | |
2f88bd3a MK |
689 | UINT64 Rax;\r |
690 | UINT64 Rbx;\r | |
691 | UINT64 Rcx;\r | |
692 | UINT64 Rdx;\r | |
693 | UINT64 Rsi;\r | |
694 | UINT64 Rdi;\r | |
695 | UINT64 Rbp;\r | |
696 | UINT64 Rsp;\r | |
697 | UINT64 R8;\r | |
698 | UINT64 R9;\r | |
699 | UINT64 R10;\r | |
700 | UINT64 R11;\r | |
701 | UINT64 R12;\r | |
702 | UINT64 R13;\r | |
703 | UINT64 R14;\r | |
704 | UINT64 R15;\r | |
705 | UINT16 Cs;\r | |
706 | UINT16 Ds;\r | |
707 | UINT16 Ss;\r | |
708 | UINT16 Es;\r | |
709 | UINT16 Fs;\r | |
710 | UINT16 Gs;\r | |
711 | UINT32 Resv1;\r | |
712 | UINT64 Rflags;\r | |
713 | UINT64 Rip;\r | |
714 | UINT64 Cr0;\r | |
715 | UINT64 Cr1;\r | |
716 | UINT64 Cr2;\r | |
717 | UINT64 Cr3;\r | |
718 | UINT64 Cr4;\r | |
719 | UINT64 Gdtr[2];\r | |
720 | UINT64 Idtr[2];\r | |
721 | UINT16 Ldtr;\r | |
722 | UINT16 Tr;\r | |
f85e38bf | 723 | } EFI_CONTEXT_X64_REGISTER_STATE;\r |
724 | \r | |
725 | ///\r | |
726 | /// The validation bit mask indicates each of the following field is in IA32/X64\r | |
727 | /// Processor Error Section.\r | |
728 | ///\r | |
729 | typedef struct {\r | |
2f88bd3a MK |
730 | UINT64 ApicIdValid : 1;\r |
731 | UINT64 CpuIdInforValid : 1;\r | |
732 | UINT64 ErrorInfoNum : 6;\r | |
733 | UINT64 ContextNum : 6;\r | |
734 | UINT64 Resv1 : 50;\r | |
f85e38bf | 735 | } EFI_IA32_X64_VALID_BITS;\r |
736 | \r | |
737 | #endif\r | |
738 | \r | |
739 | ///\r | |
740 | /// Error Status Fields\r | |
741 | ///\r | |
742 | typedef struct {\r | |
2f88bd3a MK |
743 | UINT64 Resv1 : 8;\r |
744 | UINT64 Type : 8;\r | |
745 | UINT64 AddressSignal : 1; ///< Error in Address signals or in Address portion of transaction\r | |
746 | UINT64 ControlSignal : 1; ///< Error in Control signals or in Control portion of transaction\r | |
747 | UINT64 DataSignal : 1; ///< Error in Data signals or in Data portion of transaction\r | |
748 | UINT64 DetectedByResponder : 1; ///< Error detected by responder\r | |
749 | UINT64 DetectedByRequester : 1; ///< Error detected by requestor\r | |
750 | UINT64 FirstError : 1; ///< First Error in the sequence - option field\r | |
751 | UINT64 OverflowNotLogged : 1; ///< Additional errors were not logged due to lack of resources\r | |
752 | UINT64 Resv2 : 41;\r | |
f85e38bf | 753 | } EFI_GENERIC_ERROR_STATUS;\r |
754 | \r | |
755 | ///\r | |
756 | /// Error Type\r | |
757 | ///\r | |
758 | typedef enum {\r | |
759 | ///\r | |
760 | /// General Internal errors\r | |
761 | ///\r | |
2f88bd3a MK |
762 | ErrorInternal = 1,\r |
763 | ErrorBus = 16,\r | |
f85e38bf | 764 | ///\r |
765 | /// Component Internal errors\r | |
766 | ///\r | |
767 | ErrorMemStorage = 4, // Error in memory device\r | |
768 | ErrorTlbStorage = 5, // TLB error in cache\r | |
769 | ErrorCacheStorage = 6,\r | |
770 | ErrorFunctionalUnit = 7,\r | |
771 | ErrorSelftest = 8,\r | |
772 | ErrorOverflow = 9,\r | |
773 | ///\r | |
774 | /// Bus internal errors\r | |
775 | ///\r | |
2f88bd3a MK |
776 | ErrorVirtualMap = 17,\r |
777 | ErrorAccessInvalid = 18, // Improper access\r | |
778 | ErrorUnimplAccess = 19, // Unimplemented memory access\r | |
779 | ErrorLossOfLockstep = 20,\r | |
780 | ErrorResponseInvalid = 21, // Response not associated with request\r | |
781 | ErrorParity = 22,\r | |
782 | ErrorProtocol = 23,\r | |
783 | ErrorPath = 24, // Detected path error\r | |
784 | ErrorTimeout = 25, // Bus timeout\r | |
785 | ErrorPoisoned = 26 // Read data poisoned\r | |
f85e38bf | 786 | } EFI_GENERIC_ERROR_STATUS_ERROR_TYPE;\r |
787 | \r | |
788 | ///\r | |
789 | /// Validation bit mask indicates which fields in the memory error record are valid\r | |
790 | /// in Memory Error section\r | |
791 | ///@{\r | |
2f88bd3a MK |
792 | #define EFI_PLATFORM_MEMORY_ERROR_STATUS_VALID BIT0\r |
793 | #define EFI_PLATFORM_MEMORY_PHY_ADDRESS_VALID BIT1\r | |
794 | #define EFI_PLATFORM_MEMORY_PHY_ADDRESS_MASK_VALID BIT2\r | |
795 | #define EFI_PLATFORM_MEMORY_NODE_VALID BIT3\r | |
796 | #define EFI_PLATFORM_MEMORY_CARD_VALID BIT4\r | |
797 | #define EFI_PLATFORM_MEMORY_MODULE_VALID BIT5\r | |
798 | #define EFI_PLATFORM_MEMORY_BANK_VALID BIT6\r | |
799 | #define EFI_PLATFORM_MEMORY_DEVICE_VALID BIT7\r | |
800 | #define EFI_PLATFORM_MEMORY_ROW_VALID BIT8\r | |
801 | #define EFI_PLATFORM_MEMORY_COLUMN_VALID BIT9\r | |
802 | #define EFI_PLATFORM_MEMORY_BIT_POS_VALID BIT10\r | |
803 | #define EFI_PLATFORM_MEMORY_REQUESTOR_ID_VALID BIT11\r | |
804 | #define EFI_PLATFORM_MEMORY_RESPONDER_ID_VALID BIT12\r | |
805 | #define EFI_PLATFORM_MEMORY_TARGET_ID_VALID BIT13\r | |
806 | #define EFI_PLATFORM_MEMORY_ERROR_TYPE_VALID BIT14\r | |
807 | #define EFI_PLATFORM_MEMORY_ERROR_RANK_NUM_VALID BIT15\r | |
808 | #define EFI_PLATFORM_MEMORY_ERROR_CARD_HANDLE_VALID BIT16\r | |
809 | #define EFI_PLATFORM_MEMORY_ERROR_MODULE_HANDLE_VALID BIT17\r | |
810 | #define EFI_PLATFORM_MEMORY_ERROR_EXTENDED_ROW_BIT_16_17_VALID BIT18\r | |
811 | #define EFI_PLATFORM_MEMORY_ERROR_BANK_GROUP_VALID BIT19\r | |
812 | #define EFI_PLATFORM_MEMORY_ERROR_BANK_ADDRESS_VALID BIT20\r | |
813 | #define EFI_PLATFORM_MEMORY_ERROR_CHIP_IDENTIFICATION_VALID BIT21\r | |
f85e38bf | 814 | ///@}\r |
815 | \r | |
816 | ///\r | |
817 | /// Memory Error Type identifies the type of error that occurred in Memory\r | |
818 | /// Error section\r | |
819 | ///@{\r | |
2f88bd3a MK |
820 | #define EFI_PLATFORM_MEMORY_ERROR_UNKNOWN 0x00\r |
821 | #define EFI_PLATFORM_MEMORY_ERROR_NONE 0x01\r | |
822 | #define EFI_PLATFORM_MEMORY_ERROR_SINGLEBIT_ECC 0x02\r | |
823 | #define EFI_PLATFORM_MEMORY_ERROR_MLTIBIT_ECC 0x03\r | |
824 | #define EFI_PLATFORM_MEMORY_ERROR_SINGLESYMBOLS_CHIPKILL 0x04\r | |
825 | #define EFI_PLATFORM_MEMORY_ERROR_MULTISYMBOL_CHIPKILL 0x05\r | |
826 | #define EFI_PLATFORM_MEMORY_ERROR_MATER_ABORT 0x06\r | |
827 | #define EFI_PLATFORM_MEMORY_ERROR_TARGET_ABORT 0x07\r | |
828 | #define EFI_PLATFORM_MEMORY_ERROR_PARITY 0x08\r | |
829 | #define EFI_PLATFORM_MEMORY_ERROR_WDT 0x09\r | |
830 | #define EFI_PLATFORM_MEMORY_ERROR_INVALID_ADDRESS 0x0A\r | |
831 | #define EFI_PLATFORM_MEMORY_ERROR_MIRROR_FAILED 0x0B\r | |
832 | #define EFI_PLATFORM_MEMORY_ERROR_SPARING 0x0C\r | |
833 | #define EFI_PLATFORM_MEMORY_ERROR_SCRUB_CORRECTED 0x0D\r | |
834 | #define EFI_PLATFORM_MEMORY_ERROR_SCRUB_UNCORRECTED 0x0E\r | |
835 | #define EFI_PLATFORM_MEMORY_ERROR_MEMORY_MAP_EVENT 0x0F\r | |
f85e38bf | 836 | ///@}\r |
837 | \r | |
838 | ///\r | |
839 | /// Memory Error Section\r | |
840 | ///\r | |
841 | typedef struct {\r | |
2f88bd3a MK |
842 | UINT64 ValidFields;\r |
843 | EFI_GENERIC_ERROR_STATUS ErrorStatus;\r | |
844 | UINT64 PhysicalAddress; // Error physical address\r | |
845 | UINT64 PhysicalAddressMask; // Grnaularity\r | |
846 | UINT16 Node; // Node #\r | |
847 | UINT16 Card;\r | |
848 | UINT16 ModuleRank; // Module or Rank#\r | |
849 | UINT16 Bank;\r | |
850 | UINT16 Device;\r | |
851 | UINT16 Row;\r | |
852 | UINT16 Column;\r | |
853 | UINT16 BitPosition;\r | |
854 | UINT64 RequestorId;\r | |
855 | UINT64 ResponderId;\r | |
856 | UINT64 TargetId;\r | |
857 | UINT8 ErrorType;\r | |
858 | UINT8 Extended;\r | |
859 | UINT16 RankNum;\r | |
860 | UINT16 CardHandle;\r | |
861 | UINT16 ModuleHandle;\r | |
f85e38bf | 862 | } EFI_PLATFORM_MEMORY_ERROR_DATA;\r |
863 | \r | |
a301e4a9 QS |
864 | ///\r |
865 | /// Validation bit mask indicates which fields in the memory error record 2 are valid\r | |
866 | /// in Memory Error section 2\r | |
867 | ///@{\r | |
2f88bd3a MK |
868 | #define EFI_PLATFORM_MEMORY2_ERROR_STATUS_VALID BIT0\r |
869 | #define EFI_PLATFORM_MEMORY2_PHY_ADDRESS_VALID BIT1\r | |
870 | #define EFI_PLATFORM_MEMORY2_PHY_ADDRESS_MASK_VALID BIT2\r | |
871 | #define EFI_PLATFORM_MEMORY2_NODE_VALID BIT3\r | |
872 | #define EFI_PLATFORM_MEMORY2_CARD_VALID BIT4\r | |
873 | #define EFI_PLATFORM_MEMORY2_MODULE_VALID BIT5\r | |
874 | #define EFI_PLATFORM_MEMORY2_BANK_VALID BIT6\r | |
875 | #define EFI_PLATFORM_MEMORY2_DEVICE_VALID BIT7\r | |
876 | #define EFI_PLATFORM_MEMORY2_ROW_VALID BIT8\r | |
877 | #define EFI_PLATFORM_MEMORY2_COLUMN_VALID BIT9\r | |
878 | #define EFI_PLATFORM_MEMORY2_RANK_VALID BIT10\r | |
879 | #define EFI_PLATFORM_MEMORY2_BIT_POS_VALID BIT11\r | |
880 | #define EFI_PLATFORM_MEMORY2_CHIP_ID_VALID BIT12\r | |
881 | #define EFI_PLATFORM_MEMORY2_MEMORY_ERROR_TYPE_VALID BIT13\r | |
882 | #define EFI_PLATFORM_MEMORY2_STATUS_VALID BIT14\r | |
883 | #define EFI_PLATFORM_MEMORY2_REQUESTOR_ID_VALID BIT15\r | |
884 | #define EFI_PLATFORM_MEMORY2_RESPONDER_ID_VALID BIT16\r | |
885 | #define EFI_PLATFORM_MEMORY2_TARGET_ID_VALID BIT17\r | |
886 | #define EFI_PLATFORM_MEMORY2_CARD_HANDLE_VALID BIT18\r | |
887 | #define EFI_PLATFORM_MEMORY2_MODULE_HANDLE_VALID BIT19\r | |
888 | #define EFI_PLATFORM_MEMORY2_BANK_GROUP_VALID BIT20\r | |
889 | #define EFI_PLATFORM_MEMORY2_BANK_ADDRESS_VALID BIT21\r | |
a301e4a9 QS |
890 | ///@}\r |
891 | \r | |
892 | ///\r | |
893 | /// Memory Error Type identifies the type of error that occurred in Memory\r | |
894 | /// Error section 2\r | |
895 | ///@{\r | |
2f88bd3a MK |
896 | #define EFI_PLATFORM_MEMORY2_ERROR_UNKNOWN 0x00\r |
897 | #define EFI_PLATFORM_MEMORY2_ERROR_NONE 0x01\r | |
898 | #define EFI_PLATFORM_MEMORY2_ERROR_SINGLEBIT_ECC 0x02\r | |
899 | #define EFI_PLATFORM_MEMORY2_ERROR_MLTIBIT_ECC 0x03\r | |
900 | #define EFI_PLATFORM_MEMORY2_ERROR_SINGLESYMBOL_CHIPKILL 0x04\r | |
901 | #define EFI_PLATFORM_MEMORY2_ERROR_MULTISYMBOL_CHIPKILL 0x05\r | |
902 | #define EFI_PLATFORM_MEMORY2_ERROR_MASTER_ABORT 0x06\r | |
903 | #define EFI_PLATFORM_MEMORY2_ERROR_TARGET_ABORT 0x07\r | |
904 | #define EFI_PLATFORM_MEMORY2_ERROR_PARITY 0x08\r | |
905 | #define EFI_PLATFORM_MEMORY2_ERROR_WDT 0x09\r | |
906 | #define EFI_PLATFORM_MEMORY2_ERROR_INVALID_ADDRESS 0x0A\r | |
907 | #define EFI_PLATFORM_MEMORY2_ERROR_MIRROR_BROKEN 0x0B\r | |
908 | #define EFI_PLATFORM_MEMORY2_ERROR_MEMORY_SPARING 0x0C\r | |
909 | #define EFI_PLATFORM_MEMORY2_ERROR_SCRUB_CORRECTED 0x0D\r | |
910 | #define EFI_PLATFORM_MEMORY2_ERROR_SCRUB_UNCORRECTED 0x0E\r | |
911 | #define EFI_PLATFORM_MEMORY2_ERROR_MEMORY_MAP_EVENT 0x0F\r | |
a301e4a9 QS |
912 | ///@}\r |
913 | \r | |
914 | ///\r | |
915 | /// Memory Error Section 2\r | |
916 | ///\r | |
917 | typedef struct {\r | |
2f88bd3a MK |
918 | UINT64 ValidFields;\r |
919 | EFI_GENERIC_ERROR_STATUS ErrorStatus;\r | |
920 | UINT64 PhysicalAddress; // Error physical address\r | |
921 | UINT64 PhysicalAddressMask; // Grnaularity\r | |
922 | UINT16 Node; // Node #\r | |
923 | UINT16 Card;\r | |
924 | UINT16 Module; // Module or Rank#\r | |
925 | UINT16 Bank;\r | |
926 | UINT32 Device;\r | |
927 | UINT32 Row;\r | |
928 | UINT32 Column;\r | |
929 | UINT32 Rank;\r | |
930 | UINT32 BitPosition;\r | |
931 | UINT8 ChipId;\r | |
932 | UINT8 MemErrorType;\r | |
933 | UINT8 Status;\r | |
934 | UINT8 Reserved;\r | |
935 | UINT64 RequestorId;\r | |
936 | UINT64 ResponderId;\r | |
937 | UINT64 TargetId;\r | |
938 | UINT32 CardHandle;\r | |
939 | UINT32 ModuleHandle;\r | |
a301e4a9 QS |
940 | } EFI_PLATFORM_MEMORY2_ERROR_DATA;\r |
941 | \r | |
f85e38bf | 942 | ///\r |
943 | /// Validation bits mask indicates which of the following fields is valid\r | |
944 | /// in PCI Express Error Record.\r | |
945 | ///@{\r | |
2f88bd3a MK |
946 | #define EFI_PCIE_ERROR_PORT_TYPE_VALID BIT0\r |
947 | #define EFI_PCIE_ERROR_VERSION_VALID BIT1\r | |
948 | #define EFI_PCIE_ERROR_COMMAND_STATUS_VALID BIT2\r | |
949 | #define EFI_PCIE_ERROR_DEVICE_ID_VALID BIT3\r | |
950 | #define EFI_PCIE_ERROR_SERIAL_NO_VALID BIT4\r | |
951 | #define EFI_PCIE_ERROR_BRIDGE_CRL_STS_VALID BIT5\r | |
952 | #define EFI_PCIE_ERROR_CAPABILITY_INFO_VALID BIT6\r | |
953 | #define EFI_PCIE_ERROR_AER_INFO_VALID BIT7\r | |
f85e38bf | 954 | ///@}\r |
955 | \r | |
956 | ///\r | |
957 | /// PCIe Device/Port Type as defined in the PCI Express capabilities register\r | |
958 | ///@{\r | |
2f88bd3a MK |
959 | #define EFI_PCIE_ERROR_PORT_PCIE_ENDPOINT 0x00000000\r |
960 | #define EFI_PCIE_ERROR_PORT_PCI_ENDPOINT 0x00000001\r | |
961 | #define EFI_PCIE_ERROR_PORT_ROOT_PORT 0x00000004\r | |
962 | #define EFI_PCIE_ERROR_PORT_UPSWITCH_PORT 0x00000005\r | |
963 | #define EFI_PCIE_ERROR_PORT_DOWNSWITCH_PORT 0x00000006\r | |
964 | #define EFI_PCIE_ERROR_PORT_PCIE_TO_PCI_BRIDGE 0x00000007\r | |
965 | #define EFI_PCIE_ERROR_PORT_PCI_TO_PCIE_BRIDGE 0x00000008\r | |
966 | #define EFI_PCIE_ERROR_PORT_ROOT_INT_ENDPOINT 0x00000009\r | |
967 | #define EFI_PCIE_ERROR_PORT_ROOT_EVENT_COLLECTOR 0x0000000A\r | |
f85e38bf | 968 | ///@}\r |
969 | \r | |
970 | ///\r | |
971 | /// PCI Slot number\r | |
972 | ///\r | |
973 | typedef struct {\r | |
2f88bd3a MK |
974 | UINT16 Resv1 : 3;\r |
975 | UINT16 Number : 13;\r | |
f85e38bf | 976 | } EFI_GENERIC_ERROR_PCI_SLOT;\r |
977 | \r | |
978 | ///\r | |
979 | /// PCIe Root Port PCI/bridge PCI compatible device number and\r | |
980 | /// bus number information to uniquely identify the root port or\r | |
981 | /// bridge. Default values for both the bus numbers is zero.\r | |
982 | ///\r | |
983 | typedef struct {\r | |
2f88bd3a MK |
984 | UINT16 VendorId;\r |
985 | UINT16 DeviceId;\r | |
986 | UINT8 ClassCode[3];\r | |
987 | UINT8 Function;\r | |
988 | UINT8 Device;\r | |
989 | UINT16 Segment;\r | |
990 | UINT8 PrimaryOrDeviceBus;\r | |
991 | UINT8 SecondaryBus;\r | |
992 | EFI_GENERIC_ERROR_PCI_SLOT Slot;\r | |
993 | UINT8 Resv1;\r | |
f85e38bf | 994 | } EFI_GENERIC_ERROR_PCIE_DEV_BRIDGE_ID;\r |
995 | \r | |
996 | ///\r | |
997 | /// PCIe Capability Structure\r | |
998 | ///\r | |
999 | typedef struct {\r | |
2f88bd3a | 1000 | UINT8 PcieCap[60];\r |
f85e38bf | 1001 | } EFI_PCIE_ERROR_DATA_CAPABILITY;\r |
1002 | \r | |
1003 | ///\r | |
1004 | /// PCIe Advanced Error Reporting Extended Capability Structure.\r | |
1005 | ///\r | |
1006 | typedef struct {\r | |
2f88bd3a | 1007 | UINT8 PcieAer[96];\r |
f85e38bf | 1008 | } EFI_PCIE_ERROR_DATA_AER;\r |
1009 | \r | |
1010 | ///\r | |
1011 | /// PCI Express Error Record\r | |
1012 | ///\r | |
1013 | typedef struct {\r | |
2f88bd3a MK |
1014 | UINT64 ValidFields;\r |
1015 | UINT32 PortType;\r | |
1016 | UINT32 Version;\r | |
1017 | UINT32 CommandStatus;\r | |
1018 | UINT32 Resv2;\r | |
1019 | EFI_GENERIC_ERROR_PCIE_DEV_BRIDGE_ID DevBridge;\r | |
1020 | UINT64 SerialNo;\r | |
1021 | UINT32 BridgeControlStatus;\r | |
1022 | EFI_PCIE_ERROR_DATA_CAPABILITY Capability;\r | |
1023 | EFI_PCIE_ERROR_DATA_AER AerInfo;\r | |
f85e38bf | 1024 | } EFI_PCIE_ERROR_DATA;\r |
1025 | \r | |
1026 | ///\r | |
1027 | /// Validation bits Indicates which of the following fields is valid\r | |
1028 | /// in PCI/PCI-X Bus Error Section.\r | |
1029 | ///@{\r | |
2f88bd3a MK |
1030 | #define EFI_PCI_PCIX_BUS_ERROR_STATUS_VALID BIT0\r |
1031 | #define EFI_PCI_PCIX_BUS_ERROR_TYPE_VALID BIT1\r | |
1032 | #define EFI_PCI_PCIX_BUS_ERROR_BUS_ID_VALID BIT2\r | |
1033 | #define EFI_PCI_PCIX_BUS_ERROR_BUS_ADDRESS_VALID BIT3\r | |
1034 | #define EFI_PCI_PCIX_BUS_ERROR_BUS_DATA_VALID BIT4\r | |
1035 | #define EFI_PCI_PCIX_BUS_ERROR_COMMAND_VALID BIT5\r | |
1036 | #define EFI_PCI_PCIX_BUS_ERROR_REQUESTOR_ID_VALID BIT6\r | |
1037 | #define EFI_PCI_PCIX_BUS_ERROR_COMPLETER_ID_VALID BIT7\r | |
1038 | #define EFI_PCI_PCIX_BUS_ERROR_TARGET_ID_VALID BIT8\r | |
f85e38bf | 1039 | ///@}\r |
1040 | \r | |
1041 | ///\r | |
1042 | /// PCI Bus Error Type in PCI/PCI-X Bus Error Section\r | |
1043 | ///@{\r | |
2f88bd3a MK |
1044 | #define EFI_PCI_PCIX_BUS_ERROR_UNKNOWN 0x0000\r |
1045 | #define EFI_PCI_PCIX_BUS_ERROR_DATA_PARITY 0x0001\r | |
1046 | #define EFI_PCI_PCIX_BUS_ERROR_SYSTEM 0x0002\r | |
1047 | #define EFI_PCI_PCIX_BUS_ERROR_MASTER_ABORT 0x0003\r | |
1048 | #define EFI_PCI_PCIX_BUS_ERROR_BUS_TIMEOUT 0x0004\r | |
1049 | #define EFI_PCI_PCIX_BUS_ERROR_MASTER_DATA_PARITY 0x0005\r | |
1050 | #define EFI_PCI_PCIX_BUS_ERROR_ADDRESS_PARITY 0x0006\r | |
1051 | #define EFI_PCI_PCIX_BUS_ERROR_COMMAND_PARITY 0x0007\r | |
f85e38bf | 1052 | ///@}\r |
1053 | \r | |
1054 | ///\r | |
1055 | /// PCI/PCI-X Bus Error Section\r | |
1056 | ///\r | |
1057 | typedef struct {\r | |
2f88bd3a MK |
1058 | UINT64 ValidFields;\r |
1059 | EFI_GENERIC_ERROR_STATUS ErrorStatus;\r | |
1060 | UINT16 Type;\r | |
1061 | UINT16 BusId;\r | |
1062 | UINT32 Resv2;\r | |
1063 | UINT64 BusAddress;\r | |
1064 | UINT64 BusData;\r | |
1065 | UINT64 BusCommand;\r | |
1066 | UINT64 RequestorId;\r | |
1067 | UINT64 ResponderId;\r | |
1068 | UINT64 TargetId;\r | |
f85e38bf | 1069 | } EFI_PCI_PCIX_BUS_ERROR_DATA;\r |
1070 | \r | |
1071 | ///\r | |
1072 | /// Validation bits Indicates which of the following fields is valid\r | |
1073 | /// in PCI/PCI-X Component Error Section.\r | |
1074 | ///@{\r | |
2f88bd3a MK |
1075 | #define EFI_PCI_PCIX_DEVICE_ERROR_STATUS_VALID BIT0\r |
1076 | #define EFI_PCI_PCIX_DEVICE_ERROR_ID_INFO_VALID BIT1\r | |
1077 | #define EFI_PCI_PCIX_DEVICE_ERROR_MEM_NUM_VALID BIT2\r | |
1078 | #define EFI_PCI_PCIX_DEVICE_ERROR_IO_NUM_VALID BIT3\r | |
1079 | #define EFI_PCI_PCIX_DEVICE_ERROR_REG_DATA_PAIR_VALID BIT4\r | |
f85e38bf | 1080 | ///@}\r |
1081 | \r | |
1082 | ///\r | |
1083 | /// PCI/PCI-X Device Identification Information\r | |
1084 | ///\r | |
1085 | typedef struct {\r | |
2f88bd3a MK |
1086 | UINT16 VendorId;\r |
1087 | UINT16 DeviceId;\r | |
1088 | UINT8 ClassCode[3];\r | |
1089 | UINT8 Function;\r | |
1090 | UINT8 Device;\r | |
1091 | UINT8 Bus;\r | |
1092 | UINT8 Segment;\r | |
1093 | UINT8 Resv1;\r | |
1094 | UINT32 Resv2;\r | |
f85e38bf | 1095 | } EFI_GENERIC_ERROR_PCI_DEVICE_ID;\r |
1096 | \r | |
1097 | ///\r | |
1098 | /// Identifies the type of firmware error record\r | |
bb427a23 | 1099 | ///@{\r |
2f88bd3a MK |
1100 | #define EFI_FIRMWARE_ERROR_TYPE_IPF_SAL 0x00\r |
1101 | #define EFI_FIRMWARE_ERROR_TYPE_SOC_TYPE1 0x01\r | |
1102 | #define EFI_FIRMWARE_ERROR_TYPE_SOC_TYPE2 0x02\r | |
bb427a23 | 1103 | ///@}\r |
f85e38bf | 1104 | \r |
1105 | ///\r | |
1106 | /// Firmware Error Record Section\r | |
1107 | ///\r | |
1108 | typedef struct {\r | |
1109 | UINT8 ErrorType;\r | |
bb427a23 HW |
1110 | UINT8 Revision;\r |
1111 | UINT8 Resv1[6];\r | |
f85e38bf | 1112 | UINT64 RecordId;\r |
bb427a23 | 1113 | EFI_GUID RecordIdGuid;\r |
f85e38bf | 1114 | } EFI_FIRMWARE_ERROR_DATA;\r |
1115 | \r | |
1116 | ///\r | |
1117 | /// Fault Reason in DMAr Generic Error Section\r | |
1118 | ///@{\r | |
2f88bd3a MK |
1119 | #define EFI_DMA_FAULT_REASON_TABLE_ENTRY_NOT_PRESENT 0x01\r |
1120 | #define EFI_DMA_FAULT_REASON_TABLE_ENTRY_INVALID 0x02\r | |
1121 | #define EFI_DMA_FAULT_REASON_ACCESS_MAPPING_TABLE_ERROR 0x03\r | |
1122 | #define EFI_DMA_FAULT_REASON_RESV_BIT_ERROR_IN_MAPPING_TABLE 0x04\r | |
1123 | #define EFI_DMA_FAULT_REASON_ACCESS_ADDR_OUT_OF_SPACE 0x05\r | |
1124 | #define EFI_DMA_FAULT_REASON_INVALID_ACCESS 0x06\r | |
1125 | #define EFI_DMA_FAULT_REASON_INVALID_REQUEST 0x07\r | |
1126 | #define EFI_DMA_FAULT_REASON_ACCESS_TRANSLATE_TABLE_ERROR 0x08\r | |
1127 | #define EFI_DMA_FAULT_REASON_RESV_BIT_ERROR_IN_TRANSLATE_TABLE 0x09\r | |
1128 | #define EFI_DMA_FAULT_REASON_INVALID_COMMAOND 0x0A\r | |
1129 | #define EFI_DMA_FAULT_REASON_ACCESS_COMMAND_BUFFER_ERROR 0x0B\r | |
f85e38bf | 1130 | ///@}\r |
1131 | \r | |
1132 | ///\r | |
1133 | /// DMA access type in DMAr Generic Error Section\r | |
1134 | ///@{\r | |
2f88bd3a MK |
1135 | #define EFI_DMA_ACCESS_TYPE_READ 0x00\r |
1136 | #define EFI_DMA_ACCESS_TYPE_WRITE 0x01\r | |
f85e38bf | 1137 | ///@}\r |
1138 | \r | |
1139 | ///\r | |
1140 | /// DMA address type in DMAr Generic Error Section\r | |
1141 | ///@{\r | |
2f88bd3a MK |
1142 | #define EFI_DMA_ADDRESS_UNTRANSLATED 0x00\r |
1143 | #define EFI_DMA_ADDRESS_TRANSLATION 0x01\r | |
f85e38bf | 1144 | ///@}\r |
1145 | \r | |
1146 | ///\r | |
1147 | /// Architecture type in DMAr Generic Error Section\r | |
1148 | ///@{\r | |
2f88bd3a MK |
1149 | #define EFI_DMA_ARCH_TYPE_VT 0x01\r |
1150 | #define EFI_DMA_ARCH_TYPE_IOMMU 0x02\r | |
f85e38bf | 1151 | ///@}\r |
1152 | \r | |
1153 | ///\r | |
1154 | /// DMAr Generic Error Section\r | |
1155 | ///\r | |
1156 | typedef struct {\r | |
2f88bd3a MK |
1157 | UINT16 RequesterId;\r |
1158 | UINT16 SegmentNumber;\r | |
1159 | UINT8 FaultReason;\r | |
1160 | UINT8 AccessType;\r | |
1161 | UINT8 AddressType;\r | |
1162 | UINT8 ArchType;\r | |
1163 | UINT64 DeviceAddr;\r | |
1164 | UINT8 Resv1[16];\r | |
f85e38bf | 1165 | } EFI_DMAR_GENERIC_ERROR_DATA;\r |
1166 | \r | |
1167 | ///\r | |
1168 | /// Intel VT for Directed I/O specific DMAr Errors\r | |
1169 | ///\r | |
1170 | typedef struct {\r | |
2f88bd3a MK |
1171 | UINT8 Version;\r |
1172 | UINT8 Revision;\r | |
1173 | UINT8 OemId[6];\r | |
1174 | UINT64 Capability;\r | |
1175 | UINT64 CapabilityEx;\r | |
1176 | UINT32 GlobalCommand;\r | |
1177 | UINT32 GlobalStatus;\r | |
1178 | UINT32 FaultStatus;\r | |
1179 | UINT8 Resv1[12];\r | |
1180 | UINT64 FaultRecord[2];\r | |
1181 | UINT64 RootEntry[2];\r | |
1182 | UINT64 ContextEntry[2];\r | |
1183 | UINT64 PteL6;\r | |
1184 | UINT64 PteL5;\r | |
1185 | UINT64 PteL4;\r | |
1186 | UINT64 PteL3;\r | |
1187 | UINT64 PteL2;\r | |
1188 | UINT64 PteL1;\r | |
f85e38bf | 1189 | } EFI_DIRECTED_IO_DMAR_ERROR_DATA;\r |
1190 | \r | |
1191 | ///\r | |
1192 | /// IOMMU specific DMAr Errors\r | |
1193 | ///\r | |
1194 | typedef struct {\r | |
2f88bd3a MK |
1195 | UINT8 Revision;\r |
1196 | UINT8 Resv1[7];\r | |
1197 | UINT64 Control;\r | |
1198 | UINT64 Status;\r | |
1199 | UINT8 Resv2[8];\r | |
1200 | UINT64 EventLogEntry[2];\r | |
1201 | UINT8 Resv3[16];\r | |
1202 | UINT64 DeviceTableEntry[4];\r | |
1203 | UINT64 PteL6;\r | |
1204 | UINT64 PteL5;\r | |
1205 | UINT64 PteL4;\r | |
1206 | UINT64 PteL3;\r | |
1207 | UINT64 PteL2;\r | |
1208 | UINT64 PteL1;\r | |
f85e38bf | 1209 | } EFI_IOMMU_DMAR_ERROR_DATA;\r |
1210 | \r | |
1211 | #pragma pack()\r | |
1212 | \r | |
2f88bd3a MK |
1213 | extern EFI_GUID gEfiEventNotificationTypeCmcGuid;\r |
1214 | extern EFI_GUID gEfiEventNotificationTypeCpeGuid;\r | |
1215 | extern EFI_GUID gEfiEventNotificationTypeMceGuid;\r | |
1216 | extern EFI_GUID gEfiEventNotificationTypePcieGuid;\r | |
1217 | extern EFI_GUID gEfiEventNotificationTypeInitGuid;\r | |
1218 | extern EFI_GUID gEfiEventNotificationTypeNmiGuid;\r | |
1219 | extern EFI_GUID gEfiEventNotificationTypeBootGuid;\r | |
1220 | extern EFI_GUID gEfiEventNotificationTypeDmarGuid;\r | |
1221 | extern EFI_GUID gEfiEventNotificationTypeSeaGuid;\r | |
1222 | extern EFI_GUID gEfiEventNotificationTypeSeiGuid;\r | |
1223 | extern EFI_GUID gEfiEventNotificationTypePeiGuid;\r | |
1224 | \r | |
1225 | extern EFI_GUID gEfiProcessorGenericErrorSectionGuid;\r | |
1226 | extern EFI_GUID gEfiProcessorSpecificErrorSectionGuid;\r | |
1227 | extern EFI_GUID gEfiIa32X64ProcessorErrorSectionGuid;\r | |
1228 | extern EFI_GUID gEfiArmProcessorErrorSectionGuid;\r | |
1229 | extern EFI_GUID gEfiPlatformMemoryErrorSectionGuid;\r | |
1230 | extern EFI_GUID gEfiPlatformMemory2ErrorSectionGuid;\r | |
1231 | extern EFI_GUID gEfiPcieErrorSectionGuid;\r | |
1232 | extern EFI_GUID gEfiFirmwareErrorSectionGuid;\r | |
1233 | extern EFI_GUID gEfiPciBusErrorSectionGuid;\r | |
1234 | extern EFI_GUID gEfiPciDevErrorSectionGuid;\r | |
1235 | extern EFI_GUID gEfiDMArGenericErrorSectionGuid;\r | |
1236 | extern EFI_GUID gEfiDirectedIoDMArErrorSectionGuid;\r | |
1237 | extern EFI_GUID gEfiIommuDMArErrorSectionGuid;\r | |
f85e38bf | 1238 | \r |
1239 | #if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)\r | |
1240 | ///\r | |
1241 | /// IA32 and x64 Specific definitions.\r | |
1242 | ///\r | |
1243 | \r | |
2f88bd3a MK |
1244 | extern EFI_GUID gEfiIa32X64ErrorTypeCacheCheckGuid;\r |
1245 | extern EFI_GUID gEfiIa32X64ErrorTypeTlbCheckGuid;\r | |
1246 | extern EFI_GUID gEfiIa32X64ErrorTypeBusCheckGuid;\r | |
1247 | extern EFI_GUID gEfiIa32X64ErrorTypeMsCheckGuid;\r | |
f85e38bf | 1248 | \r |
1249 | #endif\r | |
1250 | \r | |
1251 | #endif\r |