drm_lease.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright © 2017 Keith Packard <keithp@keithp.com>
  4. */
  5. #ifndef _DRM_LEASE_H_
  6. #define _DRM_LEASE_H_
  7. #include <linux/types.h>
  8. struct drm_file;
  9. struct drm_device;
  10. struct drm_master;
  11. struct drm_master *drm_lease_owner(struct drm_master *master);
  12. void drm_lease_destroy(struct drm_master *lessee);
  13. bool drm_lease_held(struct drm_file *file_priv, int id);
  14. bool _drm_lease_held(struct drm_file *file_priv, int id);
  15. void drm_lease_revoke(struct drm_master *master);
  16. uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
  17. int drm_mode_create_lease_ioctl(struct drm_device *dev,
  18. void *data, struct drm_file *file_priv);
  19. int drm_mode_list_lessees_ioctl(struct drm_device *dev,
  20. void *data, struct drm_file *file_priv);
  21. int drm_mode_get_lease_ioctl(struct drm_device *dev,
  22. void *data, struct drm_file *file_priv);
  23. int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
  24. void *data, struct drm_file *file_priv);
  25. #endif /* _DRM_LEASE_H_ */