]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/ReportStatusCodeLib.h
Checked in part of MDE library instances following PI and UEFI. It includes:
[mirror_edk2.git] / MdePkg / Include / Library / ReportStatusCodeLib.h
CommitLineData
fb3df220 1/** @file\r
2 Report Status Code Library public .h file\r
3\r
4 Copyright (c) 2006, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
13**/\r
14\r
15#ifndef __REPORT_STATUS_CODE_LIB_H__\r
16#define __REPORT_STATUS_CODE_LIB_H__\r
17\r
c7d265a9 18#include <Protocol/DevicePath.h>\r
19\r
fb3df220 20//\r
21// Declare bits for PcdReportStatusCodePropertyMask\r
22//\r
23#define REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED 0x00000001\r
24#define REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED 0x00000002\r
25#define REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED 0x00000004\r
26\r
27//\r
28// Extended Data structure definitions with EFI_STATUS_CODE_DATA headers removed\r
29//\r
30\r
fb3df220 31//\r
32// Extern for the modules Caller ID GUID\r
33//\r
34extern EFI_GUID gEfiCallerIdGuid;\r
35\r
36/**\r
37 Converts a status code to an 8-bit POST code value.\r
38\r
39 Converts the status code specified by CodeType and Value to an 8-bit POST code \r
40 and returns the 8-bit POST code in PostCode. If CodeType is an \r
41 EFI_PROGRESS_CODE or CodeType is an EFI_ERROR_CODE, then bits 0..4 of PostCode \r
42 are set to bits 16..20 of Value, and bits 5..7 of PostCode are set to bits \r
43 24..26 of Value., and TRUE is returned. Otherwise, FALSE is returned. \r
44\r
45 If PostCode is NULL, then ASSERT().\r
46\r
47 @param CodeType The type of status code being converted.\r
48 @param Value The status code value being converted.\r
49 @param PostCode A pointer to the 8-bit POST code value to return. \r
50\r
51 @retval TRUE The status code specified by CodeType and Value was converted \r
52 to an 8-bit POST code and returned in PostCode.\r
53 @retval FALSE The status code specified by CodeType and Value could not be \r
54 converted to an 8-bit POST code value.\r
55\r
56**/\r
57BOOLEAN\r
58EFIAPI\r
59CodeTypeToPostCode (\r
60 IN EFI_STATUS_CODE_TYPE CodeType,\r
61 IN EFI_STATUS_CODE_VALUE Value,\r
62 OUT UINT8 *PostCode\r
63 );\r
64\r
65\r
66/**\r
67 Extracts ASSERT() information from a status code structure.\r
68\r
69 Converts the status code specified by CodeType, Value, and Data to the ASSERT()\r
70 arguments specified by Filename, Description, and LineNumber. If CodeType is \r
71 an EFI_ERROR_CODE, and CodeType has a severity of EFI_ERROR_UNRECOVERED, and \r
72 Value has an operation mask of EFI_SW_EC_ILLEGAL_SOFTWARE_STATE, extract \r
73 Filename, Description, and LineNumber from the optional data area of the \r
74 status code buffer specified by Data. The optional data area of Data contains \r
75 a Null-terminated ASCII string for the FileName, followed by a Null-terminated \r
76 ASCII string for the Description, followed by a 32-bit LineNumber. If the \r
77 ASSERT() information could be extracted from Data, then return TRUE. \r
78 Otherwise, FALSE is returned. \r
79\r
80 If Data is NULL, then ASSERT().\r
81 If Filename is NULL, then ASSERT().\r
82 If Description is NULL, then ASSERT().\r
83 If LineNumber is NULL, then ASSERT().\r
84\r
85 @param CodeType The type of status code being converted.\r
86 @param Value The status code value being converted.\r
87 @param Data Pointer to status code data buffer. \r
88 @param Filename Pointer to the source file name that generated the ASSERT().\r
89 @param Description Pointer to the description of the ASSERT().\r
90 @param LineNumber Pointer to source line number that generated the ASSERT().\r
91\r
92 @retval TRUE The status code specified by CodeType, Value, and Data was \r
93 converted ASSERT() arguments specified by Filename, Description, \r
94 and LineNumber.\r
95 @retval FALSE The status code specified by CodeType, Value, and Data could \r
96 not be converted to ASSERT() arguments.\r
97\r
98**/\r
99BOOLEAN\r
100EFIAPI\r
101ReportStatusCodeExtractAssertInfo (\r
102 IN EFI_STATUS_CODE_TYPE CodeType,\r
103 IN EFI_STATUS_CODE_VALUE Value, \r
104 IN CONST EFI_STATUS_CODE_DATA *Data, \r
105 OUT CHAR8 **Filename,\r
106 OUT CHAR8 **Description,\r
107 OUT UINT32 *LineNumber\r
108 );\r
109\r
110\r
111/**\r
112 Extracts DEBUG() information from a status code structure.\r
113\r
114 Converts the status code specified by Data to the DEBUG() arguments specified \r
115 by ErrorLevel, Marker, and Format. If type GUID in Data is \r
116 EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID, then extract ErrorLevel, Marker, and \r
117 Format from the optional data area of the status code buffer specified by Data. \r
118 The optional data area of Data contains a 32-bit ErrorLevel followed by Marker \r
119 which is 12 UINTN parameters, followed by a Null-terminated ASCII string for \r
120 the Format. If the DEBUG() information could be extracted from Data, then \r
121 return TRUE. Otherwise, FALSE is returned.\r
122\r
123 If Data is NULL, then ASSERT().\r
124 If ErrorLevel is NULL, then ASSERT().\r
125 If Marker is NULL, then ASSERT().\r
126 If Format is NULL, then ASSERT().\r
127\r
128 @param Data Pointer to status code data buffer. \r
129 @param ErrorLevel Pointer to error level mask for a debug message.\r
130 @param Marker Pointer to the variable argument list associated with Format.\r
131 @param Format Pointer to a Null-terminated ASCII format string of a \r
132 debug message.\r
133\r
134 @retval TRUE The status code specified by Data was converted DEBUG() arguments \r
135 specified by ErrorLevel, Marker, and Format.\r
136 @retval FALSE The status code specified by Data could not be converted to \r
137 DEBUG() arguments.\r
138\r
139**/\r
140BOOLEAN\r
141EFIAPI\r
142ReportStatusCodeExtractDebugInfo (\r
143 IN CONST EFI_STATUS_CODE_DATA *Data, \r
144 OUT UINT32 *ErrorLevel,\r
145 OUT VA_LIST *Marker,\r
146 OUT CHAR8 **Format\r
147 );\r
148\r
149\r
150/**\r
151 Reports a status code.\r
152\r
153 Reports the status code specified by the parameters Type and Value. Status \r
154 code also require an instance, caller ID, and extended data. This function \r
155 passed in a zero instance, NULL extended data, and a caller ID of \r
156 gEfiCallerIdGuid, which is the GUID for the module. \r
157 \r
158 ReportStatusCode()must actively prevent recusrsion. If ReportStatusCode() \r
159 is called while processing another any other Report Status Code Library function,\r
160 then ReportStatusCode() must return immediately.\r
161\r
162 @param Type Status code type. \r
163 @param Value Status code value.\r
164\r
165 @retval EFI_SUCCESS The status code was reported.\r
166 @retval EFI_DEVICE_ERROR There status code could not be reported due to a \r
167 device error.\r
168 @retval EFI_UNSUPPORTED Report status code is not supported\r
169\r
170**/\r
171EFI_STATUS\r
172EFIAPI\r
173ReportStatusCode (\r
174 IN EFI_STATUS_CODE_TYPE Type,\r
175 IN EFI_STATUS_CODE_VALUE Value\r
176 );\r
177\r
178\r
179/**\r
180 Reports a status code with a Device Path Protocol as the extended data.\r
181\r
182 Allocates and fills in the extended data section of a status code with the \r
183 Device Path Protocol specified by DevicePath. This function is responsible \r
184 for allocating a buffer large enough for the standard header and the device \r
185 path. The standard header is filled in with a GUID of \r
186 gEfiStatusCodeSpecificDataGuid. The status code is reported with a zero \r
187 instance and a caller ID of gEfiCallerIdGuid.\r
188\r
189 ReportStatusCodeWithDevicePath()must actively prevent recursion. If \r
190 ReportStatusCodeWithDevicePath() is called while processing another any other \r
191 Report Status Code Library function, then ReportStatusCodeWithDevicePath() \r
192 must return EFI_DEVICE_ERROR immediately.\r
193\r
194 If DevicePath is NULL, then ASSERT().\r
195\r
196 @param Type Status code type. \r
197 @param Value Status code value.\r
198 @param DevicePath Pointer to the Device Path Protocol to be reported.\r
199\r
200 @retval EFI_SUCCESS The status code was reported with the extended \r
201 data specified by DevicePath.\r
202 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the \r
203 extended data section.\r
204 @retval EFI_UNSUPPORTED Report status code is not supported\r
205\r
206**/\r
207EFI_STATUS\r
208EFIAPI\r
209ReportStatusCodeWithDevicePath (\r
210 IN EFI_STATUS_CODE_TYPE Type,\r
211 IN EFI_STATUS_CODE_VALUE Value,\r
212 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
213 );\r
214\r
215\r
216/**\r
217 Reports a status code with an extended data buffer.\r
218\r
219 Allocates and fills in the extended data section of a status code with the \r
220 extended data specified by ExtendedData and ExtendedDataSize. ExtendedData \r
221 is assumed to be one of the data structures specified in Related Definitions. \r
222 These data structure do not have the standard header, so this function is \r
223 responsible for allocating a buffer large enough for the standard header and \r
224 the extended data passed into this function. The standard header is filled \r
225 in with a GUID of gEfiStatusCodeSpecificDataGuid. The status code is reported \r
226 with a zero instance and a caller ID of gEfiCallerIdGuid.\r
227\r
228 ReportStatusCodeWithExtendedData()must actively prevent recursion. If \r
229 ReportStatusCodeWithExtendedData() is called while processing another any other \r
230 Report Status Code Library function, then ReportStatusCodeWithExtendedData() \r
231 must return EFI_DEVICE_ERROR immediately.\r
232\r
233 If ExtendedData is NULL, then ASSERT().\r
234 If ExtendedDataSize is 0, then ASSERT().\r
235\r
236 @param Type Status code type. \r
237 @param Value Status code value.\r
238 @param ExtendedData Pointer to the extended data buffer to be reported.\r
239 @param ExtendedDataSize The size, in bytes, of the extended data buffer to \r
240 be reported.\r
241\r
242 @retval EFI_SUCCESS The status code was reported with the extended \r
243 data specified by ExtendedData and ExtendedDataSize.\r
244 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the \r
245 extended data section.\r
246 @retval EFI_UNSUPPORTED Report status code is not supported\r
247\r
248**/\r
249EFI_STATUS\r
250EFIAPI\r
251ReportStatusCodeWithExtendedData (\r
252 IN EFI_STATUS_CODE_TYPE Type,\r
253 IN EFI_STATUS_CODE_VALUE Value,\r
254 IN CONST VOID *ExtendedData,\r
255 IN UINTN ExtendedDataSize\r
256 );\r
257\r
258\r
259/**\r
260 Reports a status code with full parameters.\r
261\r
262 The function reports a status code. If ExtendedData is NULL and ExtendedDataSize \r
263 is 0, then an extended data buffer is not reported. If ExtendedData is not \r
264 NULL and ExtendedDataSize is not 0, then an extended data buffer is allocated. \r
265 ExtendedData is assumed not have the standard status code header, so this function \r
266 is responsible for allocating a buffer large enough for the standard header and \r
267 the extended data passed into this function. The standard header is filled in \r
268 with a GUID specified by ExtendedDataGuid. If ExtendedDataGuid is NULL, then a \r
269 GUID of gEfiStatusCodeSpecificDatauid is used. The status code is reported with \r
270 an instance specified by Instance and a caller ID specified by CallerId. If \r
271 CallerId is NULL, then a caller ID of gEfiCallerIdGuid is used.\r
272\r
273 ReportStatusCodeEx()must actively prevent recursion. If ReportStatusCodeEx() \r
274 is called while processing another any other Report Status Code Library function, \r
275 then ReportStatusCodeEx() must return EFI_DEVICE_ERROR immediately.\r
276\r
277 If ExtendedData is NULL and ExtendedDataSize is not zero, then ASSERT().\r
278 If ExtendedData is not NULL and ExtendedDataSize is zero, then ASSERT().\r
279\r
280 @param Type Status code type. \r
281 @param Value Status code value.\r
282 @param Instance Status code instance number.\r
283 @param CallerId Pointer to a GUID that identifies the caller of this \r
284 function. If this parameter is NULL, then a caller \r
285 ID of gEfiCallerIdGuid is used.\r
286 @param ExtendedDataGuid Pointer to the GUID for the extended data buffer. \r
287 If this parameter is NULL, then a the status code \r
288 standard header is filled in with \r
289 gEfiStatusCodeSpecificDataGuid.\r
290 @param ExtendedData Pointer to the extended data buffer. This is an \r
291 optional parameter that may be NULL.\r
292 @param ExtendedDataSize The size, in bytes, of the extended data buffer.\r
293\r
294 @retval EFI_SUCCESS The status code was reported.\r
295 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate \r
296 the extended data section if it was specified.\r
297 @retval EFI_UNSUPPORTED Report status code is not supported\r
298\r
299**/\r
300EFI_STATUS\r
301EFIAPI\r
302ReportStatusCodeEx (\r
303 IN EFI_STATUS_CODE_TYPE Type,\r
304 IN EFI_STATUS_CODE_VALUE Value,\r
305 IN UINT32 Instance,\r
306 IN CONST EFI_GUID *CallerId OPTIONAL,\r
307 IN CONST EFI_GUID *ExtendedDataGuid OPTIONAL,\r
308 IN CONST VOID *ExtendedData OPTIONAL,\r
309 IN UINTN ExtendedDataSize\r
310 );\r
311\r
312\r
313/**\r
314 Returns TRUE if status codes of type EFI_PROGRESS_CODE are enabled\r
315\r
316 This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED \r
317 bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
318\r
319 @retval TRUE The REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED bit of \r
320 PcdReportStatusCodeProperyMask is set.\r
321 @retval FALSE The REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED bit of \r
322 PcdReportStatusCodeProperyMask is clear.\r
323\r
324**/\r
325BOOLEAN\r
326EFIAPI\r
327ReportProgressCodeEnabled (\r
328 VOID\r
329 );\r
330\r
331\r
332/**\r
333 Returns TRUE if status codes of type EFI_ERROR_CODE are enabled\r
334\r
335 This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED \r
336 bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
337\r
338 @retval TRUE The REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED bit of \r
339 PcdReportStatusCodeProperyMask is set.\r
340 @retval FALSE The REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED bit of \r
341 PcdReportStatusCodeProperyMask is clear.\r
342\r
343**/\r
344BOOLEAN\r
345EFIAPI\r
346ReportErrorCodeEnabled (\r
347 VOID\r
348 );\r
349\r
350\r
351/**\r
352 Returns TRUE if status codes of type EFI_DEBUG_CODE are enabled\r
353\r
354 This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED \r
355 bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.\r
356\r
357 @retval TRUE The REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED bit of \r
358 PcdReportStatusCodeProperyMask is set.\r
359 @retval FALSE The REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED bit of \r
360 PcdReportStatusCodeProperyMask is clear.\r
361\r
362**/\r
363BOOLEAN\r
364EFIAPI\r
365ReportDebugCodeEnabled (\r
366 VOID\r
367 );\r
368\r
369\r
370/**\r
371 Reports a status code with minimal parameters if the status code type is enabled.\r
372\r
373 If the status code type specified by Type is enabled in \r
374 PcdReportStatusCodeProperyMask, then call ReportStatusCode() passing in Type \r
375 and Value.\r
376\r
377 @param Type Status code type. \r
378 @param Value Status code value.\r
379\r
380 @retval EFI_SUCCESS The status code was reported.\r
381 @retval EFI_DEVICE_ERROR There status code could not be reported due to a device error.\r
382 @retval EFI_UNSUPPORTED Report status code is not supported\r
383\r
384**/\r
385#define REPORT_STATUS_CODE(Type,Value) \\r
386 (ReportProgressCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) ? \\r
387 ReportStatusCode(Type,Value) : \\r
388 (ReportErrorCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) ? \\r
389 ReportStatusCode(Type,Value) : \\r
390 (ReportDebugCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) ? \\r
391 ReportStatusCode(Type,Value) : \\r
392 EFI_UNSUPPORTED\r
393\r
394\r
395/**\r
396 Reports a status code with a Device Path Protocol as the extended data if the \r
397 status code type is enabled.\r
398\r
399 If the status code type specified by Type is enabled in \r
400 PcdReportStatusCodeProperyMask, then call ReportStatusCodeWithDevicePath() \r
401 passing in Type, Value, and DevicePath.\r
402\r
403 @param Type Status code type. \r
404 @param Value Status code value.\r
405 @param DevicePath Pointer to the Device Path Protocol to be reported.\r
406\r
407 @retval EFI_SUCCESS The status code was reported with the extended \r
408 data specified by DevicePath.\r
409 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the \r
410 extended data section.\r
411 @retval EFI_UNSUPPORTED Report status code is not supported\r
412\r
413**/\r
414#define REPORT_STATUS_CODE_WITH_DEVICE_PATH(Type,Value,DevicePathParameter) \\r
415 (ReportProgressCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) ? \\r
416 ReportStatusCodeWithDevicePath(Type,Value,DevicePathParameter) : \\r
417 (ReportErrorCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) ? \\r
418 ReportStatusCodeWithDevicePath(Type,Value,DevicePathParameter) : \\r
419 (ReportDebugCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) ? \\r
420 ReportStatusCodeWithDevicePath(Type,Value,DevicePathParameter) : \\r
421 EFI_UNSUPPORTED\r
422\r
423\r
424/**\r
425 Reports a status code with an extended data buffer if the status code type \r
426 is enabled.\r
427\r
428 If the status code type specified by Type is enabled in \r
429 PcdReportStatusCodeProperyMask, then call ReportStatusCodeWithExtendedData() \r
430 passing in Type, Value, ExtendedData, and ExtendedDataSize.\r
431\r
432 @param Type Status code type. \r
433 @param Value Status code value.\r
434 @param ExtendedData Pointer to the extended data buffer to be reported.\r
435 @param ExtendedDataSize The size, in bytes, of the extended data buffer to\r
436 be reported.\r
437\r
438 @retval EFI_SUCCESS The status code was reported with the extended \r
439 data specified by ExtendedData and ExtendedDataSize.\r
440 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the \r
441 extended data section.\r
442 @retval EFI_UNSUPPORTED Report status code is not supported\r
443\r
444**/\r
445#define REPORT_STATUS_CODE_WITH_EXTENDED_DATA(Type,Value,ExtendedData,ExtendedDataSize) \\r
446 (ReportProgressCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) ? \\r
447 ReportStatusCodeWithExtendedData(Type,Value,ExtendedData,ExtendedDataSize) : \\r
448 (ReportErrorCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) ? \\r
449 ReportStatusCodeWithExtendedData(Type,Value,ExtendedData,ExtendedDataSize) : \\r
450 (ReportDebugCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) ? \\r
451 ReportStatusCodeWithExtendedData(Type,Value,ExtendedData,ExtendedDataSize) : \\r
452 EFI_UNSUPPORTED\r
453\r
454/**\r
455 Reports a status code specifying all parameters if the status code type is enabled.\r
456\r
457 If the status code type specified by Type is enabled in \r
458 PcdReportStatusCodeProperyMask, then call ReportStatusCodeEx() passing in Type, \r
459 Value, Instance, CallerId, ExtendedDataGuid, ExtendedData, and ExtendedDataSize.\r
460\r
461 @param Type Status code type. \r
462 @param Value Status code value.\r
463 @param Instance Status code instance number.\r
464 @param CallerId Pointer to a GUID that identifies the caller of this \r
465 function. If this parameter is NULL, then a caller \r
466 ID of gEfiCallerIdGuid is used.\r
467 @param ExtendedDataGuid Pointer to the GUID for the extended data buffer. \r
468 If this parameter is NULL, then a the status code \r
469 standard header is filled in with \r
470 gEfiStatusCodeSpecificDataGuid.\r
471 @param ExtendedData Pointer to the extended data buffer. This is an \r
472 optional parameter that may be NULL.\r
473 @param ExtendedDataSize The size, in bytes, of the extended data buffer.\r
474\r
475 @retval EFI_SUCCESS The status code was reported.\r
476 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the \r
477 extended data section if it was specified.\r
478 @retval EFI_UNSUPPORTED Report status code is not supported\r
479\r
480**/\r
481#define REPORT_STATUS_CODE_EX(Type,Value,Instance,CallerId,ExtendedDataGuid,ExtendedData,ExtendedDataSize) \\r
482 (ReportProgressCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) ? \\r
483 ReportStatusCodeEx(Type,Value,Instance,CallerId,ExtendedDataGuid,ExtendedData,ExtendedDataSize) : \\r
484 (ReportErrorCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) ? \\r
485 ReportStatusCodeEx(Type,Value,Instance,CallerId,ExtendedDataGuid,ExtendedData,ExtendedDataSize) : \\r
486 (ReportDebugCodeEnabled() && ((Type) & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) ? \\r
487 ReportStatusCodeEx(Type,Value,Instance,CallerId,ExtendedDataGuid,ExtendedData,ExtendedDataSize) : \\r
488 EFI_UNSUPPORTED\r
489\r
490#endif\r