20#include <Library/MipiSysTLib/mipi_syst.h>
38 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
51 if (NumberOfBytes == 0) {
73 if (DbgContext !=
NULL) {
74 ThDebugInfo = GET_GUID_HOB_DATA (DbgContext);
79 for (Index = 0; Index < DbgInstCount; Index++) {
90 (UINT16)NumberOfBytes,
98 if (DbgContext !=
NULL) {
99 DbgContext = (UINT8 *)
GetNextGuidHob (&gTraceHubDebugInfoHobGuid, GET_NEXT_HOB (DbgContext));
100 if (DbgContext ==
NULL) {
104 ThDebugInfo = GET_GUID_HOB_DATA (DbgContext);
124 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
133 RETURN_STATUS Status;
156 if (DbgContext !=
NULL) {
157 ThDebugInfo = GET_GUID_HOB_DATA (DbgContext);
162 for (Index = 0; Index < DbgInstCount; Index++) {
180 if (DbgContext !=
NULL) {
181 DbgContext = (UINT8 *)
GetNextGuidHob (&gTraceHubDebugInfoHobGuid, GET_NEXT_HOB (DbgContext));
182 if (DbgContext ==
NULL) {
186 ThDebugInfo = GET_GUID_HOB_DATA (DbgContext);
207 IN TRACE_HUB_SEVERITY_TYPE SeverityType,
219 RETURN_STATUS Status;
224 if (NumberOfParams >
sizeof (MipiSystHandle.
systh_param) / sizeof (UINT32)) {
240 for (Index = 0; Index < NumberOfParams; Index++) {
247 if (DbgContext !=
NULL) {
248 ThDebugInfo = GET_GUID_HOB_DATA (DbgContext);
253 for (Index = 0; Index < DbgInstCount; Index++) {
271 if (DbgContext !=
NULL) {
272 DbgContext = (UINT8 *)
GetNextGuidHob (&gTraceHubDebugInfoHobGuid, GET_NEXT_HOB (DbgContext));
273 if (DbgContext ==
NULL) {
277 ThDebugInfo = GET_GUID_HOB_DATA (DbgContext);
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
VOID *EFIAPI GetNextGuidHob(IN CONST EFI_GUID *Guid, IN CONST VOID *HobStart)
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
UINT32 EFIAPI CountThDebugInstance(VOID)
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 VA_ARG(Marker, TYPE)
#define VA_START(Marker, Parameter)
#define RETURN_INVALID_PARAMETER
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)
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 TraceHubSysTDebugWrite(IN TRACE_HUB_SEVERITY_TYPE SeverityType, IN UINT8 *Buffer, IN UINTN NumberOfBytes)
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