Go to the documentation of this file.
26 #ifndef __SAVAGE_DRM_H__
27 #define __SAVAGE_DRM_H__
29 #ifndef __SAVAGE_SAREA_DEFINES__
30 #define __SAVAGE_SAREA_DEFINES__
39 #define SAVAGE_CARD_HEAP 0
40 #define SAVAGE_AGP_HEAP 1
41 #define SAVAGE_NR_TEX_HEAPS 2
42 #define SAVAGE_NR_TEX_REGIONS 16
43 #define SAVAGE_LOG_MIN_TEX_REGION_SIZE 16
61 #define DRM_SAVAGE_BCI_INIT 0x00
62 #define DRM_SAVAGE_BCI_CMDBUF 0x01
63 #define DRM_SAVAGE_BCI_EVENT_EMIT 0x02
64 #define DRM_SAVAGE_BCI_EVENT_WAIT 0x03
66 #define DRM_IOCTL_SAVAGE_BCI_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_INIT, drm_savage_init_t)
67 #define DRM_IOCTL_SAVAGE_BCI_CMDBUF DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_CMDBUF, drm_savage_cmdbuf_t)
68 #define DRM_IOCTL_SAVAGE_BCI_EVENT_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_EMIT, drm_savage_event_emit_t)
69 #define DRM_IOCTL_SAVAGE_BCI_EVENT_WAIT DRM_IOW( DRM_COMMAND_BASE + DRM_SAVAGE_BCI_EVENT_WAIT, drm_savage_event_wait_t)
71 #define SAVAGE_DMA_PCI 1
72 #define SAVAGE_DMA_AGP 3
120 #define SAVAGE_WAIT_2D 0x1
121 #define SAVAGE_WAIT_3D 0x2
122 #define SAVAGE_WAIT_IRQ 0x4
130 #define SAVAGE_CMD_STATE 0
131 #define SAVAGE_CMD_DMA_PRIM 1
132 #define SAVAGE_CMD_VB_PRIM 2
133 #define SAVAGE_CMD_DMA_IDX 3
134 #define SAVAGE_CMD_VB_IDX 4
135 #define SAVAGE_CMD_CLEAR 5
136 #define SAVAGE_CMD_SWAP 6
140 #define SAVAGE_PRIM_TRILIST 0
141 #define SAVAGE_PRIM_TRISTRIP 1
142 #define SAVAGE_PRIM_TRIFAN 2
143 #define SAVAGE_PRIM_TRILIST_201 3
148 #define SAVAGE_SKIP_Z 0x01
149 #define SAVAGE_SKIP_W 0x02
150 #define SAVAGE_SKIP_C0 0x04
151 #define SAVAGE_SKIP_C1 0x08
152 #define SAVAGE_SKIP_S0 0x10
153 #define SAVAGE_SKIP_T0 0x20
154 #define SAVAGE_SKIP_ST0 0x30
155 #define SAVAGE_SKIP_S1 0x40
156 #define SAVAGE_SKIP_T1 0x80
157 #define SAVAGE_SKIP_ST1 0xc0
158 #define SAVAGE_SKIP_ALL_S3D 0x3f
159 #define SAVAGE_SKIP_ALL_S4 0xff
163 #define SAVAGE_FRONT 0x1
164 #define SAVAGE_BACK 0x2
165 #define SAVAGE_DEPTH 0x4
181 unsigned short start;
188 unsigned short count;
189 unsigned short start;
195 unsigned short count;