summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvif/ioctl.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-10 04:10:24 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 05:13:25 +1000
commit96af8222cef78ab4d92186d5e10880dc78395415 (patch)
treeb90b8fe780d6e0530dfd98a798a08133ced8823c /drivers/gpu/drm/nouveau/nvif/ioctl.h
parent4acfd707e28c820ba8ed8c12b497413a133d8c8f (diff)
downloadop-kernel-dev-96af8222cef78ab4d92186d5e10880dc78395415.zip
op-kernel-dev-96af8222cef78ab4d92186d5e10880dc78395415.tar.gz
drm/nouveau/pm: audit and version NVIF_PERFMON class and methods
The full object interfaces are about to be exposed to userspace, so we need to check for any security-related issues and version the structs to make it easier to handle any changes we may need in the future. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvif/ioctl.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvif/ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvif/ioctl.h b/drivers/gpu/drm/nouveau/nvif/ioctl.h
index 38f24d1..67a5671 100644
--- a/drivers/gpu/drm/nouveau/nvif/ioctl.h
+++ b/drivers/gpu/drm/nouveau/nvif/ioctl.h
@@ -48,6 +48,8 @@ struct nvif_ioctl_new_v0 {
__u8 route;
__u64 token;
__u32 handle;
+/* these class numbers are made up by us, and not nvidia-assigned */
+#define NVIF_IOCTL_NEW_V0_PERFCTR 0x0000ffff
__u32 oclass;
__u8 data[]; /* class data (class.h) */
};
OpenPOWER on IntegriCloud