blob: 41abc305ea9b2d431dc6ed417cd017b8fdda6f46 [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_
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include "drm.h"
22#ifdef __cplusplus
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#endif
25#define I915_L3_PARITY_UEVENT "L3_PARITY_ERROR"
Christopher Ferris38062f92014-07-09 15:33:25 -070026#define I915_ERROR_UEVENT "ERROR"
27#define I915_RESET_UEVENT "RESET"
Christopher Ferris106b3a82016-08-24 12:15:38 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070029#define I915_NR_TEX_REGIONS 255
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define I915_LOG_MIN_TEX_REGION_SIZE 14
31typedef struct _drm_i915_init {
Tao Baod7db5942015-01-28 10:07:51 -080032 enum {
Christopher Ferris106b3a82016-08-24 12:15:38 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 I915_INIT_DMA = 0x01,
35 I915_CLEANUP_DMA = 0x02,
Tao Baod7db5942015-01-28 10:07:51 -080036 I915_RESUME_DMA = 0x03
37 } func;
Christopher Ferris106b3a82016-08-24 12:15:38 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned int mmio_offset;
40 int sarea_priv_offset;
Tao Baod7db5942015-01-28 10:07:51 -080041 unsigned int ring_start;
42 unsigned int ring_end;
Christopher Ferris106b3a82016-08-24 12:15:38 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 unsigned int ring_size;
45 unsigned int front_offset;
Tao Baod7db5942015-01-28 10:07:51 -080046 unsigned int back_offset;
47 unsigned int depth_offset;
Christopher Ferris106b3a82016-08-24 12:15:38 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 unsigned int w;
50 unsigned int h;
Tao Baod7db5942015-01-28 10:07:51 -080051 unsigned int pitch;
52 unsigned int pitch_bits;
Christopher Ferris106b3a82016-08-24 12:15:38 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 unsigned int back_pitch;
55 unsigned int depth_pitch;
Tao Baod7db5942015-01-28 10:07:51 -080056 unsigned int cpp;
57 unsigned int chipset;
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 -070059} drm_i915_init_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070060typedef struct _drm_i915_sarea {
Tao Baod7db5942015-01-28 10:07:51 -080061 struct drm_tex_region texList[I915_NR_TEX_REGIONS + 1];
62 int last_upload;
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 int last_enqueue;
65 int last_dispatch;
Tao Baod7db5942015-01-28 10:07:51 -080066 int ctxOwner;
67 int texAge;
Christopher Ferris106b3a82016-08-24 12:15:38 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 int pf_enabled;
70 int pf_active;
Tao Baod7db5942015-01-28 10:07:51 -080071 int pf_current_page;
72 int perf_boxes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 int width, height;
75 drm_handle_t front_handle;
Tao Baod7db5942015-01-28 10:07:51 -080076 int front_offset;
77 int front_size;
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 drm_handle_t back_handle;
80 int back_offset;
Tao Baod7db5942015-01-28 10:07:51 -080081 int back_size;
82 drm_handle_t depth_handle;
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 int depth_offset;
85 int depth_size;
Tao Baod7db5942015-01-28 10:07:51 -080086 drm_handle_t tex_handle;
87 int tex_offset;
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 tex_size;
90 int log_tex_granularity;
Tao Baod7db5942015-01-28 10:07:51 -080091 int pitch;
92 int rotation;
Christopher Ferris106b3a82016-08-24 12:15:38 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 int rotated_offset;
95 int rotated_size;
Tao Baod7db5942015-01-28 10:07:51 -080096 int rotated_pitch;
97 int virtualX, virtualY;
Christopher Ferris106b3a82016-08-24 12:15:38 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 unsigned int front_tiled;
100 unsigned int back_tiled;
Tao Baod7db5942015-01-28 10:07:51 -0800101 unsigned int depth_tiled;
102 unsigned int rotated_tiled;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 unsigned int rotated2_tiled;
105 int pipeA_x;
Tao Baod7db5942015-01-28 10:07:51 -0800106 int pipeA_y;
107 int pipeA_w;
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 int pipeA_h;
110 int pipeB_x;
Tao Baod7db5942015-01-28 10:07:51 -0800111 int pipeB_y;
112 int pipeB_w;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 int pipeB_h;
115 drm_handle_t unused_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800116 __u32 unused1, unused2, unused3;
117 __u32 front_bo_handle;
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 __u32 back_bo_handle;
120 __u32 unused_bo_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800121 __u32 depth_bo_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700122} drm_i915_sarea_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124#define planeA_x pipeA_x
Ben Cheng655a7c02013-10-16 16:09:24 -0700125#define planeA_y pipeA_y
126#define planeA_w pipeA_w
127#define planeA_h pipeA_h
Christopher Ferris106b3a82016-08-24 12:15:38 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129#define planeB_x pipeB_x
Ben Cheng655a7c02013-10-16 16:09:24 -0700130#define planeB_y pipeB_y
131#define planeB_w pipeB_w
132#define planeB_h pipeB_h
Christopher Ferris106b3a82016-08-24 12:15:38 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134#define I915_BOX_RING_EMPTY 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -0700135#define I915_BOX_FLIP 0x2
136#define I915_BOX_WAIT 0x4
137#define I915_BOX_TEXTURE_LOAD 0x8
Christopher Ferris106b3a82016-08-24 12:15:38 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139#define I915_BOX_LOST_CONTEXT 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -0700140#define DRM_I915_INIT 0x00
141#define DRM_I915_FLUSH 0x01
142#define DRM_I915_FLIP 0x02
Christopher Ferris106b3a82016-08-24 12:15:38 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144#define DRM_I915_BATCHBUFFER 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define DRM_I915_IRQ_EMIT 0x04
146#define DRM_I915_IRQ_WAIT 0x05
147#define DRM_I915_GETPARAM 0x06
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 -0700149#define DRM_I915_SETPARAM 0x07
Ben Cheng655a7c02013-10-16 16:09:24 -0700150#define DRM_I915_ALLOC 0x08
151#define DRM_I915_FREE 0x09
152#define DRM_I915_INIT_HEAP 0x0a
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 -0700154#define DRM_I915_CMDBUFFER 0x0b
Ben Cheng655a7c02013-10-16 16:09:24 -0700155#define DRM_I915_DESTROY_HEAP 0x0c
156#define DRM_I915_SET_VBLANK_PIPE 0x0d
157#define DRM_I915_GET_VBLANK_PIPE 0x0e
Christopher Ferris106b3a82016-08-24 12:15:38 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define DRM_I915_VBLANK_SWAP 0x0f
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define DRM_I915_HWS_ADDR 0x11
161#define DRM_I915_GEM_INIT 0x13
162#define DRM_I915_GEM_EXECBUFFER 0x14
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 -0700164#define DRM_I915_GEM_PIN 0x15
Ben Cheng655a7c02013-10-16 16:09:24 -0700165#define DRM_I915_GEM_UNPIN 0x16
166#define DRM_I915_GEM_BUSY 0x17
167#define DRM_I915_GEM_THROTTLE 0x18
Christopher Ferris106b3a82016-08-24 12:15:38 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700169#define DRM_I915_GEM_ENTERVT 0x19
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define DRM_I915_GEM_LEAVEVT 0x1a
171#define DRM_I915_GEM_CREATE 0x1b
172#define DRM_I915_GEM_PREAD 0x1c
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 -0700174#define DRM_I915_GEM_PWRITE 0x1d
Ben Cheng655a7c02013-10-16 16:09:24 -0700175#define DRM_I915_GEM_MMAP 0x1e
176#define DRM_I915_GEM_SET_DOMAIN 0x1f
177#define DRM_I915_GEM_SW_FINISH 0x20
Christopher Ferris106b3a82016-08-24 12:15:38 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#define DRM_I915_GEM_SET_TILING 0x21
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define DRM_I915_GEM_GET_TILING 0x22
181#define DRM_I915_GEM_GET_APERTURE 0x23
182#define DRM_I915_GEM_MMAP_GTT 0x24
Christopher Ferris106b3a82016-08-24 12:15:38 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184#define DRM_I915_GET_PIPE_FROM_CRTC_ID 0x25
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define DRM_I915_GEM_MADVISE 0x26
186#define DRM_I915_OVERLAY_PUT_IMAGE 0x27
187#define DRM_I915_OVERLAY_ATTRS 0x28
Christopher Ferris106b3a82016-08-24 12:15:38 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189#define DRM_I915_GEM_EXECBUFFER2 0x29
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define DRM_I915_GET_SPRITE_COLORKEY 0x2a
191#define DRM_I915_SET_SPRITE_COLORKEY 0x2b
192#define DRM_I915_GEM_WAIT 0x2c
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#define DRM_I915_GEM_CONTEXT_CREATE 0x2d
Ben Cheng655a7c02013-10-16 16:09:24 -0700195#define DRM_I915_GEM_CONTEXT_DESTROY 0x2e
196#define DRM_I915_GEM_SET_CACHING 0x2f
197#define DRM_I915_GEM_GET_CACHING 0x30
Christopher Ferris106b3a82016-08-24 12:15:38 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#define DRM_I915_REG_READ 0x31
Christopher Ferris38062f92014-07-09 15:33:25 -0700200#define DRM_I915_GET_RESET_STATS 0x32
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700201#define DRM_I915_GEM_USERPTR 0x33
Christopher Ferris05d08e92016-02-04 13:16:38 -0800202#define DRM_I915_GEM_CONTEXT_GETPARAM 0x34
Christopher Ferris106b3a82016-08-24 12:15:38 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800204#define DRM_I915_GEM_CONTEXT_SETPARAM 0x35
Tao Baod7db5942015-01-28 10:07:51 -0800205#define DRM_IOCTL_I915_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t)
206#define DRM_IOCTL_I915_FLUSH DRM_IO(DRM_COMMAND_BASE + DRM_I915_FLUSH)
207#define DRM_IOCTL_I915_FLIP DRM_IO(DRM_COMMAND_BASE + DRM_I915_FLIP)
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#define DRM_IOCTL_I915_BATCHBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_I915_BATCHBUFFER, drm_i915_batchbuffer_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700210#define DRM_IOCTL_I915_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_IRQ_EMIT, drm_i915_irq_emit_t)
Tao Baod7db5942015-01-28 10:07:51 -0800211#define DRM_IOCTL_I915_IRQ_WAIT DRM_IOW(DRM_COMMAND_BASE + DRM_I915_IRQ_WAIT, drm_i915_irq_wait_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700212#define DRM_IOCTL_I915_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GETPARAM, drm_i915_getparam_t)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214#define DRM_IOCTL_I915_SETPARAM DRM_IOW(DRM_COMMAND_BASE + DRM_I915_SETPARAM, drm_i915_setparam_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700215#define DRM_IOCTL_I915_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_ALLOC, drm_i915_mem_alloc_t)
Tao Baod7db5942015-01-28 10:07:51 -0800216#define DRM_IOCTL_I915_FREE DRM_IOW(DRM_COMMAND_BASE + DRM_I915_FREE, drm_i915_mem_free_t)
217#define DRM_IOCTL_I915_INIT_HEAP DRM_IOW(DRM_COMMAND_BASE + DRM_I915_INIT_HEAP, drm_i915_mem_init_heap_t)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219#define DRM_IOCTL_I915_CMDBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t)
220#define DRM_IOCTL_I915_DESTROY_HEAP DRM_IOW(DRM_COMMAND_BASE + DRM_I915_DESTROY_HEAP, drm_i915_mem_destroy_heap_t)
221#define DRM_IOCTL_I915_SET_VBLANK_PIPE DRM_IOW(DRM_COMMAND_BASE + DRM_I915_SET_VBLANK_PIPE, drm_i915_vblank_pipe_t)
222#define DRM_IOCTL_I915_GET_VBLANK_PIPE DRM_IOR(DRM_COMMAND_BASE + DRM_I915_GET_VBLANK_PIPE, drm_i915_vblank_pipe_t)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700224#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 -0700225#define DRM_IOCTL_I915_HWS_ADDR DRM_IOW(DRM_COMMAND_BASE + DRM_I915_HWS_ADDR, struct drm_i915_gem_init)
226#define DRM_IOCTL_I915_GEM_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_INIT, struct drm_i915_gem_init)
227#define DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER, struct drm_i915_gem_execbuffer)
Christopher Ferris106b3a82016-08-24 12:15:38 -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_EXECBUFFER2 DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700230#define DRM_IOCTL_I915_GEM_PIN DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_PIN, struct drm_i915_gem_pin)
231#define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin)
232#define DRM_IOCTL_I915_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_BUSY, struct drm_i915_gem_busy)
Christopher Ferris106b3a82016-08-24 12:15:38 -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_SET_CACHING DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_SET_CACHING, struct drm_i915_gem_caching)
Ben Cheng655a7c02013-10-16 16:09:24 -0700235#define DRM_IOCTL_I915_GEM_GET_CACHING DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_GET_CACHING, struct drm_i915_gem_caching)
Tao Baod7db5942015-01-28 10:07:51 -0800236#define DRM_IOCTL_I915_GEM_THROTTLE DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_THROTTLE)
Ben Cheng655a7c02013-10-16 16:09:24 -0700237#define DRM_IOCTL_I915_GEM_ENTERVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_ENTERVT)
Christopher Ferris106b3a82016-08-24 12:15:38 -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_LEAVEVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_LEAVEVT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700240#define DRM_IOCTL_I915_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CREATE, struct drm_i915_gem_create)
Tao Baod7db5942015-01-28 10:07:51 -0800241#define DRM_IOCTL_I915_GEM_PREAD DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)
242#define DRM_IOCTL_I915_GEM_PWRITE DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_PWRITE, struct drm_i915_gem_pwrite)
Christopher Ferris106b3a82016-08-24 12:15:38 -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_MMAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP, struct drm_i915_gem_mmap)
Ben Cheng655a7c02013-10-16 16:09:24 -0700245#define DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP_GTT, struct drm_i915_gem_mmap_gtt)
Tao Baod7db5942015-01-28 10:07:51 -0800246#define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain)
247#define DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_SW_FINISH, struct drm_i915_gem_sw_finish)
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#define DRM_IOCTL_I915_GEM_SET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_SET_TILING, struct drm_i915_gem_set_tiling)
250#define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling)
251#define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR(DRM_COMMAND_BASE + DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture)
Ben Cheng655a7c02013-10-16 16:09:24 -0700252#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)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700254#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 -0700255#define DRM_IOCTL_I915_OVERLAY_PUT_IMAGE DRM_IOW(DRM_COMMAND_BASE + DRM_I915_OVERLAY_PUT_IMAGE, struct drm_intel_overlay_put_image)
256#define DRM_IOCTL_I915_OVERLAY_ATTRS DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_OVERLAY_ATTRS, struct drm_intel_overlay_attrs)
257#define DRM_IOCTL_I915_SET_SPRITE_COLORKEY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_SET_SPRITE_COLORKEY, struct drm_intel_sprite_colorkey)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800259#define DRM_IOCTL_I915_GET_SPRITE_COLORKEY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GET_SPRITE_COLORKEY, struct drm_intel_sprite_colorkey)
Ben Cheng655a7c02013-10-16 16:09:24 -0700260#define DRM_IOCTL_I915_GEM_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_WAIT, struct drm_i915_gem_wait)
Tao Baod7db5942015-01-28 10:07:51 -0800261#define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create)
262#define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264#define DRM_IOCTL_I915_REG_READ DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read)
265#define DRM_IOCTL_I915_GET_RESET_STATS DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GET_RESET_STATS, struct drm_i915_reset_stats)
266#define DRM_IOCTL_I915_GEM_USERPTR DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_USERPTR, struct drm_i915_gem_userptr)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800267#define DRM_IOCTL_I915_GEM_CONTEXT_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_GETPARAM, struct drm_i915_gem_context_param)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800269#define DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_SETPARAM, struct drm_i915_gem_context_param)
Ben Cheng655a7c02013-10-16 16:09:24 -0700270typedef struct drm_i915_batchbuffer {
Tao Baod7db5942015-01-28 10:07:51 -0800271 int start;
272 int used;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 int DR1;
275 int DR4;
Tao Baod7db5942015-01-28 10:07:51 -0800276 int num_cliprects;
277 struct drm_clip_rect __user * cliprects;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700279} drm_i915_batchbuffer_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700280typedef struct _drm_i915_cmdbuffer {
Tao Baod7db5942015-01-28 10:07:51 -0800281 char __user * buf;
282 int sz;
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 DR1;
285 int DR4;
Tao Baod7db5942015-01-28 10:07:51 -0800286 int num_cliprects;
287 struct drm_clip_rect __user * cliprects;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700289} drm_i915_cmdbuffer_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700290typedef struct drm_i915_irq_emit {
Tao Baod7db5942015-01-28 10:07:51 -0800291 int __user * irq_seq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700292} drm_i915_irq_emit_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700294typedef struct drm_i915_irq_wait {
Tao Baod7db5942015-01-28 10:07:51 -0800295 int irq_seq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700296} drm_i915_irq_wait_t;
297#define I915_PARAM_IRQ_ACTIVE 1
Christopher Ferris106b3a82016-08-24 12:15:38 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700299#define I915_PARAM_ALLOW_BATCHBUFFER 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700300#define I915_PARAM_LAST_DISPATCH 3
301#define I915_PARAM_CHIPSET_ID 4
302#define I915_PARAM_HAS_GEM 5
Christopher Ferris106b3a82016-08-24 12:15:38 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700304#define I915_PARAM_NUM_FENCES_AVAIL 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700305#define I915_PARAM_HAS_OVERLAY 7
306#define I915_PARAM_HAS_PAGEFLIPPING 8
307#define I915_PARAM_HAS_EXECBUF2 9
Christopher Ferris106b3a82016-08-24 12:15:38 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700309#define I915_PARAM_HAS_BSD 10
Ben Cheng655a7c02013-10-16 16:09:24 -0700310#define I915_PARAM_HAS_BLT 11
311#define I915_PARAM_HAS_RELAXED_FENCING 12
312#define I915_PARAM_HAS_COHERENT_RINGS 13
Christopher Ferris106b3a82016-08-24 12:15:38 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700314#define I915_PARAM_HAS_EXEC_CONSTANTS 14
Ben Cheng655a7c02013-10-16 16:09:24 -0700315#define I915_PARAM_HAS_RELAXED_DELTA 15
316#define I915_PARAM_HAS_GEN7_SOL_RESET 16
317#define I915_PARAM_HAS_LLC 17
Christopher Ferris106b3a82016-08-24 12:15:38 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700319#define I915_PARAM_HAS_ALIASING_PPGTT 18
Ben Cheng655a7c02013-10-16 16:09:24 -0700320#define I915_PARAM_HAS_WAIT_TIMEOUT 19
321#define I915_PARAM_HAS_SEMAPHORES 20
322#define I915_PARAM_HAS_PRIME_VMAP_FLUSH 21
Christopher Ferris106b3a82016-08-24 12:15:38 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700324#define I915_PARAM_HAS_VEBOX 22
Ben Cheng655a7c02013-10-16 16:09:24 -0700325#define I915_PARAM_HAS_SECURE_BATCHES 23
326#define I915_PARAM_HAS_PINNED_BATCHES 24
327#define I915_PARAM_HAS_EXEC_NO_RELOC 25
Christopher Ferris106b3a82016-08-24 12:15:38 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700329#define I915_PARAM_HAS_EXEC_HANDLE_LUT 26
330#define I915_PARAM_HAS_WT 27
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700331#define I915_PARAM_CMD_PARSER_VERSION 28
Christopher Ferris05d08e92016-02-04 13:16:38 -0800332#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29
Christopher Ferris106b3a82016-08-24 12:15:38 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800334#define I915_PARAM_MMAP_VERSION 30
335#define I915_PARAM_HAS_BSD2 31
Christopher Ferris05d08e92016-02-04 13:16:38 -0800336#define I915_PARAM_REVISION 32
337#define I915_PARAM_SUBSLICE_TOTAL 33
Christopher Ferris106b3a82016-08-24 12:15:38 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800339#define I915_PARAM_EU_TOTAL 34
340#define I915_PARAM_HAS_GPU_RESET 35
Christopher Ferris05d08e92016-02-04 13:16:38 -0800341#define I915_PARAM_HAS_RESOURCE_STREAMER 36
Christopher Ferris106b3a82016-08-24 12:15:38 -0700342#define I915_PARAM_HAS_EXEC_SOFTPIN 37
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800344#define I915_PARAM_HAS_POOLED_EU 38
345#define I915_PARAM_MIN_EU_IN_POOL 39
Ben Cheng655a7c02013-10-16 16:09:24 -0700346typedef struct drm_i915_getparam {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800347 __s32 param;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 int __user * value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700350} drm_i915_getparam_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700351#define I915_SETPARAM_USE_MI_BATCHBUFFER_START 1
352#define I915_SETPARAM_TEX_LRU_LOG_GRANULARITY 2
Christopher Ferris49f525c2016-12-12 14:55:36 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354#define I915_SETPARAM_ALLOW_BATCHBUFFER 3
355#define I915_SETPARAM_NUM_USED_FENCES 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700356typedef struct drm_i915_setparam {
Tao Baod7db5942015-01-28 10:07:51 -0800357 int param;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 int value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700360} drm_i915_setparam_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700361#define I915_MEM_REGION_AGP 1
362typedef struct drm_i915_mem_alloc {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 int region;
Tao Baod7db5942015-01-28 10:07:51 -0800365 int alignment;
366 int size;
367 int __user * region_offset;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369} drm_i915_mem_alloc_t;
370typedef struct drm_i915_mem_free {
Tao Baod7db5942015-01-28 10:07:51 -0800371 int region;
372 int region_offset;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374} drm_i915_mem_free_t;
375typedef struct drm_i915_mem_init_heap {
Tao Baod7db5942015-01-28 10:07:51 -0800376 int region;
377 int size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 int start;
Ben Cheng655a7c02013-10-16 16:09:24 -0700380} drm_i915_mem_init_heap_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700381typedef struct drm_i915_mem_destroy_heap {
Tao Baod7db5942015-01-28 10:07:51 -0800382 int region;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384} drm_i915_mem_destroy_heap_t;
385#define DRM_I915_VBLANK_PIPE_A 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700386#define DRM_I915_VBLANK_PIPE_B 2
387typedef struct drm_i915_vblank_pipe {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 int pipe;
Ben Cheng655a7c02013-10-16 16:09:24 -0700390} drm_i915_vblank_pipe_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700391typedef struct drm_i915_vblank_swap {
Tao Baod7db5942015-01-28 10:07:51 -0800392 drm_drawable_t drawable;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 enum drm_vblank_seq_type seqtype;
Tao Baod7db5942015-01-28 10:07:51 -0800395 unsigned int sequence;
Ben Cheng655a7c02013-10-16 16:09:24 -0700396} drm_i915_vblank_swap_t;
397typedef struct drm_i915_hws_addr {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 __u64 addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700400} drm_i915_hws_addr_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700401struct drm_i915_gem_init {
Tao Baod7db5942015-01-28 10:07:51 -0800402 __u64 gtt_start;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u64 gtt_end;
Ben Cheng655a7c02013-10-16 16:09:24 -0700405};
Ben Cheng655a7c02013-10-16 16:09:24 -0700406struct drm_i915_gem_create {
Tao Baod7db5942015-01-28 10:07:51 -0800407 __u64 size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800409 __u32 handle;
Tao Baod7db5942015-01-28 10:07:51 -0800410 __u32 pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700411};
412struct drm_i915_gem_pread {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 __u32 handle;
Tao Baod7db5942015-01-28 10:07:51 -0800415 __u32 pad;
416 __u64 offset;
417 __u64 size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 __u64 data_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700420};
Ben Cheng655a7c02013-10-16 16:09:24 -0700421struct drm_i915_gem_pwrite {
Tao Baod7db5942015-01-28 10:07:51 -0800422 __u32 handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 __u32 pad;
Tao Baod7db5942015-01-28 10:07:51 -0800425 __u64 offset;
426 __u64 size;
427 __u64 data_ptr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429};
430struct drm_i915_gem_mmap {
Tao Baod7db5942015-01-28 10:07:51 -0800431 __u32 handle;
432 __u32 pad;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 __u64 offset;
Tao Baod7db5942015-01-28 10:07:51 -0800435 __u64 size;
436 __u64 addr_ptr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800437 __u64 flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800439#define I915_MMAP_WC 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -0700440};
441struct drm_i915_gem_mmap_gtt {
Tao Baod7db5942015-01-28 10:07:51 -0800442 __u32 handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 __u32 pad;
445 __u64 offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700446};
447struct drm_i915_gem_set_domain {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800449 __u32 handle;
450 __u32 read_domains;
451 __u32 write_domain;
Ben Cheng655a7c02013-10-16 16:09:24 -0700452};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454struct drm_i915_gem_sw_finish {
Tao Baod7db5942015-01-28 10:07:51 -0800455 __u32 handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700456};
457struct drm_i915_gem_relocation_entry {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 __u32 target_handle;
460 __u32 delta;
461 __u64 offset;
Tao Baod7db5942015-01-28 10:07:51 -0800462 __u64 presumed_offset;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800464 __u32 read_domains;
465 __u32 write_domain;
Ben Cheng655a7c02013-10-16 16:09:24 -0700466};
467#define I915_GEM_DOMAIN_CPU 0x00000001
Christopher Ferris49f525c2016-12-12 14:55:36 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700469#define I915_GEM_DOMAIN_RENDER 0x00000002
470#define I915_GEM_DOMAIN_SAMPLER 0x00000004
471#define I915_GEM_DOMAIN_COMMAND 0x00000008
472#define I915_GEM_DOMAIN_INSTRUCTION 0x00000010
Christopher Ferris49f525c2016-12-12 14:55:36 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700474#define I915_GEM_DOMAIN_VERTEX 0x00000020
475#define I915_GEM_DOMAIN_GTT 0x00000040
476struct drm_i915_gem_exec_object {
Tao Baod7db5942015-01-28 10:07:51 -0800477 __u32 handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800479 __u32 relocation_count;
480 __u64 relocs_ptr;
481 __u64 alignment;
Tao Baod7db5942015-01-28 10:07:51 -0800482 __u64 offset;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700484};
485struct drm_i915_gem_execbuffer {
Tao Baod7db5942015-01-28 10:07:51 -0800486 __u64 buffers_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800487 __u32 buffer_count;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800489 __u32 batch_start_offset;
490 __u32 batch_len;
491 __u32 DR1;
Tao Baod7db5942015-01-28 10:07:51 -0800492 __u32 DR4;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494 __u32 num_cliprects;
495 __u64 cliprects_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700496};
497struct drm_i915_gem_exec_object2 {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800499 __u32 handle;
500 __u32 relocation_count;
501 __u64 relocs_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800502 __u64 alignment;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800504 __u64 offset;
505#define EXEC_OBJECT_NEEDS_FENCE (1 << 0)
506#define EXEC_OBJECT_NEEDS_GTT (1 << 1)
Tao Baod7db5942015-01-28 10:07:51 -0800507#define EXEC_OBJECT_WRITE (1 << 2)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800509#define EXEC_OBJECT_SUPPORTS_48B_ADDRESS (1 << 3)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700510#define EXEC_OBJECT_PINNED (1 << 4)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700511#define __EXEC_OBJECT_UNKNOWN_FLAGS - (EXEC_OBJECT_PINNED << 1)
Tao Baod7db5942015-01-28 10:07:51 -0800512 __u64 flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800514 __u64 rsvd1;
Tao Baod7db5942015-01-28 10:07:51 -0800515 __u64 rsvd2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700516};
517struct drm_i915_gem_execbuffer2 {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800519 __u64 buffers_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800520 __u32 buffer_count;
521 __u32 batch_start_offset;
522 __u32 batch_len;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800524 __u32 DR1;
Tao Baod7db5942015-01-28 10:07:51 -0800525 __u32 DR4;
526 __u32 num_cliprects;
527 __u64 cliprects_ptr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800529#define I915_EXEC_RING_MASK (7 << 0)
Tao Baod7db5942015-01-28 10:07:51 -0800530#define I915_EXEC_DEFAULT (0 << 0)
531#define I915_EXEC_RENDER (1 << 0)
532#define I915_EXEC_BSD (2 << 0)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800534#define I915_EXEC_BLT (3 << 0)
Tao Baod7db5942015-01-28 10:07:51 -0800535#define I915_EXEC_VEBOX (4 << 0)
536#define I915_EXEC_CONSTANTS_MASK (3 << 6)
537#define I915_EXEC_CONSTANTS_REL_GENERAL (0 << 6)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800539#define I915_EXEC_CONSTANTS_ABSOLUTE (1 << 6)
Tao Baod7db5942015-01-28 10:07:51 -0800540#define I915_EXEC_CONSTANTS_REL_SURFACE (2 << 6)
541 __u64 flags;
542 __u64 rsvd1;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800544 __u64 rsvd2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700545};
Tao Baod7db5942015-01-28 10:07:51 -0800546#define I915_EXEC_GEN7_SOL_RESET (1 << 8)
547#define I915_EXEC_SECURE (1 << 9)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800549#define I915_EXEC_IS_PINNED (1 << 10)
Tao Baod7db5942015-01-28 10:07:51 -0800550#define I915_EXEC_NO_RELOC (1 << 11)
551#define I915_EXEC_HANDLE_LUT (1 << 12)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700552#define I915_EXEC_BSD_SHIFT (13)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700554#define I915_EXEC_BSD_MASK (3 << I915_EXEC_BSD_SHIFT)
555#define I915_EXEC_BSD_DEFAULT (0 << I915_EXEC_BSD_SHIFT)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700556#define I915_EXEC_BSD_RING1 (1 << I915_EXEC_BSD_SHIFT)
557#define I915_EXEC_BSD_RING2 (2 << I915_EXEC_BSD_SHIFT)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800559#define I915_EXEC_RESOURCE_STREAMER (1 << 15)
560#define __I915_EXEC_UNKNOWN_FLAGS - (I915_EXEC_RESOURCE_STREAMER << 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700561#define I915_EXEC_CONTEXT_ID_MASK (0xffffffff)
Tao Baod7db5942015-01-28 10:07:51 -0800562#define i915_execbuffer2_set_context_id(eb2,context) (eb2).rsvd1 = context & I915_EXEC_CONTEXT_ID_MASK
Christopher Ferris49f525c2016-12-12 14:55:36 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800564#define i915_execbuffer2_get_context_id(eb2) ((eb2).rsvd1 & I915_EXEC_CONTEXT_ID_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -0700565struct drm_i915_gem_pin {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700566 __u32 handle;
Tao Baod7db5942015-01-28 10:07:51 -0800567 __u32 pad;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800569 __u64 alignment;
570 __u64 offset;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700571};
Ben Cheng655a7c02013-10-16 16:09:24 -0700572struct drm_i915_gem_unpin {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800574 __u32 handle;
575 __u32 pad;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700576};
Ben Cheng655a7c02013-10-16 16:09:24 -0700577struct drm_i915_gem_busy {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800579 __u32 handle;
580 __u32 busy;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700581};
Ben Cheng655a7c02013-10-16 16:09:24 -0700582#define I915_CACHING_NONE 0
Christopher Ferris49f525c2016-12-12 14:55:36 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700584#define I915_CACHING_CACHED 1
Christopher Ferris38062f92014-07-09 15:33:25 -0700585#define I915_CACHING_DISPLAY 2
Christopher Ferris106b3a82016-08-24 12:15:38 -0700586struct drm_i915_gem_caching {
Tao Baod7db5942015-01-28 10:07:51 -0800587 __u32 handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800589 __u32 caching;
Ben Cheng655a7c02013-10-16 16:09:24 -0700590};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700591#define I915_TILING_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700592#define I915_TILING_X 1
Christopher Ferris49f525c2016-12-12 14:55:36 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700594#define I915_TILING_Y 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700595#define I915_BIT_6_SWIZZLE_NONE 0
Christopher Ferris106b3a82016-08-24 12:15:38 -0700596#define I915_BIT_6_SWIZZLE_9 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700597#define I915_BIT_6_SWIZZLE_9_10 2
Christopher Ferris49f525c2016-12-12 14:55:36 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700599#define I915_BIT_6_SWIZZLE_9_11 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700600#define I915_BIT_6_SWIZZLE_9_10_11 4
Christopher Ferris106b3a82016-08-24 12:15:38 -0700601#define I915_BIT_6_SWIZZLE_UNKNOWN 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700602#define I915_BIT_6_SWIZZLE_9_17 6
Christopher Ferris49f525c2016-12-12 14:55:36 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700604#define I915_BIT_6_SWIZZLE_9_10_17 7
Ben Cheng655a7c02013-10-16 16:09:24 -0700605struct drm_i915_gem_set_tiling {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700606 __u32 handle;
Tao Baod7db5942015-01-28 10:07:51 -0800607 __u32 tiling_mode;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800609 __u32 stride;
610 __u32 swizzle_mode;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700611};
Ben Cheng655a7c02013-10-16 16:09:24 -0700612struct drm_i915_gem_get_tiling {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800614 __u32 handle;
615 __u32 tiling_mode;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700616 __u32 swizzle_mode;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800617 __u32 phys_swizzle_mode;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700619};
620struct drm_i915_gem_get_aperture {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700621 __u64 aper_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800622 __u64 aper_available_size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700624};
625struct drm_i915_get_pipe_from_crtc_id {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700626 __u32 crtc_id;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800627 __u32 pipe;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700629};
630#define I915_MADV_WILLNEED 0
Christopher Ferris106b3a82016-08-24 12:15:38 -0700631#define I915_MADV_DONTNEED 1
Christopher Ferris05d08e92016-02-04 13:16:38 -0800632#define __I915_MADV_PURGED 2
Christopher Ferris49f525c2016-12-12 14:55:36 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700634struct drm_i915_gem_madvise {
Tao Baod7db5942015-01-28 10:07:51 -0800635 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700636 __u32 madv;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800637 __u32 retained;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700639};
640#define I915_OVERLAY_TYPE_MASK 0xff
Christopher Ferris106b3a82016-08-24 12:15:38 -0700641#define I915_OVERLAY_YUV_PLANAR 0x01
Christopher Ferris05d08e92016-02-04 13:16:38 -0800642#define I915_OVERLAY_YUV_PACKED 0x02
Christopher Ferris49f525c2016-12-12 14:55:36 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700644#define I915_OVERLAY_RGB 0x03
645#define I915_OVERLAY_DEPTH_MASK 0xff00
Christopher Ferris106b3a82016-08-24 12:15:38 -0700646#define I915_OVERLAY_RGB24 0x1000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800647#define I915_OVERLAY_RGB16 0x2000
Christopher Ferris49f525c2016-12-12 14:55:36 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700649#define I915_OVERLAY_RGB15 0x3000
650#define I915_OVERLAY_YUV422 0x0100
Christopher Ferris106b3a82016-08-24 12:15:38 -0700651#define I915_OVERLAY_YUV411 0x0200
Christopher Ferris05d08e92016-02-04 13:16:38 -0800652#define I915_OVERLAY_YUV420 0x0300
Christopher Ferris49f525c2016-12-12 14:55:36 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700654#define I915_OVERLAY_YUV410 0x0400
655#define I915_OVERLAY_SWAP_MASK 0xff0000
Christopher Ferris106b3a82016-08-24 12:15:38 -0700656#define I915_OVERLAY_NO_SWAP 0x000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800657#define I915_OVERLAY_UV_SWAP 0x010000
Christopher Ferris49f525c2016-12-12 14:55:36 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700659#define I915_OVERLAY_Y_SWAP 0x020000
660#define I915_OVERLAY_Y_AND_UV_SWAP 0x030000
Christopher Ferris106b3a82016-08-24 12:15:38 -0700661#define I915_OVERLAY_FLAGS_MASK 0xff000000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800662#define I915_OVERLAY_ENABLE 0x01000000
Christopher Ferris49f525c2016-12-12 14:55:36 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700664struct drm_intel_overlay_put_image {
Tao Baod7db5942015-01-28 10:07:51 -0800665 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700666 __u32 bo_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800667 __u16 stride_Y;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800669 __u16 stride_UV;
670 __u32 offset_Y;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700671 __u32 offset_U;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800672 __u32 offset_V;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800674 __u16 src_width;
675 __u16 src_height;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700676 __u16 src_scan_width;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800677 __u16 src_scan_height;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800679 __u32 crtc_id;
680 __u16 dst_x;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700681 __u16 dst_y;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800682 __u16 dst_width;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800684 __u16 dst_height;
Ben Cheng655a7c02013-10-16 16:09:24 -0700685};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700686#define I915_OVERLAY_UPDATE_ATTRS (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800687#define I915_OVERLAY_UPDATE_GAMMA (1 << 1)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800689#define I915_OVERLAY_DISABLE_DEST_COLORKEY (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700690struct drm_intel_overlay_attrs {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700691 __u32 flags;
Tao Baod7db5942015-01-28 10:07:51 -0800692 __u32 color_key;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800694 __s32 brightness;
Tao Baod7db5942015-01-28 10:07:51 -0800695 __u32 contrast;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700696 __u32 saturation;
Tao Baod7db5942015-01-28 10:07:51 -0800697 __u32 gamma0;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800699 __u32 gamma1;
Tao Baod7db5942015-01-28 10:07:51 -0800700 __u32 gamma2;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700701 __u32 gamma3;
Tao Baod7db5942015-01-28 10:07:51 -0800702 __u32 gamma4;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800704 __u32 gamma5;
Ben Cheng655a7c02013-10-16 16:09:24 -0700705};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700706#define I915_SET_COLORKEY_NONE (1 << 0)
Tao Baod7db5942015-01-28 10:07:51 -0800707#define I915_SET_COLORKEY_DESTINATION (1 << 1)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800709#define I915_SET_COLORKEY_SOURCE (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700710struct drm_intel_sprite_colorkey {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700711 __u32 plane_id;
Tao Baod7db5942015-01-28 10:07:51 -0800712 __u32 min_value;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800714 __u32 channel_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800715 __u32 max_value;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700716 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700717};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700719struct drm_i915_gem_wait {
Tao Baod7db5942015-01-28 10:07:51 -0800720 __u32 bo_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700721 __u32 flags;
Tao Baod7db5942015-01-28 10:07:51 -0800722 __s64 timeout_ns;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700724};
725struct drm_i915_gem_context_create {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700726 __u32 ctx_id;
Tao Baod7db5942015-01-28 10:07:51 -0800727 __u32 pad;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700729};
730struct drm_i915_gem_context_destroy {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700731 __u32 ctx_id;
Tao Baod7db5942015-01-28 10:07:51 -0800732 __u32 pad;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700734};
735struct drm_i915_reg_read {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700736 __u64 offset;
Tao Baod7db5942015-01-28 10:07:51 -0800737 __u64 val;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700739};
Christopher Ferris38062f92014-07-09 15:33:25 -0700740struct drm_i915_reset_stats {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700741 __u32 ctx_id;
Tao Baod7db5942015-01-28 10:07:51 -0800742 __u32 flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800744 __u32 reset_count;
Tao Baod7db5942015-01-28 10:07:51 -0800745 __u32 batch_active;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700746 __u32 batch_pending;
Tao Baod7db5942015-01-28 10:07:51 -0800747 __u32 pad;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700749};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700750struct drm_i915_gem_userptr {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700751 __u64 user_ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800752 __u64 user_size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800754 __u32 flags;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700755#define I915_USERPTR_READ_ONLY 0x1
Christopher Ferris106b3a82016-08-24 12:15:38 -0700756#define I915_USERPTR_UNSYNCHRONIZED 0x80000000
Tao Baod7db5942015-01-28 10:07:51 -0800757 __u32 handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700759};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800760struct drm_i915_gem_context_param {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700761 __u32 ctx_id;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800762 __u32 size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800764 __u64 param;
765#define I915_CONTEXT_PARAM_BAN_PERIOD 0x1
Christopher Ferris106b3a82016-08-24 12:15:38 -0700766#define I915_CONTEXT_PARAM_NO_ZEROMAP 0x2
767#define I915_CONTEXT_PARAM_GTT_SIZE 0x3
Christopher Ferris49f525c2016-12-12 14:55:36 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
769#define I915_CONTEXT_PARAM_NO_ERROR_CAPTURE 0x4
Christopher Ferris05d08e92016-02-04 13:16:38 -0800770 __u64 value;
771};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700772#ifdef __cplusplus
Christopher Ferris49f525c2016-12-12 14:55:36 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700774#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700775#endif