aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/drm/drmP.h15
-rw-r--r--include/drm/drm_auth.h17
2 files changed, 17 insertions, 15 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 5f829d2372da..22b6f6f45b07 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -428,21 +428,6 @@ struct drm_file {
428 struct drm_prime_file_private prime; 428 struct drm_prime_file_private prime;
429}; 429};
430 430
431/**
432 * Lock data.
433 */
434struct drm_lock_data {
435 struct drm_hw_lock *hw_lock; /**< Hardware lock */
436 /** Private of lock holder's file (NULL=kernel) */
437 struct drm_file *file_priv;
438 wait_queue_head_t lock_queue; /**< Queue of blocked processes */
439 unsigned long lock_time; /**< Time of last lock in jiffies */
440 spinlock_t spinlock;
441 uint32_t kernel_waiters;
442 uint32_t user_waiters;
443 int idle_has_lock;
444};
445
446/* Flags and return codes for get_vblank_timestamp() driver function. */ 431/* Flags and return codes for get_vblank_timestamp() driver function. */
447#define DRM_CALLED_FROM_VBLIRQ 1 432#define DRM_CALLED_FROM_VBLIRQ 1
448#define DRM_VBLANKTIME_SCANOUTPOS_METHOD (1 << 0) 433#define DRM_VBLANKTIME_SCANOUTPOS_METHOD (1 << 0)
diff --git a/include/drm/drm_auth.h b/include/drm/drm_auth.h
index 1eb4a52cad8d..81a40c2a9a3e 100644
--- a/include/drm/drm_auth.h
+++ b/include/drm/drm_auth.h
@@ -28,6 +28,23 @@
28#ifndef _DRM_AUTH_H_ 28#ifndef _DRM_AUTH_H_
29#define _DRM_AUTH_H_ 29#define _DRM_AUTH_H_
30 30
31/*
32 * Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for
33 * include ordering reasons.
34 *
35 * DO NOT USE.
36 */
37struct drm_lock_data {
38 struct drm_hw_lock *hw_lock;
39 struct drm_file *file_priv;
40 wait_queue_head_t lock_queue;
41 unsigned long lock_time;
42 spinlock_t spinlock;
43 uint32_t kernel_waiters;
44 uint32_t user_waiters;
45 int idle_has_lock;
46};
47
31/** 48/**
32 * struct drm_master - drm master structure 49 * struct drm_master - drm master structure
33 * 50 *