Linux Audio

Check our new training course

Loading...
v6.2
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Copyright © 2017 Keith Packard <keithp@keithp.com>
 
 
 
 
 
 
 
 
 
 
 4 */
 5
 6#ifndef _DRM_LEASE_H_
 7#define _DRM_LEASE_H_
 8
 9struct drm_file;
10struct drm_device;
11struct drm_master;
12
13struct drm_master *drm_lease_owner(struct drm_master *master);
14
15void drm_lease_destroy(struct drm_master *lessee);
16
17bool drm_lease_held(struct drm_file *file_priv, int id);
18
19bool _drm_lease_held(struct drm_file *file_priv, int id);
20
21void drm_lease_revoke(struct drm_master *master);
22
23uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
24
25int drm_mode_create_lease_ioctl(struct drm_device *dev,
26				void *data, struct drm_file *file_priv);
27
28int drm_mode_list_lessees_ioctl(struct drm_device *dev,
29				void *data, struct drm_file *file_priv);
30
31int drm_mode_get_lease_ioctl(struct drm_device *dev,
32			     void *data, struct drm_file *file_priv);
33
34int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
35				void *data, struct drm_file *file_priv);
36
37#endif /* _DRM_LEASE_H_ */
v4.17
 
 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
15#ifndef _DRM_LEASE_H_
16#define _DRM_LEASE_H_
17
18struct drm_file;
19struct drm_device;
20struct drm_master;
21
22struct drm_master *drm_lease_owner(struct drm_master *master);
23
24void drm_lease_destroy(struct drm_master *lessee);
25
26bool drm_lease_held(struct drm_file *file_priv, int id);
27
28bool _drm_lease_held(struct drm_file *file_priv, int id);
29
30void drm_lease_revoke(struct drm_master *master);
31
32uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
33
34int drm_mode_create_lease_ioctl(struct drm_device *dev,
35				void *data, struct drm_file *file_priv);
36
37int drm_mode_list_lessees_ioctl(struct drm_device *dev,
38				void *data, struct drm_file *file_priv);
39
40int drm_mode_get_lease_ioctl(struct drm_device *dev,
41			     void *data, struct drm_file *file_priv);
42
43int drm_mode_revoke_lease_ioctl(struct drm_device *dev,
44				void *data, struct drm_file *file_priv);
45
46#endif /* _DRM_LEASE_H_ */