NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvlog_common_defs.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 /*
14  * nvlog_common_defs.h - Common Definitions for NvLog
15  *
16  * Shared constants and definitions used across all nvlog components
17  */
18 
19 #ifndef INCLUDE_NVLOG_COMMON_DEFS_H
20 #define INCLUDE_NVLOG_COMMON_DEFS_H
21 
22 #if defined(__cplusplus)
23 extern "C"
24 {
25 #endif
26 
33 /*
34  * EOK definition
35  * Linux doesn't define EOK, but QNX does
36  * Define it here once for consistency across all headers
37  */
38 #ifndef EOK
39 #define EOK (0)
40 #endif
41 
43 #define NVLOG_USE_DEFAULT_TIMEOUT (0)
44 
45 /*
46  * Common Device Tree Definitions
47  * Shared across GOS, control, and API components
48  */
49 
51 #define NVLOG_DT_NODE "/nvlog_gos"
52 
54 #define NVLOG_DT_STATUS "status"
55 
57 #define NVLOG_DT_IVC_CLIENT_EP_NAME "ivc_client_ep_name"
58 
59 /*
60  * Common Signal Definitions
61  * OS-agnostic signal numbers (POSIX standard values)
62  */
63 
65 #define NVLOG_SIGTERM (15)
66 
68 #define NVLOG_SIGABRT (6)
69 
71 #define NVLOG_SIGINT (2)
72 
74 #define NVLOG_VM_LOGGING_DISABLE (0xFFU)
75 
76 /*
77  * Common Enum Definitions
78  * Shared between nvlog_cmd_type.h and nvlog_server_cmd_type.h
79  */
80 
85 typedef enum {
106 } NvLogError;
107 
113 typedef enum {
124 } NvLogAction;
125 
130 typedef enum {
155 } NvLogTarget;
156 
157 #if defined(__cplusplus)
158 }
159 #endif
160 
163 #endif /* INCLUDE_NVLOG_COMMON_DEFS_H */
164 
NVLOG_TARGET_PVA
@ NVLOG_TARGET_PVA
PVA Firmware.
Definition: nvlog_common_defs.h:150
NVLOG_TARGET_OESP
@ NVLOG_TARGET_OESP
OESP Firmware.
Definition: nvlog_common_defs.h:144
NVLOG_ERROR_INVALID_PARAM
@ NVLOG_ERROR_INVALID_PARAM
Invalid Parameter.
Definition: nvlog_common_defs.h:89
NVLOG_TARGET_VM1
@ NVLOG_TARGET_VM1
Guest VM1
Definition: nvlog_common_defs.h:136
NVLOG_ERROR_IPC_FAILED
@ NVLOG_ERROR_IPC_FAILED
NvSciIpc communication is failed.
Definition: nvlog_common_defs.h:99
NVLOG_TARGET_FSI
@ NVLOG_TARGET_FSI
FSI Firmware.
Definition: nvlog_common_defs.h:142
NVLOG_TARGET_NVLOG_SERVER
@ NVLOG_TARGET_NVLOG_SERVER
Log Server.
Definition: nvlog_common_defs.h:132
NVLOG_ACTION_MAX
@ NVLOG_ACTION_MAX
Max enum for validation check.
Definition: nvlog_common_defs.h:123
NVLOG_ACTION_ENABLE
@ NVLOG_ACTION_ENABLE
Enable logging.
Definition: nvlog_common_defs.h:117
NVLOG_ACTION_SET_LOG_LEVEL
@ NVLOG_ACTION_SET_LOG_LEVEL
Set log level of a process.
Definition: nvlog_common_defs.h:121
NVLOG_TARGET_VM0
@ NVLOG_TARGET_VM0
Guest VM0
Definition: nvlog_common_defs.h:134
NVLOG_ACTION_DISABLE
@ NVLOG_ACTION_DISABLE
Disable logging.
Definition: nvlog_common_defs.h:115
NVLOG_ERROR_MUTEX_FAILED
@ NVLOG_ERROR_MUTEX_FAILED
Mutex lock/unlock failure.
Definition: nvlog_common_defs.h:91
NvLogAction
NvLogAction
Enum for NvLog control actions.
Definition: nvlog_common_defs.h:113
NVLOG_ERROR_IPC_TIMEOUT
@ NVLOG_ERROR_IPC_TIMEOUT
NvSciIpc communication is failed due to timeout.
Definition: nvlog_common_defs.h:101
NVLOG_TARGET_MAX
@ NVLOG_TARGET_MAX
All targets.
Definition: nvlog_common_defs.h:154
NVLOG_SUCCESS
@ NVLOG_SUCCESS
Success.
Definition: nvlog_common_defs.h:87
NvLogTarget
NvLogTarget
Enum for NvLog targets.
Definition: nvlog_common_defs.h:130
NvLogError
NvLogError
Enum for NvLog error codes.
Definition: nvlog_common_defs.h:85
NVLOG_ERROR_NOT_INITIALIZED
@ NVLOG_ERROR_NOT_INITIALIZED
NvSciIpc channel is not initialized.
Definition: nvlog_common_defs.h:93
NVLOG_TARGET_RCE
@ NVLOG_TARGET_RCE
RCE Firmware.
Definition: nvlog_common_defs.h:152
NVLOG_ERROR_DT_FAILED
@ NVLOG_ERROR_DT_FAILED
DT node/property for NvSciIpc endpoint is not found.
Definition: nvlog_common_defs.h:97
NVLOG_TARGET_VM2
@ NVLOG_TARGET_VM2
Guest VM2
Definition: nvlog_common_defs.h:138
NVLOG_TARGET_DCE
@ NVLOG_TARGET_DCE
DCE Firmware.
Definition: nvlog_common_defs.h:146
NVLOG_ERROR_IVC_NOT_READY
@ NVLOG_ERROR_IVC_NOT_READY
NvSciIpc connection is not ready.
Definition: nvlog_common_defs.h:105
NVLOG_ACTION_FLUSH
@ NVLOG_ACTION_FLUSH
Flush logs.
Definition: nvlog_common_defs.h:119
NVLOG_TARGET_DLA
@ NVLOG_TARGET_DLA
DLA Firmware.
Definition: nvlog_common_defs.h:148
NVLOG_ERROR_ALREADY_INITIALIZED
@ NVLOG_ERROR_ALREADY_INITIALIZED
NvSciIpc channel is already initialized.
Definition: nvlog_common_defs.h:95
NVLOG_TARGET_HVRTOS_NS
@ NVLOG_TARGET_HVRTOS_NS
HVRTOS non-secure processes.
Definition: nvlog_common_defs.h:140
NVLOG_ERROR_CMD_FAILED
@ NVLOG_ERROR_CMD_FAILED
Command is not successfully executed.
Definition: nvlog_common_defs.h:103