Definitions and declarations for DUServer common data type.
Definition in file dus_common_data.h.
Go to the source code of this file.
Data Structures | |
| struct | DUS_IVC_TX |
| Defines IVC transmit data type. More... | |
| struct | DUS_IVC_RX |
| Defines IVC recive data type. More... | |
| union | DUS_IVC_DATA |
| Defines IVC common data type. More... | |
| struct | DUS_MEMPOOL_HEADER |
| Defines Mempool data type. More... | |
| struct | DUS_PAYLOAD_HEADER |
| Defines Payload data type. More... | |
| struct | DUS_PART_INFO |
| struct | DUS_ALL_PART_INFO |
Macros | |
| #define | DUS_IVC_MEMPOOL_DATA_VERSION (0x1) |
| #define | CHAIN_A (0U) |
| #define | CHAIN_B (1U) |
| #define | CHAIN_C (2U) |
| #define | CHAIN_INVALID (3U) |
| #define | CHAIN_PERSIST (0xFFU) |
| #define | CMD_APPLY_PAYLOAD (0U) |
| #define | CMD_MARK_BOOTABLE (1U) |
| #define | CMD_APPLY_PAYLOAD_PERSISTENT (2U) |
| #define | CMD_BRBCT_UPDATE (3U) |
| #define | CMD_GET_CONTENT (4U) |
| #define | CMD_RELOAD_PT (5U) |
| #define | CMD_GET_PARTS_INFO (6U) |
| #define | CMD_GET_SERVER_LOG (7U) |
| #define | CMD_GET_PT_LOG (8U) |
| #define | CMD_MAX (9U) |
| #define | PAYLOAD_DISCARD (0U) |
| #define | PAYLOAD_REPLACE (1U) |
| #define | PAYLOAD_COPY (2U) |
| #define | PAYLOAD_PATCH (3U) |
| #define | PAYLOAD_BRBCT_UPDATE (4U) |
| #define | PAYLOAD_MARK_BOOTABLE (5U) |
| #define | PAYLOAD_PERSISTENT_UPDATE (6U) |
| #define | PAYLOAD_OPERATION_MAX (0xFFU) |
| #define | MEMPOOL_DIRECTION_CLIENT_TO_SERVER (0U) |
| #define | MEMPOOL_DIRECTION_SERVER_TO_CLIENT (1U) |
| #define | MAGIC_NVDUCMD (0x00444d435544564eU) |
| #define | MAGIC_NVDURET (0x005445525544564eU) |
| #define | MAGIC_NVDUMEM (0x004d454d5544564eU) |
| #define | MAGIC_NVDUPLD (0x00444c505544564eU) |
| #define | DUS_PARTITION_LEVEL_1 (1U) |
| Partition level macros. More... | |
| #define | DUS_PARTITION_LEVEL_2 (2U) |
| Partition Level 2. More... | |
| #define | DUS_PARTITION_LEVEL_3 (3U) |
| Partition Level 3. More... | |
| #define | DUS_PART_NAME_LENGTH (64U) |
| Maximum number of partitions. More... | |
| #define | DUS_GUEST_ID_MASK ((1U << 5) - 1U) |
| Set bits [4:0] of partition attribute to the guest id of a VM which owns this partition. More... | |
| #define | DUS_GPT_CONTAINER (0x10000000U) |
| Set this bit in partition attribute to specify that this is the container partition on a gpt container. More... | |
| #define | DUS_MAX_PARTITION_NUM (300U) |
| Maximum number of partitions. More... | |
| #define | DUS_STORAGE_TYPE_QSPI (0U) |
| #define | DUS_STORAGE_TYPE_EMMC (1U) |
| #define | DUS_STORAGE_TYPE_UFS (2U) |
| #define | DUS_STORAGE_TYPE_INVALID (0xFFFFU) |
Typedefs | |
| typedef uint8_t | CHAIN_TYPE |
| typedef uint32_t | CMD_TYPE |
| typedef uint8_t | PAYLOAD_TYPE |
| typedef struct DUS_IVC_TX | DUS_IVC_TX |
| Defines IVC transmit data type. More... | |
| typedef struct DUS_IVC_RX | DUS_IVC_RX |
| Defines IVC recive data type. More... | |
| typedef union DUS_IVC_DATA | DUS_IVC_DATA |
| Defines IVC common data type. More... | |
| typedef struct DUS_MEMPOOL_HEADER | DUS_MEMPOOL_HEADER |
| Defines Mempool data type. More... | |
| typedef struct DUS_PAYLOAD_HEADER | DUS_PAYLOAD_HEADER |
| Defines Payload data type. More... | |
| typedef struct DUS_PART_INFO | DUS_PART_INFO |
| typedef struct DUS_ALL_PART_INFO | DUS_ALL_PART_INFO |
| #define CHAIN_A (0U) |
Definition at line 28 of file dus_common_data.h.
| #define CHAIN_B (1U) |
Definition at line 29 of file dus_common_data.h.
| #define CHAIN_C (2U) |
Definition at line 30 of file dus_common_data.h.
| #define CHAIN_INVALID (3U) |
Definition at line 31 of file dus_common_data.h.
| #define CHAIN_PERSIST (0xFFU) |
Definition at line 33 of file dus_common_data.h.
| #define CMD_APPLY_PAYLOAD (0U) |
Definition at line 37 of file dus_common_data.h.
| #define CMD_APPLY_PAYLOAD_PERSISTENT (2U) |
Definition at line 39 of file dus_common_data.h.
| #define CMD_BRBCT_UPDATE (3U) |
Definition at line 40 of file dus_common_data.h.
| #define CMD_GET_CONTENT (4U) |
Definition at line 41 of file dus_common_data.h.
| #define CMD_GET_PARTS_INFO (6U) |
Definition at line 43 of file dus_common_data.h.
| #define CMD_GET_PT_LOG (8U) |
Definition at line 45 of file dus_common_data.h.
| #define CMD_GET_SERVER_LOG (7U) |
Definition at line 44 of file dus_common_data.h.
| #define CMD_MARK_BOOTABLE (1U) |
Definition at line 38 of file dus_common_data.h.
| #define CMD_MAX (9U) |
Definition at line 46 of file dus_common_data.h.
| #define CMD_RELOAD_PT (5U) |
Definition at line 42 of file dus_common_data.h.
| #define DUS_GPT_CONTAINER (0x10000000U) |
Set this bit in partition attribute to specify that this is the container partition on a gpt container.
Definition at line 95 of file dus_common_data.h.
| #define DUS_GUEST_ID_MASK ((1U << 5) - 1U) |
Set bits [4:0] of partition attribute to the guest id of a VM which owns this partition.
Definition at line 89 of file dus_common_data.h.
| #define DUS_IVC_MEMPOOL_DATA_VERSION (0x1) |
Definition at line 24 of file dus_common_data.h.
| #define DUS_MAX_PARTITION_NUM (300U) |
Maximum number of partitions.
Definition at line 100 of file dus_common_data.h.
| #define DUS_PART_NAME_LENGTH (64U) |
Maximum number of partitions.
Definition at line 83 of file dus_common_data.h.
| #define DUS_PARTITION_LEVEL_1 (1U) |
| #define DUS_PARTITION_LEVEL_2 (2U) |
Partition Level 2.
Definition at line 76 of file dus_common_data.h.
| #define DUS_PARTITION_LEVEL_3 (3U) |
Partition Level 3.
Definition at line 78 of file dus_common_data.h.
| #define DUS_STORAGE_TYPE_EMMC (1U) |
Definition at line 103 of file dus_common_data.h.
| #define DUS_STORAGE_TYPE_INVALID (0xFFFFU) |
Definition at line 105 of file dus_common_data.h.
| #define DUS_STORAGE_TYPE_QSPI (0U) |
Definition at line 102 of file dus_common_data.h.
| #define DUS_STORAGE_TYPE_UFS (2U) |
Definition at line 104 of file dus_common_data.h.
| #define MAGIC_NVDUCMD (0x00444d435544564eU) |
Definition at line 65 of file dus_common_data.h.
| #define MAGIC_NVDUMEM (0x004d454d5544564eU) |
Definition at line 67 of file dus_common_data.h.
| #define MAGIC_NVDUPLD (0x00444c505544564eU) |
Definition at line 68 of file dus_common_data.h.
| #define MAGIC_NVDURET (0x005445525544564eU) |
Definition at line 66 of file dus_common_data.h.
| #define MEMPOOL_DIRECTION_CLIENT_TO_SERVER (0U) |
Definition at line 61 of file dus_common_data.h.
| #define MEMPOOL_DIRECTION_SERVER_TO_CLIENT (1U) |
Definition at line 62 of file dus_common_data.h.
| #define PAYLOAD_BRBCT_UPDATE (4U) |
Definition at line 54 of file dus_common_data.h.
| #define PAYLOAD_COPY (2U) |
Definition at line 52 of file dus_common_data.h.
| #define PAYLOAD_DISCARD (0U) |
Definition at line 50 of file dus_common_data.h.
| #define PAYLOAD_MARK_BOOTABLE (5U) |
Definition at line 55 of file dus_common_data.h.
| #define PAYLOAD_OPERATION_MAX (0xFFU) |
Definition at line 57 of file dus_common_data.h.
| #define PAYLOAD_PATCH (3U) |
Definition at line 53 of file dus_common_data.h.
| #define PAYLOAD_PERSISTENT_UPDATE (6U) |
Definition at line 56 of file dus_common_data.h.
| #define PAYLOAD_REPLACE (1U) |
Definition at line 51 of file dus_common_data.h.
| typedef uint8_t CHAIN_TYPE |
Definition at line 34 of file dus_common_data.h.
| typedef uint32_t CMD_TYPE |
Definition at line 47 of file dus_common_data.h.
| typedef struct DUS_ALL_PART_INFO DUS_ALL_PART_INFO |
| typedef union DUS_IVC_DATA DUS_IVC_DATA |
Defines IVC common data type.
| typedef struct DUS_IVC_RX DUS_IVC_RX |
Defines IVC recive data type.
| typedef struct DUS_IVC_TX DUS_IVC_TX |
Defines IVC transmit data type.
| typedef struct DUS_MEMPOOL_HEADER DUS_MEMPOOL_HEADER |
Defines Mempool data type.
| typedef struct DUS_PART_INFO DUS_PART_INFO |
| typedef struct DUS_PAYLOAD_HEADER DUS_PAYLOAD_HEADER |
Defines Payload data type.
| typedef uint8_t PAYLOAD_TYPE |
Definition at line 58 of file dus_common_data.h.