iPXE
Original ("legacy") common device registers

Macros

#define VIRTIO_LEG_FEAT   0x00
 Legacy device supported features register.
#define VIRTIO_LEG_USED   0x04
 Legacy negotiated in-use features register.
#define VIRTIO_LEG_BASE   0x08
 Legacy queue base address register.
#define VIRTIO_LEG_SIZE   0x0c
 Legacy queue size register.
#define VIRTIO_LEG_SEL   0x0e
 Legacy queue select register.
#define VIRTIO_LEG_DB   0x10
 Legacy queue doorbell notification register.
#define VIRTIO_LEG_STAT   0x12
 Legacy driver status register.
#define VIRTIO_STAT_ACKNOWLEDGE   0x0001
 Guest has found device.
#define VIRTIO_STAT_DRIVER   0x0002
 Guest driver exists.
#define VIRTIO_STAT_DRIVER_OK   0x0004
 Guest driver is ready.
#define VIRTIO_STAT_FEATURES_OK   0x0008
 Guest driver has set features.
#define VIRTIO_STAT_FAIL   0x0080
 Guest driver has failed.
#define VIRTIO_LEG_DEV   0x14
 Legacy device-specific registers.
#define VIRTIO_LEG_DEV_MSIX   0x18
 Legacy device-specific register (if MSI-X is enabled).

Detailed Description

Macro Definition Documentation

◆ VIRTIO_LEG_FEAT

#define VIRTIO_LEG_FEAT   0x00

Legacy device supported features register.

Definition at line 30 of file virtio.h.

Referenced by virtio_legacy_supported().

◆ VIRTIO_LEG_USED

#define VIRTIO_LEG_USED   0x04

Legacy negotiated in-use features register.

Definition at line 33 of file virtio.h.

Referenced by virtio_legacy_negotiate().

◆ VIRTIO_LEG_BASE

#define VIRTIO_LEG_BASE   0x08

Legacy queue base address register.

Definition at line 36 of file virtio.h.

Referenced by virtio_legacy_enable().

◆ VIRTIO_LEG_SIZE

#define VIRTIO_LEG_SIZE   0x0c

Legacy queue size register.

Definition at line 39 of file virtio.h.

Referenced by virtio_legacy_size().

◆ VIRTIO_LEG_SEL

#define VIRTIO_LEG_SEL   0x0e

Legacy queue select register.

Definition at line 42 of file virtio.h.

Referenced by virtio_legacy_enable(), and virtio_legacy_size().

◆ VIRTIO_LEG_DB

#define VIRTIO_LEG_DB   0x10

Legacy queue doorbell notification register.

Definition at line 45 of file virtio.h.

Referenced by virtio_pci_map().

◆ VIRTIO_LEG_STAT

#define VIRTIO_LEG_STAT   0x12

Legacy driver status register.

Definition at line 48 of file virtio.h.

Referenced by virtio_legacy_reset(), and virtio_legacy_status().

◆ VIRTIO_STAT_ACKNOWLEDGE

#define VIRTIO_STAT_ACKNOWLEDGE   0x0001

Guest has found device.

Definition at line 49 of file virtio.h.

Referenced by virtio_init().

◆ VIRTIO_STAT_DRIVER

#define VIRTIO_STAT_DRIVER   0x0002

Guest driver exists.

Definition at line 50 of file virtio.h.

Referenced by virtio_init().

◆ VIRTIO_STAT_DRIVER_OK

#define VIRTIO_STAT_DRIVER_OK   0x0004

Guest driver is ready.

Definition at line 51 of file virtio.h.

Referenced by virtio_net_open().

◆ VIRTIO_STAT_FEATURES_OK

#define VIRTIO_STAT_FEATURES_OK   0x0008

Guest driver has set features.

Definition at line 52 of file virtio.h.

Referenced by virtio_init().

◆ VIRTIO_STAT_FAIL

#define VIRTIO_STAT_FAIL   0x0080

Guest driver has failed.

Definition at line 53 of file virtio.h.

Referenced by virtio_init().

◆ VIRTIO_LEG_DEV

#define VIRTIO_LEG_DEV   0x14

Legacy device-specific registers.

Definition at line 56 of file virtio.h.

Referenced by virtio_pci_map().

◆ VIRTIO_LEG_DEV_MSIX

#define VIRTIO_LEG_DEV_MSIX   0x18

Legacy device-specific register (if MSI-X is enabled).

Definition at line 59 of file virtio.h.

Referenced by virtio_pci_map().