Mesa-solo builds with these changes. There are still more fixups needed to
[mesa.git] / src / mesa / drivers / dri / unichrome / server / via_priv.h
1 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/via/via_priv.h,v 1.3 2003/08/27 15:16:12 tsi Exp $ */
2
3 #ifndef _VIA_PRIV_H_
4 #define _VIA_PRIV_H_ 1
5
6 //#include "ddmpeg.h"
7 #include "via_common.h"
8
9 #define MEM_BLOCKS 4
10
11 typedef struct {
12 unsigned long base; /* Offset into fb */
13 int pool; /* Pool we drew from */
14 int drm_fd; /* Fd in DRM mode */
15 drm_via_mem_t drm; /* DRM management object */
16 int slot; /* Pool 3 slot */
17 void *pVia; /* VIA driver pointer */
18 //FBLinearPtr linear; /* X linear pool info ptr */
19 } VIAMem;
20
21 typedef VIAMem *VIAMemPtr;
22
23
24
25 #if 0
26 typedef struct {
27 unsigned long gdwVideoFlagTV1;
28 unsigned long gdwVideoFlagSW;
29 unsigned long gdwVideoFlagMPEG;
30 unsigned long gdwAlphaEnabled; /* For Alpha blending use*/
31
32 VIAMem SWOVMem;
33 VIAMem HQVMem;
34 VIAMem SWfbMem;
35
36 DDPIXELFORMAT DPFsrc;
37 DDUPDATEOVERLAY UpdateOverlayBackup; /* For HQVcontrol func use
38 // To save MPEG updateoverlay info.*/
39
40 /* device struct */
41 SWDEVICE SWDevice;
42 SUBDEVICE SUBDevice;
43 MPGDEVICE MPGDevice;
44 OVERLAYRECORD overlayRecordV1;
45 OVERLAYRECORD overlayRecordV3;
46
47 BoxRec AvailFBArea;
48 FBLinearPtr SWOVlinear;
49
50 int MPEG_ON;
51 int SWVideo_ON;
52
53 /*To solve the bandwidth issue */
54 unsigned long gdwUseExtendedFIFO;
55
56 /* For panning mode use */
57 int panning_old_x;
58 int panning_old_y;
59 int panning_x;
60 int panning_y;
61
62 /*To solve the bandwidth issue */
63 unsigned char Save_3C4_16;
64 unsigned char Save_3C4_17;
65 unsigned char Save_3C4_18;
66
67 } swovRec, *swovPtr;
68 #endif
69
70 #endif /* _VIA_PRIV_H_ */