|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
17 #ifndef DUS_COMMON_DATA_H_
18 #define DUS_COMMON_DATA_H_
24 #define DUS_IVC_MEMPOOL_DATA_VERSION (0x1)
31 #define CHAIN_INVALID (3U)
33 #define CHAIN_PERSIST (0xFFU)
37 #define CMD_APPLY_PAYLOAD (0U)
38 #define CMD_MARK_BOOTABLE (1U)
39 #define CMD_APPLY_PAYLOAD_PERSISTENT (2U)
40 #define CMD_BRBCT_UPDATE (3U)
41 #define CMD_GET_CONTENT (4U)
42 #define CMD_RELOAD_PT (5U)
43 #define CMD_GET_PARTS_INFO (6U)
44 #define CMD_GET_SERVER_LOG (7U)
45 #define CMD_GET_PT_LOG (8U)
50 #define PAYLOAD_DISCARD (0U)
51 #define PAYLOAD_REPLACE (1U)
52 #define PAYLOAD_COPY (2U)
53 #define PAYLOAD_PATCH (3U)
54 #define PAYLOAD_BRBCT_UPDATE (4U)
55 #define PAYLOAD_MARK_BOOTABLE (5U)
56 #define PAYLOAD_PERSISTENT_UPDATE (6U)
57 #define PAYLOAD_OPERATION_MAX (0xFFU)
61 #define MEMPOOL_DIRECTION_CLIENT_TO_SERVER (0U)
62 #define MEMPOOL_DIRECTION_SERVER_TO_CLIENT (1U)
65 #define MAGIC_NVDUCMD (0x00444d435544564eU)
66 #define MAGIC_NVDURET (0x005445525544564eU)
67 #define MAGIC_NVDUMEM (0x004d454d5544564eU)
68 #define MAGIC_NVDUPLD (0x00444c505544564eU)
73 #define DUS_PARTITION_LEVEL_1 (1U)
75 #define DUS_PARTITION_LEVEL_2 (2U)
77 #define DUS_PARTITION_LEVEL_3 (3U)
83 #define DUS_PART_NAME_LENGTH (64U)
89 #define DUS_GUEST_ID_MASK ((1U << 5) - 1U)
95 #define DUS_GPT_CONTAINER (0x10000000U)
100 #define DUS_MAX_PARTITION_NUM (300U)
102 #define DUS_STORAGE_TYPE_QSPI (0U)
103 #define DUS_STORAGE_TYPE_EMMC (1U)
104 #define DUS_STORAGE_TYPE_UFS (2U)
105 #define DUS_STORAGE_TYPE_INVALID (0xFFFFU)
117 uint8_t reserved1[23];
125 uint8_t reserved2[23];
214 #endif // DUS_COMMON_DATA_H_
Defines IVC common data type.
union DUS_IVC_DATA DUS_IVC_DATA
Defines IVC common data type.
Defines IVC transmit data type.
uint32_t partitionLevel
Level at which partition resides.
uint32_t numPartitions
Total number of partitions.
struct DUS_MEMPOOL_HEADER DUS_MEMPOOL_HEADER
Defines Mempool data type.
uint8_t reserved[504]
Reserved.
Defines IVC recive data type.
struct DUS_IVC_TX DUS_IVC_TX
Defines IVC transmit data type.
struct DUS_ALL_PART_INFO DUS_ALL_PART_INFO
uint32_t blockSize
Block size of partition.
#define DUS_PART_NAME_LENGTH
Maximum number of partitions.
struct DUS_PAYLOAD_HEADER DUS_PAYLOAD_HEADER
Defines Payload data type.
uint64_t partitionSize
Partition Size.
#define DUS_MAX_PARTITION_NUM
Maximum number of partitions.
uint32_t storageType
Storage type, qspi, emmc or ufs.
uint32_t partitionAttr
Holds partition attributes.
struct DUS_PART_INFO DUS_PART_INFO
struct DUS_IVC_RX DUS_IVC_RX
Defines IVC recive data type.