0001
0002
0003
0004
0005
0006 #ifndef _DRM_LEASE_H_
0007 #define _DRM_LEASE_H_
0008
0009 struct drm_file;
0010 struct drm_device;
0011 struct drm_master;
0012
0013 struct drm_master *drm_lease_owner(struct drm_master *master);
0014
0015 void drm_lease_destroy(struct drm_master *lessee);
0016
0017 bool drm_lease_held(struct drm_file *file_priv, int id);
0018
0019 bool _drm_lease_held(struct drm_file *file_priv, int id);
0020
0021 void drm_lease_revoke(struct drm_master *master);
0022
0023 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
0024
0025 int drm_mode_create_lease_ioctl(struct drm_device *dev,
0026 void *data, struct drm_file *file_priv);
0027
0028 int drm_mode_list_lessees_ioctl(struct drm_device *dev,
0029 void *data, struct drm_file *file_priv);
0030
0031 int drm_mode_get_lease_ioctl(struct drm_device *dev,
0032 void *data, struct drm_file *file_priv);
0033
0034 int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
0035 void *data, struct drm_file *file_priv);
0036
0037 #endif