1 /*
2 * Copyright (c) 2020 François Tigeot <ftigeot@wolfpond.org>
3 * All Rights Reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sub license, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice (including the
14 * next paragraph) shall be included in all copies or substantial portions
15 * of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE.
24 */
25
26 #ifndef _DRM_LEASE_H
27 #define _DRM_LEASE_H
28
29 struct drm_file;
30 struct drm_master;
31
32 static inline bool
drm_lease_held(struct drm_file * file_priv,int id)33 drm_lease_held(struct drm_file *file_priv, int id)
34 {
35 return true;
36 }
37
38 static inline uint32_t
drm_lease_filter_crtcs(struct drm_file * file_priv,uint32_t crtcs)39 drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs)
40 {
41 return crtcs;
42 }
43
44 static inline void
drm_lease_destroy(struct drm_master * lessee)45 drm_lease_destroy(struct drm_master *lessee)
46 {
47 }
48
49 static inline void
drm_lease_revoke(struct drm_master * master)50 drm_lease_revoke(struct drm_master *master)
51 {
52 }
53
54 #endif /* _DRM_LEASE_H */
55