OpenAMP Library  353
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. More...
 
struct virtio_device_id id
 The device type identification used to match it with a driver. More...
 
uint64_t features
 The features supported by both ends. More...
 
unsigned int role
 If it is virtio backend or front end. More...
 
virtio_dev_reset_cb reset_cb
 User-registered device callback. More...
 
const struct virtio_dispatchfunc
 Virtio dispatch table. More...
 
const struct virtio_memory_opsmmops
 
void * priv
 Private data. More...
 
unsigned int vrings_num
 Number of vrings. More...
 
struct virtio_vring_infovrings_info
 Pointer to the virtio vring structure. More...
 

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: