blob: 35c94f6b15b91c3826cc5f037ae5918f83d9b9b6 [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 __R128_DRM_H__
20#define __R128_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#ifndef __R128_SAREA_DEFINES__
Christopher Ferris05d08e92016-02-04 13:16:38 -080026#define __R128_SAREA_DEFINES__
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define R128_UPLOAD_CONTEXT 0x001
Christopher Ferris106b3a82016-08-24 12:15:38 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029#define R128_UPLOAD_SETUP 0x002
30#define R128_UPLOAD_TEX0 0x004
Christopher Ferris05d08e92016-02-04 13:16:38 -080031#define R128_UPLOAD_TEX1 0x008
Ben Cheng655a7c02013-10-16 16:09:24 -070032#define R128_UPLOAD_TEX0IMAGES 0x010
Christopher Ferris106b3a82016-08-24 12:15:38 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define R128_UPLOAD_TEX1IMAGES 0x020
35#define R128_UPLOAD_CORE 0x040
Christopher Ferris05d08e92016-02-04 13:16:38 -080036#define R128_UPLOAD_MASKS 0x080
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define R128_UPLOAD_WINDOW 0x100
Christopher Ferris106b3a82016-08-24 12:15:38 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define R128_UPLOAD_CLIPRECTS 0x200
40#define R128_REQUIRE_QUIESCENCE 0x400
Christopher Ferris05d08e92016-02-04 13:16:38 -080041#define R128_UPLOAD_ALL 0x7ff
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define R128_FRONT 0x1
Christopher Ferris106b3a82016-08-24 12:15:38 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044#define R128_BACK 0x2
45#define R128_DEPTH 0x4
Christopher Ferris05d08e92016-02-04 13:16:38 -080046#define R128_POINTS 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define R128_LINES 0x2
Christopher Ferris106b3a82016-08-24 12:15:38 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define R128_LINE_STRIP 0x3
50#define R128_TRIANGLES 0x4
Christopher Ferris05d08e92016-02-04 13:16:38 -080051#define R128_TRIANGLE_FAN 0x5
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define R128_TRIANGLE_STRIP 0x6
Christopher Ferris106b3a82016-08-24 12:15:38 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054#define R128_BUFFER_SIZE 16384
55#define R128_INDEX_PRIM_OFFSET 20
Christopher Ferris05d08e92016-02-04 13:16:38 -080056#define R128_HOSTDATA_BLIT_OFFSET 32
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define R128_NR_SAREA_CLIPRECTS 12
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#define R128_LOCAL_TEX_HEAP 0
60#define R128_AGP_TEX_HEAP 1
Christopher Ferris05d08e92016-02-04 13:16:38 -080061#define R128_NR_TEX_HEAPS 2
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define R128_NR_TEX_REGIONS 64
Christopher Ferris106b3a82016-08-24 12:15:38 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064#define R128_LOG_TEX_GRANULARITY 16
65#define R128_NR_CONTEXT_REGS 12
Christopher Ferris05d08e92016-02-04 13:16:38 -080066#define R128_MAX_TEXTURE_LEVELS 11
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define R128_MAX_TEXTURE_UNITS 2
Christopher Ferris106b3a82016-08-24 12:15:38 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#endif
70typedef struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -080071 unsigned int dst_pitch_offset_c;
Tao Baod7db5942015-01-28 10:07:51 -080072 unsigned int dp_gui_master_cntl_c;
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 unsigned int sc_top_left_c;
75 unsigned int sc_bottom_right_c;
Christopher Ferris05d08e92016-02-04 13:16:38 -080076 unsigned int z_offset_c;
Tao Baod7db5942015-01-28 10:07:51 -080077 unsigned int z_pitch_c;
Christopher Ferris106b3a82016-08-24 12:15:38 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned int z_sten_cntl_c;
80 unsigned int tex_cntl_c;
Christopher Ferris05d08e92016-02-04 13:16:38 -080081 unsigned int misc_3d_state_cntl_reg;
Tao Baod7db5942015-01-28 10:07:51 -080082 unsigned int texture_clr_cmp_clr_c;
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 unsigned int texture_clr_cmp_msk_c;
85 unsigned int fog_color_c;
Christopher Ferris05d08e92016-02-04 13:16:38 -080086 unsigned int tex_size_pitch_c;
Tao Baod7db5942015-01-28 10:07:51 -080087 unsigned int constant_color_c;
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 unsigned int pm4_vc_fpu_setup;
90 unsigned int setup_cntl;
Christopher Ferris05d08e92016-02-04 13:16:38 -080091 unsigned int dp_write_mask;
Tao Baod7db5942015-01-28 10:07:51 -080092 unsigned int sten_ref_mask_c;
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 unsigned int plane_3d_mask_c;
95 unsigned int window_xy_offset;
Christopher Ferris05d08e92016-02-04 13:16:38 -080096 unsigned int scale_3d_cntl;
Ben Cheng655a7c02013-10-16 16:09:24 -070097} drm_r128_context_regs_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800100 unsigned int tex_cntl;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800101 unsigned int tex_combine_cntl;
Tao Baod7db5942015-01-28 10:07:51 -0800102 unsigned int tex_size_pitch;
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 tex_offset[R128_MAX_TEXTURE_LEVELS];
105 unsigned int tex_border_color;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800106} drm_r128_texture_regs_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107typedef struct drm_r128_sarea {
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 drm_r128_context_regs_t context_state;
110 drm_r128_texture_regs_t tex_state[R128_MAX_TEXTURE_UNITS];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800111 unsigned int dirty;
Tao Baod7db5942015-01-28 10:07:51 -0800112 unsigned int vertsize;
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 unsigned int vc_format;
115 struct drm_clip_rect boxes[R128_NR_SAREA_CLIPRECTS];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800116 unsigned int nbox;
Tao Baod7db5942015-01-28 10:07:51 -0800117 unsigned int last_frame;
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 unsigned int last_dispatch;
120 struct drm_tex_region tex_list[R128_NR_TEX_HEAPS][R128_NR_TEX_REGIONS + 1];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800121 unsigned int tex_age[R128_NR_TEX_HEAPS];
Tao Baod7db5942015-01-28 10:07:51 -0800122 int ctx_owner;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 int pfAllowPageFlip;
125 int pfCurrentPage;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800126} drm_r128_sarea_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700127#define DRM_R128_INIT 0x00
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 DRM_R128_CCE_START 0x01
130#define DRM_R128_CCE_STOP 0x02
Christopher Ferris05d08e92016-02-04 13:16:38 -0800131#define DRM_R128_CCE_RESET 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700132#define DRM_R128_CCE_IDLE 0x04
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 DRM_R128_RESET 0x06
135#define DRM_R128_SWAP 0x07
Christopher Ferris05d08e92016-02-04 13:16:38 -0800136#define DRM_R128_CLEAR 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define DRM_R128_VERTEX 0x09
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 DRM_R128_INDICES 0x0a
140#define DRM_R128_BLIT 0x0b
Christopher Ferris05d08e92016-02-04 13:16:38 -0800141#define DRM_R128_DEPTH 0x0c
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define DRM_R128_STIPPLE 0x0d
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_R128_INDIRECT 0x0f
145#define DRM_R128_FULLSCREEN 0x10
Christopher Ferris05d08e92016-02-04 13:16:38 -0800146#define DRM_R128_CLEAR2 0x11
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define DRM_R128_GETPARAM 0x12
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_R128_FLIP 0x13
Tao Baod7db5942015-01-28 10:07:51 -0800150#define DRM_IOCTL_R128_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_R128_INIT, drm_r128_init_t)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800151#define DRM_IOCTL_R128_CCE_START DRM_IO(DRM_COMMAND_BASE + DRM_R128_CCE_START)
Tao Baod7db5942015-01-28 10:07:51 -0800152#define DRM_IOCTL_R128_CCE_STOP DRM_IOW(DRM_COMMAND_BASE + DRM_R128_CCE_STOP, drm_r128_cce_stop_t)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154#define DRM_IOCTL_R128_CCE_RESET DRM_IO(DRM_COMMAND_BASE + DRM_R128_CCE_RESET)
155#define DRM_IOCTL_R128_CCE_IDLE DRM_IO(DRM_COMMAND_BASE + DRM_R128_CCE_IDLE)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800156#define DRM_IOCTL_R128_RESET DRM_IO(DRM_COMMAND_BASE + DRM_R128_RESET)
Tao Baod7db5942015-01-28 10:07:51 -0800157#define DRM_IOCTL_R128_SWAP DRM_IO(DRM_COMMAND_BASE + DRM_R128_SWAP)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159#define DRM_IOCTL_R128_CLEAR DRM_IOW(DRM_COMMAND_BASE + DRM_R128_CLEAR, drm_r128_clear_t)
160#define DRM_IOCTL_R128_VERTEX DRM_IOW(DRM_COMMAND_BASE + DRM_R128_VERTEX, drm_r128_vertex_t)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800161#define DRM_IOCTL_R128_INDICES DRM_IOW(DRM_COMMAND_BASE + DRM_R128_INDICES, drm_r128_indices_t)
Tao Baod7db5942015-01-28 10:07:51 -0800162#define DRM_IOCTL_R128_BLIT DRM_IOW(DRM_COMMAND_BASE + DRM_R128_BLIT, drm_r128_blit_t)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164#define DRM_IOCTL_R128_DEPTH DRM_IOW(DRM_COMMAND_BASE + DRM_R128_DEPTH, drm_r128_depth_t)
165#define DRM_IOCTL_R128_STIPPLE DRM_IOW(DRM_COMMAND_BASE + DRM_R128_STIPPLE, drm_r128_stipple_t)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800166#define DRM_IOCTL_R128_INDIRECT DRM_IOWR(DRM_COMMAND_BASE + DRM_R128_INDIRECT, drm_r128_indirect_t)
Tao Baod7db5942015-01-28 10:07:51 -0800167#define DRM_IOCTL_R128_FULLSCREEN DRM_IOW(DRM_COMMAND_BASE + DRM_R128_FULLSCREEN, drm_r128_fullscreen_t)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169#define DRM_IOCTL_R128_CLEAR2 DRM_IOW(DRM_COMMAND_BASE + DRM_R128_CLEAR2, drm_r128_clear2_t)
170#define DRM_IOCTL_R128_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_R128_GETPARAM, drm_r128_getparam_t)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800171#define DRM_IOCTL_R128_FLIP DRM_IO(DRM_COMMAND_BASE + DRM_R128_FLIP)
Ben Cheng655a7c02013-10-16 16:09:24 -0700172typedef struct drm_r128_init {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 enum {
175 R128_INIT_CCE = 0x01,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800176 R128_CLEANUP_CCE = 0x02
Tao Baod7db5942015-01-28 10:07:51 -0800177 } func;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 unsigned long sarea_priv_offset;
180 int is_pci;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800181 int cce_mode;
Tao Baod7db5942015-01-28 10:07:51 -0800182 int cce_secure;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 int ring_size;
185 int usec_timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800186 unsigned int fb_bpp;
Tao Baod7db5942015-01-28 10:07:51 -0800187 unsigned int front_offset, front_pitch;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 unsigned int back_offset, back_pitch;
190 unsigned int depth_bpp;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800191 unsigned int depth_offset, depth_pitch;
Tao Baod7db5942015-01-28 10:07:51 -0800192 unsigned int span_offset;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 unsigned long fb_offset;
195 unsigned long mmio_offset;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800196 unsigned long ring_offset;
Tao Baod7db5942015-01-28 10:07:51 -0800197 unsigned long ring_rptr_offset;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 unsigned long buffers_offset;
200 unsigned long agp_textures_offset;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800201} drm_r128_init_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700202typedef struct drm_r128_cce_stop {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 int flush;
205 int idle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800206} drm_r128_cce_stop_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700207typedef struct drm_r128_clear {
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 unsigned int flags;
210 unsigned int clear_color;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800211 unsigned int clear_depth;
Tao Baod7db5942015-01-28 10:07:51 -0800212 unsigned int color_mask;
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 unsigned int depth_mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700215} drm_r128_clear_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800216typedef struct drm_r128_vertex {
Tao Baod7db5942015-01-28 10:07:51 -0800217 int prim;
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 int idx;
220 int count;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800221 int discard;
Ben Cheng655a7c02013-10-16 16:09:24 -0700222} drm_r128_vertex_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700224typedef struct drm_r128_indices {
Tao Baod7db5942015-01-28 10:07:51 -0800225 int prim;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800226 int idx;
Tao Baod7db5942015-01-28 10:07:51 -0800227 int start;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 int end;
230 int discard;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800231} drm_r128_indices_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700232typedef struct drm_r128_blit {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 int idx;
235 int pitch;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800236 int offset;
Tao Baod7db5942015-01-28 10:07:51 -0800237 int format;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 unsigned short x, y;
240 unsigned short width, height;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800241} drm_r128_blit_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700242typedef struct drm_r128_depth {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 enum {
245 R128_WRITE_SPAN = 0x01,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800246 R128_WRITE_PIXELS = 0x02,
Tao Baod7db5942015-01-28 10:07:51 -0800247 R128_READ_SPAN = 0x03,
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 R128_READ_PIXELS = 0x04
250 } func;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800251 int n;
Tao Baod7db5942015-01-28 10:07:51 -0800252 int __user * x;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 int __user * y;
255 unsigned int __user * buffer;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800256 unsigned char __user * mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700257} drm_r128_depth_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259typedef struct drm_r128_stipple {
Tao Baod7db5942015-01-28 10:07:51 -0800260 unsigned int __user * mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800261} drm_r128_stipple_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700262typedef struct drm_r128_indirect {
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 int idx;
265 int start;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800266 int end;
Tao Baod7db5942015-01-28 10:07:51 -0800267 int discard;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700269} drm_r128_indirect_t;
270typedef struct drm_r128_fullscreen {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800271 enum {
Tao Baod7db5942015-01-28 10:07:51 -0800272 R128_INIT_FULLSCREEN = 0x01,
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 R128_CLEANUP_FULLSCREEN = 0x02
275 } func;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800276} drm_r128_fullscreen_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700277#define R128_PARAM_IRQ_NR 1
Christopher Ferris106b3a82016-08-24 12:15:38 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700279typedef struct drm_r128_getparam {
Tao Baod7db5942015-01-28 10:07:51 -0800280 int param;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800281 void __user * value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700282} drm_r128_getparam_t;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284#ifdef __cplusplus
285#endif
Ben Cheng655a7c02013-10-16 16:09:24 -0700286#endif