drm_lease.h revision 1.1
11.1Sriastrad/* $NetBSD: drm_lease.h,v 1.1 2021/12/19 00:26:09 riastradh Exp $ */ 21.1Sriastrad 31.1Sriastrad/*- 41.1Sriastrad * Copyright (c) 2018 The NetBSD Foundation, Inc. 51.1Sriastrad * All rights reserved. 61.1Sriastrad * 71.1Sriastrad * This code is derived from software contributed to The NetBSD Foundation 81.1Sriastrad * by Taylor R. Campbell. 91.1Sriastrad * 101.1Sriastrad * Redistribution and use in source and binary forms, with or without 111.1Sriastrad * modification, are permitted provided that the following conditions 121.1Sriastrad * are met: 131.1Sriastrad * 1. Redistributions of source code must retain the above copyright 141.1Sriastrad * notice, this list of conditions and the following disclaimer. 151.1Sriastrad * 2. Redistributions in binary form must reproduce the above copyright 161.1Sriastrad * notice, this list of conditions and the following disclaimer in the 171.1Sriastrad * documentation and/or other materials provided with the distribution. 181.1Sriastrad * 191.1Sriastrad * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Sriastrad * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Sriastrad * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Sriastrad * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Sriastrad * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Sriastrad * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Sriastrad * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Sriastrad * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Sriastrad * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Sriastrad * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Sriastrad * POSSIBILITY OF SUCH DAMAGE. 301.1Sriastrad */ 311.1Sriastrad 321.1Sriastrad#ifndef _DRM_DRM_LEASE_H_ 331.1Sriastrad#define _DRM_DRM_LEASE_H_ 341.1Sriastrad 351.1Sriastrad#include <sys/types.h> 361.1Sriastrad 371.1Sriastradstruct drm_device; 381.1Sriastradstruct drm_file; 391.1Sriastradstruct drm_master; 401.1Sriastrad 411.1Sriastradint drm_mode_create_lease_ioctl(struct drm_device *, void *, 421.1Sriastrad struct drm_file *); 431.1Sriastradint drm_mode_get_lease_ioctl(struct drm_device *, void *, 441.1Sriastrad struct drm_file *); 451.1Sriastradint drm_mode_list_leases_ioctl(struct drm_device *, void *, 461.1Sriastrad struct drm_file *); 471.1Sriastradint drm_mode_revoke_lease_ioctl(struct drm_device *, void *, 481.1Sriastrad struct drm_file *); 491.1Sriastrad 501.1Sriastradstruct drm_master *drm_lease_owner(struct drm_master *); 511.1Sriastradbool drm_lease_held(struct drm_file *, int); 521.1Sriastradbool _drm_lease_held(struct drm_file *, int); 531.1Sriastradvoid drm_lease_revoke(struct drm_master *); 541.1Sriastraduint32_t drm_lease_filter_crtcs(struct drm_file *, uint32_t); 551.1Sriastrad 561.1Sriastrad#endif /* _DRM_DRM_LEASE_H_ */ 57