blob: 9292a802bd2e4eb268d911135cd8a4b83048ae58 [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 _I810_DRM_H_
20#define _I810_DRM_H_
Christopher Ferris05d08e92016-02-04 13:16:38 -080021#include <drm/drm.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#ifndef _I810_DEFINES_
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080024#define _I810_DEFINES_
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define I810_DMA_BUF_ORDER 12
Tao Baod7db5942015-01-28 10:07:51 -080026#define I810_DMA_BUF_SZ (1 << I810_DMA_BUF_ORDER)
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define I810_DMA_BUF_NR 256
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080029#define I810_NR_SAREA_CLIPRECTS 8
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define I810_NR_TEX_REGIONS 64
31#define I810_LOG_MIN_TEX_REGION_SIZE 16
32#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080034#define I810_UPLOAD_TEX0IMAGE 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define I810_UPLOAD_TEX1IMAGE 0x2
36#define I810_UPLOAD_CTX 0x4
37#define I810_UPLOAD_BUFFERS 0x8
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080039#define I810_UPLOAD_TEX0 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define I810_UPLOAD_TEX1 0x20
41#define I810_UPLOAD_CLIPRECTS 0x40
42#define I810_DESTREG_DI0 0
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044#define I810_DESTREG_DI1 1
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define I810_DESTREG_DV0 2
46#define I810_DESTREG_DV1 3
47#define I810_DESTREG_DR0 4
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049#define I810_DESTREG_DR1 5
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define I810_DESTREG_DR2 6
51#define I810_DESTREG_DR3 7
52#define I810_DESTREG_DR4 8
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054#define I810_DEST_SETUP_SIZE 10
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define I810_CTXREG_CF0 0
56#define I810_CTXREG_CF1 1
57#define I810_CTXREG_ST0 2
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080059#define I810_CTXREG_ST1 3
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define I810_CTXREG_VF 4
61#define I810_CTXREG_MT 5
62#define I810_CTXREG_MC0 6
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080064#define I810_CTXREG_MC1 7
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define I810_CTXREG_MC2 8
66#define I810_CTXREG_MA0 9
67#define I810_CTXREG_MA1 10
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069#define I810_CTXREG_MA2 11
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define I810_CTXREG_SDM 12
71#define I810_CTXREG_FOG 13
72#define I810_CTXREG_B1 14
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074#define I810_CTXREG_B2 15
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define I810_CTXREG_LCS 16
76#define I810_CTXREG_PV 17
77#define I810_CTXREG_ZA 18
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079#define I810_CTXREG_AA 19
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define I810_CTX_SETUP_SIZE 20
81#define I810_TEXREG_MI0 0
82#define I810_TEXREG_MI1 1
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084#define I810_TEXREG_MI2 2
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define I810_TEXREG_MI3 3
86#define I810_TEXREG_MF 4
87#define I810_TEXREG_MLC 5
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089#define I810_TEXREG_MLL 6
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define I810_TEXREG_MCS 7
91#define I810_TEX_SETUP_SIZE 8
92#define I810_FRONT 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080094#define I810_BACK 0x2
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define I810_DEPTH 0x4
96typedef enum _drm_i810_init_func {
Tao Baod7db5942015-01-28 10:07:51 -080097 I810_INIT_DMA = 0x01,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080099 I810_CLEANUP_DMA = 0x02,
Tao Baod7db5942015-01-28 10:07:51 -0800100 I810_INIT_DMA_1_4 = 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700101} drm_i810_init_func_t;
102typedef struct _drm_i810_init {
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800104 drm_i810_init_func_t func;
Tao Baod7db5942015-01-28 10:07:51 -0800105 unsigned int mmio_offset;
106 unsigned int buffers_offset;
107 int sarea_priv_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800109 unsigned int ring_start;
Tao Baod7db5942015-01-28 10:07:51 -0800110 unsigned int ring_end;
111 unsigned int ring_size;
112 unsigned int front_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800114 unsigned int back_offset;
Tao Baod7db5942015-01-28 10:07:51 -0800115 unsigned int depth_offset;
116 unsigned int overlay_offset;
117 unsigned int overlay_physical;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800119 unsigned int w;
Tao Baod7db5942015-01-28 10:07:51 -0800120 unsigned int h;
121 unsigned int pitch;
122 unsigned int pitch_bits;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800124} drm_i810_init_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125typedef struct _drm_i810_pre12_init {
Tao Baod7db5942015-01-28 10:07:51 -0800126 drm_i810_init_func_t func;
127 unsigned int mmio_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800129 unsigned int buffers_offset;
Tao Baod7db5942015-01-28 10:07:51 -0800130 int sarea_priv_offset;
131 unsigned int ring_start;
132 unsigned int ring_end;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800134 unsigned int ring_size;
Tao Baod7db5942015-01-28 10:07:51 -0800135 unsigned int front_offset;
136 unsigned int back_offset;
137 unsigned int depth_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800139 unsigned int w;
Tao Baod7db5942015-01-28 10:07:51 -0800140 unsigned int h;
141 unsigned int pitch;
142 unsigned int pitch_bits;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800144} drm_i810_pre12_init_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700145typedef struct _drm_i810_tex_region {
Tao Baod7db5942015-01-28 10:07:51 -0800146 unsigned char next, prev;
147 unsigned char in_use;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800149 int age;
Ben Cheng655a7c02013-10-16 16:09:24 -0700150} drm_i810_tex_region_t;
151typedef struct _drm_i810_sarea {
Tao Baod7db5942015-01-28 10:07:51 -0800152 unsigned int ContextState[I810_CTX_SETUP_SIZE];
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800154 unsigned int BufferState[I810_DEST_SETUP_SIZE];
Tao Baod7db5942015-01-28 10:07:51 -0800155 unsigned int TexState[2][I810_TEX_SETUP_SIZE];
156 unsigned int dirty;
157 unsigned int nbox;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800159 struct drm_clip_rect boxes[I810_NR_SAREA_CLIPRECTS];
Tao Baod7db5942015-01-28 10:07:51 -0800160 drm_i810_tex_region_t texList[I810_NR_TEX_REGIONS + 1];
161 int texAge;
162 int last_enqueue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800164 int last_dispatch;
Tao Baod7db5942015-01-28 10:07:51 -0800165 int last_quiescent;
166 int ctxOwner;
167 int vertex_prim;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800169 int pf_enabled;
Tao Baod7db5942015-01-28 10:07:51 -0800170 int pf_active;
171 int pf_current_page;
Ben Cheng655a7c02013-10-16 16:09:24 -0700172} drm_i810_sarea_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800174#define DRM_I810_INIT 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -0700175#define DRM_I810_VERTEX 0x01
176#define DRM_I810_CLEAR 0x02
177#define DRM_I810_FLUSH 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800179#define DRM_I810_GETAGE 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define DRM_I810_GETBUF 0x05
181#define DRM_I810_SWAP 0x06
182#define DRM_I810_COPY 0x07
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800184#define DRM_I810_DOCOPY 0x08
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define DRM_I810_OV0INFO 0x09
186#define DRM_I810_FSTATUS 0x0a
187#define DRM_I810_OV0FLIP 0x0b
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800189#define DRM_I810_MC 0x0c
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define DRM_I810_RSTATUS 0x0d
191#define DRM_I810_FLIP 0x0e
Tao Baod7db5942015-01-28 10:07:51 -0800192#define DRM_IOCTL_I810_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_I810_INIT, drm_i810_init_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800194#define DRM_IOCTL_I810_VERTEX DRM_IOW(DRM_COMMAND_BASE + DRM_I810_VERTEX, drm_i810_vertex_t)
Tao Baod7db5942015-01-28 10:07:51 -0800195#define DRM_IOCTL_I810_CLEAR DRM_IOW(DRM_COMMAND_BASE + DRM_I810_CLEAR, drm_i810_clear_t)
196#define DRM_IOCTL_I810_FLUSH DRM_IO(DRM_COMMAND_BASE + DRM_I810_FLUSH)
197#define DRM_IOCTL_I810_GETAGE DRM_IO(DRM_COMMAND_BASE + DRM_I810_GETAGE)
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800199#define DRM_IOCTL_I810_GETBUF DRM_IOWR(DRM_COMMAND_BASE + DRM_I810_GETBUF, drm_i810_dma_t)
Tao Baod7db5942015-01-28 10:07:51 -0800200#define DRM_IOCTL_I810_SWAP DRM_IO(DRM_COMMAND_BASE + DRM_I810_SWAP)
201#define DRM_IOCTL_I810_COPY DRM_IOW(DRM_COMMAND_BASE + DRM_I810_COPY, drm_i810_copy_t)
202#define DRM_IOCTL_I810_DOCOPY DRM_IO(DRM_COMMAND_BASE + DRM_I810_DOCOPY)
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800204#define DRM_IOCTL_I810_OV0INFO DRM_IOR(DRM_COMMAND_BASE + DRM_I810_OV0INFO, drm_i810_overlay_t)
Tao Baod7db5942015-01-28 10:07:51 -0800205#define DRM_IOCTL_I810_FSTATUS DRM_IO(DRM_COMMAND_BASE + DRM_I810_FSTATUS)
206#define DRM_IOCTL_I810_OV0FLIP DRM_IO(DRM_COMMAND_BASE + DRM_I810_OV0FLIP)
207#define DRM_IOCTL_I810_MC DRM_IOW(DRM_COMMAND_BASE + DRM_I810_MC, drm_i810_mc_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800209#define DRM_IOCTL_I810_RSTATUS DRM_IO(DRM_COMMAND_BASE + DRM_I810_RSTATUS)
Tao Baod7db5942015-01-28 10:07:51 -0800210#define DRM_IOCTL_I810_FLIP DRM_IO(DRM_COMMAND_BASE + DRM_I810_FLIP)
Ben Cheng655a7c02013-10-16 16:09:24 -0700211typedef struct _drm_i810_clear {
Tao Baod7db5942015-01-28 10:07:51 -0800212 int clear_color;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800214 int clear_depth;
Tao Baod7db5942015-01-28 10:07:51 -0800215 int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700216} drm_i810_clear_t;
217typedef struct _drm_i810_vertex {
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800219 int idx;
Tao Baod7db5942015-01-28 10:07:51 -0800220 int used;
221 int discard;
Ben Cheng655a7c02013-10-16 16:09:24 -0700222} drm_i810_vertex_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800224typedef struct _drm_i810_copy_t {
Tao Baod7db5942015-01-28 10:07:51 -0800225 int idx;
226 int used;
227 void * address;
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800229} drm_i810_copy_t;
Tao Baod7db5942015-01-28 10:07:51 -0800230#define PR_TRIANGLES (0x0 << 18)
231#define PR_TRISTRIP_0 (0x1 << 18)
232#define PR_TRISTRIP_1 (0x2 << 18)
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800234#define PR_TRIFAN (0x3 << 18)
Tao Baod7db5942015-01-28 10:07:51 -0800235#define PR_POLYGON (0x4 << 18)
236#define PR_LINES (0x5 << 18)
237#define PR_LINESTRIP (0x6 << 18)
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800239#define PR_RECTS (0x7 << 18)
Tao Baod7db5942015-01-28 10:07:51 -0800240#define PR_MASK (0x7 << 18)
Ben Cheng655a7c02013-10-16 16:09:24 -0700241typedef struct drm_i810_dma {
Tao Baod7db5942015-01-28 10:07:51 -0800242 void * virtual;
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800244 int request_idx;
Tao Baod7db5942015-01-28 10:07:51 -0800245 int request_size;
246 int granted;
Ben Cheng655a7c02013-10-16 16:09:24 -0700247} drm_i810_dma_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800249typedef struct _drm_i810_overlay_t {
Tao Baod7db5942015-01-28 10:07:51 -0800250 unsigned int offset;
251 unsigned int physical;
Ben Cheng655a7c02013-10-16 16:09:24 -0700252} drm_i810_overlay_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800254typedef struct _drm_i810_mc {
Tao Baod7db5942015-01-28 10:07:51 -0800255 int idx;
256 int used;
257 int num_blocks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800259 int * length;
Tao Baod7db5942015-01-28 10:07:51 -0800260 unsigned int last_render;
Ben Cheng655a7c02013-10-16 16:09:24 -0700261} drm_i810_mc_t;
262#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */