1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * Copyright © 2017 Keith Packard <keithp@kei 3 * Copyright © 2017 Keith Packard <keithp@keithp.com> 4 */ 4 */ 5 5 6 #ifndef _DRM_LEASE_H_ 6 #ifndef _DRM_LEASE_H_ 7 #define _DRM_LEASE_H_ 7 #define _DRM_LEASE_H_ 8 8 9 #include <linux/types.h> << 10 << 11 struct drm_file; 9 struct drm_file; 12 struct drm_device; 10 struct drm_device; 13 struct drm_master; 11 struct drm_master; 14 12 15 struct drm_master *drm_lease_owner(struct drm_ 13 struct drm_master *drm_lease_owner(struct drm_master *master); 16 14 17 void drm_lease_destroy(struct drm_master *less 15 void drm_lease_destroy(struct drm_master *lessee); 18 16 19 bool drm_lease_held(struct drm_file *file_priv 17 bool drm_lease_held(struct drm_file *file_priv, int id); 20 18 21 bool _drm_lease_held(struct drm_file *file_pri 19 bool _drm_lease_held(struct drm_file *file_priv, int id); 22 20 23 void drm_lease_revoke(struct drm_master *maste 21 void drm_lease_revoke(struct drm_master *master); 24 22 25 uint32_t drm_lease_filter_crtcs(struct drm_fil 23 uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs); 26 24 27 int drm_mode_create_lease_ioctl(struct drm_dev 25 int drm_mode_create_lease_ioctl(struct drm_device *dev, 28 void *data, st 26 void *data, struct drm_file *file_priv); 29 27 30 int drm_mode_list_lessees_ioctl(struct drm_dev 28 int drm_mode_list_lessees_ioctl(struct drm_device *dev, 31 void *data, st 29 void *data, struct drm_file *file_priv); 32 30 33 int drm_mode_get_lease_ioctl(struct drm_device 31 int drm_mode_get_lease_ioctl(struct drm_device *dev, 34 void *data, struc 32 void *data, struct drm_file *file_priv); 35 33 36 int drm_mode_revoke_lease_ioctl(struct drm_dev 34 int drm_mode_revoke_lease_ioctl(struct drm_device *dev, 37 void *data, st 35 void *data, struct drm_file *file_priv); 38 36 39 #endif /* _DRM_LEASE_H_ */ 37 #endif /* _DRM_LEASE_H_ */ 40 38
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.