blob: 3d3e1d7d9cb68cdbfef61f8189017a75e88e3d72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* $XFree86$ */
/* modified from tdfx_dri.h */
#ifndef _SIS_DRI_
#define _SIS_DRI_
#include <xf86drm.h>
#define SIS_MAX_DRAWABLES 256
#define SISIOMAPSIZE (64*1024)
typedef struct {
int CtxOwner;
int QueueLength;
unsigned int AGPCmdBufNext;
unsigned int FrameCount;
} SISSAREAPriv;
#define SIS_FRONT 0
#define SIS_BACK 1
#define SIS_DEPTH 2
typedef struct {
drmHandle handle;
drmSize size;
drmAddress map;
} sisRegion, *sisRegionPtr;
typedef struct {
sisRegion regs, agp;
int deviceID;
int width;
int height;
int mem;
int bytesPerPixel;
int priv1;
int priv2;
int fbOffset;
int backOffset;
int depthOffset;
int textureOffset;
int textureSize;
unsigned int AGPCmdBufOffset;
unsigned int AGPCmdBufSize;
int irqEnabled;
unsigned int scrnX, scrnY;
} SISDRIRec, *SISDRIPtr;
typedef struct {
/* Nothing here yet */
int dummy;
} SISConfigPrivRec, *SISConfigPrivPtr;
typedef struct {
/* Nothing here yet */
int dummy;
} SISDRIContextRec, *SISDRIContextPtr;
#endif
|