vio_ctrl_pci_bars()

Function to be called from a vdev's VDEV_CTRL_PCI_BARS callback

Synopsis:

#include <qvm/vio.h>
int vio_ctrl_pci_bars(struct vio_state *vsp,
                      const char *arg)

Arguments:

vsp
A pointer to the vdev's state structure.
arg
The parameter from the vdev's control routine.

Description:

This function configures the PCI base address registers (BARs) used by the vdev. It is meant to be called from a vdev's VDEV_CTRL_PCI_BARS callback, and is useful only for vdevs that emulate PCI devices.

Returns:

0 for MMIO vdevs; otherwise, whatever vpci_ctrl_pci_bars() returns.

Page updated: