blob: bbe1c8ea417d9dfc8206c14fb71d51b452ee2efb [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
27#define DRM_MODE_TYPE_BUILTIN (1<<0)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#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)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#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)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#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)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#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)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#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)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070054#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)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#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)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#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
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define DRM_MODE_DITHERING_OFF 0
77#define DRM_MODE_DITHERING_ON 1
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define DRM_MODE_DITHERING_AUTO 2
80#define DRM_MODE_DIRTY_OFF 0
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define DRM_MODE_DIRTY_ON 1
82#define DRM_MODE_DIRTY_ANNOTATE 2
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084struct drm_mode_modeinfo {
85 __u32 clock;
Ben Cheng655a7c02013-10-16 16:09:24 -070086 __u16 hdisplay, hsync_start, hsync_end, htotal, hskew;
87 __u16 vdisplay, vsync_start, vsync_end, vtotal, vscan;
Christopher Ferris38062f92014-07-09 15:33:25 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089 __u32 vrefresh;
90 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070091 __u32 type;
92 char name[DRM_DISPLAY_MODE_LEN];
Christopher Ferris38062f92014-07-09 15:33:25 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094};
95struct drm_mode_card_res {
Ben Cheng655a7c02013-10-16 16:09:24 -070096 __u64 fb_id_ptr;
97 __u64 crtc_id_ptr;
Christopher Ferris38062f92014-07-09 15:33:25 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099 __u64 connector_id_ptr;
100 __u64 encoder_id_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101 __u32 count_fbs;
102 __u32 count_crtcs;
Christopher Ferris38062f92014-07-09 15:33:25 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104 __u32 count_connectors;
105 __u32 count_encoders;
Ben Cheng655a7c02013-10-16 16:09:24 -0700106 __u32 min_width, max_width;
107 __u32 min_height, max_height;
Christopher Ferris38062f92014-07-09 15:33:25 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109};
110struct drm_mode_crtc {
Ben Cheng655a7c02013-10-16 16:09:24 -0700111 __u64 set_connectors_ptr;
112 __u32 count_connectors;
Christopher Ferris38062f92014-07-09 15:33:25 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114 __u32 crtc_id;
115 __u32 fb_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700116 __u32 x, y;
117 __u32 gamma_size;
Christopher Ferris38062f92014-07-09 15:33:25 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700119 __u32 mode_valid;
120 struct drm_mode_modeinfo mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700121};
122#define DRM_MODE_PRESENT_TOP_FIELD (1<<0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124#define DRM_MODE_PRESENT_BOTTOM_FIELD (1<<1)
125struct drm_mode_set_plane {
Ben Cheng655a7c02013-10-16 16:09:24 -0700126 __u32 plane_id;
127 __u32 crtc_id;
Christopher Ferris38062f92014-07-09 15:33:25 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129 __u32 fb_id;
130 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700131 __s32 crtc_x, crtc_y;
132 __u32 crtc_w, crtc_h;
Christopher Ferris38062f92014-07-09 15:33:25 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134 __u32 src_x, src_y;
135 __u32 src_h, src_w;
Ben Cheng655a7c02013-10-16 16:09:24 -0700136};
137struct drm_mode_get_plane {
Christopher Ferris38062f92014-07-09 15:33:25 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139 __u32 plane_id;
140 __u32 crtc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700141 __u32 fb_id;
142 __u32 possible_crtcs;
Christopher Ferris38062f92014-07-09 15:33:25 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144 __u32 gamma_size;
145 __u32 count_format_types;
Ben Cheng655a7c02013-10-16 16:09:24 -0700146 __u64 format_type_ptr;
147};
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149struct drm_mode_get_plane_res {
150 __u64 plane_id_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700151 __u32 count_planes;
152};
Christopher Ferris38062f92014-07-09 15:33:25 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154#define DRM_MODE_ENCODER_NONE 0
155#define DRM_MODE_ENCODER_DAC 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700156#define DRM_MODE_ENCODER_TMDS 2
157#define DRM_MODE_ENCODER_LVDS 3
Christopher Ferris38062f92014-07-09 15:33:25 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define DRM_MODE_ENCODER_TVDAC 4
160#define DRM_MODE_ENCODER_VIRTUAL 5
Christopher Ferris38062f92014-07-09 15:33:25 -0700161#define DRM_MODE_ENCODER_DSI 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700162struct drm_mode_get_encoder {
Christopher Ferris38062f92014-07-09 15:33:25 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164 __u32 encoder_id;
165 __u32 encoder_type;
166 __u32 crtc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700167 __u32 possible_crtcs;
Christopher Ferris38062f92014-07-09 15:33:25 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700169 __u32 possible_clones;
170};
171#define DRM_MODE_SUBCONNECTOR_Automatic 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define DRM_MODE_SUBCONNECTOR_Unknown 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174#define DRM_MODE_SUBCONNECTOR_DVID 3
175#define DRM_MODE_SUBCONNECTOR_DVIA 4
176#define DRM_MODE_SUBCONNECTOR_Composite 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700177#define DRM_MODE_SUBCONNECTOR_SVIDEO 6
Christopher Ferris38062f92014-07-09 15:33:25 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#define DRM_MODE_SUBCONNECTOR_Component 8
180#define DRM_MODE_SUBCONNECTOR_SCART 9
181#define DRM_MODE_CONNECTOR_Unknown 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700182#define DRM_MODE_CONNECTOR_VGA 1
Christopher Ferris38062f92014-07-09 15:33:25 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184#define DRM_MODE_CONNECTOR_DVII 2
185#define DRM_MODE_CONNECTOR_DVID 3
186#define DRM_MODE_CONNECTOR_DVIA 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700187#define DRM_MODE_CONNECTOR_Composite 5
Christopher Ferris38062f92014-07-09 15:33:25 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189#define DRM_MODE_CONNECTOR_SVIDEO 6
190#define DRM_MODE_CONNECTOR_LVDS 7
191#define DRM_MODE_CONNECTOR_Component 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700192#define DRM_MODE_CONNECTOR_9PinDIN 9
Christopher Ferris38062f92014-07-09 15:33:25 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#define DRM_MODE_CONNECTOR_DisplayPort 10
195#define DRM_MODE_CONNECTOR_HDMIA 11
196#define DRM_MODE_CONNECTOR_HDMIB 12
Ben Cheng655a7c02013-10-16 16:09:24 -0700197#define DRM_MODE_CONNECTOR_TV 13
Christopher Ferris38062f92014-07-09 15:33:25 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#define DRM_MODE_CONNECTOR_eDP 14
200#define DRM_MODE_CONNECTOR_VIRTUAL 15
Christopher Ferris38062f92014-07-09 15:33:25 -0700201#define DRM_MODE_CONNECTOR_DSI 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700202struct drm_mode_get_connector {
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 __u64 encoders_ptr;
205 __u64 modes_ptr;
206 __u64 props_ptr;
207 __u64 prop_values_ptr;
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 __u32 count_modes;
210 __u32 count_props;
211 __u32 count_encoders;
212 __u32 encoder_id;
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 __u32 connector_id;
215 __u32 connector_type;
216 __u32 connector_type_id;
217 __u32 connection;
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219 __u32 mm_width, mm_height;
220 __u32 subpixel;
Christopher Ferris38062f92014-07-09 15:33:25 -0700221 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700222};
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700224#define DRM_MODE_PROP_PENDING (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700225#define DRM_MODE_PROP_RANGE (1<<1)
226#define DRM_MODE_PROP_IMMUTABLE (1<<2)
227#define DRM_MODE_PROP_ENUM (1<<3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700229#define DRM_MODE_PROP_BLOB (1<<4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700230#define DRM_MODE_PROP_BITMASK (1<<5)
231struct drm_mode_property_enum {
232 __u64 value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700234 char name[DRM_PROP_NAME_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700235};
236struct drm_mode_get_property {
237 __u64 values_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700239 __u64 enum_blob_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700240 __u32 prop_id;
241 __u32 flags;
242 char name[DRM_PROP_NAME_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700244 __u32 count_values;
Ben Cheng655a7c02013-10-16 16:09:24 -0700245 __u32 count_enum_blobs;
246};
247struct drm_mode_connector_set_property {
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700249 __u64 value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700250 __u32 prop_id;
251 __u32 connector_id;
252};
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700254struct drm_mode_obj_get_properties {
Ben Cheng655a7c02013-10-16 16:09:24 -0700255 __u64 props_ptr;
256 __u64 prop_values_ptr;
257 __u32 count_props;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700259 __u32 obj_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700260 __u32 obj_type;
261};
262struct drm_mode_obj_set_property {
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700264 __u64 value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700265 __u32 prop_id;
266 __u32 obj_id;
267 __u32 obj_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700269};
Ben Cheng655a7c02013-10-16 16:09:24 -0700270struct drm_mode_get_blob {
271 __u32 blob_id;
272 __u32 length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700274 __u64 data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700275};
276struct drm_mode_fb_cmd {
277 __u32 fb_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700279 __u32 width, height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700280 __u32 pitch;
281 __u32 bpp;
282 __u32 depth;
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700284 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700285};
286#define DRM_MODE_FB_INTERLACED (1<<0)
287struct drm_mode_fb_cmd2 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700289 __u32 fb_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700290 __u32 width, height;
291 __u32 pixel_format;
292 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700294 __u32 handles[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700295 __u32 pitches[4];
296 __u32 offsets[4];
297};
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700299#define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700300#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02
301#define DRM_MODE_FB_DIRTY_FLAGS 0x03
302#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700304struct drm_mode_fb_dirty_cmd {
Ben Cheng655a7c02013-10-16 16:09:24 -0700305 __u32 fb_id;
306 __u32 flags;
307 __u32 color;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700309 __u32 num_clips;
Ben Cheng655a7c02013-10-16 16:09:24 -0700310 __u64 clips_ptr;
311};
312struct drm_mode_mode_cmd {
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700314 __u32 connector_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700315 struct drm_mode_modeinfo mode;
316};
317#define DRM_MODE_CURSOR_BO 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700319#define DRM_MODE_CURSOR_MOVE 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700320#define DRM_MODE_CURSOR_FLAGS 0x03
321struct drm_mode_cursor {
322 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700324 __u32 crtc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700325 __s32 x;
326 __s32 y;
327 __u32 width;
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700329 __u32 height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700330 __u32 handle;
331};
Christopher Ferris38062f92014-07-09 15:33:25 -0700332struct drm_mode_cursor2 {
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334 __u32 flags;
335 __u32 crtc_id;
336 __s32 x;
337 __s32 y;
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 __u32 width;
340 __u32 height;
341 __u32 handle;
342 __s32 hot_x;
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 __s32 hot_y;
345};
Ben Cheng655a7c02013-10-16 16:09:24 -0700346struct drm_mode_crtc_lut {
347 __u32 crtc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800349 __u32 gamma_size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700350 __u64 red;
351 __u64 green;
352 __u64 blue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800354};
Ben Cheng655a7c02013-10-16 16:09:24 -0700355#define DRM_MODE_PAGE_FLIP_EVENT 0x01
Christopher Ferris38062f92014-07-09 15:33:25 -0700356#define DRM_MODE_PAGE_FLIP_ASYNC 0x02
357#define DRM_MODE_PAGE_FLIP_FLAGS (DRM_MODE_PAGE_FLIP_EVENT|DRM_MODE_PAGE_FLIP_ASYNC)
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700359struct drm_mode_crtc_page_flip {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800360 __u32 crtc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700361 __u32 fb_id;
362 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700364 __u32 reserved;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800365 __u64 user_data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700366};
367struct drm_mode_create_dumb {
Ben Cheng655a7c02013-10-16 16:09:24 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700369 uint32_t height;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800370 uint32_t width;
Ben Cheng655a7c02013-10-16 16:09:24 -0700371 uint32_t bpp;
372 uint32_t flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700374 uint32_t handle;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800375 uint32_t pitch;
Ben Cheng655a7c02013-10-16 16:09:24 -0700376 uint64_t size;
377};
Ben Cheng655a7c02013-10-16 16:09:24 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700379struct drm_mode_map_dumb {
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800380 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700381 __u32 pad;
382 __u64 offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700384};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800385struct drm_mode_destroy_dumb {
Ben Cheng655a7c02013-10-16 16:09:24 -0700386 uint32_t handle;
387};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700389#endif