]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/drm/drm_file.h
drm: introduce sync objects (v4)
[karo-tx-linux.git] / include / drm / drm_file.h
index 5dd27ae5c47c0692a41cc272c0e8d47548c844b6..0e0c868451a5ae276baae0c57e7caa99d2c23158 100644 (file)
@@ -40,6 +40,7 @@
 struct dma_fence;
 struct drm_file;
 struct drm_device;
+struct device;
 
 /*
  * FIXME: Not sure we want to have drm_minor here in the end, but to avoid
@@ -231,6 +232,11 @@ struct drm_file {
        /** @table_lock: Protects @object_idr. */
        spinlock_t table_lock;
 
+       /** @syncobj_idr: Mapping of sync object handles to object pointers. */
+       struct idr syncobj_idr;
+       /** @syncobj_table_lock: Protects @syncobj_idr. */
+       spinlock_t syncobj_table_lock;
+
        /** @filp: Pointer to the core file structure. */
        struct file *filp;