]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/DebugServicePei/DebugService.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / DebugServicePei / DebugService.h
1 /** @file
2 Header file of Debug services instances.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9 #ifndef __DEBUG_SERVICE_H__
10 #define __DEBUG_SERVICE_H__
11
12 #include <Ppi/Debug.h>
13
14 /**
15 Print a debug message to debug output device if the specified error level
16 is enabled.
17
18 @param[in] ErrorLevel The error level of the debug message.
19 @param[in] Format Format string for the debug message to print.
20 @param[in] Marker BASE_LIST marker for the variable argument list.
21
22 **/
23 VOID
24 EFIAPI
25 PeiDebugBPrint(
26 IN UINTN ErrorLevel,
27 IN CONST CHAR8 *Format,
28 IN BASE_LIST Marker
29 );
30
31 /**
32 Prints an assert message containing a filename, line number, and description.
33 This may be followed by a breakpoint or a dead loop.
34
35 @param[in] FileName The pointer to the name of the source file that
36 generated the assert condition.
37 @param[in] LineNumber The line number in the source file that generated
38 the assert condition
39 @param[in] Description The pointer to the description of the assert condition.
40
41 **/
42 VOID
43 EFIAPI
44 PeiDebugAssert(
45 IN CONST CHAR8 *FileName,
46 IN UINTN LineNumber,
47 IN CONST CHAR8 *Description
48 );
49
50 #endif