Go to the documentation of this file.
44 #ifndef __MGA_SAREA_DEFINES__
45 #define __MGA_SAREA_DEFINES__
54 #define MGA_WARP_TGZ 0
55 #define MGA_WARP_TGZF (MGA_F)
56 #define MGA_WARP_TGZA (MGA_A)
57 #define MGA_WARP_TGZAF (MGA_F|MGA_A)
58 #define MGA_WARP_TGZS (MGA_S)
59 #define MGA_WARP_TGZSF (MGA_S|MGA_F)
60 #define MGA_WARP_TGZSA (MGA_S|MGA_A)
61 #define MGA_WARP_TGZSAF (MGA_S|MGA_F|MGA_A)
62 #define MGA_WARP_T2GZ (MGA_T2)
63 #define MGA_WARP_T2GZF (MGA_T2|MGA_F)
64 #define MGA_WARP_T2GZA (MGA_T2|MGA_A)
65 #define MGA_WARP_T2GZAF (MGA_T2|MGA_A|MGA_F)
66 #define MGA_WARP_T2GZS (MGA_T2|MGA_S)
67 #define MGA_WARP_T2GZSF (MGA_T2|MGA_S|MGA_F)
68 #define MGA_WARP_T2GZSA (MGA_T2|MGA_S|MGA_A)
69 #define MGA_WARP_T2GZSAF (MGA_T2|MGA_S|MGA_F|MGA_A)
71 #define MGA_MAX_G200_PIPES 8
72 #define MGA_MAX_G400_PIPES 16
73 #define MGA_MAX_WARP_PIPES MGA_MAX_G400_PIPES
74 #define MGA_WARP_UCODE_SIZE 32768
76 #define MGA_CARD_TYPE_G200 1
77 #define MGA_CARD_TYPE_G400 2
78 #define MGA_CARD_TYPE_G450 3
79 #define MGA_CARD_TYPE_G550 4
87 #define MGA_UPLOAD_CONTEXT 0x1
88 #define MGA_UPLOAD_TEX0 0x2
89 #define MGA_UPLOAD_TEX1 0x4
90 #define MGA_UPLOAD_PIPE 0x8
91 #define MGA_UPLOAD_TEX0IMAGE 0x10
92 #define MGA_UPLOAD_TEX1IMAGE 0x20
93 #define MGA_UPLOAD_2D 0x40
94 #define MGA_WAIT_AGE 0x80
95 #define MGA_UPLOAD_CLIPRECTS 0x100
97 #define MGA_DMA_FLUSH 0x200
103 #define MGA_BUFFER_SIZE (1 << 16)
104 #define MGA_NUM_BUFFERS 128
108 #define MGA_NR_SAREA_CLIPRECTS 8
117 #define MGA_CARD_HEAP 0
118 #define MGA_AGP_HEAP 1
119 #define MGA_NR_TEX_HEAPS 2
120 #define MGA_NR_TEX_REGIONS 16
121 #define MGA_LOG_MIN_TEX_REGION_SIZE 16
123 #define DRM_MGA_IDLE_RETRY 2048
232 #define DRM_MGA_INIT 0x00
233 #define DRM_MGA_FLUSH 0x01
234 #define DRM_MGA_RESET 0x02
235 #define DRM_MGA_SWAP 0x03
236 #define DRM_MGA_CLEAR 0x04
237 #define DRM_MGA_VERTEX 0x05
238 #define DRM_MGA_INDICES 0x06
239 #define DRM_MGA_ILOAD 0x07
240 #define DRM_MGA_BLIT 0x08
241 #define DRM_MGA_GETPARAM 0x09
246 #define DRM_MGA_SET_FENCE 0x0a
247 #define DRM_MGA_WAIT_FENCE 0x0b
248 #define DRM_MGA_DMA_BOOTSTRAP 0x0c
250 #define DRM_IOCTL_MGA_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_INIT, drm_mga_init_t)
251 #define DRM_IOCTL_MGA_FLUSH DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_FLUSH, struct drm_lock)
252 #define DRM_IOCTL_MGA_RESET DRM_IO( DRM_COMMAND_BASE + DRM_MGA_RESET)
253 #define DRM_IOCTL_MGA_SWAP DRM_IO( DRM_COMMAND_BASE + DRM_MGA_SWAP)
254 #define DRM_IOCTL_MGA_CLEAR DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_CLEAR, drm_mga_clear_t)
255 #define DRM_IOCTL_MGA_VERTEX DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_VERTEX, drm_mga_vertex_t)
256 #define DRM_IOCTL_MGA_INDICES DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_INDICES, drm_mga_indices_t)
257 #define DRM_IOCTL_MGA_ILOAD DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_ILOAD, drm_mga_iload_t)
258 #define DRM_IOCTL_MGA_BLIT DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_BLIT, drm_mga_blit_t)
259 #define DRM_IOCTL_MGA_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_GETPARAM, drm_mga_getparam_t)
260 #define DRM_IOCTL_MGA_SET_FENCE DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_SET_FENCE, __u32)
261 #define DRM_IOCTL_MGA_WAIT_FENCE DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_WAIT_FENCE, __u32)
262 #define DRM_IOCTL_MGA_DMA_BOOTSTRAP DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_DMA_BOOTSTRAP, drm_mga_dma_bootstrap_t)
404 #define MGA_PARAM_IRQ_NR 1
412 #define MGA_PARAM_CARD_TYPE 2