TianoCore EDK2 master
Loading...
Searching...
No Matches
MipiSysTLib.c
Go to the documentation of this file.
1
10#include <Base.h>
11#include "mipi_syst.h"
12
21RETURN_STATUS
22EFIAPI
24 IN OUT VOID *MipiSystHandle
25 )
26{
27 MIPI_SYST_HANDLE *MipiSystH;
28
29 MipiSystH = (MIPI_SYST_HANDLE *)MipiSystHandle;
30 if (MipiSystH == NULL) {
32 }
33
34 mipi_syst_init (MipiSystH->systh_header, 0, NULL);
35
36 return RETURN_SUCCESS;
37}
38
51RETURN_STATUS
52EFIAPI
54 IN MIPI_SYST_HANDLE *MipiSystHandle,
55 IN UINT32 Severity,
56 IN UINT16 Len,
57 IN CONST CHAR8 *Str
58 )
59{
60 MIPI_SYST_HANDLE *MipiSystH;
61
62 MipiSystH = (MIPI_SYST_HANDLE *)MipiSystHandle;
63 if (MipiSystH == NULL) {
65 }
66
67 if (Len == 0) {
68 //
69 // No data need to be written to Trace Hub
70 //
71 return RETURN_ABORTED;
72 }
73
74 if (Str == NULL) {
76 }
77
78 mipi_syst_write_debug_string (
79 MipiSystH,
80 MIPI_SYST_NOLOCATION,
82 Severity,
83 Len,
84 Str
85 );
86
87 return RETURN_SUCCESS;
88}
89
100RETURN_STATUS
101EFIAPI
103 IN MIPI_SYST_HANDLE *MipiSystHandle,
104 IN UINT32 Severity,
105 IN UINT64 CatId
106 )
107{
108 MIPI_SYST_HANDLE *MipiSystH;
109
110 MipiSystH = (MIPI_SYST_HANDLE *)MipiSystHandle;
111 if (MipiSystH == NULL) {
113 }
114
115 mipi_syst_write_catalog64_message (
116 MipiSystH,
117 MIPI_SYST_NOLOCATION,
118 Severity,
119 CatId
120 );
121
122 return RETURN_SUCCESS;
123}
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define RETURN_ABORTED
Definition: Base.h:1177
#define RETURN_SUCCESS
Definition: Base.h:1066
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define RETURN_INVALID_PARAMETER
Definition: Base.h:1076
RETURN_STATUS EFIAPI MipiSystWriteCatalog(IN MIPI_SYST_HANDLE *MipiSystHandle, IN UINT32 Severity, IN UINT64 CatId)
Definition: MipiSysTLib.c:102
RETURN_STATUS EFIAPI InitMipiSystHandle(IN OUT VOID *MipiSystHandle)
Definition: MipiSysTLib.c:23
RETURN_STATUS EFIAPI MipiSystWriteDebug(IN MIPI_SYST_HANDLE *MipiSystHandle, IN UINT32 Severity, IN UINT16 Len, IN CONST CHAR8 *Str)
Definition: MipiSysTLib.c:53
@ MIPI_SYST_STRING_GENERIC
Definition: mipi_syst.h:143
struct mipi_syst_header * systh_header
Definition: mipi_syst.h:754