vpci_rw_state

Read and write configuration states for a virtual PCI device

Synopsis:

#include <qvm/vpci.h>
struct vpci_rw_state {
    struct vpci_bar bars[6];
    uint16_t command;
    uint16_t status;
    uint8_t cache_line_size;
    uint8_t latency_timer;
    uint8_t interrupt_line;
} ;

Data:

struct vpci_bar bars[6]

State of each individual BAR.

uint16_t command

Current contents of the PCI command register.

uint16_t status

Current contents of the PCI status register.

uint8_t cache_line_size

Current contents of the PCI cache line size register.

uint8_t latency_timer

Current contents of the PCI latency timer register.

uint8_t interrupt_line

Current contents of the PCI interrupt line register.

Library:

Provided by qvm; no external library is required.