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