OpenAMP Library  latest
Loading...
Searching...
No Matches
virtio_device Struct Reference

Structure definition for virtio devices for use by the applications/drivers. More...

#include <virtio.h>

Data Fields

uint32_t notifyid
 Unique position on the virtio bus.
struct virtio_device_id id
 The device type identification used to match it with a driver.
uint64_t features
 The features supported by both ends.
unsigned int role
 If it is virtio backend or front end.
virtio_dev_reset_cb reset_cb
 User-registered device callback.
const struct virtio_dispatchfunc
 Virtio dispatch table.
const struct virtio_memory_opsmmops
void * priv
 Private data.
unsigned int vrings_num
 Number of vrings.
struct virtio_vring_infovrings_info
 Pointer to the virtio vring structure.

Detailed Description

Structure definition for virtio devices for use by the applications/drivers.

Field Documentation

◆ features

uint64_t virtio_device::features

The features supported by both ends.

◆ func

const struct virtio_dispatch* virtio_device::func

Virtio dispatch table.

Virtio device memory operations

◆ id

struct virtio_device_id virtio_device::id

The device type identification used to match it with a driver.

◆ mmops

const struct virtio_memory_ops* virtio_device::mmops

◆ notifyid

uint32_t virtio_device::notifyid

Unique position on the virtio bus.

◆ priv

void* virtio_device::priv

Private data.

◆ reset_cb

virtio_dev_reset_cb virtio_device::reset_cb

User-registered device callback.

◆ role

unsigned int virtio_device::role

If it is virtio backend or front end.

◆ vrings_info

struct virtio_vring_info* virtio_device::vrings_info

Pointer to the virtio vring structure.

◆ vrings_num

unsigned int virtio_device::vrings_num

Number of vrings.


The documentation for this struct was generated from the following file: