Initialize the read and write state of a virtual PCI device
Synopsis:
#include <qvm/vpci.h>
void vpci_init_rw(vdev_t *const vdp,
struct vpci_rw_state *rw_cfg,
const struct qvm_slice_descriptor *desc,
const struct _pci_config_regs *ro_cfg)
Arguments:
- vdp
- A pointer to the virtual PCI device that owns the BARs.
- rw_cfg
- A pointer to the read/write configuration pointer to be initialized.
- desc
- A pointer to the slice descriptor array that controls initialization of the virtual device.
- ro_cfg
- A pointer to the read-only configuration that provides initial values.