2 Define the EDKII_DEBUG_PPI that PEIMs can use to dump info to debug port.
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __EDKII_DEBUG_PPI_H__
11 #define __EDKII_DEBUG_PPI_H__
13 #include <Pi/PiPeiCis.h>
16 // Global ID for the EDKII_DEBUG_PPI
18 #define EDKII_DEBUG_PPI_GUID \
20 0x999e699c, 0xb013, 0x475e, {0xb1, 0x7b, 0xf3, 0xa8, 0xae, 0x5c, 0x48, 0x75} \
24 /// Forward declaration for the PEI_DEBUG_LIB_DEBUG_PPI EDKII_DEBUG_PPI
26 typedef struct _EDKII_DEBUG_PPI EDKII_DEBUG_PPI
;
29 Print a debug message to debug output device if the specified error level
32 @param[in] ErrorLevel The error level of the debug message.
33 @param[in] Format Format string for the debug message to print.
34 @param[in] Marker BASE_LIST marker for the variable argument list.
39 (EFIAPI
*EDKII_DEBUG_BPRINT
)(
41 IN CONST CHAR8
*Format
,
46 Print an assert message containing a filename, line number, and description.
47 This may be followed by a breakpoint or a dead loop.
49 @param[in] FileName The pointer to the name of the source file that
50 generated the assert condition.
51 @param[in] LineNumber The line number in the source file that generated
53 @param[in] Description The pointer to the description of the assert condition.
58 (EFIAPI
*EDKII_DEBUG_ASSERT
)(
59 IN CONST CHAR8
*FileName
,
61 IN CONST CHAR8
*Description
65 /// This PPI contains a set of services to print message to debug output device
67 struct _EDKII_DEBUG_PPI
{
68 EDKII_DEBUG_BPRINT DebugBPrint
;
69 EDKII_DEBUG_ASSERT DebugAssert
;
72 extern EFI_GUID gEdkiiDebugPpiGuid
;