Deleted Added
full compact
mach64_drm.h (162132) mach64_drm.h (182080)
1/* mach64_drm.h -- Public header for the mach64 driver -*- linux-c -*-
2 * Created: Thu Nov 30 20:04:32 2000 by gareth@valinux.com
3 */
4/*-
5 * Copyright 2000 Gareth Hughes
6 * Copyright 2002 Frank C. Earl
7 * Copyright 2002-2003 Leif Delgass
8 * All Rights Reserved.

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

27 *
28 * Authors:
29 * Gareth Hughes <gareth@valinux.com>
30 * Frank C. Earl <fearl@airmail.net>
31 * Leif Delgass <ldelgass@retinalburn.net>
32 */
33
34#include <sys/cdefs.h>
1/* mach64_drm.h -- Public header for the mach64 driver -*- linux-c -*-
2 * Created: Thu Nov 30 20:04:32 2000 by gareth@valinux.com
3 */
4/*-
5 * Copyright 2000 Gareth Hughes
6 * Copyright 2002 Frank C. Earl
7 * Copyright 2002-2003 Leif Delgass
8 * All Rights Reserved.

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

27 *
28 * Authors:
29 * Gareth Hughes <gareth@valinux.com>
30 * Frank C. Earl <fearl@airmail.net>
31 * Leif Delgass <ldelgass@retinalburn.net>
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/drm/mach64_drm.h 162132 2006-09-07 23:04:47Z anholt $");
35__FBSDID("$FreeBSD: head/sys/dev/drm/mach64_drm.h 182080 2008-08-23 20:59:12Z rnoland $");
36
37#ifndef __MACH64_DRM_H__
38#define __MACH64_DRM_H__
39
40/* WARNING: If you change any of these defines, make sure to change the
41 * defines in the Xserver file (mach64_sarea.h)
42 */
43#ifndef __MACH64_SAREA_DEFINES__

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

128 * on firing a vertex dma buffer.
129 */
130 drm_mach64_context_regs_t context_state;
131 unsigned int dirty;
132 unsigned int vertsize;
133
134 /* The current cliprects, or a subset thereof.
135 */
36
37#ifndef __MACH64_DRM_H__
38#define __MACH64_DRM_H__
39
40/* WARNING: If you change any of these defines, make sure to change the
41 * defines in the Xserver file (mach64_sarea.h)
42 */
43#ifndef __MACH64_SAREA_DEFINES__

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

128 * on firing a vertex dma buffer.
129 */
130 drm_mach64_context_regs_t context_state;
131 unsigned int dirty;
132 unsigned int vertsize;
133
134 /* The current cliprects, or a subset thereof.
135 */
136 drm_clip_rect_t boxes[MACH64_NR_SAREA_CLIPRECTS];
136 struct drm_clip_rect boxes[MACH64_NR_SAREA_CLIPRECTS];
137 unsigned int nbox;
138
139 /* Counters for client-side throttling of rendering clients.
140 */
141 unsigned int frames_queued;
142
143 /* Texture memory LRU.
144 */
137 unsigned int nbox;
138
139 /* Counters for client-side throttling of rendering clients.
140 */
141 unsigned int frames_queued;
142
143 /* Texture memory LRU.
144 */
145 drm_tex_region_t tex_list[MACH64_NR_TEX_HEAPS][MACH64_NR_TEX_REGIONS +
145 struct drm_tex_region tex_list[MACH64_NR_TEX_HEAPS][MACH64_NR_TEX_REGIONS +
146 1];
147 unsigned int tex_age[MACH64_NR_TEX_HEAPS];
148 int ctx_owner;
149} drm_mach64_sarea_t;
150
151/* WARNING: If you change any of these defines, make sure to change the
152 * defines in the Xserver file (mach64_common.h)
153 */

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

235typedef struct drm_mach64_vertex {
236 int prim;
237 void *buf; /* Address of vertex buffer */
238 unsigned long used; /* Number of bytes in buffer */
239 int discard; /* Client finished with buffer? */
240} drm_mach64_vertex_t;
241
242typedef struct drm_mach64_blit {
146 1];
147 unsigned int tex_age[MACH64_NR_TEX_HEAPS];
148 int ctx_owner;
149} drm_mach64_sarea_t;
150
151/* WARNING: If you change any of these defines, make sure to change the
152 * defines in the Xserver file (mach64_common.h)
153 */

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

235typedef struct drm_mach64_vertex {
236 int prim;
237 void *buf; /* Address of vertex buffer */
238 unsigned long used; /* Number of bytes in buffer */
239 int discard; /* Client finished with buffer? */
240} drm_mach64_vertex_t;
241
242typedef struct drm_mach64_blit {
243 int idx;
243 void *buf;
244 int pitch;
245 int offset;
246 int format;
247 unsigned short x, y;
248 unsigned short width, height;
249} drm_mach64_blit_t;
250
251typedef struct drm_mach64_getparam {
252 enum {
253 MACH64_PARAM_FRAMES_QUEUED = 0x01,
254 MACH64_PARAM_IRQ_NR = 0x02
255 } param;
256 void *value;
257} drm_mach64_getparam_t;
258
259#endif
244 int pitch;
245 int offset;
246 int format;
247 unsigned short x, y;
248 unsigned short width, height;
249} drm_mach64_blit_t;
250
251typedef struct drm_mach64_getparam {
252 enum {
253 MACH64_PARAM_FRAMES_QUEUED = 0x01,
254 MACH64_PARAM_IRQ_NR = 0x02
255 } param;
256 void *value;
257} drm_mach64_getparam_t;
258
259#endif