| .. | .. |
|---|
| 1 | +#ifndef _DRM_AUTH_H_ |
|---|
| 2 | +#define _DRM_AUTH_H_ |
|---|
| 3 | + |
|---|
| 1 | 4 | /* |
|---|
| 2 | 5 | * Internal Header for the Direct Rendering Manager |
|---|
| 3 | 6 | * |
|---|
| .. | .. |
|---|
| 25 | 28 | * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 26 | 29 | */ |
|---|
| 27 | 30 | |
|---|
| 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; |
|---|
| 30 | 37 | |
|---|
| 31 | 38 | /* |
|---|
| 32 | 39 | * Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for |
|---|
| .. | .. |
|---|
| 50 | 57 | * |
|---|
| 51 | 58 | * @refcount: Refcount for this master object. |
|---|
| 52 | 59 | * @dev: Link back to the DRM device |
|---|
| 53 | | - * @lock: DRI1 lock information. |
|---|
| 54 | 60 | * @driver_priv: Pointer to driver-private information. |
|---|
| 55 | 61 | * @lessor: Lease holder |
|---|
| 56 | 62 | * @lessee_id: id for lessees. Owners always have id 0 |
|---|
| .. | .. |
|---|
| 80 | 86 | * &drm_device.master_mutex. |
|---|
| 81 | 87 | */ |
|---|
| 82 | 88 | struct idr magic_map; |
|---|
| 83 | | - struct drm_lock_data lock; |
|---|
| 84 | 89 | void *driver_priv; |
|---|
| 85 | 90 | |
|---|
| 86 | 91 | /* Tree of display resource leases, each of which is a drm_master struct |
|---|
| .. | .. |
|---|
| 95 | 100 | struct list_head lessees; |
|---|
| 96 | 101 | struct idr leases; |
|---|
| 97 | 102 | struct idr lessee_idr; |
|---|
| 103 | + /* private: */ |
|---|
| 104 | +#if IS_ENABLED(CONFIG_DRM_LEGACY) |
|---|
| 105 | + struct drm_lock_data lock; |
|---|
| 106 | +#endif |
|---|
| 98 | 107 | }; |
|---|
| 99 | 108 | |
|---|
| 100 | 109 | struct drm_master *drm_master_get(struct drm_master *master); |
|---|