nouveau: add DRM_NOUVEAU_GEM_SET_ERROR_NOTIFIER
Add header definitions for the DRM_NOUVEAU_GEM_SET_ERROR_NOTIFIER ioctl
in nouveau.
Change-Id: I2675ee3a5615921b5f3967496f5275b5708a874a
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
diff --git a/include/drm/nouveau_drm.h b/include/drm/nouveau_drm.h
index 43e30e7..45837bd 100644
--- a/include/drm/nouveau_drm.h
+++ b/include/drm/nouveau_drm.h
@@ -226,6 +226,16 @@
struct drm_nouveau_sarea {
};
+#define NOUVEAU_GEM_CHANNEL_FIFO_ERROR_IDLE_TIMEOUT 8
+#define NOUVEAU_GEM_CHANNEL_GR_ERROR_SW_NOTIFY 13
+#define NOUVEAU_GEM_CHANNEL_FIFO_ERROR_MMU_ERR_FLT 31
+#define NOUVEAU_GEM_CHANNEL_PBDMA_ERROR 32
+struct drm_nouveau_gem_set_error_notifier {
+ uint32_t channel;
+ uint32_t buffer;
+ uint32_t offset; /* in bytes, u32-aligned */
+};
+
#define DRM_NOUVEAU_GETPARAM 0x00
#define DRM_NOUVEAU_SETPARAM 0x01
#define DRM_NOUVEAU_CHANNEL_ALLOC 0x02
@@ -245,5 +255,6 @@
#define DRM_NOUVEAU_GEM_SET_INFO 0x52
#define DRM_NOUVEAU_GEM_AS_ALLOC 0x53
#define DRM_NOUVEAU_GEM_AS_FREE 0x54
+#define DRM_NOUVEAU_GEM_SET_ERROR_NOTIFIER 0x55
#endif /* __NOUVEAU_DRM_H__ */