]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Ppi/Debug.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / Debug.h
CommitLineData
52e22c60
ZG
1/** @file\r
2 Define the EDKII_DEBUG_PPI that PEIMs can use to dump info to debug port.\r
3\r
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
5\r
9d510e61 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
52e22c60
ZG
7\r
8**/\r
9\r
10#ifndef __EDKII_DEBUG_PPI_H__\r
11#define __EDKII_DEBUG_PPI_H__\r
12\r
13#include <Pi/PiPeiCis.h>\r
14\r
15//\r
16// Global ID for the EDKII_DEBUG_PPI\r
17//\r
18#define EDKII_DEBUG_PPI_GUID \\r
19 { \\r
20 0x999e699c, 0xb013, 0x475e, {0xb1, 0x7b, 0xf3, 0xa8, 0xae, 0x5c, 0x48, 0x75} \\r
21 }\r
22\r
23///\r
24/// Forward declaration for the PEI_DEBUG_LIB_DEBUG_PPI EDKII_DEBUG_PPI\r
25///\r
26typedef struct _EDKII_DEBUG_PPI EDKII_DEBUG_PPI;\r
27\r
28/**\r
29 Print a debug message to debug output device if the specified error level\r
30 is enabled.\r
31\r
32 @param[in] ErrorLevel The error level of the debug message.\r
33 @param[in] Format Format string for the debug message to print.\r
34 @param[in] Marker BASE_LIST marker for the variable argument list.\r
35\r
36**/\r
37typedef\r
38VOID\r
39(EFIAPI *EDKII_DEBUG_BPRINT)(\r
40 IN UINTN ErrorLevel,\r
41 IN CONST CHAR8 *Format,\r
42 IN BASE_LIST Marker\r
43 );\r
44\r
45/**\r
46 Print an assert message containing a filename, line number, and description.\r
47 This may be followed by a breakpoint or a dead loop.\r
48\r
49 @param[in] FileName The pointer to the name of the source file that\r
50 generated the assert condition.\r
51 @param[in] LineNumber The line number in the source file that generated\r
52 the assert condition\r
53 @param[in] Description The pointer to the description of the assert condition.\r
54\r
55**/\r
56typedef\r
57VOID\r
58(EFIAPI *EDKII_DEBUG_ASSERT)(\r
59 IN CONST CHAR8 *FileName,\r
60 IN UINTN LineNumber,\r
61 IN CONST CHAR8 *Description\r
62 );\r
63\r
64///\r
65/// This PPI contains a set of services to print message to debug output device\r
66///\r
67struct _EDKII_DEBUG_PPI {\r
1436aea4
MK
68 EDKII_DEBUG_BPRINT DebugBPrint;\r
69 EDKII_DEBUG_ASSERT DebugAssert;\r
52e22c60
ZG
70};\r
71\r
1436aea4 72extern EFI_GUID gEdkiiDebugPpiGuid;\r
52e22c60
ZG
73\r
74#endif\r