drm_lease.h 1010 B

12345678910111213141516171819202122232425262728293031323334353637
  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. struct drm_file;
  8. struct drm_device;
  9. struct drm_master;
  10. struct drm_master *drm_lease_owner(struct drm_master *master);
  11. void drm_lease_destroy(struct drm_master *lessee);
  12. bool drm_lease_held(struct drm_file *file_priv, int id);
  13. bool _drm_lease_held(struct drm_file *file_priv, int id);
  14. void drm_lease_revoke(struct drm_master *master);
  15. uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
  16. int drm_mode_create_lease_ioctl(struct drm_device *dev,
  17. void *data, struct drm_file *file_priv);
  18. int drm_mode_list_lessees_ioctl(struct drm_device *dev,
  19. void *data, struct drm_file *file_priv);
  20. int drm_mode_get_lease_ioctl(struct drm_device *dev,
  21. void *data, struct drm_file *file_priv);
  22. int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
  23. void *data, struct drm_file *file_priv);
  24. #endif /* _DRM_LEASE_H_ */