xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/drm_crtc_internal.h (revision f3cfa6f6ce31685c6c4a758bc430e69eb99f50a4)
1 /*	$NetBSD: drm_crtc_internal.h,v 1.2 2018/08/27 04:58:19 riastradh Exp $	*/
2 
3 /*
4  * Copyright © 2006 Keith Packard
5  * Copyright © 2007-2008 Dave Airlie
6  * Copyright © 2007-2008 Intel Corporation
7  *   Jesse Barnes <jesse.barnes@intel.com>
8  * Copyright © 2014 Intel Corporation
9  *   Daniel Vetter <daniel.vetter@ffwll.ch>
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining a
12  * copy of this software and associated documentation files (the "Software"),
13  * to deal in the Software without restriction, including without limitation
14  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15  * and/or sell copies of the Software, and to permit persons to whom the
16  * Software is furnished to do so, subject to the following conditions:
17  *
18  * The above copyright notice and this permission notice shall be included in
19  * all copies or substantial portions of the Software.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
24  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
25  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27  * OTHER DEALINGS IN THE SOFTWARE.
28  */
29 
30 /*
31  * This header file contains mode setting related functions and definitions
32  * which are only used within the drm module as internal implementation details
33  * and are not exported to drivers.
34  */
35 
36 int drm_mode_object_get(struct drm_device *dev,
37 			struct drm_mode_object *obj, uint32_t obj_type);
38 void drm_mode_object_put(struct drm_device *dev,
39 			 struct drm_mode_object *object);
40 
41 /* drm_atomic.c */
42 int drm_atomic_get_property(struct drm_mode_object *obj,
43 			   struct drm_property *property, uint64_t *val);
44 int drm_mode_atomic_ioctl(struct drm_device *dev,
45 			  void *data, struct drm_file *file_priv);
46 
47