Merge tag 'drm-next-2024-05-15' of https://gitlab.freedesktop.org/drm/kernel
[sfrench/cifs-2.6.git] / include / uapi / drm / nouveau_drm.h
index cd84227f1b42ff53e21427de90d0dee1b4ffebbd..8ad8d1cd1566856078a8277ced938a05cf5a25b0 100644 (file)
@@ -73,6 +73,16 @@ struct drm_nouveau_getparam {
        __u64 value;
 };
 
+/*
+ * Those are used to support selecting the main engine used on Kepler.
+ * This goes into drm_nouveau_channel_alloc::tt_ctxdma_handle
+ */
+#define NOUVEAU_FIFO_ENGINE_GR  0x01
+#define NOUVEAU_FIFO_ENGINE_VP  0x02
+#define NOUVEAU_FIFO_ENGINE_PPP 0x04
+#define NOUVEAU_FIFO_ENGINE_BSP 0x08
+#define NOUVEAU_FIFO_ENGINE_CE  0x30
+
 struct drm_nouveau_channel_alloc {
        __u32     fb_ctxdma_handle;
        __u32     tt_ctxdma_handle;
@@ -95,6 +105,18 @@ struct drm_nouveau_channel_free {
        __s32 channel;
 };
 
+struct drm_nouveau_notifierobj_alloc {
+       __u32 channel;
+       __u32 handle;
+       __u32 size;
+       __u32 offset;
+};
+
+struct drm_nouveau_gpuobj_free {
+       __s32 channel;
+       __u32 handle;
+};
+
 #define NOUVEAU_GEM_DOMAIN_CPU       (1 << 0)
 #define NOUVEAU_GEM_DOMAIN_VRAM      (1 << 1)
 #define NOUVEAU_GEM_DOMAIN_GART      (1 << 2)