Merge tag 'drm-misc-next-2023-01-03' of git://anongit.freedesktop.org/drm/drm-misc...
[linux-block.git] / include / drm / drm_device.h
index 933ce2048e20b3e2ae63c36687fea50507bbfd07..a68c6a312b4637506bc1192b096378dc3595719f 100644 (file)
@@ -298,6 +298,21 @@ struct drm_device {
         */
        struct drm_fb_helper *fb_helper;
 
+       /**
+        * @debugfs_mutex:
+        *
+        * Protects &debugfs_list access.
+        */
+       struct mutex debugfs_mutex;
+
+       /**
+        * @debugfs_list:
+        *
+        * List of debugfs files to be created by the DRM device. The files
+        * must be added during drm_dev_register().
+        */
+       struct list_head debugfs_list;
+
        /* Everything below here is for legacy driver, never use! */
        /* private: */
 #if IS_ENABLED(CONFIG_DRM_LEGACY)