drm/nouveau/nvif: split out client interface definitions
authorBen Skeggs <bskeggs@redhat.com>
Sun, 8 Nov 2015 02:26:01 +0000 (12:26 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 11 Jan 2016 01:17:40 +0000 (11:17 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/if0000.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/core/client.c

index 9ca13d1..4179cd6 100644 (file)
 #define MAXWELL_COMPUTE_B                                            0x0000b1c0
 
 #define NV74_CIPHER                                                  0x000074c1
-
-/*******************************************************************************
- * client
- ******************************************************************************/
-
-#define NV_CLIENT_DEVLIST                                                  0x00
-
-struct nv_client_devlist_v0 {
-       __u8  version;
-       __u8  count;
-       __u8  pad02[6];
-       __u64 device[];
-};
 #endif
diff --git a/drivers/gpu/drm/nouveau/include/nvif/if0000.h b/drivers/gpu/drm/nouveau/include/nvif/if0000.h
new file mode 100644 (file)
index 0000000..85c44e8
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef __NVIF_IF0000_H__
+#define __NVIF_IF0000_H__
+
+#define NV_CLIENT_DEVLIST                                                  0x00
+
+struct nv_client_devlist_v0 {
+       __u8  version;
+       __u8  count;
+       __u8  pad02[6];
+       __u64 device[];
+};
+#endif
index 297e1e9..98e6941 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <nvif/class.h>
 #include <nvif/event.h>
+#include <nvif/if0000.h>
 #include <nvif/unpack.h>
 
 struct nvkm_client_notify {