drm: add DRM_NOUVEAU_NVIF and CLIENT,DEVICE,CHAN

Update nouveau_drm.h for DRM_NOUVEAU_NVIF and
NOUVEAU_ABI16_{CLIENT,DEVICE,CHAN} handle codes that exist in kernel's
version of this header. These allow userspace to call engine methods via
the new NVIF interface.

Change-Id: I30e2691ba0c21ccf940c4ff5fe1c9389fc6b283e
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h
index 45837bd..941a6b1 100644
--- a/include/drm/nouveau_drm.h
+++ b/include/drm/nouveau_drm.h
@@ -27,6 +27,14 @@
 
 #define NOUVEAU_DRM_HEADER_PATCHLEVEL 16
 
+/* reserved object handles when using deprecated object APIs - these
+ * are here so that libdrm can allow interoperability with the new
+ * object APIs
+ */
+#define NOUVEAU_ABI16_CLIENT   0xffffffff
+#define NOUVEAU_ABI16_DEVICE   0xdddddddd
+#define NOUVEAU_ABI16_CHAN(n) (0xcccc0000 | (n))
+
 struct drm_nouveau_channel_alloc {
 	uint32_t     fb_ctxdma_handle;
 	uint32_t     tt_ctxdma_handle;
@@ -243,6 +251,7 @@
 #define DRM_NOUVEAU_GROBJ_ALLOC        0x04
 #define DRM_NOUVEAU_NOTIFIEROBJ_ALLOC  0x05
 #define DRM_NOUVEAU_GPUOBJ_FREE        0x06
+#define DRM_NOUVEAU_NVIF               0x07
 #define DRM_NOUVEAU_GEM_NEW            0x40
 #define DRM_NOUVEAU_GEM_PUSHBUF        0x41
 #define DRM_NOUVEAU_GEM_CPU_PREP       0x42