TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeSmmTraceHubDebugSysTLib.c File Reference
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.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,...)
 
RETURN_STATUS EFIAPI DxeSmmTraceHubDebugSysTLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED TRACEHUB_DEBUG_INFO_HOBmThDebugInstArray = NULL
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT32 mDbgInstCount = 0
 

Detailed Description

System prints Trace Hub message in DXE/SMM based on fixed PCDs and HOB. Trace Hub PCDs will be applied if no HOB exist.

Copyright (c) 2023, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeSmmTraceHubDebugSysTLib.c.

Function Documentation

◆ DxeSmmTraceHubDebugSysTLibConstructor()

RETURN_STATUS EFIAPI DxeSmmTraceHubDebugSysTLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Constructor to get TraceHob configuration data

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
RETURN_SUCCESSThe constructor always returns EFI_SUCCESS.
RETURN_OUT_OF_RESOURCESThere are not enough resources available to retrieve the matching FFS section.

Definition at line 245 of file DxeSmmTraceHubDebugSysTLib.c.

◆ TraceHubSysTDebugWrite()

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.

Parameters
[in]SeverityTypeSeverity type of input message.
[in]BufferA pointer to the data buffer.
[in]NumberOfBytesThe size of data buffer.
Return values
RETURN_SUCCESSData was written to Trace Hub.
OtherFailed to output Trace Hub message.

Definition at line 39 of file DxeSmmTraceHubDebugSysTLib.c.

◆ TraceHubSysTWriteCataLog64()

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.

Parameters
[in]SeverityTypeSeverity type of input message.
[in]IdCatalog ID.
[in]NumberOfParamsNumber of entries in argument list.
[in]...Catalog message parameters.
Return values
RETURN_SUCCESSData was written to Trace Hub.
OtherFailed to output Trace Hub message.

Definition at line 174 of file DxeSmmTraceHubDebugSysTLib.c.

◆ TraceHubSysTWriteCataLog64StatusCode()

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.

Parameters
[in]SeverityTypeSeverity type of input message.
[in]IdCatalog ID.
[in]GuidDriver Guid.
Return values
RETURN_SUCCESSData was written to Trace Hub.
OtherFailed to output Trace Hub message.

Definition at line 108 of file DxeSmmTraceHubDebugSysTLib.c.

Variable Documentation

◆ mDbgInstCount

GLOBAL_REMOVE_IF_UNREFERENCED UINT32 mDbgInstCount = 0

Definition at line 25 of file DxeSmmTraceHubDebugSysTLib.c.

◆ mThDebugInstArray