19#include <Library/MipiSysTLib/mipi_syst.h>
40 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
50 if ((mDbgInstCount == 0) || (mThDebugInstArray ==
NULL)) {
54 if (NumberOfBytes == 0) {
73 for (Index = 0; Index < mDbgInstCount; Index++) {
76 (UINT8 *)&mThDebugInstArray[Index],
84 (UINT16)NumberOfBytes,
109 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
117 RETURN_STATUS Status;
119 if ((mDbgInstCount == 0) || (mThDebugInstArray ==
NULL)) {
139 for (Index = 0; Index < mDbgInstCount; Index++) {
142 (UINT8 *)&mThDebugInstArray[Index],
175 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
185 RETURN_STATUS Status;
187 if (NumberOfParams >
sizeof (MipiSystHandle.
systh_param) / sizeof (UINT32)) {
191 if ((mDbgInstCount == 0) || (mThDebugInstArray ==
NULL)) {
205 for (Index = 0; Index < NumberOfParams; Index++) {
211 for (Index = 0; Index < mDbgInstCount; Index++) {
214 (UINT8 *)&mThDebugInstArray[Index],
250 if (mDbgInstCount == 0) {
256 if (mThDebugInstArray !=
NULL) {
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
UINT32 EFIAPI CountThDebugInstance(VOID)
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)
RETURN_STATUS EFIAPI TraceHubSysTDebugWrite(IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN UINT8 *Buffer, IN UINTN NumberOfBytes)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI PackThDebugInstance(IN OUT TRACEHUB_DEBUG_INFO_HOB *ThPtr, IN UINT32 Count)
RETURN_STATUS EFIAPI CheckWhetherToOutputMsg(IN OUT MIPI_SYST_HANDLE *MipiSystHandle, IN UINT8 *DbgContext, IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN TRACEHUB_PRINTTYPE PrintType)
VOID EFIAPI SwapBytesGuid(IN GUID *Guid, OUT GUID *ConvertedGuid)
#define RETURN_ERROR(StatusCode)
#define RETURN_OUT_OF_RESOURCES
#define VA_ARG(Marker, TYPE)
#define VA_START(Marker, Parameter)
#define RETURN_INVALID_PARAMETER
#define GLOBAL_REMOVE_IF_UNREFERENCED
RETURN_STATUS EFIAPI InitMipiSystHandle(IN OUT VOID *MipiSystHandle)
RETURN_STATUS EFIAPI MipiSystWriteCatalog(IN VOID *MipiSystHandle, IN UINT32 Severity, IN UINT64 CatId)
RETURN_STATUS EFIAPI MipiSystWriteDebug(IN VOID *MipiSystHandle, IN UINT32 Severity, IN UINT16 Len, IN CONST CHAR8 *Str)
struct mipi_syst_msg_tag systh_tag
struct mipi_syst_guid systh_guid
mipi_syst_u32 systh_param_count
mipi_syst_u32 systh_param[6]
struct mipi_syst_header * systh_header