MDPY_VENDORCAP_OFFSET 20 samples/vfio-mdev/mdpy-defs.h #define MDPY_FORMAT_OFFSET (MDPY_VENDORCAP_OFFSET + 0x04) MDPY_VENDORCAP_OFFSET 21 samples/vfio-mdev/mdpy-defs.h #define MDPY_WIDTH_OFFSET (MDPY_VENDORCAP_OFFSET + 0x08) MDPY_VENDORCAP_OFFSET 22 samples/vfio-mdev/mdpy-defs.h #define MDPY_HEIGHT_OFFSET (MDPY_VENDORCAP_OFFSET + 0x0c) MDPY_VENDORCAP_OFFSET 138 samples/vfio-mdev/mdpy.c mdev_state->vconfig[PCI_CAPABILITY_LIST] = MDPY_VENDORCAP_OFFSET; MDPY_VENDORCAP_OFFSET 139 samples/vfio-mdev/mdpy.c mdev_state->vconfig[MDPY_VENDORCAP_OFFSET + 0] = 0x09; /* vendor cap */ MDPY_VENDORCAP_OFFSET 140 samples/vfio-mdev/mdpy.c mdev_state->vconfig[MDPY_VENDORCAP_OFFSET + 1] = 0x00; /* next ptr */ MDPY_VENDORCAP_OFFSET 141 samples/vfio-mdev/mdpy.c mdev_state->vconfig[MDPY_VENDORCAP_OFFSET + 2] = MDPY_VENDORCAP_SIZE;