Go to the documentation of this file.
11 #define I810_DMA_BUF_ORDER 12
12 #define I810_DMA_BUF_SZ (1<<I810_DMA_BUF_ORDER)
13 #define I810_DMA_BUF_NR 256
14 #define I810_NR_SAREA_CLIPRECTS 8
18 #define I810_NR_TEX_REGIONS 64
19 #define I810_LOG_MIN_TEX_REGION_SIZE 16
22 #define I810_UPLOAD_TEX0IMAGE 0x1
23 #define I810_UPLOAD_TEX1IMAGE 0x2
24 #define I810_UPLOAD_CTX 0x4
25 #define I810_UPLOAD_BUFFERS 0x8
26 #define I810_UPLOAD_TEX0 0x10
27 #define I810_UPLOAD_TEX1 0x20
28 #define I810_UPLOAD_CLIPRECTS 0x40
43 #define I810_DESTREG_DI0 0
44 #define I810_DESTREG_DI1 1
45 #define I810_DESTREG_DV0 2
46 #define I810_DESTREG_DV1 3
47 #define I810_DESTREG_DR0 4
48 #define I810_DESTREG_DR1 5
49 #define I810_DESTREG_DR2 6
50 #define I810_DESTREG_DR3 7
51 #define I810_DESTREG_DR4 8
52 #define I810_DEST_SETUP_SIZE 10
56 #define I810_CTXREG_CF0 0
57 #define I810_CTXREG_CF1 1
58 #define I810_CTXREG_ST0 2
59 #define I810_CTXREG_ST1 3
60 #define I810_CTXREG_VF 4
61 #define I810_CTXREG_MT 5
62 #define I810_CTXREG_MC0 6
63 #define I810_CTXREG_MC1 7
64 #define I810_CTXREG_MC2 8
65 #define I810_CTXREG_MA0 9
66 #define I810_CTXREG_MA1 10
67 #define I810_CTXREG_MA2 11
68 #define I810_CTXREG_SDM 12
69 #define I810_CTXREG_FOG 13
70 #define I810_CTXREG_B1 14
71 #define I810_CTXREG_B2 15
72 #define I810_CTXREG_LCS 16
73 #define I810_CTXREG_PV 17
74 #define I810_CTXREG_ZA 18
75 #define I810_CTXREG_AA 19
76 #define I810_CTX_SETUP_SIZE 20
80 #define I810_TEXREG_MI0 0
81 #define I810_TEXREG_MI1 1
82 #define I810_TEXREG_MI2 2
83 #define I810_TEXREG_MI3 3
84 #define I810_TEXREG_MF 4
85 #define I810_TEXREG_MLC 5
86 #define I810_TEXREG_MLL 6
87 #define I810_TEXREG_MCS 7
88 #define I810_TEX_SETUP_SIZE 8
92 #define I810_FRONT 0x1
94 #define I810_DEPTH 0x4
196 #define DRM_I810_INIT 0x00
197 #define DRM_I810_VERTEX 0x01
198 #define DRM_I810_CLEAR 0x02
199 #define DRM_I810_FLUSH 0x03
200 #define DRM_I810_GETAGE 0x04
201 #define DRM_I810_GETBUF 0x05
202 #define DRM_I810_SWAP 0x06
203 #define DRM_I810_COPY 0x07
204 #define DRM_I810_DOCOPY 0x08
205 #define DRM_I810_OV0INFO 0x09
206 #define DRM_I810_FSTATUS 0x0a
207 #define DRM_I810_OV0FLIP 0x0b
208 #define DRM_I810_MC 0x0c
209 #define DRM_I810_RSTATUS 0x0d
210 #define DRM_I810_FLIP 0x0e
212 #define DRM_IOCTL_I810_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_I810_INIT, drm_i810_init_t)
213 #define DRM_IOCTL_I810_VERTEX DRM_IOW( DRM_COMMAND_BASE + DRM_I810_VERTEX, drm_i810_vertex_t)
214 #define DRM_IOCTL_I810_CLEAR DRM_IOW( DRM_COMMAND_BASE + DRM_I810_CLEAR, drm_i810_clear_t)
215 #define DRM_IOCTL_I810_FLUSH DRM_IO( DRM_COMMAND_BASE + DRM_I810_FLUSH)
216 #define DRM_IOCTL_I810_GETAGE DRM_IO( DRM_COMMAND_BASE + DRM_I810_GETAGE)
217 #define DRM_IOCTL_I810_GETBUF DRM_IOWR(DRM_COMMAND_BASE + DRM_I810_GETBUF, drm_i810_dma_t)
218 #define DRM_IOCTL_I810_SWAP DRM_IO( DRM_COMMAND_BASE + DRM_I810_SWAP)
219 #define DRM_IOCTL_I810_COPY DRM_IOW( DRM_COMMAND_BASE + DRM_I810_COPY, drm_i810_copy_t)
220 #define DRM_IOCTL_I810_DOCOPY DRM_IO( DRM_COMMAND_BASE + DRM_I810_DOCOPY)
221 #define DRM_IOCTL_I810_OV0INFO DRM_IOR( DRM_COMMAND_BASE + DRM_I810_OV0INFO, drm_i810_overlay_t)
222 #define DRM_IOCTL_I810_FSTATUS DRM_IO ( DRM_COMMAND_BASE + DRM_I810_FSTATUS)
223 #define DRM_IOCTL_I810_OV0FLIP DRM_IO ( DRM_COMMAND_BASE + DRM_I810_OV0FLIP)
224 #define DRM_IOCTL_I810_MC DRM_IOW( DRM_COMMAND_BASE + DRM_I810_MC, drm_i810_mc_t)
225 #define DRM_IOCTL_I810_RSTATUS DRM_IO ( DRM_COMMAND_BASE + DRM_I810_RSTATUS)
226 #define DRM_IOCTL_I810_FLIP DRM_IO ( DRM_COMMAND_BASE + DRM_I810_FLIP)
251 #define PR_TRIANGLES (0x0<<18)
252 #define PR_TRISTRIP_0 (0x1<<18)
253 #define PR_TRISTRIP_1 (0x2<<18)
254 #define PR_TRIFAN (0x3<<18)
255 #define PR_POLYGON (0x4<<18)
256 #define PR_LINES (0x5<<18)
257 #define PR_LINESTRIP (0x6<<18)
258 #define PR_RECTS (0x7<<18)
259 #define PR_MASK (0x7<<18)