TianoCore EDK2 master
|
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/PcdLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/TraceHubDebugSysTLib.h>
#include <Library/MipiSysTLib.h>
#include <Library/MipiSysTLib/mipi_syst.h>
#include <Guid/TraceHubDebugInfoHob.h>
#include "InternalTraceHubApiCommon.h"
#include "InternalTraceHubApi.h"
Go to the source code of this file.
Functions | |
RETURN_STATUS EFIAPI | TraceHubSysTDebugWrite (IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN UINT8 *Buffer, IN UINTN NumberOfBytes) |
RETURN_STATUS EFIAPI | TraceHubSysTWriteCataLog64StatusCode (IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN UINT64 Id, IN GUID *Guid) |
RETURN_STATUS EFIAPI | TraceHubSysTWriteCataLog64 (IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN UINT64 Id, IN UINTN NumberOfParams,...) |
UINT32 EFIAPI | CountThDebugInstance (VOID) |
System prints Trace Hub message in SEC/PEI/DXE/SMM based on fixed PCDs. Only support single Trace Hub debug instance.
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BaseTraceHubDebugSysTLib.c.
UINT32 EFIAPI CountThDebugInstance | ( | VOID | ) |
Collect the total number of Trace Hub debug instance in the system.
UINT32 | The total number of Trace Hub debug instance in the system. |
Definition at line 233 of file BaseTraceHubDebugSysTLib.c.
RETURN_STATUS EFIAPI TraceHubSysTDebugWrite | ( | IN TRACE_HUB_SEVERITY_TYPE | SeverityType, |
IN UINT8 * | Buffer, | ||
IN UINTN | NumberOfBytes | ||
) |
Write debug string to specified Trace Hub MMIO address.
[in] | SeverityType | Severity type of input message. |
[in] | Buffer | A pointer to the data buffer. |
[in] | NumberOfBytes | The size of data buffer. |
RETURN_SUCCESS | Data was written to Trace Hub. |
Other | Failed to output Trace Hub message. |
Definition at line 34 of file BaseTraceHubDebugSysTLib.c.
RETURN_STATUS EFIAPI TraceHubSysTWriteCataLog64 | ( | IN TRACE_HUB_SEVERITY_TYPE | SeverityType, |
IN UINT64 | Id, | ||
IN UINTN | NumberOfParams, | ||
... | |||
) |
Write catalog message to specified Trace Hub MMIO address.
[in] | SeverityType | Severity type of input message. |
[in] | Id | Catalog ID. |
[in] | NumberOfParams | Number of entries in argument list. |
[in] | ... | Catalog message parameters. |
RETURN_SUCCESS | Data was written to Trace Hub. |
Other | Failed to output Trace Hub message. |
Definition at line 166 of file BaseTraceHubDebugSysTLib.c.
RETURN_STATUS EFIAPI TraceHubSysTWriteCataLog64StatusCode | ( | IN TRACE_HUB_SEVERITY_TYPE | SeverityType, |
IN UINT64 | Id, | ||
IN GUID * | Guid | ||
) |
Write catalog status code message to specified Trace Hub MMIO address.
[in] | SeverityType | Severity type of input message. |
[in] | Id | Catalog ID. |
[in] | Guid | Driver Guid. |
RETURN_SUCCESS | Data was written to Trace Hub. |
Other | Failed to output Trace Hub message. |
Definition at line 102 of file BaseTraceHubDebugSysTLib.c.