| NVIDIA DOCA SDK | Data Center on a Chip Framework Documentation |

Functions | |
| DOCA_EXPERIMENTAL struct doca_devemu_pci_type * | doca_devemu_virtio_type_as_pci_type (struct doca_devemu_virtio_type *virtio_type) |
| Convert DOCA Virtio type instance into DOCA PCI type. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_devemu_virtio_type_get_num_queues (const struct doca_devemu_virtio_type *virtio_type, uint16_t *num_queues) |
| Get the value of the num_queues register. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_devemu_virtio_type_get_queue_size (const struct doca_devemu_virtio_type *virtio_type, uint16_t *queue_size) |
| Get the value of the queue_size register. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_devemu_virtio_type_get_device_features_63_0 (const struct doca_devemu_virtio_type *virtio_type, uint64_t *features) |
| Get the Virtio device_feature bits (0-63) according to Virtio specification configured for this type. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_devemu_virtio_type_get_config_generation (const struct doca_devemu_virtio_type *virtio_type, uint8_t *config_generation) |
| Get the initial Virtio device config_generation register according to Virtio specification configured for this type. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_devemu_virtio_cap_default_type_get_configurable_device_features_63_0 (const struct doca_devemu_virtio_type *virtio_type, uint64_t *features) |
| Get a bitmap of configurable device feature bits (0-63) for Virtio devices associated with the given default virtio type. More... | |
| DOCA_EXPERIMENTAL doca_error_t | doca_devemu_virtio_cap_default_type_get_max_num_queues (const struct doca_devemu_virtio_type *virtio_type, uint16_t *num_queues) |
| Get the maximum number of queues that can be configured for any Virtio device associated with the given default Virtio type. More... | |
DOCA Virtio type
| DOCA_EXPERIMENTAL doca_error_t doca_devemu_virtio_cap_default_type_get_configurable_device_features_63_0 | ( | const struct doca_devemu_virtio_type * | virtio_type, |
| uint64_t * | features | ||
| ) |
Get a bitmap of configurable device feature bits (0-63) for Virtio devices associated with the given default virtio type.
| [in] | virtio_type | The DOCA Virtio type instance to query. Must be started. |
| [out] | features | Bitmap of configurable device feature bits for all Virtio device associated with the default Virtio type. Feature bit indices follow the Virtio specification. |
| DOCA_EXPERIMENTAL doca_error_t doca_devemu_virtio_cap_default_type_get_max_num_queues | ( | const struct doca_devemu_virtio_type * | virtio_type, |
| uint16_t * | num_queues | ||
| ) |
Get the maximum number of queues that can be configured for any Virtio device associated with the given default Virtio type.
| [in] | virtio_type | The DOCA Virtio type instance to query. Must be started. |
| [out] | num_queues | The maximal number of queues. |
| DOCA_EXPERIMENTAL struct doca_devemu_pci_type* doca_devemu_virtio_type_as_pci_type | ( | struct doca_devemu_virtio_type * | virtio_type | ) |
Convert DOCA Virtio type instance into DOCA PCI type.
| [in] | virtio_type | DOCA Virtio type instance. This must remain valid until after the DOCA PCI type is no longer required. |
| DOCA_EXPERIMENTAL doca_error_t doca_devemu_virtio_type_get_config_generation | ( | const struct doca_devemu_virtio_type * | virtio_type, |
| uint8_t * | config_generation | ||
| ) |
Get the initial Virtio device config_generation register according to Virtio specification configured for this type.
| [in] | virtio_type | The DOCA Virtio type instance to query. |
| [out] | config_generation | The initial value of the config_generation register according to Virtio specification for devices associated with this type. |
| DOCA_EXPERIMENTAL doca_error_t doca_devemu_virtio_type_get_device_features_63_0 | ( | const struct doca_devemu_virtio_type * | virtio_type, |
| uint64_t * | features | ||
| ) |
Get the Virtio device_feature bits (0-63) according to Virtio specification configured for this type.
| [in] | virtio_type | The DOCA Virtio type instance to query. |
| [out] | features | The device_feature (bits 0-63) according to Virtio specification for devices associated with this type. |
| DOCA_EXPERIMENTAL doca_error_t doca_devemu_virtio_type_get_num_queues | ( | const struct doca_devemu_virtio_type * | virtio_type, |
| uint16_t * | num_queues | ||
| ) |
Get the value of the num_queues register.
| [in] | virtio_type | The DOCA Virtio type instance to query. |
| [out] | num_queues | The default value to be used by devices associated with the virtio_type for virtio_common_config:num_queues register according to Virtio specification, if not set otherwise. |
| DOCA_EXPERIMENTAL doca_error_t doca_devemu_virtio_type_get_queue_size | ( | const struct doca_devemu_virtio_type * | virtio_type, |
| uint16_t * | queue_size | ||
| ) |
Get the value of the queue_size register.
| [in] | virtio_type | The DOCA Virtio type instance to query. |
| [out] | queue_size | The default value to be used by devices associated with the virtio_type for virtio_common_config:queue_size register according to Virtio specification, if not set otherwise. |