blob: abd92a1ccd7a95341d910d0d7bc46cfcfe68899d [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _DRM_MODE_H
20#define _DRM_MODE_H
21#include <linux/types.h>
22#define DRM_DISPLAY_INFO_LEN 32
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define DRM_CONNECTOR_NAME_LEN 32
25#define DRM_DISPLAY_MODE_LEN 32
26#define DRM_PROP_NAME_LEN 32
Tao Baod7db5942015-01-28 10:07:51 -080027#define DRM_MODE_TYPE_BUILTIN (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define DRM_MODE_TYPE_CLOCK_C ((1 << 1) | DRM_MODE_TYPE_BUILTIN)
30#define DRM_MODE_TYPE_CRTC_C ((1 << 2) | DRM_MODE_TYPE_BUILTIN)
31#define DRM_MODE_TYPE_PREFERRED (1 << 3)
32#define DRM_MODE_TYPE_DEFAULT (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034#define DRM_MODE_TYPE_USERDEF (1 << 5)
35#define DRM_MODE_TYPE_DRIVER (1 << 6)
36#define DRM_MODE_FLAG_PHSYNC (1 << 0)
37#define DRM_MODE_FLAG_NHSYNC (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039#define DRM_MODE_FLAG_PVSYNC (1 << 2)
40#define DRM_MODE_FLAG_NVSYNC (1 << 3)
41#define DRM_MODE_FLAG_INTERLACE (1 << 4)
42#define DRM_MODE_FLAG_DBLSCAN (1 << 5)
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044#define DRM_MODE_FLAG_CSYNC (1 << 6)
45#define DRM_MODE_FLAG_PCSYNC (1 << 7)
46#define DRM_MODE_FLAG_NCSYNC (1 << 8)
47#define DRM_MODE_FLAG_HSKEW (1 << 9)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049#define DRM_MODE_FLAG_BCAST (1 << 10)
50#define DRM_MODE_FLAG_PIXMUX (1 << 11)
51#define DRM_MODE_FLAG_DBLCLK (1 << 12)
52#define DRM_MODE_FLAG_CLKDIV2 (1 << 13)
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054#define DRM_MODE_FLAG_3D_MASK (0x1f << 14)
55#define DRM_MODE_FLAG_3D_NONE (0 << 14)
56#define DRM_MODE_FLAG_3D_FRAME_PACKING (1 << 14)
57#define DRM_MODE_FLAG_3D_FIELD_ALTERNATIVE (2 << 14)
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059#define DRM_MODE_FLAG_3D_LINE_ALTERNATIVE (3 << 14)
60#define DRM_MODE_FLAG_3D_SIDE_BY_SIDE_FULL (4 << 14)
61#define DRM_MODE_FLAG_3D_L_DEPTH (5 << 14)
62#define DRM_MODE_FLAG_3D_L_DEPTH_GFX_GFX_DEPTH (6 << 14)
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064#define DRM_MODE_FLAG_3D_TOP_AND_BOTTOM (7 << 14)
65#define DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF (8 << 14)
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define DRM_MODE_DPMS_ON 0
67#define DRM_MODE_DPMS_STANDBY 1
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define DRM_MODE_DPMS_SUSPEND 2
70#define DRM_MODE_DPMS_OFF 3
Ben Cheng655a7c02013-10-16 16:09:24 -070071#define DRM_MODE_SCALE_NONE 0
72#define DRM_MODE_SCALE_FULLSCREEN 1
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define DRM_MODE_SCALE_CENTER 2
75#define DRM_MODE_SCALE_ASPECT 3
Christopher Ferris82d75042015-01-26 10:57:07 -080076#define DRM_MODE_PICTURE_ASPECT_NONE 0
77#define DRM_MODE_PICTURE_ASPECT_4_3 1
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define DRM_MODE_PICTURE_ASPECT_16_9 2
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define DRM_MODE_DITHERING_OFF 0
81#define DRM_MODE_DITHERING_ON 1
82#define DRM_MODE_DITHERING_AUTO 2
Christopher Ferris82d75042015-01-26 10:57:07 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084#define DRM_MODE_DIRTY_OFF 0
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define DRM_MODE_DIRTY_ON 1
86#define DRM_MODE_DIRTY_ANNOTATE 2
87struct drm_mode_modeinfo {
Christopher Ferris82d75042015-01-26 10:57:07 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u32 clock;
90 __u16 hdisplay, hsync_start, hsync_end, htotal, hskew;
91 __u16 vdisplay, vsync_start, vsync_end, vtotal, vscan;
92 __u32 vrefresh;
Christopher Ferris82d75042015-01-26 10:57:07 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u32 flags;
95 __u32 type;
96 char name[DRM_DISPLAY_MODE_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070097};
Christopher Ferris82d75042015-01-26 10:57:07 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099struct drm_mode_card_res {
Tao Baod7db5942015-01-28 10:07:51 -0800100 __u64 fb_id_ptr;
101 __u64 crtc_id_ptr;
102 __u64 connector_id_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __u64 encoder_id_ptr;
105 __u32 count_fbs;
106 __u32 count_crtcs;
107 __u32 count_connectors;
Christopher Ferris82d75042015-01-26 10:57:07 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u32 count_encoders;
110 __u32 min_width, max_width;
111 __u32 min_height, max_height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700112};
Christopher Ferris82d75042015-01-26 10:57:07 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114struct drm_mode_crtc {
Tao Baod7db5942015-01-28 10:07:51 -0800115 __u64 set_connectors_ptr;
116 __u32 count_connectors;
117 __u32 crtc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u32 fb_id;
120 __u32 x, y;
121 __u32 gamma_size;
122 __u32 mode_valid;
Christopher Ferris82d75042015-01-26 10:57:07 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 struct drm_mode_modeinfo mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125};
Tao Baod7db5942015-01-28 10:07:51 -0800126#define DRM_MODE_PRESENT_TOP_FIELD (1 << 0)
127#define DRM_MODE_PRESENT_BOTTOM_FIELD (1 << 1)
Christopher Ferris82d75042015-01-26 10:57:07 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129struct drm_mode_set_plane {
Tao Baod7db5942015-01-28 10:07:51 -0800130 __u32 plane_id;
131 __u32 crtc_id;
132 __u32 fb_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 flags;
135 __s32 crtc_x, crtc_y;
136 __u32 crtc_w, crtc_h;
137 __u32 src_x, src_y;
Christopher Ferris82d75042015-01-26 10:57:07 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u32 src_h, src_w;
Ben Cheng655a7c02013-10-16 16:09:24 -0700140};
141struct drm_mode_get_plane {
Tao Baod7db5942015-01-28 10:07:51 -0800142 __u32 plane_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u32 crtc_id;
145 __u32 fb_id;
146 __u32 possible_crtcs;
147 __u32 gamma_size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 count_format_types;
150 __u64 format_type_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700151};
152struct drm_mode_get_plane_res {
Christopher Ferris82d75042015-01-26 10:57:07 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u64 plane_id_ptr;
155 __u32 count_planes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700156};
157#define DRM_MODE_ENCODER_NONE 0
Christopher Ferris82d75042015-01-26 10:57:07 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define DRM_MODE_ENCODER_DAC 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define DRM_MODE_ENCODER_TMDS 2
161#define DRM_MODE_ENCODER_LVDS 3
162#define DRM_MODE_ENCODER_TVDAC 4
Christopher Ferris82d75042015-01-26 10:57:07 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164#define DRM_MODE_ENCODER_VIRTUAL 5
Christopher Ferris38062f92014-07-09 15:33:25 -0700165#define DRM_MODE_ENCODER_DSI 6
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700166#define DRM_MODE_ENCODER_DPMST 7
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700167struct drm_mode_get_encoder {
Christopher Ferris82d75042015-01-26 10:57:07 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u32 encoder_id;
170 __u32 encoder_type;
171 __u32 crtc_id;
172 __u32 possible_crtcs;
Christopher Ferris82d75042015-01-26 10:57:07 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 possible_clones;
Ben Cheng655a7c02013-10-16 16:09:24 -0700175};
176#define DRM_MODE_SUBCONNECTOR_Automatic 0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700177#define DRM_MODE_SUBCONNECTOR_Unknown 0
Christopher Ferris82d75042015-01-26 10:57:07 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#define DRM_MODE_SUBCONNECTOR_DVID 3
180#define DRM_MODE_SUBCONNECTOR_DVIA 4
181#define DRM_MODE_SUBCONNECTOR_Composite 5
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700182#define DRM_MODE_SUBCONNECTOR_SVIDEO 6
Christopher Ferris82d75042015-01-26 10:57:07 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184#define DRM_MODE_SUBCONNECTOR_Component 8
185#define DRM_MODE_SUBCONNECTOR_SCART 9
186#define DRM_MODE_CONNECTOR_Unknown 0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700187#define DRM_MODE_CONNECTOR_VGA 1
Christopher Ferris82d75042015-01-26 10:57:07 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189#define DRM_MODE_CONNECTOR_DVII 2
190#define DRM_MODE_CONNECTOR_DVID 3
191#define DRM_MODE_CONNECTOR_DVIA 4
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700192#define DRM_MODE_CONNECTOR_Composite 5
Christopher Ferris82d75042015-01-26 10:57:07 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#define DRM_MODE_CONNECTOR_SVIDEO 6
195#define DRM_MODE_CONNECTOR_LVDS 7
196#define DRM_MODE_CONNECTOR_Component 8
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700197#define DRM_MODE_CONNECTOR_9PinDIN 9
Christopher Ferris82d75042015-01-26 10:57:07 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#define DRM_MODE_CONNECTOR_DisplayPort 10
200#define DRM_MODE_CONNECTOR_HDMIA 11
201#define DRM_MODE_CONNECTOR_HDMIB 12
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700202#define DRM_MODE_CONNECTOR_TV 13
Christopher Ferris82d75042015-01-26 10:57:07 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700204#define DRM_MODE_CONNECTOR_eDP 14
205#define DRM_MODE_CONNECTOR_VIRTUAL 15
Christopher Ferris38062f92014-07-09 15:33:25 -0700206#define DRM_MODE_CONNECTOR_DSI 16
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700207struct drm_mode_get_connector {
Christopher Ferris82d75042015-01-26 10:57:07 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 __u64 encoders_ptr;
210 __u64 modes_ptr;
211 __u64 props_ptr;
212 __u64 prop_values_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u32 count_modes;
215 __u32 count_props;
216 __u32 count_encoders;
217 __u32 encoder_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 __u32 connector_id;
220 __u32 connector_type;
221 __u32 connector_type_id;
222 __u32 connection;
Christopher Ferris82d75042015-01-26 10:57:07 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 __u32 mm_width, mm_height;
225 __u32 subpixel;
226 __u32 pad;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700227};
Christopher Ferris82d75042015-01-26 10:57:07 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229#define DRM_MODE_PROP_PENDING (1 << 0)
230#define DRM_MODE_PROP_RANGE (1 << 1)
231#define DRM_MODE_PROP_IMMUTABLE (1 << 2)
232#define DRM_MODE_PROP_ENUM (1 << 3)
Christopher Ferris82d75042015-01-26 10:57:07 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234#define DRM_MODE_PROP_BLOB (1 << 4)
235#define DRM_MODE_PROP_BITMASK (1 << 5)
236#define DRM_MODE_PROP_LEGACY_TYPE (DRM_MODE_PROP_RANGE | DRM_MODE_PROP_ENUM | DRM_MODE_PROP_BLOB | DRM_MODE_PROP_BITMASK)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700237#define DRM_MODE_PROP_EXTENDED_TYPE 0x0000ffc0
Christopher Ferris82d75042015-01-26 10:57:07 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700239#define DRM_MODE_PROP_TYPE(n) ((n) << 6)
240#define DRM_MODE_PROP_OBJECT DRM_MODE_PROP_TYPE(1)
241#define DRM_MODE_PROP_SIGNED_RANGE DRM_MODE_PROP_TYPE(2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700242struct drm_mode_property_enum {
Christopher Ferris82d75042015-01-26 10:57:07 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u64 value;
245 char name[DRM_PROP_NAME_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700246};
247struct drm_mode_get_property {
Christopher Ferris82d75042015-01-26 10:57:07 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 __u64 values_ptr;
250 __u64 enum_blob_ptr;
251 __u32 prop_id;
252 __u32 flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 char name[DRM_PROP_NAME_LEN];
255 __u32 count_values;
256 __u32 count_enum_blobs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700257};
Christopher Ferris82d75042015-01-26 10:57:07 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259struct drm_mode_connector_set_property {
Tao Baod7db5942015-01-28 10:07:51 -0800260 __u64 value;
261 __u32 prop_id;
262 __u32 connector_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264};
Christopher Ferris38062f92014-07-09 15:33:25 -0700265struct drm_mode_obj_get_properties {
Tao Baod7db5942015-01-28 10:07:51 -0800266 __u64 props_ptr;
267 __u64 prop_values_ptr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 __u32 count_props;
270 __u32 obj_id;
271 __u32 obj_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700272};
Christopher Ferris82d75042015-01-26 10:57:07 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274struct drm_mode_obj_set_property {
Tao Baod7db5942015-01-28 10:07:51 -0800275 __u64 value;
276 __u32 prop_id;
277 __u32 obj_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 __u32 obj_type;
Christopher Ferris38062f92014-07-09 15:33:25 -0700280};
Ben Cheng655a7c02013-10-16 16:09:24 -0700281struct drm_mode_get_blob {
Tao Baod7db5942015-01-28 10:07:51 -0800282 __u32 blob_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 __u32 length;
285 __u64 data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700286};
287struct drm_mode_fb_cmd {
Christopher Ferris82d75042015-01-26 10:57:07 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 __u32 fb_id;
290 __u32 width, height;
291 __u32 pitch;
292 __u32 bpp;
Christopher Ferris82d75042015-01-26 10:57:07 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 __u32 depth;
295 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700296};
Tao Baod7db5942015-01-28 10:07:51 -0800297#define DRM_MODE_FB_INTERLACED (1 << 0)
Christopher Ferris82d75042015-01-26 10:57:07 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299struct drm_mode_fb_cmd2 {
Tao Baod7db5942015-01-28 10:07:51 -0800300 __u32 fb_id;
301 __u32 width, height;
302 __u32 pixel_format;
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304 __u32 flags;
305 __u32 handles[4];
306 __u32 pitches[4];
307 __u32 offsets[4];
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309};
Christopher Ferris38062f92014-07-09 15:33:25 -0700310#define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700311#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02
312#define DRM_MODE_FB_DIRTY_FLAGS 0x03
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256
Christopher Ferris38062f92014-07-09 15:33:25 -0700315struct drm_mode_fb_dirty_cmd {
Tao Baod7db5942015-01-28 10:07:51 -0800316 __u32 fb_id;
317 __u32 flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 __u32 color;
320 __u32 num_clips;
321 __u64 clips_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700322};
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324struct drm_mode_mode_cmd {
Tao Baod7db5942015-01-28 10:07:51 -0800325 __u32 connector_id;
326 struct drm_mode_modeinfo mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700327};
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329#define DRM_MODE_CURSOR_BO 0x01
Christopher Ferris38062f92014-07-09 15:33:25 -0700330#define DRM_MODE_CURSOR_MOVE 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700331#define DRM_MODE_CURSOR_FLAGS 0x03
332struct drm_mode_cursor {
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 __u32 flags;
335 __u32 crtc_id;
336 __s32 x;
337 __s32 y;
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 __u32 width;
340 __u32 height;
341 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700342};
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700344struct drm_mode_cursor2 {
Tao Baod7db5942015-01-28 10:07:51 -0800345 __u32 flags;
346 __u32 crtc_id;
347 __s32 x;
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 __s32 y;
350 __u32 width;
351 __u32 height;
352 __u32 handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 __s32 hot_x;
355 __s32 hot_y;
Christopher Ferris38062f92014-07-09 15:33:25 -0700356};
Ben Cheng655a7c02013-10-16 16:09:24 -0700357struct drm_mode_crtc_lut {
Christopher Ferris82d75042015-01-26 10:57:07 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 __u32 crtc_id;
360 __u32 gamma_size;
361 __u64 red;
362 __u64 green;
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 __u64 blue;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800365};
Ben Cheng655a7c02013-10-16 16:09:24 -0700366#define DRM_MODE_PAGE_FLIP_EVENT 0x01
Christopher Ferris38062f92014-07-09 15:33:25 -0700367#define DRM_MODE_PAGE_FLIP_ASYNC 0x02
Christopher Ferris82d75042015-01-26 10:57:07 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369#define DRM_MODE_PAGE_FLIP_FLAGS (DRM_MODE_PAGE_FLIP_EVENT | DRM_MODE_PAGE_FLIP_ASYNC)
Christopher Ferris38062f92014-07-09 15:33:25 -0700370struct drm_mode_crtc_page_flip {
Tao Baod7db5942015-01-28 10:07:51 -0800371 __u32 crtc_id;
372 __u32 fb_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 __u32 flags;
375 __u32 reserved;
376 __u64 user_data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700377};
Christopher Ferris82d75042015-01-26 10:57:07 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379struct drm_mode_create_dumb {
Tao Baod7db5942015-01-28 10:07:51 -0800380 uint32_t height;
381 uint32_t width;
382 uint32_t bpp;
Christopher Ferris82d75042015-01-26 10:57:07 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800384 uint32_t flags;
385 uint32_t handle;
386 uint32_t pitch;
387 uint64_t size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389};
Christopher Ferris38062f92014-07-09 15:33:25 -0700390struct drm_mode_map_dumb {
Tao Baod7db5942015-01-28 10:07:51 -0800391 __u32 handle;
392 __u32 pad;
Christopher Ferris82d75042015-01-26 10:57:07 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 __u64 offset;
Christopher Ferris38062f92014-07-09 15:33:25 -0700395};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800396struct drm_mode_destroy_dumb {
Tao Baod7db5942015-01-28 10:07:51 -0800397 uint32_t handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399};
Christopher Ferris38062f92014-07-09 15:33:25 -0700400#endif