vpci_bar_base()

Return the base address of the specified BAR

Synopsis:

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

Arguments:

rw_cfg
A pointer to read/write data for the vPCI device configuration space.
idx
The index of the BAR register for which information is requested.

Returns:

The base address of the specified BAR.

Page updated: