Go to the documentation of this file.
33 #ifndef __R128_DRM_H__
34 #define __R128_DRM_H__
39 #ifndef __R128_SAREA_DEFINES__
40 #define __R128_SAREA_DEFINES__
44 #define R128_UPLOAD_CONTEXT 0x001
45 #define R128_UPLOAD_SETUP 0x002
46 #define R128_UPLOAD_TEX0 0x004
47 #define R128_UPLOAD_TEX1 0x008
48 #define R128_UPLOAD_TEX0IMAGES 0x010
49 #define R128_UPLOAD_TEX1IMAGES 0x020
50 #define R128_UPLOAD_CORE 0x040
51 #define R128_UPLOAD_MASKS 0x080
52 #define R128_UPLOAD_WINDOW 0x100
53 #define R128_UPLOAD_CLIPRECTS 0x200
54 #define R128_REQUIRE_QUIESCENCE 0x400
55 #define R128_UPLOAD_ALL 0x7ff
57 #define R128_FRONT 0x1
59 #define R128_DEPTH 0x4
63 #define R128_POINTS 0x1
64 #define R128_LINES 0x2
65 #define R128_LINE_STRIP 0x3
66 #define R128_TRIANGLES 0x4
67 #define R128_TRIANGLE_FAN 0x5
68 #define R128_TRIANGLE_STRIP 0x6
72 #define R128_BUFFER_SIZE 16384
76 #define R128_INDEX_PRIM_OFFSET 20
77 #define R128_HOSTDATA_BLIT_OFFSET 32
81 #define R128_NR_SAREA_CLIPRECTS 12
86 #define R128_LOCAL_TEX_HEAP 0
87 #define R128_AGP_TEX_HEAP 1
88 #define R128_NR_TEX_HEAPS 2
89 #define R128_NR_TEX_REGIONS 64
90 #define R128_LOG_TEX_GRANULARITY 16
92 #define R128_NR_CONTEXT_REGS 12
94 #define R128_MAX_TEXTURE_LEVELS 11
95 #define R128_MAX_TEXTURE_UNITS 2
178 #define DRM_R128_INIT 0x00
179 #define DRM_R128_CCE_START 0x01
180 #define DRM_R128_CCE_STOP 0x02
181 #define DRM_R128_CCE_RESET 0x03
182 #define DRM_R128_CCE_IDLE 0x04
184 #define DRM_R128_RESET 0x06
185 #define DRM_R128_SWAP 0x07
186 #define DRM_R128_CLEAR 0x08
187 #define DRM_R128_VERTEX 0x09
188 #define DRM_R128_INDICES 0x0a
189 #define DRM_R128_BLIT 0x0b
190 #define DRM_R128_DEPTH 0x0c
191 #define DRM_R128_STIPPLE 0x0d
193 #define DRM_R128_INDIRECT 0x0f
194 #define DRM_R128_FULLSCREEN 0x10
195 #define DRM_R128_CLEAR2 0x11
196 #define DRM_R128_GETPARAM 0x12
197 #define DRM_R128_FLIP 0x13
199 #define DRM_IOCTL_R128_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_R128_INIT, drm_r128_init_t)
200 #define DRM_IOCTL_R128_CCE_START DRM_IO( DRM_COMMAND_BASE + DRM_R128_CCE_START)
201 #define DRM_IOCTL_R128_CCE_STOP DRM_IOW( DRM_COMMAND_BASE + DRM_R128_CCE_STOP, drm_r128_cce_stop_t)
202 #define DRM_IOCTL_R128_CCE_RESET DRM_IO( DRM_COMMAND_BASE + DRM_R128_CCE_RESET)
203 #define DRM_IOCTL_R128_CCE_IDLE DRM_IO( DRM_COMMAND_BASE + DRM_R128_CCE_IDLE)
205 #define DRM_IOCTL_R128_RESET DRM_IO( DRM_COMMAND_BASE + DRM_R128_RESET)
206 #define DRM_IOCTL_R128_SWAP DRM_IO( DRM_COMMAND_BASE + DRM_R128_SWAP)
207 #define DRM_IOCTL_R128_CLEAR DRM_IOW( DRM_COMMAND_BASE + DRM_R128_CLEAR, drm_r128_clear_t)
208 #define DRM_IOCTL_R128_VERTEX DRM_IOW( DRM_COMMAND_BASE + DRM_R128_VERTEX, drm_r128_vertex_t)
209 #define DRM_IOCTL_R128_INDICES DRM_IOW( DRM_COMMAND_BASE + DRM_R128_INDICES, drm_r128_indices_t)
210 #define DRM_IOCTL_R128_BLIT DRM_IOW( DRM_COMMAND_BASE + DRM_R128_BLIT, drm_r128_blit_t)
211 #define DRM_IOCTL_R128_DEPTH DRM_IOW( DRM_COMMAND_BASE + DRM_R128_DEPTH, drm_r128_depth_t)
212 #define DRM_IOCTL_R128_STIPPLE DRM_IOW( DRM_COMMAND_BASE + DRM_R128_STIPPLE, drm_r128_stipple_t)
214 #define DRM_IOCTL_R128_INDIRECT DRM_IOWR(DRM_COMMAND_BASE + DRM_R128_INDIRECT, drm_r128_indirect_t)
215 #define DRM_IOCTL_R128_FULLSCREEN DRM_IOW( DRM_COMMAND_BASE + DRM_R128_FULLSCREEN, drm_r128_fullscreen_t)
216 #define DRM_IOCTL_R128_CLEAR2 DRM_IOW( DRM_COMMAND_BASE + DRM_R128_CLEAR2, drm_r128_clear2_t)
217 #define DRM_IOCTL_R128_GETPARAM DRM_IOWR( DRM_COMMAND_BASE + DRM_R128_GETPARAM, drm_r128_getparam_t)
218 #define DRM_IOCTL_R128_FLIP DRM_IO( DRM_COMMAND_BASE + DRM_R128_FLIP)
319 #define R128_PARAM_IRQ_NR 1