1 #ifndef _G_CRASHCAT_REPORT_NVOC_H_
2 #define _G_CRASHCAT_REPORT_NVOC_H_
3 #include "nvoc/runtime.h"
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 /*
10 * SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
11 * SPDX-License-Identifier: MIT
12 *
13 * Permission is hereby granted, free of charge, to any person obtaining a
14 * copy of this software and associated documentation files (the "Software"),
15 * to deal in the Software without restriction, including without limitation
16 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 * and/or sell copies of the Software, and to permit persons to whom the
18 * Software is furnished to do so, subject to the following conditions:
19 *
20 * The above copyright notice and this permission notice shall be included in
21 * all copies or substantial portions of the Software.
22 *
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 * DEALINGS IN THE SOFTWARE.
30 */
31
32 #include "g_crashcat_report_nvoc.h"
33
34 #ifndef CRASHCAT_REPORT_H
35 #define CRASHCAT_REPORT_H
36
37 #include "nv-crashcat.h"
38 #include "nvoc/object.h"
39
40 struct CrashCatEngine;
41
42 #ifndef __NVOC_CLASS_CrashCatEngine_TYPEDEF__
43 #define __NVOC_CLASS_CrashCatEngine_TYPEDEF__
44 typedef struct CrashCatEngine CrashCatEngine;
45 #endif /* __NVOC_CLASS_CrashCatEngine_TYPEDEF__ */
46
47 #ifndef __nvoc_class_id_CrashCatEngine
48 #define __nvoc_class_id_CrashCatEngine 0x654166
49 #endif /* __nvoc_class_id_CrashCatEngine */
50
51
52
53 typedef NvU64 CrashCatImplementer;
54
55 #define CRASHCAT_IMPLEMENTER_UNSPECIFIED 0ull
56 #define CRASHCAT_IMPLEMENTER_LIBOS2 0x4C49424F53322E30ull // "LIBOS2.0"
57 #define CRASHCAT_IMPLEMENTER_LIBOS3 0x4C49424F53332E31ull // "LIBOS3.1"
58
59 struct CrashCatReportHal {
60 unsigned short __nvoc_HalVarIdx;
61 };
62 typedef struct CrashCatReportHal CrashCatReportHal;
63 void __nvoc_init_halspec_CrashCatReportHal(CrashCatReportHal*, NV_CRASHCAT_PACKET_FORMAT_VERSION, CrashCatImplementer);
64
65
66 // Private field names are wrapped in PRIVATE_FIELD, which does nothing for
67 // the matching C source file, but causes diagnostics to be issued if another
68 // source file references the field.
69 #ifdef NVOC_CRASHCAT_REPORT_H_PRIVATE_ACCESS_ALLOWED
70 #define PRIVATE_FIELD(x) x
71 #else
72 #define PRIVATE_FIELD(x) NVOC_PRIVATE_FIELD(x)
73 #endif
74
75 struct __nvoc_inner_struc_CrashCatReport_1__ {
76 NvCrashCatReport_V1 report;
77 NvCrashCatRiscv64CsrState_V1 riscv64CsrState;
78 NvCrashCatRiscv64GprState_V1 riscv64GprState;
79 NvCrashCatRiscv64Trace_V1 *pRiscv64StackTrace;
80 NvCrashCatRiscv64Trace_V1 *pRiscv64PcTrace;
81 NvCrashCatIo32State_V1 *pIo32State;
82 };
83
84
85 struct CrashCatReport {
86 const struct NVOC_RTTI *__nvoc_rtti;
87 struct Object __nvoc_base_Object;
88 struct Object *__nvoc_pbase_Object;
89 struct CrashCatReport *__nvoc_pbase_CrashCatReport;
90 NV_CRASHCAT_CONTAINMENT (*__crashcatReportSourceContainment__)(struct CrashCatReport *);
91 void (*__crashcatReportLogReporter__)(struct CrashCatReport *);
92 void (*__crashcatReportLogSource__)(struct CrashCatReport *);
93 struct CrashCatReportHal reportHal;
94 struct CrashCatEngine *PRIVATE_FIELD(pEngine);
95 NvU32 PRIVATE_FIELD(validTags);
96 struct __nvoc_inner_struc_CrashCatReport_1__ PRIVATE_FIELD(v1);
97 };
98
99 #ifndef __NVOC_CLASS_CrashCatReport_TYPEDEF__
100 #define __NVOC_CLASS_CrashCatReport_TYPEDEF__
101 typedef struct CrashCatReport CrashCatReport;
102 #endif /* __NVOC_CLASS_CrashCatReport_TYPEDEF__ */
103
104 #ifndef __nvoc_class_id_CrashCatReport
105 #define __nvoc_class_id_CrashCatReport 0xde4777
106 #endif /* __nvoc_class_id_CrashCatReport */
107
108 extern const struct NVOC_CLASS_DEF __nvoc_class_def_CrashCatReport;
109
110 #define __staticCast_CrashCatReport(pThis) \
111 ((pThis)->__nvoc_pbase_CrashCatReport)
112
113 #ifdef __nvoc_crashcat_report_h_disabled
114 #define __dynamicCast_CrashCatReport(pThis) ((CrashCatReport*)NULL)
115 #else //__nvoc_crashcat_report_h_disabled
116 #define __dynamicCast_CrashCatReport(pThis) \
117 ((CrashCatReport*)__nvoc_dynamicCast(staticCast((pThis), Dynamic), classInfo(CrashCatReport)))
118 #endif //__nvoc_crashcat_report_h_disabled
119
120
121 NV_STATUS __nvoc_objCreateDynamic_CrashCatReport(CrashCatReport**, Dynamic*, NvU32, va_list);
122
123 NV_STATUS __nvoc_objCreate_CrashCatReport(CrashCatReport**, Dynamic*, NvU32,
124 NV_CRASHCAT_PACKET_FORMAT_VERSION CrashCatReportHal_version, CrashCatImplementer CrashCatReportHal_implementer, void ** arg_ppReportBytes, NvLength arg_bytesRemaining);
125 #define __objCreate_CrashCatReport(ppNewObj, pParent, createFlags, CrashCatReportHal_version, CrashCatReportHal_implementer, arg_ppReportBytes, arg_bytesRemaining) \
126 __nvoc_objCreate_CrashCatReport((ppNewObj), staticCast((pParent), Dynamic), (createFlags), CrashCatReportHal_version, CrashCatReportHal_implementer, arg_ppReportBytes, arg_bytesRemaining)
127
128 #define crashcatReportSourceContainment(arg0) crashcatReportSourceContainment_DISPATCH(arg0)
129 #define crashcatReportSourceContainment_HAL(arg0) crashcatReportSourceContainment_DISPATCH(arg0)
130 #define crashcatReportLogReporter(arg0) crashcatReportLogReporter_DISPATCH(arg0)
131 #define crashcatReportLogReporter_HAL(arg0) crashcatReportLogReporter_DISPATCH(arg0)
132 #define crashcatReportLogSource(arg0) crashcatReportLogSource_DISPATCH(arg0)
133 #define crashcatReportLogSource_HAL(arg0) crashcatReportLogSource_DISPATCH(arg0)
134 void crashcatReportDestruct_V1(struct CrashCatReport *arg0);
135
136
137 #define __nvoc_crashcatReportDestruct(arg0) crashcatReportDestruct_V1(arg0)
138 void *crashcatReportExtract_V1(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
139
140
141 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportExtract(struct CrashCatReport * arg0,void * pReportBytes,NvLength bytesRemaining)142 static inline void *crashcatReportExtract(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining) {
143 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
144 return NULL;
145 }
146 #else //__nvoc_crashcat_report_h_disabled
147 #define crashcatReportExtract(arg0, pReportBytes, bytesRemaining) crashcatReportExtract_V1(arg0, pReportBytes, bytesRemaining)
148 #endif //__nvoc_crashcat_report_h_disabled
149
150 #define crashcatReportExtract_HAL(arg0, pReportBytes, bytesRemaining) crashcatReportExtract(arg0, pReportBytes, bytesRemaining)
151
152 void *crashcatReportExtractReport_V1(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
153
154
155 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportExtractReport(struct CrashCatReport * arg0,void * pReportBytes,NvLength bytesRemaining)156 static inline void *crashcatReportExtractReport(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining) {
157 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
158 return NULL;
159 }
160 #else //__nvoc_crashcat_report_h_disabled
161 #define crashcatReportExtractReport(arg0, pReportBytes, bytesRemaining) crashcatReportExtractReport_V1(arg0, pReportBytes, bytesRemaining)
162 #endif //__nvoc_crashcat_report_h_disabled
163
164 #define crashcatReportExtractReport_HAL(arg0, pReportBytes, bytesRemaining) crashcatReportExtractReport(arg0, pReportBytes, bytesRemaining)
165
166 void *crashcatReportExtractRiscv64CsrState_V1(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
167
168
169 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportExtractRiscv64CsrState(struct CrashCatReport * arg0,void * pReportBytes,NvLength bytesRemaining)170 static inline void *crashcatReportExtractRiscv64CsrState(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining) {
171 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
172 return NULL;
173 }
174 #else //__nvoc_crashcat_report_h_disabled
175 #define crashcatReportExtractRiscv64CsrState(arg0, pReportBytes, bytesRemaining) crashcatReportExtractRiscv64CsrState_V1(arg0, pReportBytes, bytesRemaining)
176 #endif //__nvoc_crashcat_report_h_disabled
177
178 #define crashcatReportExtractRiscv64CsrState_HAL(arg0, pReportBytes, bytesRemaining) crashcatReportExtractRiscv64CsrState(arg0, pReportBytes, bytesRemaining)
179
180 void *crashcatReportExtractRiscv64GprState_V1(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
181
182
183 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportExtractRiscv64GprState(struct CrashCatReport * arg0,void * pReportBytes,NvLength bytesRemaining)184 static inline void *crashcatReportExtractRiscv64GprState(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining) {
185 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
186 return NULL;
187 }
188 #else //__nvoc_crashcat_report_h_disabled
189 #define crashcatReportExtractRiscv64GprState(arg0, pReportBytes, bytesRemaining) crashcatReportExtractRiscv64GprState_V1(arg0, pReportBytes, bytesRemaining)
190 #endif //__nvoc_crashcat_report_h_disabled
191
192 #define crashcatReportExtractRiscv64GprState_HAL(arg0, pReportBytes, bytesRemaining) crashcatReportExtractRiscv64GprState(arg0, pReportBytes, bytesRemaining)
193
194 void *crashcatReportExtractRiscv64Trace_V1(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
195
196
197 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportExtractRiscv64Trace(struct CrashCatReport * arg0,void * pReportBytes,NvLength bytesRemaining)198 static inline void *crashcatReportExtractRiscv64Trace(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining) {
199 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
200 return NULL;
201 }
202 #else //__nvoc_crashcat_report_h_disabled
203 #define crashcatReportExtractRiscv64Trace(arg0, pReportBytes, bytesRemaining) crashcatReportExtractRiscv64Trace_V1(arg0, pReportBytes, bytesRemaining)
204 #endif //__nvoc_crashcat_report_h_disabled
205
206 #define crashcatReportExtractRiscv64Trace_HAL(arg0, pReportBytes, bytesRemaining) crashcatReportExtractRiscv64Trace(arg0, pReportBytes, bytesRemaining)
207
208 void *crashcatReportExtractIo32State_V1(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
209
210
211 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportExtractIo32State(struct CrashCatReport * arg0,void * pReportBytes,NvLength bytesRemaining)212 static inline void *crashcatReportExtractIo32State(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining) {
213 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
214 return NULL;
215 }
216 #else //__nvoc_crashcat_report_h_disabled
217 #define crashcatReportExtractIo32State(arg0, pReportBytes, bytesRemaining) crashcatReportExtractIo32State_V1(arg0, pReportBytes, bytesRemaining)
218 #endif //__nvoc_crashcat_report_h_disabled
219
220 #define crashcatReportExtractIo32State_HAL(arg0, pReportBytes, bytesRemaining) crashcatReportExtractIo32State(arg0, pReportBytes, bytesRemaining)
221
222 void crashcatReportLogRiscv64CsrState_V1(struct CrashCatReport *arg0);
223
224
225 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportLogRiscv64CsrState(struct CrashCatReport * arg0)226 static inline void crashcatReportLogRiscv64CsrState(struct CrashCatReport *arg0) {
227 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
228 }
229 #else //__nvoc_crashcat_report_h_disabled
230 #define crashcatReportLogRiscv64CsrState(arg0) crashcatReportLogRiscv64CsrState_V1(arg0)
231 #endif //__nvoc_crashcat_report_h_disabled
232
233 #define crashcatReportLogRiscv64CsrState_HAL(arg0) crashcatReportLogRiscv64CsrState(arg0)
234
235 void crashcatReportLogRiscv64GprState_V1(struct CrashCatReport *arg0);
236
237
238 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportLogRiscv64GprState(struct CrashCatReport * arg0)239 static inline void crashcatReportLogRiscv64GprState(struct CrashCatReport *arg0) {
240 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
241 }
242 #else //__nvoc_crashcat_report_h_disabled
243 #define crashcatReportLogRiscv64GprState(arg0) crashcatReportLogRiscv64GprState_V1(arg0)
244 #endif //__nvoc_crashcat_report_h_disabled
245
246 #define crashcatReportLogRiscv64GprState_HAL(arg0) crashcatReportLogRiscv64GprState(arg0)
247
248 void crashcatReportLogRiscv64Traces_V1(struct CrashCatReport *arg0);
249
250
251 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportLogRiscv64Traces(struct CrashCatReport * arg0)252 static inline void crashcatReportLogRiscv64Traces(struct CrashCatReport *arg0) {
253 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
254 }
255 #else //__nvoc_crashcat_report_h_disabled
256 #define crashcatReportLogRiscv64Traces(arg0) crashcatReportLogRiscv64Traces_V1(arg0)
257 #endif //__nvoc_crashcat_report_h_disabled
258
259 #define crashcatReportLogRiscv64Traces_HAL(arg0) crashcatReportLogRiscv64Traces(arg0)
260
261 void crashcatReportLogIo32State_V1(struct CrashCatReport *arg0);
262
263
264 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportLogIo32State(struct CrashCatReport * arg0)265 static inline void crashcatReportLogIo32State(struct CrashCatReport *arg0) {
266 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
267 }
268 #else //__nvoc_crashcat_report_h_disabled
269 #define crashcatReportLogIo32State(arg0) crashcatReportLogIo32State_V1(arg0)
270 #endif //__nvoc_crashcat_report_h_disabled
271
272 #define crashcatReportLogIo32State_HAL(arg0) crashcatReportLogIo32State(arg0)
273
crashcatReportSourceContainment_3e9f29(struct CrashCatReport * arg0)274 static inline NV_CRASHCAT_CONTAINMENT crashcatReportSourceContainment_3e9f29(struct CrashCatReport *arg0) {
275 return NV_CRASHCAT_CONTAINMENT_UNSPECIFIED;
276 }
277
278 NV_CRASHCAT_CONTAINMENT crashcatReportSourceContainment_V1_LIBOS3(struct CrashCatReport *arg0);
279
crashcatReportSourceContainment_DISPATCH(struct CrashCatReport * arg0)280 static inline NV_CRASHCAT_CONTAINMENT crashcatReportSourceContainment_DISPATCH(struct CrashCatReport *arg0) {
281 return arg0->__crashcatReportSourceContainment__(arg0);
282 }
283
284 void crashcatReportLogReporter_V1_GENERIC(struct CrashCatReport *arg0);
285
286 void crashcatReportLogReporter_V1_LIBOS2(struct CrashCatReport *arg0);
287
288 void crashcatReportLogReporter_V1_LIBOS3(struct CrashCatReport *arg0);
289
crashcatReportLogReporter_DISPATCH(struct CrashCatReport * arg0)290 static inline void crashcatReportLogReporter_DISPATCH(struct CrashCatReport *arg0) {
291 arg0->__crashcatReportLogReporter__(arg0);
292 }
293
294 void crashcatReportLogSource_V1_GENERIC(struct CrashCatReport *arg0);
295
296 void crashcatReportLogSource_V1_LIBOS2(struct CrashCatReport *arg0);
297
298 void crashcatReportLogSource_V1_LIBOS3(struct CrashCatReport *arg0);
299
crashcatReportLogSource_DISPATCH(struct CrashCatReport * arg0)300 static inline void crashcatReportLogSource_DISPATCH(struct CrashCatReport *arg0) {
301 arg0->__crashcatReportLogSource__(arg0);
302 }
303
304 NV_STATUS crashcatReportConstruct_IMPL(struct CrashCatReport *arg_, void **arg_ppReportBytes, NvLength arg_bytesRemaining);
305
306 #define __nvoc_crashcatReportConstruct(arg_, arg_ppReportBytes, arg_bytesRemaining) crashcatReportConstruct_IMPL(arg_, arg_ppReportBytes, arg_bytesRemaining)
307 void crashcatReportLog_IMPL(struct CrashCatReport *arg0);
308
309 #ifdef __nvoc_crashcat_report_h_disabled
crashcatReportLog(struct CrashCatReport * arg0)310 static inline void crashcatReportLog(struct CrashCatReport *arg0) {
311 NV_ASSERT_FAILED_PRECOMP("CrashCatReport was disabled!");
312 }
313 #else //__nvoc_crashcat_report_h_disabled
314 #define crashcatReportLog(arg0) crashcatReportLog_IMPL(arg0)
315 #endif //__nvoc_crashcat_report_h_disabled
316
317 #undef PRIVATE_FIELD
318
319 #ifndef NVOC_CRASHCAT_REPORT_H_PRIVATE_ACCESS_ALLOWED
320 #undef crashcatReportLogReporter
321 void NVOC_PRIVATE_FUNCTION(crashcatReportLogReporter)(struct CrashCatReport *arg0);
322
323 #undef crashcatReportLogReporter_HAL
324 void NVOC_PRIVATE_FUNCTION(crashcatReportLogReporter_HAL)(struct CrashCatReport *arg0);
325
326 #undef crashcatReportLogSource
327 void NVOC_PRIVATE_FUNCTION(crashcatReportLogSource)(struct CrashCatReport *arg0);
328
329 #undef crashcatReportLogSource_HAL
330 void NVOC_PRIVATE_FUNCTION(crashcatReportLogSource_HAL)(struct CrashCatReport *arg0);
331
332 #ifndef __nvoc_crashcat_report_h_disabled
333 #undef crashcatReportExtract
334 void *NVOC_PRIVATE_FUNCTION(crashcatReportExtract)(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
335 #endif //__nvoc_crashcat_report_h_disabled
336
337 #ifndef __nvoc_crashcat_report_h_disabled
338 #undef crashcatReportExtractReport
339 void *NVOC_PRIVATE_FUNCTION(crashcatReportExtractReport)(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
340 #endif //__nvoc_crashcat_report_h_disabled
341
342 #ifndef __nvoc_crashcat_report_h_disabled
343 #undef crashcatReportExtractRiscv64CsrState
344 void *NVOC_PRIVATE_FUNCTION(crashcatReportExtractRiscv64CsrState)(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
345 #endif //__nvoc_crashcat_report_h_disabled
346
347 #ifndef __nvoc_crashcat_report_h_disabled
348 #undef crashcatReportExtractRiscv64GprState
349 void *NVOC_PRIVATE_FUNCTION(crashcatReportExtractRiscv64GprState)(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
350 #endif //__nvoc_crashcat_report_h_disabled
351
352 #ifndef __nvoc_crashcat_report_h_disabled
353 #undef crashcatReportExtractRiscv64Trace
354 void *NVOC_PRIVATE_FUNCTION(crashcatReportExtractRiscv64Trace)(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
355 #endif //__nvoc_crashcat_report_h_disabled
356
357 #ifndef __nvoc_crashcat_report_h_disabled
358 #undef crashcatReportExtractIo32State
359 void *NVOC_PRIVATE_FUNCTION(crashcatReportExtractIo32State)(struct CrashCatReport *arg0, void *pReportBytes, NvLength bytesRemaining);
360 #endif //__nvoc_crashcat_report_h_disabled
361
362 #ifndef __nvoc_crashcat_report_h_disabled
363 #undef crashcatReportLogRiscv64CsrState
364 void NVOC_PRIVATE_FUNCTION(crashcatReportLogRiscv64CsrState)(struct CrashCatReport *arg0);
365 #endif //__nvoc_crashcat_report_h_disabled
366
367 #ifndef __nvoc_crashcat_report_h_disabled
368 #undef crashcatReportLogRiscv64GprState
369 void NVOC_PRIVATE_FUNCTION(crashcatReportLogRiscv64GprState)(struct CrashCatReport *arg0);
370 #endif //__nvoc_crashcat_report_h_disabled
371
372 #ifndef __nvoc_crashcat_report_h_disabled
373 #undef crashcatReportLogRiscv64Traces
374 void NVOC_PRIVATE_FUNCTION(crashcatReportLogRiscv64Traces)(struct CrashCatReport *arg0);
375 #endif //__nvoc_crashcat_report_h_disabled
376
377 #ifndef __nvoc_crashcat_report_h_disabled
378 #undef crashcatReportLogIo32State
379 void NVOC_PRIVATE_FUNCTION(crashcatReportLogIo32State)(struct CrashCatReport *arg0);
380 #endif //__nvoc_crashcat_report_h_disabled
381
382 #endif // NVOC_CRASHCAT_REPORT_H_PRIVATE_ACCESS_ALLOWED
383
384
385 // Utility to convert a cause code to a user-friendly string
386 const char *crashcatReportRiscvCauseToString(NvU64 xcause);
387
388 // Log indentation used for multi-line reports
389 #define CRASHCAT_LOG_INDENT " "
390
391 // Prefix used for multi-line reports
392 #if defined(NVRM)
393 #define CRASHCAT_LOG_PREFIX "NVRM: "
394 #else
395 #define CRASHCAT_LOG_PREFIX
396 #endif
397
398 #define CRASHCAT_REPORT_LOG_PACKET_TYPE(pReport, fmt, ...) \
399 crashcatEnginePrintf(pReport->pEngine, NV_FALSE, \
400 CRASHCAT_LOG_PREFIX CRASHCAT_LOG_INDENT fmt, ##__VA_ARGS__)
401 #define CRASHCAT_REPORT_LOG_DATA(pReport, fmt, ...) \
402 crashcatEnginePrintf(pReport->pEngine, NV_FALSE, \
403 CRASHCAT_LOG_PREFIX CRASHCAT_LOG_INDENT CRASHCAT_LOG_INDENT fmt, \
404 ##__VA_ARGS__)
405
406 #endif // CRASHCAT_REPORT_H
407
408 #ifdef __cplusplus
409 } // extern "C"
410 #endif
411
412 #endif // _G_CRASHCAT_REPORT_NVOC_H_
413