Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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> |
| 22 | #define I915_NR_TEX_REGIONS 255 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define I915_LOG_MIN_TEX_REGION_SIZE 14 |
| 25 | typedef struct _drm_i915_init { |
| 26 | enum { |
| 27 | I915_INIT_DMA = 0x01, |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | I915_CLEANUP_DMA = 0x02, |
| 30 | I915_RESUME_DMA = 0x03 |
| 31 | } func; |
| 32 | unsigned int mmio_offset; |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | int sarea_priv_offset; |
| 35 | unsigned int ring_start; |
| 36 | unsigned int ring_end; |
| 37 | unsigned int ring_size; |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | unsigned int front_offset; |
| 40 | unsigned int back_offset; |
| 41 | unsigned int depth_offset; |
| 42 | unsigned int w; |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | unsigned int h; |
| 45 | unsigned int pitch; |
| 46 | unsigned int pitch_bits; |
| 47 | unsigned int back_pitch; |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | unsigned int depth_pitch; |
| 50 | unsigned int cpp; |
| 51 | unsigned int chipset; |
| 52 | } drm_i915_init_t; |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | typedef struct _drm_i915_sarea { |
| 55 | struct drm_tex_region texList[I915_NR_TEX_REGIONS + 1]; |
| 56 | int last_upload; |
| 57 | int last_enqueue; |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | int last_dispatch; |
| 60 | int ctxOwner; |
| 61 | int texAge; |
| 62 | int pf_enabled; |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | int pf_active; |
| 65 | int pf_current_page; |
| 66 | int perf_boxes; |
| 67 | int width, height; |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | drm_handle_t front_handle; |
| 70 | int front_offset; |
| 71 | int front_size; |
| 72 | drm_handle_t back_handle; |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | int back_offset; |
| 75 | int back_size; |
| 76 | drm_handle_t depth_handle; |
| 77 | int depth_offset; |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | int depth_size; |
| 80 | drm_handle_t tex_handle; |
| 81 | int tex_offset; |
| 82 | int tex_size; |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | int log_tex_granularity; |
| 85 | int pitch; |
| 86 | int rotation; |
| 87 | int rotated_offset; |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | int rotated_size; |
| 90 | int rotated_pitch; |
| 91 | int virtualX, virtualY; |
| 92 | unsigned int front_tiled; |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | unsigned int back_tiled; |
| 95 | unsigned int depth_tiled; |
| 96 | unsigned int rotated_tiled; |
| 97 | unsigned int rotated2_tiled; |
| 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 99 | int pipeA_x; |
| 100 | int pipeA_y; |
| 101 | int pipeA_w; |
| 102 | int pipeA_h; |
| 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 104 | int pipeB_x; |
| 105 | int pipeB_y; |
| 106 | int pipeB_w; |
| 107 | int pipeB_h; |
| 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 109 | drm_handle_t unused_handle; |
| 110 | __u32 unused1, unused2, unused3; |
| 111 | __u32 front_bo_handle; |
| 112 | __u32 back_bo_handle; |
| 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 114 | __u32 unused_bo_handle; |
| 115 | __u32 depth_bo_handle; |
| 116 | } drm_i915_sarea_t; |
| 117 | #define planeA_x pipeA_x |
| 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 119 | #define planeA_y pipeA_y |
| 120 | #define planeA_w pipeA_w |
| 121 | #define planeA_h pipeA_h |
| 122 | #define planeB_x pipeB_x |
| 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 124 | #define planeB_y pipeB_y |
| 125 | #define planeB_w pipeB_w |
| 126 | #define planeB_h pipeB_h |
| 127 | #define I915_BOX_RING_EMPTY 0x1 |
| 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 129 | #define I915_BOX_FLIP 0x2 |
| 130 | #define I915_BOX_WAIT 0x4 |
| 131 | #define I915_BOX_TEXTURE_LOAD 0x8 |
| 132 | #define I915_BOX_LOST_CONTEXT 0x10 |
| 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 134 | #define DRM_I915_INIT 0x00 |
| 135 | #define DRM_I915_FLUSH 0x01 |
| 136 | #define DRM_I915_FLIP 0x02 |
| 137 | #define DRM_I915_BATCHBUFFER 0x03 |
| 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 139 | #define DRM_I915_IRQ_EMIT 0x04 |
| 140 | #define DRM_I915_IRQ_WAIT 0x05 |
| 141 | #define DRM_I915_GETPARAM 0x06 |
| 142 | #define DRM_I915_SETPARAM 0x07 |
| 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 144 | #define DRM_I915_ALLOC 0x08 |
| 145 | #define DRM_I915_FREE 0x09 |
| 146 | #define DRM_I915_INIT_HEAP 0x0a |
| 147 | #define DRM_I915_CMDBUFFER 0x0b |
| 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 149 | #define DRM_I915_DESTROY_HEAP 0x0c |
| 150 | #define DRM_I915_SET_VBLANK_PIPE 0x0d |
| 151 | #define DRM_I915_GET_VBLANK_PIPE 0x0e |
| 152 | #define DRM_I915_VBLANK_SWAP 0x0f |
| 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 154 | #define DRM_I915_HWS_ADDR 0x11 |
| 155 | #define DRM_I915_GEM_INIT 0x13 |
| 156 | #define DRM_I915_GEM_EXECBUFFER 0x14 |
| 157 | #define DRM_I915_GEM_PIN 0x15 |
| 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 159 | #define DRM_I915_GEM_UNPIN 0x16 |
| 160 | #define DRM_I915_GEM_BUSY 0x17 |
| 161 | #define DRM_I915_GEM_THROTTLE 0x18 |
| 162 | #define DRM_I915_GEM_ENTERVT 0x19 |
| 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 164 | #define DRM_I915_GEM_LEAVEVT 0x1a |
| 165 | #define DRM_I915_GEM_CREATE 0x1b |
| 166 | #define DRM_I915_GEM_PREAD 0x1c |
| 167 | #define DRM_I915_GEM_PWRITE 0x1d |
| 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 169 | #define DRM_I915_GEM_MMAP 0x1e |
| 170 | #define DRM_I915_GEM_SET_DOMAIN 0x1f |
| 171 | #define DRM_I915_GEM_SW_FINISH 0x20 |
| 172 | #define DRM_I915_GEM_SET_TILING 0x21 |
| 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 174 | #define DRM_I915_GEM_GET_TILING 0x22 |
| 175 | #define DRM_I915_GEM_GET_APERTURE 0x23 |
| 176 | #define DRM_I915_GEM_MMAP_GTT 0x24 |
| 177 | #define DRM_I915_GET_PIPE_FROM_CRTC_ID 0x25 |
| 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 179 | #define DRM_I915_GEM_MADVISE 0x26 |
| 180 | #define DRM_I915_OVERLAY_PUT_IMAGE 0x27 |
| 181 | #define DRM_I915_OVERLAY_ATTRS 0x28 |
| 182 | #define DRM_I915_GEM_EXECBUFFER2 0x29 |
| 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 184 | #define DRM_I915_GET_SPRITE_COLORKEY 0x2a |
| 185 | #define DRM_I915_SET_SPRITE_COLORKEY 0x2b |
| 186 | #define DRM_I915_GEM_WAIT 0x2c |
| 187 | #define DRM_I915_GEM_CONTEXT_CREATE 0x2d |
| 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 189 | #define DRM_I915_GEM_CONTEXT_DESTROY 0x2e |
| 190 | #define DRM_I915_GEM_SET_CACHING 0x2f |
| 191 | #define DRM_I915_GEM_GET_CACHING 0x30 |
| 192 | #define DRM_I915_REG_READ 0x31 |
| 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 194 | #define DRM_IOCTL_I915_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT, drm_i915_init_t) |
| 195 | #define DRM_IOCTL_I915_FLUSH DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLUSH) |
| 196 | #define DRM_IOCTL_I915_FLIP DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLIP) |
| 197 | #define DRM_IOCTL_I915_BATCHBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_BATCHBUFFER, drm_i915_batchbuffer_t) |
| 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 199 | #define DRM_IOCTL_I915_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_IRQ_EMIT, drm_i915_irq_emit_t) |
| 200 | #define DRM_IOCTL_I915_IRQ_WAIT DRM_IOW( DRM_COMMAND_BASE + DRM_I915_IRQ_WAIT, drm_i915_irq_wait_t) |
| 201 | #define DRM_IOCTL_I915_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GETPARAM, drm_i915_getparam_t) |
| 202 | #define DRM_IOCTL_I915_SETPARAM DRM_IOW( DRM_COMMAND_BASE + DRM_I915_SETPARAM, drm_i915_setparam_t) |
| 203 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 204 | #define DRM_IOCTL_I915_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_ALLOC, drm_i915_mem_alloc_t) |
| 205 | #define DRM_IOCTL_I915_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_FREE, drm_i915_mem_free_t) |
| 206 | #define DRM_IOCTL_I915_INIT_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_INIT_HEAP, drm_i915_mem_init_heap_t) |
| 207 | #define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t) |
| 208 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 209 | #define DRM_IOCTL_I915_DESTROY_HEAP DRM_IOW( DRM_COMMAND_BASE + DRM_I915_DESTROY_HEAP, drm_i915_mem_destroy_heap_t) |
| 210 | #define DRM_IOCTL_I915_SET_VBLANK_PIPE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_SET_VBLANK_PIPE, drm_i915_vblank_pipe_t) |
| 211 | #define DRM_IOCTL_I915_GET_VBLANK_PIPE DRM_IOR( DRM_COMMAND_BASE + DRM_I915_GET_VBLANK_PIPE, drm_i915_vblank_pipe_t) |
| 212 | #define DRM_IOCTL_I915_VBLANK_SWAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_VBLANK_SWAP, drm_i915_vblank_swap_t) |
| 213 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 214 | #define DRM_IOCTL_I915_HWS_ADDR DRM_IOW(DRM_COMMAND_BASE + DRM_I915_HWS_ADDR, struct drm_i915_gem_init) |
| 215 | #define DRM_IOCTL_I915_GEM_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_INIT, struct drm_i915_gem_init) |
| 216 | #define DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER, struct drm_i915_gem_execbuffer) |
| 217 | #define DRM_IOCTL_I915_GEM_EXECBUFFER2 DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2) |
| 218 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 219 | #define DRM_IOCTL_I915_GEM_PIN DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_PIN, struct drm_i915_gem_pin) |
| 220 | #define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin) |
| 221 | #define DRM_IOCTL_I915_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_BUSY, struct drm_i915_gem_busy) |
| 222 | #define DRM_IOCTL_I915_GEM_SET_CACHING DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_SET_CACHING, struct drm_i915_gem_caching) |
| 223 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 224 | #define DRM_IOCTL_I915_GEM_GET_CACHING DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_GET_CACHING, struct drm_i915_gem_caching) |
| 225 | #define DRM_IOCTL_I915_GEM_THROTTLE DRM_IO ( DRM_COMMAND_BASE + DRM_I915_GEM_THROTTLE) |
| 226 | #define DRM_IOCTL_I915_GEM_ENTERVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_ENTERVT) |
| 227 | #define DRM_IOCTL_I915_GEM_LEAVEVT DRM_IO(DRM_COMMAND_BASE + DRM_I915_GEM_LEAVEVT) |
| 228 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 229 | #define DRM_IOCTL_I915_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_CREATE, struct drm_i915_gem_create) |
| 230 | #define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread) |
| 231 | #define DRM_IOCTL_I915_GEM_PWRITE DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PWRITE, struct drm_i915_gem_pwrite) |
| 232 | #define DRM_IOCTL_I915_GEM_MMAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP, struct drm_i915_gem_mmap) |
| 233 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 234 | #define DRM_IOCTL_I915_GEM_MMAP_GTT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MMAP_GTT, struct drm_i915_gem_mmap_gtt) |
| 235 | #define DRM_IOCTL_I915_GEM_SET_DOMAIN DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_SET_DOMAIN, struct drm_i915_gem_set_domain) |
| 236 | #define DRM_IOCTL_I915_GEM_SW_FINISH DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_SW_FINISH, struct drm_i915_gem_sw_finish) |
| 237 | #define DRM_IOCTL_I915_GEM_SET_TILING DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_SET_TILING, struct drm_i915_gem_set_tiling) |
| 238 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 239 | #define DRM_IOCTL_I915_GEM_GET_TILING DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_GET_TILING, struct drm_i915_gem_get_tiling) |
| 240 | #define DRM_IOCTL_I915_GEM_GET_APERTURE DRM_IOR (DRM_COMMAND_BASE + DRM_I915_GEM_GET_APERTURE, struct drm_i915_gem_get_aperture) |
| 241 | #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) |
| 242 | #define DRM_IOCTL_I915_GEM_MADVISE DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_MADVISE, struct drm_i915_gem_madvise) |
| 243 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 244 | #define DRM_IOCTL_I915_OVERLAY_PUT_IMAGE DRM_IOW(DRM_COMMAND_BASE + DRM_I915_OVERLAY_PUT_IMAGE, struct drm_intel_overlay_put_image) |
| 245 | #define DRM_IOCTL_I915_OVERLAY_ATTRS DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_OVERLAY_ATTRS, struct drm_intel_overlay_attrs) |
| 246 | #define DRM_IOCTL_I915_SET_SPRITE_COLORKEY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_SET_SPRITE_COLORKEY, struct drm_intel_sprite_colorkey) |
| 247 | #define DRM_IOCTL_I915_GET_SPRITE_COLORKEY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_SET_SPRITE_COLORKEY, struct drm_intel_sprite_colorkey) |
| 248 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 249 | #define DRM_IOCTL_I915_GEM_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_WAIT, struct drm_i915_gem_wait) |
| 250 | #define DRM_IOCTL_I915_GEM_CONTEXT_CREATE DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_CREATE, struct drm_i915_gem_context_create) |
| 251 | #define DRM_IOCTL_I915_GEM_CONTEXT_DESTROY DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_CONTEXT_DESTROY, struct drm_i915_gem_context_destroy) |
| 252 | #define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read) |
| 253 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 254 | typedef struct drm_i915_batchbuffer { |
| 255 | int start; |
| 256 | int used; |
| 257 | int DR1; |
| 258 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 259 | int DR4; |
| 260 | int num_cliprects; |
| 261 | struct drm_clip_rect __user *cliprects; |
| 262 | } drm_i915_batchbuffer_t; |
| 263 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 264 | typedef struct _drm_i915_cmdbuffer { |
| 265 | char __user *buf; |
| 266 | int sz; |
| 267 | int DR1; |
| 268 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 269 | int DR4; |
| 270 | int num_cliprects; |
| 271 | struct drm_clip_rect __user *cliprects; |
| 272 | } drm_i915_cmdbuffer_t; |
| 273 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 274 | typedef struct drm_i915_irq_emit { |
| 275 | int __user *irq_seq; |
| 276 | } drm_i915_irq_emit_t; |
| 277 | typedef struct drm_i915_irq_wait { |
| 278 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 279 | int irq_seq; |
| 280 | } drm_i915_irq_wait_t; |
| 281 | #define I915_PARAM_IRQ_ACTIVE 1 |
| 282 | #define I915_PARAM_ALLOW_BATCHBUFFER 2 |
| 283 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 284 | #define I915_PARAM_LAST_DISPATCH 3 |
| 285 | #define I915_PARAM_CHIPSET_ID 4 |
| 286 | #define I915_PARAM_HAS_GEM 5 |
| 287 | #define I915_PARAM_NUM_FENCES_AVAIL 6 |
| 288 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 289 | #define I915_PARAM_HAS_OVERLAY 7 |
| 290 | #define I915_PARAM_HAS_PAGEFLIPPING 8 |
| 291 | #define I915_PARAM_HAS_EXECBUF2 9 |
| 292 | #define I915_PARAM_HAS_BSD 10 |
| 293 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 294 | #define I915_PARAM_HAS_BLT 11 |
| 295 | #define I915_PARAM_HAS_RELAXED_FENCING 12 |
| 296 | #define I915_PARAM_HAS_COHERENT_RINGS 13 |
| 297 | #define I915_PARAM_HAS_EXEC_CONSTANTS 14 |
| 298 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 299 | #define I915_PARAM_HAS_RELAXED_DELTA 15 |
| 300 | #define I915_PARAM_HAS_GEN7_SOL_RESET 16 |
| 301 | #define I915_PARAM_HAS_LLC 17 |
| 302 | #define I915_PARAM_HAS_ALIASING_PPGTT 18 |
| 303 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 304 | #define I915_PARAM_HAS_WAIT_TIMEOUT 19 |
| 305 | #define I915_PARAM_HAS_SEMAPHORES 20 |
| 306 | #define I915_PARAM_HAS_PRIME_VMAP_FLUSH 21 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 307 | #define I915_PARAM_RSVD_FOR_FUTURE_USE 22 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 308 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 309 | #define I915_PARAM_HAS_SECURE_BATCHES 23 |
| 310 | #define I915_PARAM_HAS_PINNED_BATCHES 24 |
| 311 | #define I915_PARAM_HAS_EXEC_NO_RELOC 25 |
| 312 | #define I915_PARAM_HAS_EXEC_HANDLE_LUT 26 |
| 313 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 314 | typedef struct drm_i915_getparam { |
| 315 | int param; |
| 316 | int __user *value; |
| 317 | } drm_i915_getparam_t; |
| 318 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 319 | #define I915_SETPARAM_USE_MI_BATCHBUFFER_START 1 |
| 320 | #define I915_SETPARAM_TEX_LRU_LOG_GRANULARITY 2 |
| 321 | #define I915_SETPARAM_ALLOW_BATCHBUFFER 3 |
| 322 | #define I915_SETPARAM_NUM_USED_FENCES 4 |
| 323 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 324 | typedef struct drm_i915_setparam { |
| 325 | int param; |
| 326 | int value; |
| 327 | } drm_i915_setparam_t; |
| 328 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 329 | #define I915_MEM_REGION_AGP 1 |
| 330 | typedef struct drm_i915_mem_alloc { |
| 331 | int region; |
| 332 | int alignment; |
| 333 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 334 | int size; |
| 335 | int __user *region_offset; |
| 336 | } drm_i915_mem_alloc_t; |
| 337 | typedef struct drm_i915_mem_free { |
| 338 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 339 | int region; |
| 340 | int region_offset; |
| 341 | } drm_i915_mem_free_t; |
| 342 | typedef struct drm_i915_mem_init_heap { |
| 343 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 344 | int region; |
| 345 | int size; |
| 346 | int start; |
| 347 | } drm_i915_mem_init_heap_t; |
| 348 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 349 | typedef struct drm_i915_mem_destroy_heap { |
| 350 | int region; |
| 351 | } drm_i915_mem_destroy_heap_t; |
| 352 | #define DRM_I915_VBLANK_PIPE_A 1 |
| 353 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 354 | #define DRM_I915_VBLANK_PIPE_B 2 |
| 355 | typedef struct drm_i915_vblank_pipe { |
| 356 | int pipe; |
| 357 | } drm_i915_vblank_pipe_t; |
| 358 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 359 | typedef struct drm_i915_vblank_swap { |
| 360 | drm_drawable_t drawable; |
| 361 | enum drm_vblank_seq_type seqtype; |
| 362 | unsigned int sequence; |
| 363 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 364 | } drm_i915_vblank_swap_t; |
| 365 | typedef struct drm_i915_hws_addr { |
| 366 | __u64 addr; |
| 367 | } drm_i915_hws_addr_t; |
| 368 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 369 | struct drm_i915_gem_init { |
| 370 | __u64 gtt_start; |
| 371 | __u64 gtt_end; |
| 372 | }; |
| 373 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 374 | struct drm_i915_gem_create { |
| 375 | __u64 size; |
| 376 | __u32 handle; |
| 377 | __u32 pad; |
| 378 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 379 | }; |
| 380 | struct drm_i915_gem_pread { |
| 381 | __u32 handle; |
| 382 | __u32 pad; |
| 383 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 384 | __u64 offset; |
| 385 | __u64 size; |
| 386 | __u64 data_ptr; |
| 387 | }; |
| 388 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 389 | struct drm_i915_gem_pwrite { |
| 390 | __u32 handle; |
| 391 | __u32 pad; |
| 392 | __u64 offset; |
| 393 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 394 | __u64 size; |
| 395 | __u64 data_ptr; |
| 396 | }; |
| 397 | struct drm_i915_gem_mmap { |
| 398 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 399 | __u32 handle; |
| 400 | __u32 pad; |
| 401 | __u64 offset; |
| 402 | __u64 size; |
| 403 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 404 | __u64 addr_ptr; |
| 405 | }; |
| 406 | struct drm_i915_gem_mmap_gtt { |
| 407 | __u32 handle; |
| 408 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 409 | __u32 pad; |
| 410 | __u64 offset; |
| 411 | }; |
| 412 | struct drm_i915_gem_set_domain { |
| 413 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 414 | __u32 handle; |
| 415 | __u32 read_domains; |
| 416 | __u32 write_domain; |
| 417 | }; |
| 418 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 419 | struct drm_i915_gem_sw_finish { |
| 420 | __u32 handle; |
| 421 | }; |
| 422 | struct drm_i915_gem_relocation_entry { |
| 423 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 424 | __u32 target_handle; |
| 425 | __u32 delta; |
| 426 | __u64 offset; |
| 427 | __u64 presumed_offset; |
| 428 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 429 | __u32 read_domains; |
| 430 | __u32 write_domain; |
| 431 | }; |
| 432 | #define I915_GEM_DOMAIN_CPU 0x00000001 |
| 433 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 434 | #define I915_GEM_DOMAIN_RENDER 0x00000002 |
| 435 | #define I915_GEM_DOMAIN_SAMPLER 0x00000004 |
| 436 | #define I915_GEM_DOMAIN_COMMAND 0x00000008 |
| 437 | #define I915_GEM_DOMAIN_INSTRUCTION 0x00000010 |
| 438 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 439 | #define I915_GEM_DOMAIN_VERTEX 0x00000020 |
| 440 | #define I915_GEM_DOMAIN_GTT 0x00000040 |
| 441 | struct drm_i915_gem_exec_object { |
| 442 | __u32 handle; |
| 443 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 444 | __u32 relocation_count; |
| 445 | __u64 relocs_ptr; |
| 446 | __u64 alignment; |
| 447 | __u64 offset; |
| 448 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 449 | }; |
| 450 | struct drm_i915_gem_execbuffer { |
| 451 | __u64 buffers_ptr; |
| 452 | __u32 buffer_count; |
| 453 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 454 | __u32 batch_start_offset; |
| 455 | __u32 batch_len; |
| 456 | __u32 DR1; |
| 457 | __u32 DR4; |
| 458 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 459 | __u32 num_cliprects; |
| 460 | __u64 cliprects_ptr; |
| 461 | }; |
| 462 | struct drm_i915_gem_exec_object2 { |
| 463 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 464 | __u32 handle; |
| 465 | __u32 relocation_count; |
| 466 | __u64 relocs_ptr; |
| 467 | __u64 alignment; |
| 468 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 469 | __u64 offset; |
| 470 | #define EXEC_OBJECT_NEEDS_FENCE (1<<0) |
| 471 | #define EXEC_OBJECT_NEEDS_GTT (1<<1) |
| 472 | #define EXEC_OBJECT_WRITE (1<<2) |
| 473 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 474 | #define __EXEC_OBJECT_UNKNOWN_FLAGS -(EXEC_OBJECT_WRITE<<1) |
| 475 | __u64 flags; |
| 476 | __u64 rsvd1; |
| 477 | __u64 rsvd2; |
| 478 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 479 | }; |
| 480 | struct drm_i915_gem_execbuffer2 { |
| 481 | __u64 buffers_ptr; |
| 482 | __u32 buffer_count; |
| 483 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 484 | __u32 batch_start_offset; |
| 485 | __u32 batch_len; |
| 486 | __u32 DR1; |
| 487 | __u32 DR4; |
| 488 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 489 | __u32 num_cliprects; |
| 490 | __u64 cliprects_ptr; |
| 491 | #define I915_EXEC_RING_MASK (7<<0) |
| 492 | #define I915_EXEC_DEFAULT (0<<0) |
| 493 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 494 | #define I915_EXEC_RENDER (1<<0) |
| 495 | #define I915_EXEC_BSD (2<<0) |
| 496 | #define I915_EXEC_BLT (3<<0) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 497 | #define I915_EXEC_CONSTANTS_MASK (3<<6) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 498 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 499 | #define I915_EXEC_CONSTANTS_REL_GENERAL (0<<6) |
| 500 | #define I915_EXEC_CONSTANTS_ABSOLUTE (1<<6) |
| 501 | #define I915_EXEC_CONSTANTS_REL_SURFACE (2<<6) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 502 | __u64 flags; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 503 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 504 | __u64 rsvd1; |
| 505 | __u64 rsvd2; |
| 506 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 507 | #define I915_EXEC_GEN7_SOL_RESET (1<<8) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 508 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 509 | #define I915_EXEC_SECURE (1<<9) |
| 510 | #define I915_EXEC_IS_PINNED (1<<10) |
| 511 | #define I915_EXEC_NO_RELOC (1<<11) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 512 | #define I915_EXEC_HANDLE_LUT (1<<12) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 513 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 514 | #define __I915_EXEC_UNKNOWN_FLAGS -(I915_EXEC_HANDLE_LUT<<1) |
| 515 | #define I915_EXEC_CONTEXT_ID_MASK (0xffffffff) |
| 516 | #define i915_execbuffer2_set_context_id(eb2, context) (eb2).rsvd1 = context & I915_EXEC_CONTEXT_ID_MASK |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 517 | #define i915_execbuffer2_get_context_id(eb2) ((eb2).rsvd1 & I915_EXEC_CONTEXT_ID_MASK) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 518 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 519 | struct drm_i915_gem_pin { |
| 520 | __u32 handle; |
| 521 | __u32 pad; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 522 | __u64 alignment; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 523 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 524 | __u64 offset; |
| 525 | }; |
| 526 | struct drm_i915_gem_unpin { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 527 | __u32 handle; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 528 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 529 | __u32 pad; |
| 530 | }; |
| 531 | struct drm_i915_gem_busy { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 532 | __u32 handle; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 533 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 534 | __u32 busy; |
| 535 | }; |
| 536 | #define I915_CACHING_NONE 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 537 | #define I915_CACHING_CACHED 1 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 538 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 539 | struct drm_i915_gem_caching { |
| 540 | __u32 handle; |
| 541 | __u32 caching; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 542 | }; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 543 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 544 | #define I915_TILING_NONE 0 |
| 545 | #define I915_TILING_X 1 |
| 546 | #define I915_TILING_Y 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 547 | #define I915_BIT_6_SWIZZLE_NONE 0 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 548 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 549 | #define I915_BIT_6_SWIZZLE_9 1 |
| 550 | #define I915_BIT_6_SWIZZLE_9_10 2 |
| 551 | #define I915_BIT_6_SWIZZLE_9_11 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 552 | #define I915_BIT_6_SWIZZLE_9_10_11 4 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 553 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 554 | #define I915_BIT_6_SWIZZLE_UNKNOWN 5 |
| 555 | #define I915_BIT_6_SWIZZLE_9_17 6 |
| 556 | #define I915_BIT_6_SWIZZLE_9_10_17 7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 557 | struct drm_i915_gem_set_tiling { |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 558 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 559 | __u32 handle; |
| 560 | __u32 tiling_mode; |
| 561 | __u32 stride; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 562 | __u32 swizzle_mode; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 563 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 564 | }; |
| 565 | struct drm_i915_gem_get_tiling { |
| 566 | __u32 handle; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 567 | __u32 tiling_mode; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 568 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 569 | __u32 swizzle_mode; |
| 570 | }; |
| 571 | struct drm_i915_gem_get_aperture { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 572 | __u64 aper_size; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 573 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 574 | __u64 aper_available_size; |
| 575 | }; |
| 576 | struct drm_i915_get_pipe_from_crtc_id { |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 577 | __u32 crtc_id; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 578 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 579 | __u32 pipe; |
| 580 | }; |
| 581 | #define I915_MADV_WILLNEED 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 582 | #define I915_MADV_DONTNEED 1 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 583 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 584 | #define __I915_MADV_PURGED 2 |
| 585 | struct drm_i915_gem_madvise { |
| 586 | __u32 handle; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 587 | __u32 madv; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 588 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 589 | __u32 retained; |
| 590 | }; |
| 591 | #define I915_OVERLAY_TYPE_MASK 0xff |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 592 | #define I915_OVERLAY_YUV_PLANAR 0x01 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 593 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 594 | #define I915_OVERLAY_YUV_PACKED 0x02 |
| 595 | #define I915_OVERLAY_RGB 0x03 |
| 596 | #define I915_OVERLAY_DEPTH_MASK 0xff00 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 597 | #define I915_OVERLAY_RGB24 0x1000 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 598 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 599 | #define I915_OVERLAY_RGB16 0x2000 |
| 600 | #define I915_OVERLAY_RGB15 0x3000 |
| 601 | #define I915_OVERLAY_YUV422 0x0100 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 602 | #define I915_OVERLAY_YUV411 0x0200 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 603 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 604 | #define I915_OVERLAY_YUV420 0x0300 |
| 605 | #define I915_OVERLAY_YUV410 0x0400 |
| 606 | #define I915_OVERLAY_SWAP_MASK 0xff0000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 607 | #define I915_OVERLAY_NO_SWAP 0x000000 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 608 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 609 | #define I915_OVERLAY_UV_SWAP 0x010000 |
| 610 | #define I915_OVERLAY_Y_SWAP 0x020000 |
| 611 | #define I915_OVERLAY_Y_AND_UV_SWAP 0x030000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 612 | #define I915_OVERLAY_FLAGS_MASK 0xff000000 |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 613 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 614 | #define I915_OVERLAY_ENABLE 0x01000000 |
| 615 | struct drm_intel_overlay_put_image { |
| 616 | __u32 flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 617 | __u32 bo_handle; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 618 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 619 | __u16 stride_Y; |
| 620 | __u16 stride_UV; |
| 621 | __u32 offset_Y; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 622 | __u32 offset_U; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 623 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 624 | __u32 offset_V; |
| 625 | __u16 src_width; |
| 626 | __u16 src_height; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 627 | __u16 src_scan_width; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 628 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 629 | __u16 src_scan_height; |
| 630 | __u32 crtc_id; |
| 631 | __u16 dst_x; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 632 | __u16 dst_y; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 633 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 634 | __u16 dst_width; |
| 635 | __u16 dst_height; |
| 636 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 637 | #define I915_OVERLAY_UPDATE_ATTRS (1<<0) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 638 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 639 | #define I915_OVERLAY_UPDATE_GAMMA (1<<1) |
| 640 | struct drm_intel_overlay_attrs { |
| 641 | __u32 flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 642 | __u32 color_key; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 643 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 644 | __s32 brightness; |
| 645 | __u32 contrast; |
| 646 | __u32 saturation; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 647 | __u32 gamma0; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 648 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 649 | __u32 gamma1; |
| 650 | __u32 gamma2; |
| 651 | __u32 gamma3; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 652 | __u32 gamma4; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 653 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 654 | __u32 gamma5; |
| 655 | }; |
| 656 | #define I915_SET_COLORKEY_NONE (1<<0) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 657 | #define I915_SET_COLORKEY_DESTINATION (1<<1) |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 658 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 659 | #define I915_SET_COLORKEY_SOURCE (1<<2) |
| 660 | struct drm_intel_sprite_colorkey { |
| 661 | __u32 plane_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 662 | __u32 min_value; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 663 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 664 | __u32 channel_mask; |
| 665 | __u32 max_value; |
| 666 | __u32 flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 667 | }; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 668 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 669 | struct drm_i915_gem_wait { |
| 670 | __u32 bo_handle; |
| 671 | __u32 flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 672 | __s64 timeout_ns; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 673 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 674 | }; |
| 675 | struct drm_i915_gem_context_create { |
| 676 | __u32 ctx_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 677 | __u32 pad; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 678 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 679 | }; |
| 680 | struct drm_i915_gem_context_destroy { |
| 681 | __u32 ctx_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 682 | __u32 pad; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 683 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 684 | }; |
| 685 | struct drm_i915_reg_read { |
| 686 | __u64 offset; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 687 | __u64 val; |
Elliott Hughes | 8cb52b0 | 2013-11-21 13:43:23 -0800 | [diff] [blame] | 688 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 689 | }; |
| 690 | #endif |