hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/drm/drm_auth.h
....@@ -1,3 +1,6 @@
1
+#ifndef _DRM_AUTH_H_
2
+#define _DRM_AUTH_H_
3
+
14 /*
25 * Internal Header for the Direct Rendering Manager
36 *
....@@ -25,8 +28,12 @@
2528 * OTHER DEALINGS IN THE SOFTWARE.
2629 */
2730
28
-#ifndef _DRM_AUTH_H_
29
-#define _DRM_AUTH_H_
31
+#include <linux/idr.h>
32
+#include <linux/kref.h>
33
+#include <linux/wait.h>
34
+
35
+struct drm_file;
36
+struct drm_hw_lock;
3037
3138 /*
3239 * Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for
....@@ -50,7 +57,6 @@
5057 *
5158 * @refcount: Refcount for this master object.
5259 * @dev: Link back to the DRM device
53
- * @lock: DRI1 lock information.
5460 * @driver_priv: Pointer to driver-private information.
5561 * @lessor: Lease holder
5662 * @lessee_id: id for lessees. Owners always have id 0
....@@ -80,7 +86,6 @@
8086 * &drm_device.master_mutex.
8187 */
8288 struct idr magic_map;
83
- struct drm_lock_data lock;
8489 void *driver_priv;
8590
8691 /* Tree of display resource leases, each of which is a drm_master struct
....@@ -95,6 +100,10 @@
95100 struct list_head lessees;
96101 struct idr leases;
97102 struct idr lessee_idr;
103
+ /* private: */
104
+#if IS_ENABLED(CONFIG_DRM_LEGACY)
105
+ struct drm_lock_data lock;
106
+#endif
98107 };
99108
100109 struct drm_master *drm_master_get(struct drm_master *master);