blob: b54996aeef0207db9ba37357201d013a3a743d7d [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_H_
20#define _DRM_H_
21#ifdef __linux__
22#include <linux/types.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <asm/ioctl.h>
25typedef unsigned int drm_handle_t;
26#else
27#include <sys/ioccom.h>
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#include <sys/types.h>
30typedef int8_t __s8;
31typedef uint8_t __u8;
32typedef int16_t __s16;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34typedef uint16_t __u16;
35typedef int32_t __s32;
36typedef uint32_t __u32;
37typedef int64_t __s64;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39typedef uint64_t __u64;
Christopher Ferris106b3a82016-08-24 12:15:38 -070040typedef size_t __kernel_size_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070041typedef unsigned long drm_handle_t;
42#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070044#ifdef __cplusplus
45#endif
46#define DRM_NAME "drm"
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define DRM_MIN_ORDER 5
Christopher Ferris106b3a82016-08-24 12:15:38 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define DRM_MAX_ORDER 22
50#define DRM_RAM_PERCENT 10
51#define _DRM_LOCK_HELD 0x80000000U
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define _DRM_LOCK_CONT 0x40000000U
Christopher Ferris106b3a82016-08-24 12:15:38 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054#define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD)
55#define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT)
Tao Baod7db5942015-01-28 10:07:51 -080056#define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT))
Ben Cheng655a7c02013-10-16 16:09:24 -070057typedef unsigned int drm_context_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070059typedef unsigned int drm_drawable_t;
60typedef unsigned int drm_magic_t;
61struct drm_clip_rect {
Tao Baod7db5942015-01-28 10:07:51 -080062 unsigned short x1;
Christopher Ferris106b3a82016-08-24 12:15:38 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 unsigned short y1;
65 unsigned short x2;
66 unsigned short y2;
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
Christopher Ferris106b3a82016-08-24 12:15:38 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069struct drm_drawable_info {
Tao Baod7db5942015-01-28 10:07:51 -080070 unsigned int num_rects;
71 struct drm_clip_rect * rects;
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
Christopher Ferris106b3a82016-08-24 12:15:38 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074struct drm_tex_region {
Tao Baod7db5942015-01-28 10:07:51 -080075 unsigned char next;
76 unsigned char prev;
Tao Baod7db5942015-01-28 10:07:51 -080077 unsigned char in_use;
Christopher Ferris106b3a82016-08-24 12:15:38 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned char padding;
80 unsigned int age;
Ben Cheng655a7c02013-10-16 16:09:24 -070081};
Ben Cheng655a7c02013-10-16 16:09:24 -070082struct drm_hw_lock {
Christopher Ferris106b3a82016-08-24 12:15:38 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __volatile__ unsigned int lock;
85 char padding[60];
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
Ben Cheng655a7c02013-10-16 16:09:24 -070087struct drm_version {
Christopher Ferris106b3a82016-08-24 12:15:38 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 int version_major;
90 int version_minor;
91 int version_patchlevel;
Christopher Ferris106b3a82016-08-24 12:15:38 -070092 __kernel_size_t name_len;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 char __user * name;
Christopher Ferris106b3a82016-08-24 12:15:38 -070095 __kernel_size_t date_len;
Tao Baod7db5942015-01-28 10:07:51 -080096 char __user * date;
Christopher Ferris106b3a82016-08-24 12:15:38 -070097 __kernel_size_t desc_len;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 char __user * desc;
Ben Cheng655a7c02013-10-16 16:09:24 -0700100};
101struct drm_unique {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700102 __kernel_size_t unique_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 char __user * unique;
Ben Cheng655a7c02013-10-16 16:09:24 -0700105};
106struct drm_list {
Tao Baod7db5942015-01-28 10:07:51 -0800107 int count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 struct drm_version __user * version;
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111struct drm_block {
Tao Baod7db5942015-01-28 10:07:51 -0800112 int unused;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114};
115struct drm_control {
Tao Baod7db5942015-01-28 10:07:51 -0800116 enum {
Tao Baod7db5942015-01-28 10:07:51 -0800117 DRM_ADD_COMMAND,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 DRM_RM_COMMAND,
120 DRM_INST_HANDLER,
121 DRM_UNINST_HANDLER
Tao Baod7db5942015-01-28 10:07:51 -0800122 } func;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 int irq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125};
126enum drm_map_type {
Tao Baod7db5942015-01-28 10:07:51 -0800127 _DRM_FRAME_BUFFER = 0,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 _DRM_REGISTERS = 1,
130 _DRM_SHM = 2,
131 _DRM_AGP = 3,
Tao Baod7db5942015-01-28 10:07:51 -0800132 _DRM_SCATTER_GATHER = 4,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 _DRM_CONSISTENT = 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700135};
Ben Cheng655a7c02013-10-16 16:09:24 -0700136enum drm_map_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800137 _DRM_RESTRICTED = 0x01,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 _DRM_READ_ONLY = 0x02,
140 _DRM_LOCKED = 0x04,
141 _DRM_KERNEL = 0x08,
Tao Baod7db5942015-01-28 10:07:51 -0800142 _DRM_WRITE_COMBINING = 0x10,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 _DRM_CONTAINS_LOCK = 0x20,
145 _DRM_REMOVABLE = 0x40,
146 _DRM_DRIVER = 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -0700147};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149struct drm_ctx_priv_map {
Tao Baod7db5942015-01-28 10:07:51 -0800150 unsigned int ctx_id;
151 void * handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700152};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154struct drm_map {
Tao Baod7db5942015-01-28 10:07:51 -0800155 unsigned long offset;
156 unsigned long size;
Tao Baod7db5942015-01-28 10:07:51 -0800157 enum drm_map_type type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 enum drm_map_flags flags;
160 void * handle;
161 int mtrr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700162};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164struct drm_client {
Tao Baod7db5942015-01-28 10:07:51 -0800165 int idx;
166 int auth;
Tao Baod7db5942015-01-28 10:07:51 -0800167 unsigned long pid;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 unsigned long uid;
170 unsigned long magic;
171 unsigned long iocs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700172};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174enum drm_stat_type {
Tao Baod7db5942015-01-28 10:07:51 -0800175 _DRM_STAT_LOCK,
176 _DRM_STAT_OPENS,
Tao Baod7db5942015-01-28 10:07:51 -0800177 _DRM_STAT_CLOSES,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 _DRM_STAT_IOCTLS,
180 _DRM_STAT_LOCKS,
181 _DRM_STAT_UNLOCKS,
Tao Baod7db5942015-01-28 10:07:51 -0800182 _DRM_STAT_VALUE,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 _DRM_STAT_BYTE,
185 _DRM_STAT_COUNT,
186 _DRM_STAT_IRQ,
Tao Baod7db5942015-01-28 10:07:51 -0800187 _DRM_STAT_PRIMARY,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 _DRM_STAT_SECONDARY,
190 _DRM_STAT_DMA,
191 _DRM_STAT_SPECIAL,
Tao Baod7db5942015-01-28 10:07:51 -0800192 _DRM_STAT_MISSED
Christopher Ferris106b3a82016-08-24 12:15:38 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194};
195struct drm_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800196 unsigned long count;
Tao Baod7db5942015-01-28 10:07:51 -0800197 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 unsigned long value;
200 enum drm_stat_type type;
201 } data[15];
Ben Cheng655a7c02013-10-16 16:09:24 -0700202};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700204enum drm_lock_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800205 _DRM_LOCK_READY = 0x01,
206 _DRM_LOCK_QUIESCENT = 0x02,
Tao Baod7db5942015-01-28 10:07:51 -0800207 _DRM_LOCK_FLUSH = 0x04,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 _DRM_LOCK_FLUSH_ALL = 0x08,
210 _DRM_HALT_ALL_QUEUES = 0x10,
211 _DRM_HALT_CUR_QUEUES = 0x20
Ben Cheng655a7c02013-10-16 16:09:24 -0700212};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700214struct drm_lock {
Tao Baod7db5942015-01-28 10:07:51 -0800215 int context;
216 enum drm_lock_flags flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700217};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219enum drm_dma_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800220 _DRM_DMA_BLOCK = 0x01,
221 _DRM_DMA_WHILE_LOCKED = 0x02,
Tao Baod7db5942015-01-28 10:07:51 -0800222 _DRM_DMA_PRIORITY = 0x04,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 _DRM_DMA_WAIT = 0x10,
225 _DRM_DMA_SMALLER_OK = 0x20,
226 _DRM_DMA_LARGER_OK = 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -0700227};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700229struct drm_buf_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800230 int count;
231 int size;
Tao Baod7db5942015-01-28 10:07:51 -0800232 int low_mark;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 int high_mark;
235 enum {
236 _DRM_PAGE_ALIGN = 0x01,
Tao Baod7db5942015-01-28 10:07:51 -0800237 _DRM_AGP_BUFFER = 0x02,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 _DRM_SG_BUFFER = 0x04,
240 _DRM_FB_BUFFER = 0x08,
241 _DRM_PCI_BUFFER_RO = 0x10
Tao Baod7db5942015-01-28 10:07:51 -0800242 } flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 unsigned long agp_start;
Ben Cheng655a7c02013-10-16 16:09:24 -0700245};
Ben Cheng655a7c02013-10-16 16:09:24 -0700246struct drm_buf_info {
Tao Baod7db5942015-01-28 10:07:51 -0800247 int count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 struct drm_buf_desc __user * list;
Ben Cheng655a7c02013-10-16 16:09:24 -0700250};
Ben Cheng655a7c02013-10-16 16:09:24 -0700251struct drm_buf_free {
Tao Baod7db5942015-01-28 10:07:51 -0800252 int count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 int __user * list;
Ben Cheng655a7c02013-10-16 16:09:24 -0700255};
Ben Cheng655a7c02013-10-16 16:09:24 -0700256struct drm_buf_pub {
Tao Baod7db5942015-01-28 10:07:51 -0800257 int idx;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 int total;
260 int used;
261 void __user * address;
Ben Cheng655a7c02013-10-16 16:09:24 -0700262};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264struct drm_buf_map {
Tao Baod7db5942015-01-28 10:07:51 -0800265 int count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700266#ifdef __cplusplus
267 void __user * virt;
Christopher Ferris38062f92014-07-09 15:33:25 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700269#else
270 void __user * __linux_virtual;
271#endif
Tao Baod7db5942015-01-28 10:07:51 -0800272 struct drm_buf_pub __user * list;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274};
275struct drm_dma {
Tao Baod7db5942015-01-28 10:07:51 -0800276 int context;
Tao Baod7db5942015-01-28 10:07:51 -0800277 int send_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 int __user * send_indices;
280 int __user * send_sizes;
281 enum drm_dma_flags flags;
Tao Baod7db5942015-01-28 10:07:51 -0800282 int request_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 int request_size;
285 int __user * request_indices;
286 int __user * request_sizes;
Tao Baod7db5942015-01-28 10:07:51 -0800287 int granted_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700289};
290enum drm_ctx_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800291 _DRM_CONTEXT_PRESERVED = 0x01,
Tao Baod7db5942015-01-28 10:07:51 -0800292 _DRM_CONTEXT_2DONLY = 0x02
Christopher Ferris106b3a82016-08-24 12:15:38 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700294};
295struct drm_ctx {
Tao Baod7db5942015-01-28 10:07:51 -0800296 drm_context_t handle;
Tao Baod7db5942015-01-28 10:07:51 -0800297 enum drm_ctx_flags flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299};
300struct drm_ctx_res {
Tao Baod7db5942015-01-28 10:07:51 -0800301 int count;
Tao Baod7db5942015-01-28 10:07:51 -0800302 struct drm_ctx __user * contexts;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304};
305struct drm_draw {
Tao Baod7db5942015-01-28 10:07:51 -0800306 drm_drawable_t handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700307};
Christopher Ferris38062f92014-07-09 15:33:25 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700309typedef enum {
310 DRM_DRAWABLE_CLIPRECTS
311} drm_drawable_info_type_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700312struct drm_update_draw {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 drm_drawable_t handle;
315 unsigned int type;
316 unsigned int num;
Tao Baod7db5942015-01-28 10:07:51 -0800317 unsigned long long data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319};
320struct drm_auth {
Tao Baod7db5942015-01-28 10:07:51 -0800321 drm_magic_t magic;
Ben Cheng655a7c02013-10-16 16:09:24 -0700322};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324struct drm_irq_busid {
Tao Baod7db5942015-01-28 10:07:51 -0800325 int irq;
326 int busnum;
Tao Baod7db5942015-01-28 10:07:51 -0800327 int devnum;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 int funcnum;
Ben Cheng655a7c02013-10-16 16:09:24 -0700330};
Ben Cheng655a7c02013-10-16 16:09:24 -0700331enum drm_vblank_seq_type {
Tao Baod7db5942015-01-28 10:07:51 -0800332 _DRM_VBLANK_ABSOLUTE = 0x0,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 _DRM_VBLANK_RELATIVE = 0x1,
335 _DRM_VBLANK_HIGH_CRTC_MASK = 0x0000003e,
336 _DRM_VBLANK_EVENT = 0x4000000,
Tao Baod7db5942015-01-28 10:07:51 -0800337 _DRM_VBLANK_FLIP = 0x8000000,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 _DRM_VBLANK_NEXTONMISS = 0x10000000,
340 _DRM_VBLANK_SECONDARY = 0x20000000,
341 _DRM_VBLANK_SIGNAL = 0x40000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700342};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344#define _DRM_VBLANK_HIGH_CRTC_SHIFT 1
345#define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE)
Tao Baod7db5942015-01-28 10:07:51 -0800346#define _DRM_VBLANK_FLAGS_MASK (_DRM_VBLANK_EVENT | _DRM_VBLANK_SIGNAL | _DRM_VBLANK_SECONDARY | _DRM_VBLANK_NEXTONMISS)
Ben Cheng655a7c02013-10-16 16:09:24 -0700347struct drm_wait_vblank_request {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 enum drm_vblank_seq_type type;
350 unsigned int sequence;
351 unsigned long signal;
Ben Cheng655a7c02013-10-16 16:09:24 -0700352};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354struct drm_wait_vblank_reply {
Tao Baod7db5942015-01-28 10:07:51 -0800355 enum drm_vblank_seq_type type;
356 unsigned int sequence;
Tao Baod7db5942015-01-28 10:07:51 -0800357 long tval_sec;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 long tval_usec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700360};
Ben Cheng655a7c02013-10-16 16:09:24 -0700361union drm_wait_vblank {
Tao Baod7db5942015-01-28 10:07:51 -0800362 struct drm_wait_vblank_request request;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 struct drm_wait_vblank_reply reply;
Ben Cheng655a7c02013-10-16 16:09:24 -0700365};
Ben Cheng655a7c02013-10-16 16:09:24 -0700366#define _DRM_PRE_MODESET 1
367#define _DRM_POST_MODESET 2
Christopher Ferris106b3a82016-08-24 12:15:38 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369struct drm_modeset_ctl {
Tao Baod7db5942015-01-28 10:07:51 -0800370 __u32 crtc;
371 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700372};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374struct drm_agp_mode {
Tao Baod7db5942015-01-28 10:07:51 -0800375 unsigned long mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700376};
377struct drm_agp_buffer {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 unsigned long size;
380 unsigned long handle;
381 unsigned long type;
Tao Baod7db5942015-01-28 10:07:51 -0800382 unsigned long physical;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384};
385struct drm_agp_binding {
Tao Baod7db5942015-01-28 10:07:51 -0800386 unsigned long handle;
Tao Baod7db5942015-01-28 10:07:51 -0800387 unsigned long offset;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389};
390struct drm_agp_info {
Tao Baod7db5942015-01-28 10:07:51 -0800391 int agp_version_major;
Tao Baod7db5942015-01-28 10:07:51 -0800392 int agp_version_minor;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 unsigned long mode;
395 unsigned long aperture_base;
396 unsigned long aperture_size;
Tao Baod7db5942015-01-28 10:07:51 -0800397 unsigned long memory_allowed;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 unsigned long memory_used;
400 unsigned short id_vendor;
401 unsigned short id_device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700402};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404struct drm_scatter_gather {
Tao Baod7db5942015-01-28 10:07:51 -0800405 unsigned long size;
406 unsigned long handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700407};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409struct drm_set_version {
Tao Baod7db5942015-01-28 10:07:51 -0800410 int drm_di_major;
411 int drm_di_minor;
Tao Baod7db5942015-01-28 10:07:51 -0800412 int drm_dd_major;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 int drm_dd_minor;
Ben Cheng655a7c02013-10-16 16:09:24 -0700415};
Ben Cheng655a7c02013-10-16 16:09:24 -0700416struct drm_gem_close {
Tao Baod7db5942015-01-28 10:07:51 -0800417 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700420};
Ben Cheng655a7c02013-10-16 16:09:24 -0700421struct drm_gem_flink {
Tao Baod7db5942015-01-28 10:07:51 -0800422 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 __u32 name;
Ben Cheng655a7c02013-10-16 16:09:24 -0700425};
Ben Cheng655a7c02013-10-16 16:09:24 -0700426struct drm_gem_open {
Tao Baod7db5942015-01-28 10:07:51 -0800427 __u32 name;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429 __u32 handle;
430 __u64 size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700431};
Christopher Ferris38062f92014-07-09 15:33:25 -0700432#define DRM_CAP_DUMB_BUFFER 0x1
Christopher Ferris106b3a82016-08-24 12:15:38 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700434#define DRM_CAP_VBLANK_HIGH_CRTC 0x2
435#define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3
436#define DRM_CAP_DUMB_PREFER_SHADOW 0x4
Christopher Ferris38062f92014-07-09 15:33:25 -0700437#define DRM_CAP_PRIME 0x5
Christopher Ferris106b3a82016-08-24 12:15:38 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700439#define DRM_PRIME_CAP_IMPORT 0x1
440#define DRM_PRIME_CAP_EXPORT 0x2
441#define DRM_CAP_TIMESTAMP_MONOTONIC 0x6
Christopher Ferris38062f92014-07-09 15:33:25 -0700442#define DRM_CAP_ASYNC_PAGE_FLIP 0x7
Christopher Ferris106b3a82016-08-24 12:15:38 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700444#define DRM_CAP_CURSOR_WIDTH 0x8
445#define DRM_CAP_CURSOR_HEIGHT 0x9
Christopher Ferris05d08e92016-02-04 13:16:38 -0800446#define DRM_CAP_ADDFB2_MODIFIERS 0x10
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800447#define DRM_CAP_PAGE_FLIP_TARGET 0x11
Christopher Ferris106b3a82016-08-24 12:15:38 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800449struct drm_get_cap {
Tao Baod7db5942015-01-28 10:07:51 -0800450 __u64 capability;
451 __u64 value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700452};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800454#define DRM_CLIENT_CAP_STEREO_3D 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700455#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2
Christopher Ferris05d08e92016-02-04 13:16:38 -0800456#define DRM_CLIENT_CAP_ATOMIC 3
Christopher Ferris38062f92014-07-09 15:33:25 -0700457struct drm_set_client_cap {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800459 __u64 capability;
Tao Baod7db5942015-01-28 10:07:51 -0800460 __u64 value;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700461};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700462#define DRM_RDWR O_RDWR
Christopher Ferris05d08e92016-02-04 13:16:38 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800464#define DRM_CLOEXEC O_CLOEXEC
Ben Cheng655a7c02013-10-16 16:09:24 -0700465struct drm_prime_handle {
Tao Baod7db5942015-01-28 10:07:51 -0800466 __u32 handle;
Tao Baod7db5942015-01-28 10:07:51 -0800467 __u32 flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800469 __s32 fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700470};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700471#ifdef __cplusplus
472#endif
Christopher Ferris106b3a82016-08-24 12:15:38 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800474#include "drm_mode.h"
Christopher Ferris106b3a82016-08-24 12:15:38 -0700475#ifdef __cplusplus
476#endif
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700477#define DRM_IOCTL_BASE 'd'
Christopher Ferris05d08e92016-02-04 13:16:38 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800479#define DRM_IO(nr) _IO(DRM_IOCTL_BASE, nr)
Tao Baod7db5942015-01-28 10:07:51 -0800480#define DRM_IOR(nr,type) _IOR(DRM_IOCTL_BASE, nr, type)
481#define DRM_IOW(nr,type) _IOW(DRM_IOCTL_BASE, nr, type)
Tao Baod7db5942015-01-28 10:07:51 -0800482#define DRM_IOWR(nr,type) _IOWR(DRM_IOCTL_BASE, nr, type)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800484#define DRM_IOCTL_VERSION DRM_IOWR(0x00, struct drm_version)
Ben Cheng655a7c02013-10-16 16:09:24 -0700485#define DRM_IOCTL_GET_UNIQUE DRM_IOWR(0x01, struct drm_unique)
Tao Baod7db5942015-01-28 10:07:51 -0800486#define DRM_IOCTL_GET_MAGIC DRM_IOR(0x02, struct drm_auth)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700487#define DRM_IOCTL_IRQ_BUSID DRM_IOWR(0x03, struct drm_irq_busid)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800489#define DRM_IOCTL_GET_MAP DRM_IOWR(0x04, struct drm_map)
Ben Cheng655a7c02013-10-16 16:09:24 -0700490#define DRM_IOCTL_GET_CLIENT DRM_IOWR(0x05, struct drm_client)
Tao Baod7db5942015-01-28 10:07:51 -0800491#define DRM_IOCTL_GET_STATS DRM_IOR(0x06, struct drm_stats)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700492#define DRM_IOCTL_SET_VERSION DRM_IOWR(0x07, struct drm_set_version)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800494#define DRM_IOCTL_MODESET_CTL DRM_IOW(0x08, struct drm_modeset_ctl)
Tao Baod7db5942015-01-28 10:07:51 -0800495#define DRM_IOCTL_GEM_CLOSE DRM_IOW(0x09, struct drm_gem_close)
Ben Cheng655a7c02013-10-16 16:09:24 -0700496#define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700497#define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800499#define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap)
Tao Baod7db5942015-01-28 10:07:51 -0800500#define DRM_IOCTL_SET_CLIENT_CAP DRM_IOW(0x0d, struct drm_set_client_cap)
501#define DRM_IOCTL_SET_UNIQUE DRM_IOW(0x10, struct drm_unique)
Tao Baod7db5942015-01-28 10:07:51 -0800502#define DRM_IOCTL_AUTH_MAGIC DRM_IOW(0x11, struct drm_auth)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800504#define DRM_IOCTL_BLOCK DRM_IOWR(0x12, struct drm_block)
Ben Cheng655a7c02013-10-16 16:09:24 -0700505#define DRM_IOCTL_UNBLOCK DRM_IOWR(0x13, struct drm_block)
Tao Baod7db5942015-01-28 10:07:51 -0800506#define DRM_IOCTL_CONTROL DRM_IOW(0x14, struct drm_control)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700507#define DRM_IOCTL_ADD_MAP DRM_IOWR(0x15, struct drm_map)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800509#define DRM_IOCTL_ADD_BUFS DRM_IOWR(0x16, struct drm_buf_desc)
Tao Baod7db5942015-01-28 10:07:51 -0800510#define DRM_IOCTL_MARK_BUFS DRM_IOW(0x17, struct drm_buf_desc)
Ben Cheng655a7c02013-10-16 16:09:24 -0700511#define DRM_IOCTL_INFO_BUFS DRM_IOWR(0x18, struct drm_buf_info)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700512#define DRM_IOCTL_MAP_BUFS DRM_IOWR(0x19, struct drm_buf_map)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800514#define DRM_IOCTL_FREE_BUFS DRM_IOW(0x1a, struct drm_buf_free)
Tao Baod7db5942015-01-28 10:07:51 -0800515#define DRM_IOCTL_RM_MAP DRM_IOW(0x1b, struct drm_map)
516#define DRM_IOCTL_SET_SAREA_CTX DRM_IOW(0x1c, struct drm_ctx_priv_map)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700517#define DRM_IOCTL_GET_SAREA_CTX DRM_IOWR(0x1d, struct drm_ctx_priv_map)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800519#define DRM_IOCTL_SET_MASTER DRM_IO(0x1e)
Ben Cheng655a7c02013-10-16 16:09:24 -0700520#define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f)
521#define DRM_IOCTL_ADD_CTX DRM_IOWR(0x20, struct drm_ctx)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700522#define DRM_IOCTL_RM_CTX DRM_IOWR(0x21, struct drm_ctx)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800524#define DRM_IOCTL_MOD_CTX DRM_IOW(0x22, struct drm_ctx)
Ben Cheng655a7c02013-10-16 16:09:24 -0700525#define DRM_IOCTL_GET_CTX DRM_IOWR(0x23, struct drm_ctx)
Tao Baod7db5942015-01-28 10:07:51 -0800526#define DRM_IOCTL_SWITCH_CTX DRM_IOW(0x24, struct drm_ctx)
Tao Baod7db5942015-01-28 10:07:51 -0800527#define DRM_IOCTL_NEW_CTX DRM_IOW(0x25, struct drm_ctx)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800529#define DRM_IOCTL_RES_CTX DRM_IOWR(0x26, struct drm_ctx_res)
Ben Cheng655a7c02013-10-16 16:09:24 -0700530#define DRM_IOCTL_ADD_DRAW DRM_IOWR(0x27, struct drm_draw)
531#define DRM_IOCTL_RM_DRAW DRM_IOWR(0x28, struct drm_draw)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700532#define DRM_IOCTL_DMA DRM_IOWR(0x29, struct drm_dma)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800534#define DRM_IOCTL_LOCK DRM_IOW(0x2a, struct drm_lock)
Tao Baod7db5942015-01-28 10:07:51 -0800535#define DRM_IOCTL_UNLOCK DRM_IOW(0x2b, struct drm_lock)
536#define DRM_IOCTL_FINISH DRM_IOW(0x2c, struct drm_lock)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700537#define DRM_IOCTL_PRIME_HANDLE_TO_FD DRM_IOWR(0x2d, struct drm_prime_handle)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800539#define DRM_IOCTL_PRIME_FD_TO_HANDLE DRM_IOWR(0x2e, struct drm_prime_handle)
Tao Baod7db5942015-01-28 10:07:51 -0800540#define DRM_IOCTL_AGP_ACQUIRE DRM_IO(0x30)
541#define DRM_IOCTL_AGP_RELEASE DRM_IO(0x31)
Tao Baod7db5942015-01-28 10:07:51 -0800542#define DRM_IOCTL_AGP_ENABLE DRM_IOW(0x32, struct drm_agp_mode)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800544#define DRM_IOCTL_AGP_INFO DRM_IOR(0x33, struct drm_agp_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700545#define DRM_IOCTL_AGP_ALLOC DRM_IOWR(0x34, struct drm_agp_buffer)
Tao Baod7db5942015-01-28 10:07:51 -0800546#define DRM_IOCTL_AGP_FREE DRM_IOW(0x35, struct drm_agp_buffer)
Tao Baod7db5942015-01-28 10:07:51 -0800547#define DRM_IOCTL_AGP_BIND DRM_IOW(0x36, struct drm_agp_binding)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800549#define DRM_IOCTL_AGP_UNBIND DRM_IOW(0x37, struct drm_agp_binding)
Ben Cheng655a7c02013-10-16 16:09:24 -0700550#define DRM_IOCTL_SG_ALLOC DRM_IOWR(0x38, struct drm_scatter_gather)
Tao Baod7db5942015-01-28 10:07:51 -0800551#define DRM_IOCTL_SG_FREE DRM_IOW(0x39, struct drm_scatter_gather)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700552#define DRM_IOCTL_WAIT_VBLANK DRM_IOWR(0x3a, union drm_wait_vblank)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800554#define DRM_IOCTL_UPDATE_DRAW DRM_IOW(0x3f, struct drm_update_draw)
Ben Cheng655a7c02013-10-16 16:09:24 -0700555#define DRM_IOCTL_MODE_GETRESOURCES DRM_IOWR(0xA0, struct drm_mode_card_res)
556#define DRM_IOCTL_MODE_GETCRTC DRM_IOWR(0xA1, struct drm_mode_crtc)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700557#define DRM_IOCTL_MODE_SETCRTC DRM_IOWR(0xA2, struct drm_mode_crtc)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800559#define DRM_IOCTL_MODE_CURSOR DRM_IOWR(0xA3, struct drm_mode_cursor)
Ben Cheng655a7c02013-10-16 16:09:24 -0700560#define DRM_IOCTL_MODE_GETGAMMA DRM_IOWR(0xA4, struct drm_mode_crtc_lut)
561#define DRM_IOCTL_MODE_SETGAMMA DRM_IOWR(0xA5, struct drm_mode_crtc_lut)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700562#define DRM_IOCTL_MODE_GETENCODER DRM_IOWR(0xA6, struct drm_mode_get_encoder)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800564#define DRM_IOCTL_MODE_GETCONNECTOR DRM_IOWR(0xA7, struct drm_mode_get_connector)
Ben Cheng655a7c02013-10-16 16:09:24 -0700565#define DRM_IOCTL_MODE_ATTACHMODE DRM_IOWR(0xA8, struct drm_mode_mode_cmd)
566#define DRM_IOCTL_MODE_DETACHMODE DRM_IOWR(0xA9, struct drm_mode_mode_cmd)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700567#define DRM_IOCTL_MODE_GETPROPERTY DRM_IOWR(0xAA, struct drm_mode_get_property)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800569#define DRM_IOCTL_MODE_SETPROPERTY DRM_IOWR(0xAB, struct drm_mode_connector_set_property)
Ben Cheng655a7c02013-10-16 16:09:24 -0700570#define DRM_IOCTL_MODE_GETPROPBLOB DRM_IOWR(0xAC, struct drm_mode_get_blob)
571#define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700572#define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800574#define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700575#define DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip)
576#define DRM_IOCTL_MODE_DIRTYFB DRM_IOWR(0xB1, struct drm_mode_fb_dirty_cmd)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700577#define DRM_IOCTL_MODE_CREATE_DUMB DRM_IOWR(0xB2, struct drm_mode_create_dumb)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800579#define DRM_IOCTL_MODE_MAP_DUMB DRM_IOWR(0xB3, struct drm_mode_map_dumb)
Ben Cheng655a7c02013-10-16 16:09:24 -0700580#define DRM_IOCTL_MODE_DESTROY_DUMB DRM_IOWR(0xB4, struct drm_mode_destroy_dumb)
581#define DRM_IOCTL_MODE_GETPLANERESOURCES DRM_IOWR(0xB5, struct drm_mode_get_plane_res)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700582#define DRM_IOCTL_MODE_GETPLANE DRM_IOWR(0xB6, struct drm_mode_get_plane)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800584#define DRM_IOCTL_MODE_SETPLANE DRM_IOWR(0xB7, struct drm_mode_set_plane)
Ben Cheng655a7c02013-10-16 16:09:24 -0700585#define DRM_IOCTL_MODE_ADDFB2 DRM_IOWR(0xB8, struct drm_mode_fb_cmd2)
586#define DRM_IOCTL_MODE_OBJ_GETPROPERTIES DRM_IOWR(0xB9, struct drm_mode_obj_get_properties)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700587#define DRM_IOCTL_MODE_OBJ_SETPROPERTY DRM_IOWR(0xBA, struct drm_mode_obj_set_property)
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800589#define DRM_IOCTL_MODE_CURSOR2 DRM_IOWR(0xBB, struct drm_mode_cursor2)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800590#define DRM_IOCTL_MODE_ATOMIC DRM_IOWR(0xBC, struct drm_mode_atomic)
591#define DRM_IOCTL_MODE_CREATEPROPBLOB DRM_IOWR(0xBD, struct drm_mode_create_blob)
592#define DRM_IOCTL_MODE_DESTROYPROPBLOB DRM_IOWR(0xBE, struct drm_mode_destroy_blob)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800594#define DRM_COMMAND_BASE 0x40
Christopher Ferris05d08e92016-02-04 13:16:38 -0800595#define DRM_COMMAND_END 0xA0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700596struct drm_event {
Tao Baod7db5942015-01-28 10:07:51 -0800597 __u32 type;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800599 __u32 length;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800600};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700601#define DRM_EVENT_VBLANK 0x01
Christopher Ferris38062f92014-07-09 15:33:25 -0700602#define DRM_EVENT_FLIP_COMPLETE 0x02
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800604struct drm_event_vblank {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800605 struct drm_event base;
Tao Baod7db5942015-01-28 10:07:51 -0800606 __u64 user_data;
607 __u32 tv_sec;
Christopher Ferris38062f92014-07-09 15:33:25 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800609 __u32 tv_usec;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800610 __u32 sequence;
Tao Baod7db5942015-01-28 10:07:51 -0800611 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700612};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800614typedef struct drm_clip_rect drm_clip_rect_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800615typedef struct drm_drawable_info drm_drawable_info_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700616typedef struct drm_tex_region drm_tex_region_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700617typedef struct drm_hw_lock drm_hw_lock_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800619typedef struct drm_version drm_version_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800620typedef struct drm_unique drm_unique_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700621typedef struct drm_list drm_list_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700622typedef struct drm_block drm_block_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800624typedef struct drm_control drm_control_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800625typedef enum drm_map_type drm_map_type_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700626typedef enum drm_map_flags drm_map_flags_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700627typedef struct drm_ctx_priv_map drm_ctx_priv_map_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800629typedef struct drm_map drm_map_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800630typedef struct drm_client drm_client_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700631typedef enum drm_stat_type drm_stat_type_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700632typedef struct drm_stats drm_stats_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800634typedef enum drm_lock_flags drm_lock_flags_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800635typedef struct drm_lock drm_lock_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700636typedef enum drm_dma_flags drm_dma_flags_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700637typedef struct drm_buf_desc drm_buf_desc_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800639typedef struct drm_buf_info drm_buf_info_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800640typedef struct drm_buf_free drm_buf_free_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700641typedef struct drm_buf_pub drm_buf_pub_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700642typedef struct drm_buf_map drm_buf_map_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800644typedef struct drm_dma drm_dma_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800645typedef union drm_wait_vblank drm_wait_vblank_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700646typedef struct drm_agp_mode drm_agp_mode_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700647typedef enum drm_ctx_flags drm_ctx_flags_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800649typedef struct drm_ctx drm_ctx_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800650typedef struct drm_ctx_res drm_ctx_res_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700651typedef struct drm_draw drm_draw_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700652typedef struct drm_update_draw drm_update_draw_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800654typedef struct drm_auth drm_auth_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800655typedef struct drm_irq_busid drm_irq_busid_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700656typedef enum drm_vblank_seq_type drm_vblank_seq_type_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700657typedef struct drm_agp_buffer drm_agp_buffer_t;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800659typedef struct drm_agp_binding drm_agp_binding_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800660typedef struct drm_agp_info drm_agp_info_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700661typedef struct drm_scatter_gather drm_scatter_gather_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700662typedef struct drm_set_version drm_set_version_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800664#ifdef __cplusplus
Christopher Ferris106b3a82016-08-24 12:15:38 -0700665#endif
666#endif