2 API implementation for instance of Report Status Code Library.
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/ReportStatusCodeLib.h>
10 #include <Library/BaseLib.h>
11 #include <Library/DebugLib.h>
12 #include <Library/UefiBootServicesTableLib.h>
13 #include <Library/BaseMemoryLib.h>
14 #include <Library/PcdLib.h>
15 #include <Library/DevicePathLib.h>
16 #include <Library/UefiRuntimeLib.h>
18 #include <Protocol/StatusCode.h>
20 #include <Guid/StatusCodeDataTypeId.h>
21 #include <Guid/StatusCodeDataTypeDebug.h>
22 #include <Guid/EventGroup.h>
26 // Define the maximum extended data size that is supported when a status code is reported.
28 #define MAX_EXTENDED_DATA_SIZE 0x200
30 EFI_STATUS_CODE_PROTOCOL
*mReportStatusCodeLibStatusCodeProtocol
= NULL
;
31 EFI_EVENT mReportStatusCodeLibVirtualAddressChangeEvent
;
32 EFI_EVENT mReportStatusCodeLibExitBootServicesEvent
;
33 BOOLEAN mHaveExitedBootServices
= FALSE
;
36 Locate the report status code service.
38 Retrieve ReportStatusCode() API of Report Status Code Protocol.
42 InternalGetReportStatusCode (
48 if (mReportStatusCodeLibStatusCodeProtocol
!= NULL
) {
52 if (mHaveExitedBootServices
) {
57 // Check gBS just in case ReportStatusCode is called before gBS is initialized.
59 if (gBS
!= NULL
&& gBS
->LocateProtocol
!= NULL
) {
60 Status
= gBS
->LocateProtocol (&gEfiStatusCodeRuntimeProtocolGuid
, NULL
, (VOID
**) &mReportStatusCodeLibStatusCodeProtocol
);
61 if (EFI_ERROR (Status
)) {
62 mReportStatusCodeLibStatusCodeProtocol
= NULL
;
68 Notification function of EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE.
70 @param Event Event whose notification function is being invoked.
71 @param Context Pointer to the notification function's context
76 ReportStatusCodeLibVirtualAddressChange (
81 if (mReportStatusCodeLibStatusCodeProtocol
== NULL
) {
84 EfiConvertPointer (0, (VOID
**) &mReportStatusCodeLibStatusCodeProtocol
);
88 Notification function of EVT_SIGNAL_EXIT_BOOT_SERVICES.
90 @param Event Event whose notification function is being invoked.
91 @param Context Pointer to the notification function's context
96 ReportStatusCodeLibExitBootServices (
102 // Locate the report status code service before enter runtime.
104 InternalGetReportStatusCode ();
106 mHaveExitedBootServices
= TRUE
;
110 The constructor function of Runtime DXE Report Status Code Lib.
112 This function allocates memory for extended status code data, caches
113 the report status code service, and registers events.
115 @param ImageHandle The firmware allocated handle for the EFI image.
116 @param SystemTable A pointer to the EFI System Table.
118 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
123 ReportStatusCodeLibConstructor (
124 IN EFI_HANDLE ImageHandle
,
125 IN EFI_SYSTEM_TABLE
*SystemTable
131 // Cache the report status code service
133 InternalGetReportStatusCode ();
136 // Register notify function for EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE
138 Status
= gBS
->CreateEventEx (
141 ReportStatusCodeLibVirtualAddressChange
,
143 &gEfiEventVirtualAddressChangeGuid
,
144 &mReportStatusCodeLibVirtualAddressChangeEvent
146 ASSERT_EFI_ERROR (Status
);
149 // Register notify function for EVT_SIGNAL_EXIT_BOOT_SERVICES
151 Status
= gBS
->CreateEventEx (
154 ReportStatusCodeLibExitBootServices
,
156 &gEfiEventExitBootServicesGuid
,
157 &mReportStatusCodeLibExitBootServicesEvent
159 ASSERT_EFI_ERROR (Status
);
165 The destructor function of Runtime DXE Report Status Code Lib.
167 The destructor function frees memory allocated by constructor, and closes related events.
168 It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS.
170 @param ImageHandle The firmware allocated handle for the EFI image.
171 @param SystemTable A pointer to the EFI System Table.
173 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
178 ReportStatusCodeLibDestructor (
179 IN EFI_HANDLE ImageHandle
,
180 IN EFI_SYSTEM_TABLE
*SystemTable
185 ASSERT (gBS
!= NULL
);
186 Status
= gBS
->CloseEvent (mReportStatusCodeLibVirtualAddressChangeEvent
);
187 ASSERT_EFI_ERROR (Status
);
189 Status
= gBS
->CloseEvent (mReportStatusCodeLibExitBootServicesEvent
);
190 ASSERT_EFI_ERROR (Status
);
196 Internal worker function that reports a status code through the Report Status Code Protocol.
198 If status code service is not cached, then this function checks if Report Status Code
199 Protocol is available in system. If Report Status Code Protocol is not available, then
200 EFI_UNSUPPORTED is returned. If Report Status Code Protocol is present, then it is
201 cached in mReportStatusCodeLibStatusCodeProtocol. Finally this function reports status
202 code through the Report Status Code Protocol.
204 @param Type Status code type.
205 @param Value Status code value.
206 @param Instance Status code instance number.
207 @param CallerId Pointer to a GUID that identifies the caller of this
208 function. This is an optional parameter that may be
210 @param Data Pointer to the extended data buffer. This is an
211 optional parameter that may be NULL.
213 @retval EFI_SUCCESS The status code was reported.
214 @retval EFI_UNSUPPORTED Report Status Code Protocol is not available.
215 @retval EFI_UNSUPPORTED Status code type is not supported.
219 InternalReportStatusCode (
220 IN EFI_STATUS_CODE_TYPE Type
,
221 IN EFI_STATUS_CODE_VALUE Value
,
223 IN CONST EFI_GUID
*CallerId OPTIONAL
,
224 IN EFI_STATUS_CODE_DATA
*Data OPTIONAL
227 if ((ReportProgressCodeEnabled() && ((Type
) & EFI_STATUS_CODE_TYPE_MASK
) == EFI_PROGRESS_CODE
) ||
228 (ReportErrorCodeEnabled() && ((Type
) & EFI_STATUS_CODE_TYPE_MASK
) == EFI_ERROR_CODE
) ||
229 (ReportDebugCodeEnabled() && ((Type
) & EFI_STATUS_CODE_TYPE_MASK
) == EFI_DEBUG_CODE
)) {
231 // If mReportStatusCodeLibStatusCodeProtocol is NULL, then check if Report Status Code Protocol is available in system.
233 InternalGetReportStatusCode ();
234 if (mReportStatusCodeLibStatusCodeProtocol
== NULL
) {
235 return EFI_UNSUPPORTED
;
239 // A Report Status Code Protocol is present in system, so pass in all the parameters to the service.
241 return mReportStatusCodeLibStatusCodeProtocol
->ReportStatusCode (Type
, Value
, Instance
, (EFI_GUID
*)CallerId
, Data
);
244 return EFI_UNSUPPORTED
;
249 Converts a status code to an 8-bit POST code value.
251 Converts the status code specified by CodeType and Value to an 8-bit POST code
252 and returns the 8-bit POST code in PostCode. If CodeType is an
253 EFI_PROGRESS_CODE or CodeType is an EFI_ERROR_CODE, then bits 0..4 of PostCode
254 are set to bits 16..20 of Value, and bits 5..7 of PostCode are set to bits
255 24..26 of Value., and TRUE is returned. Otherwise, FALSE is returned.
257 If PostCode is NULL, then ASSERT().
259 @param CodeType The type of status code being converted.
260 @param Value The status code value being converted.
261 @param PostCode A pointer to the 8-bit POST code value to return.
263 @retval TRUE The status code specified by CodeType and Value was converted
264 to an 8-bit POST code and returned in PostCode.
265 @retval FALSE The status code specified by CodeType and Value could not be
266 converted to an 8-bit POST code value.
272 IN EFI_STATUS_CODE_TYPE CodeType
,
273 IN EFI_STATUS_CODE_VALUE Value
,
278 // If PostCode is NULL, then ASSERT()
280 ASSERT (PostCode
!= NULL
);
283 // Convert Value to an 8 bit post code
285 if (((CodeType
& EFI_STATUS_CODE_TYPE_MASK
) == EFI_PROGRESS_CODE
) ||
286 ((CodeType
& EFI_STATUS_CODE_TYPE_MASK
) == EFI_ERROR_CODE
) ) {
287 *PostCode
= (UINT8
) ((((Value
& EFI_STATUS_CODE_CLASS_MASK
) >> 24) << 5) |
288 (((Value
& EFI_STATUS_CODE_SUBCLASS_MASK
) >> 16) & 0x1f));
296 Extracts ASSERT() information from a status code structure.
298 Converts the status code specified by CodeType, Value, and Data to the ASSERT()
299 arguments specified by Filename, Description, and LineNumber. If CodeType is
300 an EFI_ERROR_CODE, and CodeType has a severity of EFI_ERROR_UNRECOVERED, and
301 Value has an operation mask of EFI_SW_EC_ILLEGAL_SOFTWARE_STATE, extract
302 Filename, Description, and LineNumber from the optional data area of the
303 status code buffer specified by Data. The optional data area of Data contains
304 a Null-terminated ASCII string for the FileName, followed by a Null-terminated
305 ASCII string for the Description, followed by a 32-bit LineNumber. If the
306 ASSERT() information could be extracted from Data, then return TRUE.
307 Otherwise, FALSE is returned.
309 If Data is NULL, then ASSERT().
310 If Filename is NULL, then ASSERT().
311 If Description is NULL, then ASSERT().
312 If LineNumber is NULL, then ASSERT().
314 @param CodeType The type of status code being converted.
315 @param Value The status code value being converted.
316 @param Data Pointer to status code data buffer.
317 @param Filename Pointer to the source file name that generated the ASSERT().
318 @param Description Pointer to the description of the ASSERT().
319 @param LineNumber Pointer to source line number that generated the ASSERT().
321 @retval TRUE The status code specified by CodeType, Value, and Data was
322 converted ASSERT() arguments specified by Filename, Description,
324 @retval FALSE The status code specified by CodeType, Value, and Data could
325 not be converted to ASSERT() arguments.
330 ReportStatusCodeExtractAssertInfo (
331 IN EFI_STATUS_CODE_TYPE CodeType
,
332 IN EFI_STATUS_CODE_VALUE Value
,
333 IN CONST EFI_STATUS_CODE_DATA
*Data
,
334 OUT CHAR8
**Filename
,
335 OUT CHAR8
**Description
,
336 OUT UINT32
*LineNumber
339 EFI_DEBUG_ASSERT_DATA
*AssertData
;
341 ASSERT (Data
!= NULL
);
342 ASSERT (Filename
!= NULL
);
343 ASSERT (Description
!= NULL
);
344 ASSERT (LineNumber
!= NULL
);
346 if (((CodeType
& EFI_STATUS_CODE_TYPE_MASK
) == EFI_ERROR_CODE
) &&
347 ((CodeType
& EFI_STATUS_CODE_SEVERITY_MASK
) == EFI_ERROR_UNRECOVERED
) &&
348 ((Value
& EFI_STATUS_CODE_OPERATION_MASK
) == EFI_SW_EC_ILLEGAL_SOFTWARE_STATE
)) {
349 AssertData
= (EFI_DEBUG_ASSERT_DATA
*)(Data
+ 1);
350 *Filename
= (CHAR8
*)(AssertData
+ 1);
351 *Description
= *Filename
+ AsciiStrLen (*Filename
) + 1;
352 *LineNumber
= AssertData
->LineNumber
;
360 Extracts DEBUG() information from a status code structure.
362 Converts the status code specified by Data to the DEBUG() arguments specified
363 by ErrorLevel, Marker, and Format. If type GUID in Data is
364 EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID, then extract ErrorLevel, Marker, and
365 Format from the optional data area of the status code buffer specified by Data.
366 The optional data area of Data contains a 32-bit ErrorLevel followed by Marker
367 which is 12 UINTN parameters, followed by a Null-terminated ASCII string for
368 the Format. If the DEBUG() information could be extracted from Data, then
369 return TRUE. Otherwise, FALSE is returned.
371 If Data is NULL, then ASSERT().
372 If ErrorLevel is NULL, then ASSERT().
373 If Marker is NULL, then ASSERT().
374 If Format is NULL, then ASSERT().
376 @param Data Pointer to status code data buffer.
377 @param ErrorLevel Pointer to error level mask for a debug message.
378 @param Marker Pointer to the variable argument list associated with Format.
379 @param Format Pointer to a Null-terminated ASCII format string of a
382 @retval TRUE The status code specified by Data was converted DEBUG() arguments
383 specified by ErrorLevel, Marker, and Format.
384 @retval FALSE The status code specified by Data could not be converted to
390 ReportStatusCodeExtractDebugInfo (
391 IN CONST EFI_STATUS_CODE_DATA
*Data
,
392 OUT UINT32
*ErrorLevel
,
393 OUT BASE_LIST
*Marker
,
397 EFI_DEBUG_INFO
*DebugInfo
;
399 ASSERT (Data
!= NULL
);
400 ASSERT (ErrorLevel
!= NULL
);
401 ASSERT (Marker
!= NULL
);
402 ASSERT (Format
!= NULL
);
405 // If the GUID type is not EFI_STATUS_CODE_DATA_TYPE_DEBUG_GUID then return FALSE
407 if (!CompareGuid (&Data
->Type
, &gEfiStatusCodeDataTypeDebugGuid
)) {
412 // Retrieve the debug information from the status code record
414 DebugInfo
= (EFI_DEBUG_INFO
*)(Data
+ 1);
416 *ErrorLevel
= DebugInfo
->ErrorLevel
;
419 // The first 12 * sizeof (UINT64) bytes following EFI_DEBUG_INFO are for variable arguments
420 // of format in DEBUG string. Its address is returned in Marker and has to be 64-bit aligned.
421 // It must be noticed that EFI_DEBUG_INFO follows EFI_STATUS_CODE_DATA, whose size is
422 // 20 bytes. The size of EFI_DEBUG_INFO is 4 bytes, so we can ensure that Marker
423 // returned is 64-bit aligned.
424 // 64-bit aligned is a must, otherwise retrieving 64-bit parameter from BASE_LIST will
425 // cause unalignment exception.
427 *Marker
= (BASE_LIST
) (DebugInfo
+ 1);
428 *Format
= (CHAR8
*)(((UINT64
*)*Marker
) + 12);
435 Reports a status code.
437 Reports the status code specified by the parameters Type and Value. Status
438 code also require an instance, caller ID, and extended data. This function
439 passed in a zero instance, NULL extended data, and a caller ID of
440 gEfiCallerIdGuid, which is the GUID for the module.
442 ReportStatusCode()must actively prevent recusrsion. If ReportStatusCode()
443 is called while processing another any other Report Status Code Library function,
444 then ReportStatusCode() must return immediately.
446 @param Type Status code type.
447 @param Value Status code value.
449 @retval EFI_SUCCESS The status code was reported.
450 @retval EFI_DEVICE_ERROR There status code could not be reported due to a
452 @retval EFI_UNSUPPORTED Report status code is not supported
458 IN EFI_STATUS_CODE_TYPE Type
,
459 IN EFI_STATUS_CODE_VALUE Value
462 return InternalReportStatusCode (Type
, Value
, 0, &gEfiCallerIdGuid
, NULL
);
467 Reports a status code with a Device Path Protocol as the extended data.
469 Allocates and fills in the extended data section of a status code with the
470 Device Path Protocol specified by DevicePath. This function is responsible
471 for allocating a buffer large enough for the standard header and the device
472 path. The standard header is filled in with a GUID of
473 gEfiStatusCodeSpecificDataGuid. The status code is reported with a zero
474 instance and a caller ID of gEfiCallerIdGuid.
476 ReportStatusCodeWithDevicePath()must actively prevent recursion. If
477 ReportStatusCodeWithDevicePath() is called while processing another any other
478 Report Status Code Library function, then ReportStatusCodeWithDevicePath()
479 must return EFI_DEVICE_ERROR immediately.
481 If DevicePath is NULL, then ASSERT().
483 @param Type Status code type.
484 @param Value Status code value.
485 @param DevicePath Pointer to the Device Path Protocol to be reported.
487 @retval EFI_SUCCESS The status code was reported with the extended
488 data specified by DevicePath.
489 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the
490 extended data section.
491 @retval EFI_UNSUPPORTED Report status code is not supported
496 ReportStatusCodeWithDevicePath (
497 IN EFI_STATUS_CODE_TYPE Type
,
498 IN EFI_STATUS_CODE_VALUE Value
,
499 IN CONST EFI_DEVICE_PATH_PROTOCOL
*DevicePath
502 ASSERT (DevicePath
!= NULL
);
503 return ReportStatusCodeWithExtendedData (
507 GetDevicePathSize (DevicePath
)
513 Reports a status code with an extended data buffer.
515 Allocates and fills in the extended data section of a status code with the
516 extended data specified by ExtendedData and ExtendedDataSize. ExtendedData
517 is assumed to be one of the data structures specified in Related Definitions.
518 These data structure do not have the standard header, so this function is
519 responsible for allocating a buffer large enough for the standard header and
520 the extended data passed into this function. The standard header is filled
521 in with a GUID of gEfiStatusCodeSpecificDataGuid. The status code is reported
522 with a zero instance and a caller ID of gEfiCallerIdGuid.
524 ReportStatusCodeWithExtendedData()must actively prevent recursion. If
525 ReportStatusCodeWithExtendedData() is called while processing another any other
526 Report Status Code Library function, then ReportStatusCodeWithExtendedData()
527 must return EFI_DEVICE_ERROR immediately.
529 If ExtendedData is NULL, then ASSERT().
530 If ExtendedDataSize is 0, then ASSERT().
532 @param Type Status code type.
533 @param Value Status code value.
534 @param ExtendedData Pointer to the extended data buffer to be reported.
535 @param ExtendedDataSize The size, in bytes, of the extended data buffer to
538 @retval EFI_SUCCESS The status code was reported with the extended
539 data specified by ExtendedData and ExtendedDataSize.
540 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate the
541 extended data section.
542 @retval EFI_UNSUPPORTED Report status code is not supported
547 ReportStatusCodeWithExtendedData (
548 IN EFI_STATUS_CODE_TYPE Type
,
549 IN EFI_STATUS_CODE_VALUE Value
,
550 IN CONST VOID
*ExtendedData
,
551 IN UINTN ExtendedDataSize
554 ASSERT (ExtendedData
!= NULL
);
555 ASSERT (ExtendedDataSize
!= 0);
556 return ReportStatusCodeEx (
569 Reports a status code with full parameters.
571 The function reports a status code. If ExtendedData is NULL and ExtendedDataSize
572 is 0, then an extended data buffer is not reported. If ExtendedData is not
573 NULL and ExtendedDataSize is not 0, then an extended data buffer is allocated.
574 ExtendedData is assumed not have the standard status code header, so this function
575 is responsible for allocating a buffer large enough for the standard header and
576 the extended data passed into this function. The standard header is filled in
577 with a GUID specified by ExtendedDataGuid. If ExtendedDataGuid is NULL, then a
578 GUID of gEfiStatusCodeSpecificDataGuid is used. The status code is reported with
579 an instance specified by Instance and a caller ID specified by CallerId. If
580 CallerId is NULL, then a caller ID of gEfiCallerIdGuid is used.
582 ReportStatusCodeEx()must actively prevent recursion. If
583 ReportStatusCodeEx() is called while processing another any
584 other Report Status Code Library function, then
585 ReportStatusCodeEx() must return EFI_DEVICE_ERROR immediately.
587 If ExtendedData is NULL and ExtendedDataSize is not zero, then ASSERT().
588 If ExtendedData is not NULL and ExtendedDataSize is zero, then ASSERT().
590 @param Type Status code type.
591 @param Value Status code value.
592 @param Instance Status code instance number.
593 @param CallerId Pointer to a GUID that identifies the caller of this
594 function. If this parameter is NULL, then a caller
595 ID of gEfiCallerIdGuid is used.
596 @param ExtendedDataGuid Pointer to the GUID for the extended data buffer.
597 If this parameter is NULL, then a the status code
598 standard header is filled in with
599 gEfiStatusCodeSpecificDataGuid.
600 @param ExtendedData Pointer to the extended data buffer. This is an
601 optional parameter that may be NULL.
602 @param ExtendedDataSize The size, in bytes, of the extended data buffer.
604 @retval EFI_SUCCESS The status code was reported.
605 @retval EFI_OUT_OF_RESOURCES There were not enough resources to allocate
606 the extended data section if it was specified.
607 @retval EFI_UNSUPPORTED Report status code is not supported
613 IN EFI_STATUS_CODE_TYPE Type
,
614 IN EFI_STATUS_CODE_VALUE Value
,
616 IN CONST EFI_GUID
*CallerId OPTIONAL
,
617 IN CONST EFI_GUID
*ExtendedDataGuid OPTIONAL
,
618 IN CONST VOID
*ExtendedData OPTIONAL
,
619 IN UINTN ExtendedDataSize
623 EFI_STATUS_CODE_DATA
*StatusCodeData
;
624 UINT64 StatusCodeBuffer
[(MAX_EXTENDED_DATA_SIZE
/ sizeof (UINT64
)) + 1];
626 ASSERT (!((ExtendedData
== NULL
) && (ExtendedDataSize
!= 0)));
627 ASSERT (!((ExtendedData
!= NULL
) && (ExtendedDataSize
== 0)));
629 if (ExtendedDataSize
<= (MAX_EXTENDED_DATA_SIZE
- sizeof (EFI_STATUS_CODE_DATA
))) {
631 // Use Buffer instead of allocating if possible.
633 StatusCodeData
= (EFI_STATUS_CODE_DATA
*) StatusCodeBuffer
;
635 if (mHaveExitedBootServices
) {
636 return EFI_OUT_OF_RESOURCES
;
639 if (gBS
== NULL
|| gBS
->AllocatePool
== NULL
|| gBS
->FreePool
== NULL
) {
640 return EFI_UNSUPPORTED
;
644 // Allocate space for the Status Code Header and its buffer
646 StatusCodeData
= NULL
;
647 gBS
->AllocatePool (EfiBootServicesData
, sizeof (EFI_STATUS_CODE_DATA
) + ExtendedDataSize
, (VOID
**)&StatusCodeData
);
648 if (StatusCodeData
== NULL
) {
649 return EFI_OUT_OF_RESOURCES
;
654 // Fill in the extended data header
656 StatusCodeData
->HeaderSize
= (UINT16
) sizeof (EFI_STATUS_CODE_DATA
);
657 StatusCodeData
->Size
= (UINT16
) ExtendedDataSize
;
658 if (ExtendedDataGuid
== NULL
) {
659 ExtendedDataGuid
= &gEfiStatusCodeSpecificDataGuid
;
661 CopyGuid (&StatusCodeData
->Type
, ExtendedDataGuid
);
664 // Fill in the extended data buffer
666 if (ExtendedData
!= NULL
) {
667 CopyMem (StatusCodeData
+ 1, ExtendedData
, ExtendedDataSize
);
671 // Report the status code
673 if (CallerId
== NULL
) {
674 CallerId
= &gEfiCallerIdGuid
;
676 Status
= InternalReportStatusCode (Type
, Value
, Instance
, CallerId
, StatusCodeData
);
679 // Free the allocated buffer
681 if (StatusCodeData
!= (EFI_STATUS_CODE_DATA
*) StatusCodeBuffer
) {
682 gBS
->FreePool (StatusCodeData
);
690 Returns TRUE if status codes of type EFI_PROGRESS_CODE are enabled
692 This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED
693 bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.
695 @retval TRUE The REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED bit of
696 PcdReportStatusCodeProperyMask is set.
697 @retval FALSE The REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED bit of
698 PcdReportStatusCodeProperyMask is clear.
703 ReportProgressCodeEnabled (
707 return (BOOLEAN
) ((PcdGet8 (PcdReportStatusCodePropertyMask
) & REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED
) != 0);
712 Returns TRUE if status codes of type EFI_ERROR_CODE are enabled
714 This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED
715 bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.
717 @retval TRUE The REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED bit of
718 PcdReportStatusCodeProperyMask is set.
719 @retval FALSE The REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED bit of
720 PcdReportStatusCodeProperyMask is clear.
725 ReportErrorCodeEnabled (
729 return (BOOLEAN
) ((PcdGet8 (PcdReportStatusCodePropertyMask
) & REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED
) != 0);
734 Returns TRUE if status codes of type EFI_DEBUG_CODE are enabled
736 This function returns TRUE if the REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED
737 bit of PcdReportStatusCodeProperyMask is set. Otherwise FALSE is returned.
739 @retval TRUE The REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED bit of
740 PcdReportStatusCodeProperyMask is set.
741 @retval FALSE The REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED bit of
742 PcdReportStatusCodeProperyMask is clear.
747 ReportDebugCodeEnabled (
751 return (BOOLEAN
) ((PcdGet8 (PcdReportStatusCodePropertyMask
) & REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED
) != 0);