iPXE
virtio_device Struct Reference

A virtio device. More...

#include <virtio.h>

Data Fields

const char * name
 Device name.
struct virtio_operationsop
 Device operations.
struct dma_devicedma
 DMA device.
void * common
 Common registers.
void * notify
 Doorbell notification registers.
void * device
 Device-specific registers.
unsigned int stat
 Driver status.
struct virtio_features supported
 Device supported features.
struct virtio_features features
 Negotiated features.
unsigned int multiplier
 Notification doorbell multiplier.

Detailed Description

A virtio device.

Definition at line 311 of file virtio.h.

Field Documentation

◆ name

◆ op

struct virtio_operations* virtio_device::op

Device operations.

Definition at line 315 of file virtio.h.

Referenced by virtio_enable(), virtio_negotiate(), virtio_pci_map(), virtio_reset(), and virtio_status().

◆ dma

struct dma_device* virtio_device::dma

DMA device.

Definition at line 317 of file virtio.h.

Referenced by virtio_enable(), virtio_net_enable(), virtio_net_refill_rx(), and virtio_pci_map().

◆ common

◆ notify

void* virtio_device::notify

Doorbell notification registers.

Definition at line 321 of file virtio.h.

Referenced by virtio_enable(), virtio_pci_map(), and virtio_unmap().

◆ device

void* virtio_device::device

Device-specific registers.

Definition at line 323 of file virtio.h.

Referenced by virtio_net_mac(), virtio_net_mtu(), virtio_pci_map(), and virtio_unmap().

◆ stat

unsigned int virtio_device::stat

Driver status.

Definition at line 325 of file virtio.h.

Referenced by virtio_legacy_status(), virtio_pci_status(), virtio_reset(), and virtio_status().

◆ supported

struct virtio_features virtio_device::supported

Device supported features.

Definition at line 327 of file virtio.h.

Referenced by virtio_legacy_supported(), virtio_negotiate(), and virtio_pci_supported().

◆ features

struct virtio_features virtio_device::features

◆ multiplier

unsigned int virtio_device::multiplier

Notification doorbell multiplier.

Definition at line 331 of file virtio.h.

Referenced by virtio_enable(), and virtio_pci_map().


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