Definitions in vpci.h

Preprocessor macro definitions for the vpci.h header file

Definitions:

#include <qvm/vpci.h>
#define VPCI_ROM_BAR 0x6u

Reserved memory BAR type to mark the ROM BAR. Bits 1 and 2 cannot be set to one in either I/O or memory BARs.

#define VPCI_SLICE_DESCRIPTOR_COMMAND(wr)
Fill in a qvm_slice_descriptor for a command register, with wr stored in the writeable field.
Note:
The VPCI_SLICE_DESCRIPTOR_*() macro functions can be used on the right side of assignment expressions for qvm_slice_descriptor structures.
#define VPCI_SLICE_DESCRIPTOR_STATUS(wr)

Fill in a qvm_slice_descriptor for a status register, with wr stored in the writeable field.

#define VPCI_SLICE_DESCRIPTOR_CACHE_LINE_SIZE()

Fill in a qvm_slice_descriptor for a cache line size register.

#define VPCI_SLICE_DESCRIPTOR_LATENCY_TIMER()

Fill in a qvm_slice_descriptor for a latency timer register.

#define VPCI_SLICE_DESCRIPTOR_BAR32(idx,wr)

Fill in a qvm_slice_descriptor for a 32-bit BAR register, with wr stored in the writeable field and idx used to compute the store_offset field.

#define VPCI_SLICE_DESCRIPTOR_BAR64(idx,wr)

Fill in two qvm_slice_descriptor structures to describe a 64-bit BAR register, with wr stored in the writeable field for the first structure (which describes the lower word), a bitfield of all ones stored in this field for the second structure (which describes the upper word), and idx used to compute the store_offset fields in both structures.

#define VPCI_SLICE_DESCRIPTOR_INTERRUPT_LINE()

Fill in a qvm_slice_descriptor for an interrupt line register.

#define VPCI_SLICE_DESCRIPTOR_INTERRUPT_PIN()

Fill in a qvm_slice_descriptor for an interrupt pin register.

#define VPCI_SLICE_DESCRIPTOR_ONE_BAR32(cmd, status, addr_bits)

Fill in VPCI_NUM_ONE_BAR32_SLICES qvm_slice_descriptor structures to describe a vPCI device with one 32-bit BAR. The cmd, status, and addr_bits values are stored in the writeable fields of the slice descriptors for the command, status, and BAR registers.

#define VPCI_NUM_ONE_BAR32_SLICES 7

Number of descriptor entries in a vPCI device with one 32-bit BAR

#define VPCI_SLICE_DESCRIPTOR_ONE_BAR64(cmd, status, addr_bits)

Fill in VPCI_NUM_ONE_BAR64_SLICES qvm_slice_descriptor structures to describe a vPCI device with one 64-bit BAR. The cmd, status, and addr_bits values are stored in the writeable fields of the slice descriptors for the command, status, and BAR registers.

#define VPCI_NUM_ONE_BAR64_SLICES (VPCI_NUM_ONE_BAR32_SLICES + 1)

Number of descriptor entries in a vPCI device with one 64-bit BAR

Page updated: