drm_lease.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright © 2017 Keith Packard <keithp@keithp.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. */
  14. #ifndef _DRM_LEASE_H_
  15. #define _DRM_LEASE_H_
  16. struct drm_file;
  17. struct drm_device;
  18. struct drm_master;
  19. struct drm_master *drm_lease_owner(struct drm_master *master);
  20. void drm_lease_destroy(struct drm_master *lessee);
  21. bool drm_lease_held(struct drm_file *file_priv, int id);
  22. bool _drm_lease_held(struct drm_file *file_priv, int id);
  23. void drm_lease_revoke(struct drm_master *master);
  24. 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);
  27. int drm_mode_list_lessees_ioctl(struct drm_device *dev,
  28. void *data, struct drm_file *file_priv);
  29. int drm_mode_get_lease_ioctl(struct drm_device *dev,
  30. void *data, struct drm_file *file_priv);
  31. int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
  32. void *data, struct drm_file *file_priv);
  33. #endif /* _DRM_LEASE_H_ */