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