fix up radeon span functions using latest r200 code from Brian,
[mesa.git] / src / mesa / drivers / dri / i915 / server / i830_dri.h
1 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/i810/i830_dri.h,v 1.4 2002/10/30 12:52:18 alanh Exp $ */
2
3 #ifndef _I830_DRI_H
4 #define _I830_DRI_H
5
6 #include "xf86drm.h"
7 #include "i830_common.h"
8
9 #define I830_MAX_DRAWABLES 256
10
11 #define I830_MAJOR_VERSION 1
12 #define I830_MINOR_VERSION 3
13 #define I830_PATCHLEVEL 0
14
15 #define I830_REG_SIZE 0x80000
16
17 /* Note: This structure has changed slightly from what is expected by
18 * the i830_drv.o driver. Maybe that should be reverted.
19 */
20 typedef struct _I830DRIRec {
21 drm_handle_t regs;
22 drmSize regsSize;
23
24 drmSize backbufferSize;
25 drm_handle_t backbuffer;
26
27 drmSize depthbufferSize;
28 drm_handle_t depthbuffer;
29
30 drm_handle_t textures;
31 int textureSize;
32
33 drm_handle_t agp_buffers;
34 drmSize agp_buf_size;
35
36 int deviceID;
37 int width;
38 int height;
39 int mem;
40 int cpp;
41 int bitsPerPixel;
42 int fbOffset;
43 int fbStride;
44
45 int backOffset;
46 int backPitch;
47
48 int depthOffset;
49 int depthPitch;
50
51 int logTextureGranularity;
52 int textureOffset;
53
54 int irq;
55 int sarea_priv_offset;
56 } I830DRIRec, *I830DRIPtr;
57
58 typedef struct {
59 /* Nothing here yet */
60 int dummy;
61 } I830ConfigPrivRec, *I830ConfigPrivPtr;
62
63 typedef struct {
64 /* Nothing here yet */
65 int dummy;
66 } I830DRIContextRec, *I830DRIContextPtr;
67
68
69 #endif