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