Deleted Added
full compact
radeon_drm.h (145132) radeon_drm.h (148211)
1/* radeon_drm.h -- Public header for the radeon driver -*- linux-c -*- */
2/*-
3 * Copyright 2000 Precision Insight, Inc., Cedar Park, Texas.
4 * Copyright 2000 VA Linux Systems, Inc., Fremont, California.
5 * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
6 * All rights reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a

--- 15 unchanged lines hidden (view full) ---

24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
26 *
27 * Authors:
28 * Kevin E. Martin <martin@valinux.com>
29 * Gareth Hughes <gareth@valinux.com>
30 * Keith Whitwell <keith@tungstengraphics.com>
31 *
1/* radeon_drm.h -- Public header for the radeon driver -*- linux-c -*- */
2/*-
3 * Copyright 2000 Precision Insight, Inc., Cedar Park, Texas.
4 * Copyright 2000 VA Linux Systems, Inc., Fremont, California.
5 * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
6 * All rights reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a

--- 15 unchanged lines hidden (view full) ---

24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
26 *
27 * Authors:
28 * Kevin E. Martin <martin@valinux.com>
29 * Gareth Hughes <gareth@valinux.com>
30 * Keith Whitwell <keith@tungstengraphics.com>
31 *
32 * $FreeBSD: head/sys/dev/drm/radeon_drm.h 145132 2005-04-16 03:44:47Z anholt $
32 * $FreeBSD: head/sys/dev/drm/radeon_drm.h 148211 2005-07-20 21:10:57Z anholt $
33 */
34
35#ifndef __RADEON_DRM_H__
36#define __RADEON_DRM_H__
37
38/* WARNING: If you change any of these defines, make sure to change the
39 * defines in the X server file (radeon_sarea.h)
40 */

--- 149 unchanged lines hidden (view full) ---

190 struct {
191 unsigned char cmd_type, flags, pad0, pad1;
192 } wait;
193} drm_radeon_cmd_header_t;
194
195#define RADEON_WAIT_2D 0x1
196#define RADEON_WAIT_3D 0x2
197
33 */
34
35#ifndef __RADEON_DRM_H__
36#define __RADEON_DRM_H__
37
38/* WARNING: If you change any of these defines, make sure to change the
39 * defines in the X server file (radeon_sarea.h)
40 */

--- 149 unchanged lines hidden (view full) ---

190 struct {
191 unsigned char cmd_type, flags, pad0, pad1;
192 } wait;
193} drm_radeon_cmd_header_t;
194
195#define RADEON_WAIT_2D 0x1
196#define RADEON_WAIT_3D 0x2
197
198/* Allowed parameters for R300_CMD_PACKET3
199 */
200#define R300_CMD_PACKET3_CLEAR 0
201#define R300_CMD_PACKET3_RAW 1
202
203/* Commands understood by cmd_buffer ioctl for R300.
204 * The interface has not been stabilized, so some of these may be removed
205 * and eventually reordered before stabilization.
206 */
207#define R300_CMD_PACKET0 1
208#define R300_CMD_VPU 2 /* emit vertex program upload */
209#define R300_CMD_PACKET3 3 /* emit a packet3 */
210#define R300_CMD_END3D 4 /* emit sequence ending 3d rendering */
211#define R300_CMD_CP_DELAY 5
212#define R300_CMD_DMA_DISCARD 6
213#define R300_CMD_WAIT 7
214# define R300_WAIT_2D 0x1
215# define R300_WAIT_3D 0x2
216# define R300_WAIT_2D_CLEAN 0x3
217# define R300_WAIT_3D_CLEAN 0x4
218
219typedef union {
220 unsigned int u;
221 struct {
222 unsigned char cmd_type, pad0, pad1, pad2;
223 } header;
224 struct {
225 unsigned char cmd_type, count, reglo, reghi;
226 } packet0;
227 struct {
228 unsigned char cmd_type, count, adrlo, adrhi;
229 } vpu;
230 struct {
231 unsigned char cmd_type, packet, pad0, pad1;
232 } packet3;
233 struct {
234 unsigned char cmd_type, packet;
235 unsigned short count; /* amount of packet2 to emit */
236 } delay;
237 struct {
238 unsigned char cmd_type, buf_idx, pad0, pad1;
239 } dma;
240 struct {
241 unsigned char cmd_type, flags, pad0, pad1;
242 } wait;
243} drm_r300_cmd_header_t;
244
198#define RADEON_FRONT 0x1
199#define RADEON_BACK 0x2
200#define RADEON_DEPTH 0x4
201#define RADEON_STENCIL 0x8
202#define RADEON_CLEAR_FASTZ 0x80000000
203#define RADEON_USE_HIERZ 0x40000000
204#define RADEON_USE_COMP_ZBUF 0x20000000
205

--- 448 unchanged lines hidden ---
245#define RADEON_FRONT 0x1
246#define RADEON_BACK 0x2
247#define RADEON_DEPTH 0x4
248#define RADEON_STENCIL 0x8
249#define RADEON_CLEAR_FASTZ 0x80000000
250#define RADEON_USE_HIERZ 0x40000000
251#define RADEON_USE_COMP_ZBUF 0x20000000
252

--- 448 unchanged lines hidden ---