diff options
Diffstat (limited to 'src/libXNVCtrlAttributes/NvCtrlAttributes.h')
-rw-r--r-- | src/libXNVCtrlAttributes/NvCtrlAttributes.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/libXNVCtrlAttributes/NvCtrlAttributes.h b/src/libXNVCtrlAttributes/NvCtrlAttributes.h index 52c46a4..fd97786 100644 --- a/src/libXNVCtrlAttributes/NvCtrlAttributes.h +++ b/src/libXNVCtrlAttributes/NvCtrlAttributes.h @@ -256,7 +256,22 @@ typedef enum { #define NV_CTRL_ATTR_RANDR_LAST_ATTRIBUTE \ (NV_CTRL_ATTR_RANDR_GAMMA_AVAILABLE) -#define NV_CTRL_ATTR_LAST_ATTRIBUTE (NV_CTRL_ATTR_RANDR_LAST_ATTRIBUTE) +/* NVML */ + +#define NV_CTRL_ATTR_NVML_BASE \ + (NV_CTRL_ATTR_RANDR_LAST_ATTRIBUTE + 1) + +#define NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE (NV_CTRL_ATTR_NVML_BASE + 0) +#define NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_NONE 0 +#define NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_PASSTHROUGH 1 +#define NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_VGPU 2 +#define NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_HOST_VGPU 3 +#define NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_HOST_VSGA 4 + +#define NV_CTRL_ATTR_NVML_LAST_ATTRIBUTE (NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE) + +#define NV_CTRL_ATTR_LAST_ATTRIBUTE \ + (NV_CTRL_ATTR_NVML_LAST_ATTRIBUTE) typedef enum { |