]>
Commit | Line | Data |
---|---|---|
7520a277 DV |
1 | /* |
2 | * Copyright (c) 2016 Intel Corporation | |
3 | * | |
4 | * Permission to use, copy, modify, distribute, and sell this software and its | |
5 | * documentation for any purpose is hereby granted without fee, provided that | |
6 | * the above copyright notice appear in all copies and that both that copyright | |
7 | * notice and this permission notice appear in supporting documentation, and | |
8 | * that the name of the copyright holders not be used in advertising or | |
9 | * publicity pertaining to distribution of the software without specific, | |
10 | * written prior permission. The copyright holders make no representations | |
11 | * about the suitability of this software for any purpose. It is provided "as | |
12 | * is" without express or implied warranty. | |
13 | * | |
14 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | |
15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | |
16 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR | |
17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | |
18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | |
19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | |
20 | * OF THIS SOFTWARE. | |
21 | */ | |
22 | ||
23 | #ifndef __DRM_MODESET_H__ | |
24 | #define __DRM_MODESET_H__ | |
25 | ||
26 | #include <linux/kref.h> | |
27 | struct drm_object_properties; | |
28 | ||
29 | struct drm_mode_object { | |
30 | uint32_t id; | |
31 | uint32_t type; | |
32 | struct drm_object_properties *properties; | |
33 | struct kref refcount; | |
34 | void (*free_cb)(struct kref *kref); | |
35 | }; | |
36 | ||
37 | struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, | |
38 | uint32_t id, uint32_t type); | |
39 | void drm_mode_object_reference(struct drm_mode_object *obj); | |
40 | void drm_mode_object_unreference(struct drm_mode_object *obj); | |
41 | ||
42 | /* FIXME: This is temporary until we have a drm_connector.h */ | |
43 | enum drm_connector_force { | |
44 | DRM_FORCE_UNSPECIFIED, | |
45 | DRM_FORCE_OFF, | |
46 | DRM_FORCE_ON, /* force on analog part normally */ | |
47 | DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ | |
48 | }; | |
49 | ||
50 | #endif |