vpci_bar_base()

Return the base address of the specified BAR

Synopsis:

#include <qvm/vpci.h>
static uint64_t vpci_bar_base(const struct vpci_rw_state *const rw_cfg,
                              unsigned const idx)

Arguments:

rw_cfg
A pointer to read and write data for the virtual PCI device configuration space.
idx
The index to specify the BAR register for which information is required.

Library:

Provided by qvm; no external library is required.

Returns:

The base address of the specified BAR.