TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugServicePei.c
Go to the documentation of this file.
1
11#include <Uefi/UefiBaseType.h>
14#include <Library/DebugLib.h>
15
16#include <Ppi/Debug.h>
17
18#include "DebugService.h"
19
20EDKII_DEBUG_PPI mDebugPpi = {
23};
24
25EFI_PEI_PPI_DESCRIPTOR mDebugServicePpi = {
26 (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
27 &gEdkiiDebugPpiGuid,
28 (VOID *)&mDebugPpi
29};
30
40VOID
41EFIAPI
43 IN UINTN ErrorLevel,
44 IN CONST CHAR8 *Format,
45 IN BASE_LIST Marker
46 )
47{
48 DebugBPrint (ErrorLevel, Format, Marker);
49}
50
62VOID
63EFIAPI
65 IN CONST CHAR8 *FileName,
66 IN UINTN LineNumber,
67 IN CONST CHAR8 *Description
68 )
69{
70 DebugAssert (FileName, LineNumber, Description);
71}
72
86EFIAPI
88 IN EFI_PEI_FILE_HANDLE FileHandle,
89 IN CONST EFI_PEI_SERVICES **PeiServices
90 )
91{
92 return PeiServicesInstallPpi (&mDebugServicePpi);
93}
UINT64 UINTN
VOID EFIAPI DebugAssert(IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Description)
Definition: DebugLib.c:188
VOID EFIAPI DebugBPrint(IN UINTN ErrorLevel, IN CONST CHAR8 *Format, IN BASE_LIST BaseListMarker)
Definition: DebugLib.c:154
VOID EFIAPI PeiDebugAssert(IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Description)
EFI_STATUS EFIAPI DebugSerivceInitialize(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
VOID EFIAPI PeiDebugBPrint(IN UINTN ErrorLevel, IN CONST CHAR8 *Format, IN BASE_LIST Marker)
EFI_STATUS EFIAPI PeiServicesInstallPpi(IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
UINTN * BASE_LIST
Definition: Base.h:711
VOID * EFI_PEI_FILE_HANDLE
Definition: PiPeiCis.h:26
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29