aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include/nvif/class.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-11-08 10:18:19 +1000
committerBen Skeggs <bskeggs@redhat.com>2016-01-11 11:17:40 +1000
commit08f7633c1de8007c3735764d5ca0c1bde4239b84 (patch)
treee7822b91fe7353021b43b698ba582809faa8de93 /drivers/gpu/drm/nouveau/include/nvif/class.h
parentdrm/nouveau/gr/gm107-: make use of gpc_addr() macro for tpc ramchain setup (diff)
downloadlinux-dev-08f7633c1de8007c3735764d5ca0c1bde4239b84.tar.xz
linux-dev-08f7633c1de8007c3735764d5ca0c1bde4239b84.zip
drm/nouveau/nvif: move internal class identifiers to class.h
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvif/class.h')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvif/class.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvif/class.h b/drivers/gpu/drm/nouveau/include/nvif/class.h
index 95a64d89547c..8bf8161f9730 100644
--- a/drivers/gpu/drm/nouveau/include/nvif/class.h
+++ b/drivers/gpu/drm/nouveau/include/nvif/class.h
@@ -1,9 +1,14 @@
#ifndef __NVIF_CLASS_H__
#define __NVIF_CLASS_H__
-/*******************************************************************************
- * class identifiers
- ******************************************************************************/
+/* these class numbers are made up by us, and not nvidia-assigned */
+#define NVIF_CLASS_CONTROL -1
+#define NVIF_CLASS_PERFMON -2
+#define NVIF_CLASS_PERFDOM -3
+#define NVIF_CLASS_SW_NV04 -4
+#define NVIF_CLASS_SW_NV10 -5
+#define NVIF_CLASS_SW_NV50 -6
+#define NVIF_CLASS_SW_GF100 -7
/* the below match nvidia-assigned (either in hw, or sw) class numbers */
#define NV_DEVICE 0x00000080