dm writecache: fix incorrect flush sequence when doing SSD mode commit
[linux/fpc-iii.git] / include / drm / drm_lease.h
blob5c9ef6a2aeae55e7d06f5b79c5098bd489491f43
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright © 2017 Keith Packard <keithp@keithp.com>
4 */
6 #ifndef _DRM_LEASE_H_
7 #define _DRM_LEASE_H_
9 struct drm_file;
10 struct drm_device;
11 struct drm_master;
13 struct drm_master *drm_lease_owner(struct drm_master *master);
15 void drm_lease_destroy(struct drm_master *lessee);
17 bool drm_lease_held(struct drm_file *file_priv, int id);
19 bool _drm_lease_held(struct drm_file *file_priv, int id);
21 void drm_lease_revoke(struct drm_master *master);
23 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
25 int drm_mode_create_lease_ioctl(struct drm_device *dev,
26 void *data, struct drm_file *file_priv);
28 int drm_mode_list_lessees_ioctl(struct drm_device *dev,
29 void *data, struct drm_file *file_priv);
31 int drm_mode_get_lease_ioctl(struct drm_device *dev,
32 void *data, struct drm_file *file_priv);
34 int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
35 void *data, struct drm_file *file_priv);
37 #endif /* _DRM_LEASE_H_ */