1 /* SPDX-License-Identifier: GPL-2.0-or-later */
9 #include <linux/types.h>
15 struct drm_master *drm_lease_owner(struct drm_master *master);
17 void drm_lease_destroy(struct drm_master *lessee);
19 bool drm_lease_held(struct drm_file *file_priv, int id);
21 bool _drm_lease_held(struct drm_file *file_priv, int id);
23 void drm_lease_revoke(struct drm_master *master);
25 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
27 int drm_mode_create_lease_ioctl(struct drm_device *dev,
28 void *data, struct drm_file *file_priv);
30 int drm_mode_list_lessees_ioctl(struct drm_device *dev,
31 void *data, struct drm_file *file_priv);
33 int drm_mode_get_lease_ioctl(struct drm_device *dev,
34 void *data, struct drm_file *file_priv);
36 int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
37 void *data, struct drm_file *file_priv);
39 #endif /* _DRM_LEASE_H_ */