14#include <Library/MipiSysTLib/mipi_syst.h>
34 IN TRACE_HUB_SEVERITY_TYPE SeverityType
37 if (Flag == TraceHubRoutingDisable) {
41 if (DbgLevel == TraceHubDebugLevelError) {
42 if (((SeverityType == SeverityFatal) || (SeverityType == SeverityError))) {
45 }
else if (DbgLevel == TraceHubDebugLevelErrorWarning) {
46 if (((SeverityType == SeverityFatal) || (SeverityType == SeverityError) || (SeverityType == SeverityWarning))) {
49 }
else if (DbgLevel == TraceHubDebugLevelErrorWarningInfo) {
50 if (((SeverityType == SeverityFatal) || (SeverityType == SeverityError) || (SeverityType == SeverityWarning) || (SeverityType == SeverityNormal))) {
53 }
else if (DbgLevel == TraceHubDebugLevelErrorWarningInfoVerbose) {
74 ConvertedGuid->Data1 =
SwapBytes32 (ConvertedGuid->Data1);
75 ConvertedGuid->Data2 =
SwapBytes16 (ConvertedGuid->Data2);
76 ConvertedGuid->Data3 =
SwapBytes16 (ConvertedGuid->Data3);
97 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
98 IN TRACEHUB_PRINTTYPE PrintType
104 RETURN_STATUS Status;
106 if (MipiSystHandle ==
NULL) {
110 if (PrintType == TraceHubDebugType) {
126 MipiSystHandle->systh_platform.TraceHubPlatformData.MmioAddr = Addr;
127 if (MipiSystHandle->systh_platform.TraceHubPlatformData.MmioAddr == 0) {
146 IN UINT8 *DbgContext,
147 IN OUT UINT64 *TraceAddress
152 if (TraceAddress ==
NULL) {
156 if (DbgContext !=
NULL) {
158 *TraceAddress = ThDbgContext->TraceHubMmioAddress;
179 IN UINT8 *DbgContext,
180 IN OUT BOOLEAN *Flag,
181 IN OUT UINT8 *DbgLevel
186 if ((Flag ==
NULL) || (DbgLevel ==
NULL)) {
190 if (DbgContext !=
NULL) {
192 *Flag = ThDbgContext->Flag;
193 *DbgLevel = ThDbgContext->DebugLevel;
UINT16 EFIAPI SwapBytes16(IN UINT16 Value)
UINT32 EFIAPI SwapBytes32(IN UINT32 Value)
GUID *EFIAPI CopyGuid(OUT GUID *DestinationGuid, IN CONST GUID *SourceGuid)
RETURN_STATUS EFIAPI GetTraceHubMmioAddress(IN UINT8 *DbgContext, IN OUT UINT64 *TraceAddress)
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 GetTraceHubMsgVisibility(IN UINT8 *DbgContext, IN OUT BOOLEAN *Flag, IN OUT UINT8 *DbgLevel)
BOOLEAN EFIAPI TraceHubDataEnabled(IN BOOLEAN Flag, IN UINT8 DbgLevel, IN TRACE_HUB_SEVERITY_TYPE SeverityType)
VOID EFIAPI SwapBytesGuid(IN GUID *Guid, OUT GUID *ConvertedGuid)
#define RETURN_ERROR(StatusCode)
#define RETURN_INVALID_PARAMETER
#define FixedPcdGet64(TokenName)
#define FixedPcdGetBool(TokenName)
#define FixedPcdGet8(TokenName)