TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
BOOLEAN EFIAPI | TraceHubDataEnabled (IN BOOLEAN Flag, IN UINT8 DbgLevel, IN TRACE_HUB_SEVERITY_TYPE SeverityType) |
VOID EFIAPI | SwapBytesGuid (IN GUID *Guid, OUT GUID *ConvertedGuid) |
RETURN_STATUS EFIAPI | CheckWhetherToOutputMsg (IN OUT MIPI_SYST_HANDLE *MipiSystHandle, IN UINT8 *DbgContext, IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN TRACEHUB_PRINTTYPE PrintType) |
RETURN_STATUS EFIAPI | GetTraceHubMmioAddress (IN UINT8 *DbgContext, IN OUT UINT64 *TraceAddress) |
RETURN_STATUS EFIAPI | GetTraceHubMsgVisibility (IN UINT8 *DbgContext, IN OUT BOOLEAN *Flag, IN OUT UINT8 *DbgLevel) |
This header file declares functions and type for common use.
Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file InternalTraceHubApiCommon.h.
enum TRACE_HUB_DEBUG_LEVEL |
Definition at line 24 of file InternalTraceHubApiCommon.h.
enum TRACE_HUB_ROUTING |
Definition at line 18 of file InternalTraceHubApiCommon.h.
enum TRACEHUB_PRINTTYPE |
Definition at line 13 of file InternalTraceHubApiCommon.h.
RETURN_STATUS EFIAPI CheckWhetherToOutputMsg | ( | IN OUT MIPI_SYST_HANDLE * | MipiSystHandle, |
IN UINT8 * | DbgContext, | ||
IN TRACE_HUB_SEVERITY_TYPE | SeverityType, | ||
IN TRACEHUB_PRINTTYPE | PrintType | ||
) |
Check whether to output Trace Hub message according to some conditions. Trace Hub message will be disabled if TraceHubDataEnabled() return FALSE or Trace Hub MMIO address is 0.
[in,out] | MipiSystHandle | A pointer to MIPI_SYST_HANDLE structure. |
[in] | DbgContext | A pointer to Trace Hub debug instance. |
[in] | SeverityType | Severity type of input message. |
[in] | PrintType | Either catalog print or debug print. |
RETURN_SUCCESS | Current Trace Hub message need to be output. |
Other | Current Trace Hub message will be disabled. |
Definition at line 94 of file InternalTraceHubApiCommon.c.
Get Trace Hub MMIO Address.
[in] | DbgContext | A pointer to Trace Hub debug instance. |
[in,out] | TraceAddress | Trace Hub MMIO Address. |
RETURN_SUCCESS | Operation is successfully. |
Other | Operation is failed. |
Definition at line 145 of file InternalTraceHubApiCommon.c.
RETURN_STATUS EFIAPI GetTraceHubMsgVisibility | ( | IN UINT8 * | DbgContext, |
IN OUT BOOLEAN * | Flag, | ||
IN OUT UINT8 * | DbgLevel | ||
) |
Get visibility of Trace Hub Msg.
[in] | DbgContext | A pointer to Trace Hub debug instance. |
[in,out] | Flag | Flag to enable or disable Trace Hub message. |
[in,out] | DbgLevel | Debug Level of Trace Hub. |
RETURN_SUCCESS | Operation is successfully. |
Other | Operation is failed. |
Definition at line 178 of file InternalTraceHubApiCommon.c.
Convert GUID from LE to BE or BE to LE.
Definition at line 68 of file InternalTraceHubApiCommon.c.
BOOLEAN EFIAPI TraceHubDataEnabled | ( | IN BOOLEAN | Flag, |
IN UINT8 | DbgLevel, | ||
IN TRACE_HUB_SEVERITY_TYPE | SeverityType | ||
) |
Conditionally determine whether to enable Trace Hub message.
[in] | Flag | Flag to enable or disable Trace Hub message. |
[in] | DbgLevel | Debug Level of Trace Hub. |
[in] | SeverityType | Severity type of input message. |
TRUE | Enable trace hub message. |
FALSE | Disable trace hub message. |
Definition at line 31 of file InternalTraceHubApiCommon.c.