Definitions in types.h

Preprocessor macro definitions for the types.h header file in the qvm library

Definitions:

#include <qvm/types.h>
#define QST_DEFAULT_TYPE_IO (QST_MEMORY)

The default space is the memory space

#define QMRE_ANY_SERVER (-1)

Register a message event against any server.

QMRE_ANY_SERVER can be used as the coid parameter in vdev_pulse(), qvm_callback_pulse(), or MsgRegisterEvent().

#define QMRE_UNREG_EVENT (-2)

Do not register a message event.

QMRE_UNREG_EVENT can be used as the coid parameter in vdev_pulse() or qvm_callback_pulse().

#define ARM_MAKE_SR_NUM \
    (((__op0)<<14) | ((__op1)<<11) | \
    ((__crn)<<7) | ((__crm)<<3) | (__op2))

Construct an ARM/AARCH64 system register number from its components

#define QSL_NO_LOCATION (~(uint64_t)0)

Invalid location

#define QSL_KEEP_LOCATION (QSL_NO_LOCATION-(uint64_t)1)

Keep existing location (i.e., instruct gasp_region_set() to not change the host_location).

#define QSL_PCI_EXTRACT_FUNC (((unsigned)(loc) >> 16)  & 0x00ffu)

Extract the function number in the QST_PCI location loc

#define QSL_PCI_EXTRACT_DEV (((unsigned)(loc) >> 24)  & 0x00ffu)

Extract the device number in the QST_PCI location loc

#define QSL_PCI_EXTRACT_BUS (((unsigned)((loc) >> 32)) & 0xffffu)

Extract the bus number in the QST_PCI location loc

#define QSL_PCI_EXTRACT_OFF (((unsigned)(loc) >> 0) & 0xffffu)

Extract the offset into the configuration space in the QST_PCI location loc

#define QSL_PCI_MAKE_LOC ((((uint64_t)(func))<< 16)	\
     |(((uint64_t)(dev)) << 24)	\
     |(((uint64_t)(bus)) << 32)	\
     |(((uint64_t)(off)) <<  0))

Assemble a QST_PCI location from a bus, a device, and a function number, and an offset into the PCI configuration space

Library:

qvm

Description:

For information about the QST_PCI location loc, see qvm_state_types in this chapter).