blob: 3274ecf4eb3e400f55d0d4c3779dfd8033f1cdfd [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 _UAPI_I915_DRM_H_
20#define _UAPI_I915_DRM_H_
21#include <drm/drm.h>
Christopher Ferris38062f92014-07-09 15:33:25 -070022#define I915_L3_PARITY_UEVENT "L3_PARITY_ERROR"
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024#define I915_ERROR_UEVENT "ERROR"
25#define I915_RESET_UEVENT "RESET"
26#define I915_NR_TEX_REGIONS 255
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define I915_LOG_MIN_TEX_REGION_SIZE 14
Christopher Ferris38062f92014-07-09 15:33:25 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029typedef struct _drm_i915_init {
30 enum {
31 I915_INIT_DMA = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -070032 I915_CLEANUP_DMA = 0x02,
Christopher Ferris38062f92014-07-09 15:33:25 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034 I915_RESUME_DMA = 0x03
35 } func;
36 unsigned int mmio_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070037 int sarea_priv_offset;
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039 unsigned int ring_start;
40 unsigned int ring_end;
41 unsigned int ring_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070042 unsigned int front_offset;
Christopher Ferris38062f92014-07-09 15:33:25 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044 unsigned int back_offset;
45 unsigned int depth_offset;
46 unsigned int w;
Ben Cheng655a7c02013-10-16 16:09:24 -070047 unsigned int h;
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049 unsigned int pitch;
50 unsigned int pitch_bits;
51 unsigned int back_pitch;
Ben Cheng655a7c02013-10-16 16:09:24 -070052 unsigned int depth_pitch;
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054 unsigned int cpp;
55 unsigned int chipset;
56} drm_i915_init_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070057typedef struct _drm_i915_sarea {
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070059 struct drm_tex_region texList[I915_NR_TEX_REGIONS + 1];
60 int last_upload;
61 int last_enqueue;
Ben Cheng655a7c02013-10-16 16:09:24 -070062 int last_dispatch;
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064 int ctxOwner;
65 int texAge;
66 int pf_enabled;
Ben Cheng655a7c02013-10-16 16:09:24 -070067 int pf_active;
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 int pf_current_page;
70 int perf_boxes;
71 int width, height;
Ben Cheng655a7c02013-10-16 16:09:24 -070072 drm_handle_t front_handle;
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 int front_offset;
75 int front_size;
76 drm_handle_t back_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -070077 int back_offset;
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 int back_size;
80 drm_handle_t depth_handle;
81 int depth_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070082 int depth_size;
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 -070084 drm_handle_t tex_handle;
85 int tex_offset;
86 int tex_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070087 int log_tex_granularity;
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 int pitch;
90 int rotation;
91 int rotated_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070092 int rotated_size;
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 int rotated_pitch;
95 int virtualX, virtualY;
96 unsigned int front_tiled;
Ben Cheng655a7c02013-10-16 16:09:24 -070097 unsigned int back_tiled;
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 unsigned int depth_tiled;
100 unsigned int rotated_tiled;
101 unsigned int rotated2_tiled;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102 int pipeA_x;
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 int pipeA_y;
105 int pipeA_w;
106 int pipeA_h;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107 int pipeB_x;
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 int pipeB_y;
110 int pipeB_w;
111 int pipeB_h;
Ben Cheng655a7c02013-10-16 16:09:24 -0700112 drm_handle_t unused_handle;
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 unused1, unused2, unused3;
115 __u32 front_bo_handle;
116 __u32 back_bo_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700117 __u32 unused_bo_handle;
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 depth_bo_handle;
120} drm_i915_sarea_t;
121#define planeA_x pipeA_x
Ben Cheng655a7c02013-10-16 16:09:24 -0700122#define planeA_y pipeA_y
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 planeA_w pipeA_w
125#define planeA_h pipeA_h
126#define planeB_x pipeB_x
Ben Cheng655a7c02013-10-16 16:09:24 -0700127#define planeB_y pipeB_y
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#define planeB_w pipeB_w
130#define planeB_h pipeB_h
131#define I915_BOX_RING_EMPTY 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -0700132#define I915_BOX_FLIP 0x2
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#define I915_BOX_WAIT 0x4
135#define I915_BOX_TEXTURE_LOAD 0x8
136#define I915_BOX_LOST_CONTEXT 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define DRM_I915_INIT 0x00
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#define DRM_I915_FLUSH 0x01
140#define DRM_I915_FLIP 0x02
141#define DRM_I915_BATCHBUFFER 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define DRM_I915_IRQ_EMIT 0x04
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#define DRM_I915_IRQ_WAIT 0x05
145#define DRM_I915_GETPARAM 0x06
146#define DRM_I915_SETPARAM 0x07
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define DRM_I915_ALLOC 0x08
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 -0700149#define DRM_I915_FREE 0x09
150#define DRM_I915_INIT_HEAP 0x0a
151#define DRM_I915_CMDBUFFER 0x0b
Ben Cheng655a7c02013-10-16 16:09:24 -0700152#define DRM_I915_DESTROY_HEAP 0x0c
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_I915_SET_VBLANK_PIPE 0x0d
155#define DRM_I915_GET_VBLANK_PIPE 0x0e
156#define DRM_I915_VBLANK_SWAP 0x0f
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define DRM_I915_HWS_ADDR 0x11
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_I915_GEM_INIT 0x13
160#define DRM_I915_GEM_EXECBUFFER 0x14
161#define DRM_I915_GEM_PIN 0x15
Ben Cheng655a7c02013-10-16 16:09:24 -0700162#define DRM_I915_GEM_UNPIN 0x16
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#define DRM_I915_GEM_BUSY 0x17
165#define DRM_I915_GEM_THROTTLE 0x18
166#define DRM_I915_GEM_ENTERVT 0x19
Ben Cheng655a7c02013-10-16 16:09:24 -0700167#define DRM_I915_GEM_LEAVEVT 0x1a
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#define DRM_I915_GEM_CREATE 0x1b
170#define DRM_I915_GEM_PREAD 0x1c
171#define DRM_I915_GEM_PWRITE 0x1d
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define DRM_I915_GEM_MMAP 0x1e
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_I915_GEM_SET_DOMAIN 0x1f
175#define DRM_I915_GEM_SW_FINISH 0x20
176#define DRM_I915_GEM_SET_TILING 0x21
Ben Cheng655a7c02013-10-16 16:09:24 -0700177#define DRM_I915_GEM_GET_TILING 0x22
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_I915_GEM_GET_APERTURE 0x23
180#define DRM_I915_GEM_MMAP_GTT 0x24
181#define DRM_I915_GET_PIPE_FROM_CRTC_ID 0x25
Ben Cheng655a7c02013-10-16 16:09:24 -0700182#define DRM_I915_GEM_MADVISE 0x26
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_I915_OVERLAY_PUT_IMAGE 0x27
185#define DRM_I915_OVERLAY_ATTRS 0x28
186#define DRM_I915_GEM_EXECBUFFER2 0x29
Ben Cheng655a7c02013-10-16 16:09:24 -0700187#define DRM_I915_GET_SPRITE_COLORKEY 0x2a
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_I915_SET_SPRITE_COLORKEY 0x2b
190#define DRM_I915_GEM_WAIT 0x2c
191#define DRM_I915_GEM_CONTEXT_CREATE 0x2d
Ben Cheng655a7c02013-10-16 16:09:24 -0700192#define DRM_I915_GEM_CONTEXT_DESTROY 0x2e
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_I915_GEM_SET_CACHING 0x2f
195#define DRM_I915_GEM_GET_CACHING 0x30
196#define DRM_I915_REG_READ 0x31
Christopher Ferris38062f92014-07-09 15:33:25 -0700197#define DRM_I915_GET_RESET_STATS 0x32
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700199#define DRM_I915_GEM_USERPTR 0x33
Ben Cheng655a7c02013-10-16 16:09:24 -0700200#define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t)
201#define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH)
202#define DRM_IOCTL_I915_FLIP DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLIP)
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700204#define DRM_IOCTL_I915_BATCHBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_BATCHBUFFER, drm_i915_batchbuffer_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700205#define DRM_IOCTL_I915_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_IRQ_EMIT, drm_i915_irq_emit_t)
206#define DRM_IOCTL_I915_IRQ_WAIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_IRQ_WAIT, drm_i915_irq_wait_t)
207#define DRM_IOCTL_I915_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GETPARAM, drm_i915_getparam_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700209#define DRM_IOCTL_I915_SETPARAM DRM_IOW( DRM_COMMAND_BASE + DRM_I915_SETPARAM, drm_i915_setparam_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700210#define DRM_IOCTL_I915_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_ALLOC, drm_i915_mem_alloc_t)
211#define DRM_IOCTL_I915_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_FREE, drm_i915_mem_free_t)
212#define DRM_IOCTL_I915_INIT_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT_HEAP, drm_i915_mem_init_heap_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700214#define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700215#define DRM_IOCTL_I915_DESTROY_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_DESTROY_HEAP, drm_i915_mem_destroy_heap_t)
216#define DRM_IOCTL_I915_SET_VBLANK_PIPE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_SET_VBLANK_PIPE, drm_i915_vblank_pipe_t)
217#define DRM_IOCTL_I915_GET_VBLANK_PIPE DRM_IOR( DRM_COMMAND_BASE + DRM_I915_GET_VBLANK_PIPE, drm_i915_vblank_pipe_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700219#define DRM_IOCTL_I915_VBLANK_SWAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_VBLANK_SWAP, drm_i915_vblank_swap_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700220#define DRM_IOCTL_I915_HWS_ADDR DRM_IOW(DRM_COMMAND_BASE + DRM_I915_HWS_ADDR, struct drm_i915_gem_init)
221#define DRM_IOCTL_I915_GEM_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_INIT, struct drm_i915_gem_init)
222#define DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER, struct drm_i915_gem_execbuffer)
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700224#define DRM_IOCTL_I915_GEM_EXECBUFFER2 DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700225#define DRM_IOCTL_I915_GEM_PIN DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_PIN, struct drm_i915_gem_pin)
226#define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin)
227#define DRM_IOCTL_I915_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_BUSY, struct drm_i915_gem_busy)
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700229#define DRM_IOCTL_I915_GEM_SET_CACHING DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_SET_CACHING, struct drm_i915_gem_caching)
Ben Cheng655a7c02013-10-16 16:09:24 -0700230#define DRM_IOCTL_I915_GEM_GET_CACHING DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_GET_CACHING, struct drm_i915_gem_caching)
231#define DRM_IOCTL_I915_GEM_THROTTLE DRM_IO ( DRM_COMMAND_BASE + DRM_I915_GEM_THROTTLE)
232#define DRM_IOCTL_I915_GEM_ENTERVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_ENTERVT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700234#define DRM_IOCTL_I915_GEM_LEAVEVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_LEAVEVT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700235#define DRM_IOCTL_I915_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CREATE, struct drm_i915_gem_create)
236#define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)
237#define DRM_IOCTL_I915_GEM_PWRITE DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PWRITE, struct drm_i915_gem_pwrite)
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700239#define DRM_IOCTL_I915_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP, struct drm_i915_gem_mmap)
Ben Cheng655a7c02013-10-16 16:09:24 -0700240#define DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP_GTT, struct drm_i915_gem_mmap_gtt)
241#define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
242#define DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_SW_FINISH, struct drm_i915_gem_sw_finish)
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700244#define DRM_IOCTL_I915_GEM_SET_TILING DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_SET_TILING, struct drm_i915_gem_set_tiling)
Ben Cheng655a7c02013-10-16 16:09:24 -0700245#define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling)
246#define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR (DRM_COMMAND_BASE + DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture)
247#define DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GET_PIPE_FROM_CRTC_ID, struct drm_i915_get_pipe_from_crtc_id)
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700249#define DRM_IOCTL_I915_GEM_MADVISE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MADVISE, struct drm_i915_gem_madvise)
Ben Cheng655a7c02013-10-16 16:09:24 -0700250#define DRM_IOCTL_I915_OVERLAY_PUT_IMAGE DRM_IOW(DRM_COMMAND_BASE + DRM_I915_OVERLAY_PUT_IMAGE, struct drm_intel_overlay_put_image)
251#define DRM_IOCTL_I915_OVERLAY_ATTRS DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_OVERLAY_ATTRS, struct drm_intel_overlay_attrs)
252#define DRM_IOCTL_I915_SET_SPRITE_COLORKEY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_SET_SPRITE_COLORKEY, struct drm_intel_sprite_colorkey)
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700254#define DRM_IOCTL_I915_GET_SPRITE_COLORKEY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_SET_SPRITE_COLORKEY, struct drm_intel_sprite_colorkey)
Ben Cheng655a7c02013-10-16 16:09:24 -0700255#define DRM_IOCTL_I915_GEM_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_WAIT, struct drm_i915_gem_wait)
256#define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create)
257#define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy)
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700259#define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read)
Christopher Ferris38062f92014-07-09 15:33:25 -0700260#define DRM_IOCTL_I915_GET_RESET_STATS DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GET_RESET_STATS, struct drm_i915_reset_stats)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700261#define DRM_IOCTL_I915_GEM_USERPTR DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_USERPTR, struct drm_i915_gem_userptr)
Ben Cheng655a7c02013-10-16 16:09:24 -0700262typedef struct drm_i915_batchbuffer {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264 int start;
265 int used;
Christopher Ferris38062f92014-07-09 15:33:25 -0700266 int DR1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700267 int DR4;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700269 int num_cliprects;
270 struct drm_clip_rect __user *cliprects;
Christopher Ferris38062f92014-07-09 15:33:25 -0700271} drm_i915_batchbuffer_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700272typedef struct _drm_i915_cmdbuffer {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274 char __user *buf;
275 int sz;
Christopher Ferris38062f92014-07-09 15:33:25 -0700276 int DR1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700277 int DR4;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700279 int num_cliprects;
280 struct drm_clip_rect __user *cliprects;
Christopher Ferris38062f92014-07-09 15:33:25 -0700281} drm_i915_cmdbuffer_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700282typedef struct drm_i915_irq_emit {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700284 int __user *irq_seq;
285} drm_i915_irq_emit_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700286typedef struct drm_i915_irq_wait {
Ben Cheng655a7c02013-10-16 16:09:24 -0700287 int irq_seq;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700289} drm_i915_irq_wait_t;
290#define I915_PARAM_IRQ_ACTIVE 1
Christopher Ferris38062f92014-07-09 15:33:25 -0700291#define I915_PARAM_ALLOW_BATCHBUFFER 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700292#define I915_PARAM_LAST_DISPATCH 3
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700294#define I915_PARAM_CHIPSET_ID 4
295#define I915_PARAM_HAS_GEM 5
Christopher Ferris38062f92014-07-09 15:33:25 -0700296#define I915_PARAM_NUM_FENCES_AVAIL 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700297#define I915_PARAM_HAS_OVERLAY 7
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299#define I915_PARAM_HAS_PAGEFLIPPING 8
300#define I915_PARAM_HAS_EXECBUF2 9
Christopher Ferris38062f92014-07-09 15:33:25 -0700301#define I915_PARAM_HAS_BSD 10
Ben Cheng655a7c02013-10-16 16:09:24 -0700302#define I915_PARAM_HAS_BLT 11
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304#define I915_PARAM_HAS_RELAXED_FENCING 12
305#define I915_PARAM_HAS_COHERENT_RINGS 13
Christopher Ferris38062f92014-07-09 15:33:25 -0700306#define I915_PARAM_HAS_EXEC_CONSTANTS 14
Ben Cheng655a7c02013-10-16 16:09:24 -0700307#define I915_PARAM_HAS_RELAXED_DELTA 15
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309#define I915_PARAM_HAS_GEN7_SOL_RESET 16
310#define I915_PARAM_HAS_LLC 17
Christopher Ferris38062f92014-07-09 15:33:25 -0700311#define I915_PARAM_HAS_ALIASING_PPGTT 18
Ben Cheng655a7c02013-10-16 16:09:24 -0700312#define I915_PARAM_HAS_WAIT_TIMEOUT 19
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314#define I915_PARAM_HAS_SEMAPHORES 20
315#define I915_PARAM_HAS_PRIME_VMAP_FLUSH 21
Christopher Ferris38062f92014-07-09 15:33:25 -0700316#define I915_PARAM_HAS_VEBOX 22
Ben Cheng655a7c02013-10-16 16:09:24 -0700317#define I915_PARAM_HAS_SECURE_BATCHES 23
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319#define I915_PARAM_HAS_PINNED_BATCHES 24
320#define I915_PARAM_HAS_EXEC_NO_RELOC 25
Christopher Ferris38062f92014-07-09 15:33:25 -0700321#define I915_PARAM_HAS_EXEC_HANDLE_LUT 26
322#define I915_PARAM_HAS_WT 27
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324#define I915_PARAM_CMD_PARSER_VERSION 28
Ben Cheng655a7c02013-10-16 16:09:24 -0700325typedef struct drm_i915_getparam {
326 int param;
327 int __user *value;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329} drm_i915_getparam_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700330#define I915_SETPARAM_USE_MI_BATCHBUFFER_START 1
331#define I915_SETPARAM_TEX_LRU_LOG_GRANULARITY 2
332#define I915_SETPARAM_ALLOW_BATCHBUFFER 3
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700334#define I915_SETPARAM_NUM_USED_FENCES 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700335typedef struct drm_i915_setparam {
336 int param;
337 int value;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700339} drm_i915_setparam_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700340#define I915_MEM_REGION_AGP 1
341typedef struct drm_i915_mem_alloc {
342 int region;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344 int alignment;
Ben Cheng655a7c02013-10-16 16:09:24 -0700345 int size;
346 int __user *region_offset;
347} drm_i915_mem_alloc_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349typedef struct drm_i915_mem_free {
Ben Cheng655a7c02013-10-16 16:09:24 -0700350 int region;
351 int region_offset;
352} drm_i915_mem_free_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354typedef struct drm_i915_mem_init_heap {
Ben Cheng655a7c02013-10-16 16:09:24 -0700355 int region;
356 int size;
357 int start;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700359} drm_i915_mem_init_heap_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700360typedef struct drm_i915_mem_destroy_heap {
361 int region;
362} drm_i915_mem_destroy_heap_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700364#define DRM_I915_VBLANK_PIPE_A 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700365#define DRM_I915_VBLANK_PIPE_B 2
366typedef struct drm_i915_vblank_pipe {
367 int pipe;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369} drm_i915_vblank_pipe_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700370typedef struct drm_i915_vblank_swap {
371 drm_drawable_t drawable;
372 enum drm_vblank_seq_type seqtype;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374 unsigned int sequence;
Ben Cheng655a7c02013-10-16 16:09:24 -0700375} drm_i915_vblank_swap_t;
376typedef struct drm_i915_hws_addr {
377 __u64 addr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379} drm_i915_hws_addr_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700380struct drm_i915_gem_init {
381 __u64 gtt_start;
382 __u64 gtt_end;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384};
Ben Cheng655a7c02013-10-16 16:09:24 -0700385struct drm_i915_gem_create {
386 __u64 size;
387 __u32 handle;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700390};
391struct drm_i915_gem_pread {
392 __u32 handle;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700394 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700395 __u64 offset;
396 __u64 size;
397 __u64 data_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399};
Ben Cheng655a7c02013-10-16 16:09:24 -0700400struct drm_i915_gem_pwrite {
401 __u32 handle;
402 __u32 pad;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404 __u64 offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700405 __u64 size;
406 __u64 data_ptr;
407};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409struct drm_i915_gem_mmap {
Ben Cheng655a7c02013-10-16 16:09:24 -0700410 __u32 handle;
411 __u32 pad;
412 __u64 offset;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414 __u64 size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700415 __u64 addr_ptr;
416};
417struct drm_i915_gem_mmap_gtt {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700420 __u32 pad;
421 __u64 offset;
422};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700424struct drm_i915_gem_set_domain {
Ben Cheng655a7c02013-10-16 16:09:24 -0700425 __u32 handle;
426 __u32 read_domains;
427 __u32 write_domain;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429};
Ben Cheng655a7c02013-10-16 16:09:24 -0700430struct drm_i915_gem_sw_finish {
431 __u32 handle;
432};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434struct drm_i915_gem_relocation_entry {
Ben Cheng655a7c02013-10-16 16:09:24 -0700435 __u32 target_handle;
436 __u32 delta;
437 __u64 offset;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700439 __u64 presumed_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700440 __u32 read_domains;
441 __u32 write_domain;
442};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700444#define I915_GEM_DOMAIN_CPU 0x00000001
Ben Cheng655a7c02013-10-16 16:09:24 -0700445#define I915_GEM_DOMAIN_RENDER 0x00000002
446#define I915_GEM_DOMAIN_SAMPLER 0x00000004
447#define I915_GEM_DOMAIN_COMMAND 0x00000008
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449#define I915_GEM_DOMAIN_INSTRUCTION 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700450#define I915_GEM_DOMAIN_VERTEX 0x00000020
451#define I915_GEM_DOMAIN_GTT 0x00000040
452struct drm_i915_gem_exec_object {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700455 __u32 relocation_count;
456 __u64 relocs_ptr;
457 __u64 alignment;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700459 __u64 offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700460};
461struct drm_i915_gem_execbuffer {
462 __u64 buffers_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700464 __u32 buffer_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700465 __u32 batch_start_offset;
466 __u32 batch_len;
467 __u32 DR1;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700469 __u32 DR4;
Ben Cheng655a7c02013-10-16 16:09:24 -0700470 __u32 num_cliprects;
471 __u64 cliprects_ptr;
472};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700474struct drm_i915_gem_exec_object2 {
Ben Cheng655a7c02013-10-16 16:09:24 -0700475 __u32 handle;
476 __u32 relocation_count;
477 __u64 relocs_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700479 __u64 alignment;
Ben Cheng655a7c02013-10-16 16:09:24 -0700480 __u64 offset;
481#define EXEC_OBJECT_NEEDS_FENCE (1<<0)
482#define EXEC_OBJECT_NEEDS_GTT (1<<1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700484#define EXEC_OBJECT_WRITE (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700485#define __EXEC_OBJECT_UNKNOWN_FLAGS -(EXEC_OBJECT_WRITE<<1)
486 __u64 flags;
487 __u64 rsvd1;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700489 __u64 rsvd2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700490};
491struct drm_i915_gem_execbuffer2 {
492 __u64 buffers_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700494 __u32 buffer_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700495 __u32 batch_start_offset;
496 __u32 batch_len;
497 __u32 DR1;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700499 __u32 DR4;
Ben Cheng655a7c02013-10-16 16:09:24 -0700500 __u32 num_cliprects;
501 __u64 cliprects_ptr;
502#define I915_EXEC_RING_MASK (7<<0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700504#define I915_EXEC_DEFAULT (0<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700505#define I915_EXEC_RENDER (1<<0)
506#define I915_EXEC_BSD (2<<0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700507#define I915_EXEC_BLT (3<<0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700509#define I915_EXEC_VEBOX (4<<0)
510#define I915_EXEC_CONSTANTS_MASK (3<<6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700511#define I915_EXEC_CONSTANTS_REL_GENERAL (0<<6)
512#define I915_EXEC_CONSTANTS_ABSOLUTE (1<<6)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700514#define I915_EXEC_CONSTANTS_REL_SURFACE (2<<6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700515 __u64 flags;
516 __u64 rsvd1;
517 __u64 rsvd2;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519};
Ben Cheng655a7c02013-10-16 16:09:24 -0700520#define I915_EXEC_GEN7_SOL_RESET (1<<8)
521#define I915_EXEC_SECURE (1<<9)
522#define I915_EXEC_IS_PINNED (1<<10)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700524#define I915_EXEC_NO_RELOC (1<<11)
Ben Cheng655a7c02013-10-16 16:09:24 -0700525#define I915_EXEC_HANDLE_LUT (1<<12)
526#define __I915_EXEC_UNKNOWN_FLAGS -(I915_EXEC_HANDLE_LUT<<1)
527#define I915_EXEC_CONTEXT_ID_MASK (0xffffffff)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700529#define i915_execbuffer2_set_context_id(eb2, context) (eb2).rsvd1 = context & I915_EXEC_CONTEXT_ID_MASK
Ben Cheng655a7c02013-10-16 16:09:24 -0700530#define i915_execbuffer2_get_context_id(eb2) ((eb2).rsvd1 & I915_EXEC_CONTEXT_ID_MASK)
531struct drm_i915_gem_pin {
532 __u32 handle;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700534 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700535 __u64 alignment;
536 __u64 offset;
537};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700539struct drm_i915_gem_unpin {
Ben Cheng655a7c02013-10-16 16:09:24 -0700540 __u32 handle;
541 __u32 pad;
542};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700544struct drm_i915_gem_busy {
Ben Cheng655a7c02013-10-16 16:09:24 -0700545 __u32 handle;
546 __u32 busy;
547};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700549#define I915_CACHING_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700550#define I915_CACHING_CACHED 1
Christopher Ferris38062f92014-07-09 15:33:25 -0700551#define I915_CACHING_DISPLAY 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700552struct drm_i915_gem_caching {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700554 __u32 handle;
555 __u32 caching;
Ben Cheng655a7c02013-10-16 16:09:24 -0700556};
557#define I915_TILING_NONE 0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700559#define I915_TILING_X 1
560#define I915_TILING_Y 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700561#define I915_BIT_6_SWIZZLE_NONE 0
562#define I915_BIT_6_SWIZZLE_9 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700564#define I915_BIT_6_SWIZZLE_9_10 2
565#define I915_BIT_6_SWIZZLE_9_11 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700566#define I915_BIT_6_SWIZZLE_9_10_11 4
567#define I915_BIT_6_SWIZZLE_UNKNOWN 5
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700569#define I915_BIT_6_SWIZZLE_9_17 6
570#define I915_BIT_6_SWIZZLE_9_10_17 7
Ben Cheng655a7c02013-10-16 16:09:24 -0700571struct drm_i915_gem_set_tiling {
572 __u32 handle;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700574 __u32 tiling_mode;
575 __u32 stride;
Ben Cheng655a7c02013-10-16 16:09:24 -0700576 __u32 swizzle_mode;
577};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700579struct drm_i915_gem_get_tiling {
580 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700581 __u32 tiling_mode;
582 __u32 swizzle_mode;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700584};
585struct drm_i915_gem_get_aperture {
Ben Cheng655a7c02013-10-16 16:09:24 -0700586 __u64 aper_size;
587 __u64 aper_available_size;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700589};
590struct drm_i915_get_pipe_from_crtc_id {
Ben Cheng655a7c02013-10-16 16:09:24 -0700591 __u32 crtc_id;
592 __u32 pipe;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700594};
595#define I915_MADV_WILLNEED 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700596#define I915_MADV_DONTNEED 1
597#define __I915_MADV_PURGED 2
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700599struct drm_i915_gem_madvise {
600 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700601 __u32 madv;
602 __u32 retained;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700604};
605#define I915_OVERLAY_TYPE_MASK 0xff
Ben Cheng655a7c02013-10-16 16:09:24 -0700606#define I915_OVERLAY_YUV_PLANAR 0x01
607#define I915_OVERLAY_YUV_PACKED 0x02
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700609#define I915_OVERLAY_RGB 0x03
610#define I915_OVERLAY_DEPTH_MASK 0xff00
Ben Cheng655a7c02013-10-16 16:09:24 -0700611#define I915_OVERLAY_RGB24 0x1000
612#define I915_OVERLAY_RGB16 0x2000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700614#define I915_OVERLAY_RGB15 0x3000
615#define I915_OVERLAY_YUV422 0x0100
Ben Cheng655a7c02013-10-16 16:09:24 -0700616#define I915_OVERLAY_YUV411 0x0200
617#define I915_OVERLAY_YUV420 0x0300
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700619#define I915_OVERLAY_YUV410 0x0400
620#define I915_OVERLAY_SWAP_MASK 0xff0000
Ben Cheng655a7c02013-10-16 16:09:24 -0700621#define I915_OVERLAY_NO_SWAP 0x000000
622#define I915_OVERLAY_UV_SWAP 0x010000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700624#define I915_OVERLAY_Y_SWAP 0x020000
625#define I915_OVERLAY_Y_AND_UV_SWAP 0x030000
Ben Cheng655a7c02013-10-16 16:09:24 -0700626#define I915_OVERLAY_FLAGS_MASK 0xff000000
627#define I915_OVERLAY_ENABLE 0x01000000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700629struct drm_intel_overlay_put_image {
630 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700631 __u32 bo_handle;
632 __u16 stride_Y;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700634 __u16 stride_UV;
635 __u32 offset_Y;
Ben Cheng655a7c02013-10-16 16:09:24 -0700636 __u32 offset_U;
637 __u32 offset_V;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700639 __u16 src_width;
640 __u16 src_height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700641 __u16 src_scan_width;
642 __u16 src_scan_height;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700644 __u32 crtc_id;
645 __u16 dst_x;
Ben Cheng655a7c02013-10-16 16:09:24 -0700646 __u16 dst_y;
647 __u16 dst_width;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700649 __u16 dst_height;
650};
Ben Cheng655a7c02013-10-16 16:09:24 -0700651#define I915_OVERLAY_UPDATE_ATTRS (1<<0)
652#define I915_OVERLAY_UPDATE_GAMMA (1<<1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700654struct drm_intel_overlay_attrs {
655 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700656 __u32 color_key;
657 __s32 brightness;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700659 __u32 contrast;
660 __u32 saturation;
Ben Cheng655a7c02013-10-16 16:09:24 -0700661 __u32 gamma0;
662 __u32 gamma1;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700664 __u32 gamma2;
665 __u32 gamma3;
Ben Cheng655a7c02013-10-16 16:09:24 -0700666 __u32 gamma4;
667 __u32 gamma5;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700669};
670#define I915_SET_COLORKEY_NONE (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700671#define I915_SET_COLORKEY_DESTINATION (1<<1)
672#define I915_SET_COLORKEY_SOURCE (1<<2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700674struct drm_intel_sprite_colorkey {
675 __u32 plane_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700676 __u32 min_value;
677 __u32 channel_mask;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700679 __u32 max_value;
680 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700681};
682struct drm_i915_gem_wait {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700684 __u32 bo_handle;
685 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700686 __s64 timeout_ns;
687};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700689struct drm_i915_gem_context_create {
690 __u32 ctx_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700691 __u32 pad;
692};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700694struct drm_i915_gem_context_destroy {
695 __u32 ctx_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700696 __u32 pad;
697};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700699struct drm_i915_reg_read {
700 __u64 offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700701 __u64 val;
Ben Cheng655a7c02013-10-16 16:09:24 -0700702};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700704struct drm_i915_reset_stats {
705 __u32 ctx_id;
706 __u32 flags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700707 __u32 reset_count;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700709 __u32 batch_active;
710 __u32 batch_pending;
711 __u32 pad;
Christopher Ferris38062f92014-07-09 15:33:25 -0700712};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
714struct drm_i915_gem_userptr {
715 __u64 user_ptr;
716 __u64 user_size;
717 __u32 flags;
718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
719#define I915_USERPTR_READ_ONLY 0x1
720#define I915_USERPTR_UNSYNCHRONIZED 0x80000000
721 __u32 handle;
722};
723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700724#endif