blob: 0afea8d3bc83d0c166b8b2d9c926d8f6d6ce3072 (
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
61
62
63
64
65
66
67
68
69
|
: /* $XdotOrg: xc/programs/Xserver/hw/xfree86/drivers/via/via_priv.h,v 1.4 2003/12/17 18:57:18 dawes Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/via/via_priv.h,v 1.3 2003/08/27 15:16:12 tsi Exp $ */
#ifndef _VIA_PRIV_H_
#define _VIA_PRIV_H_ 1
#include "ddmpeg.h"
#include "via_common.h"
#define MEM_BLOCKS 4
typedef struct {
unsigned long base; /* Offset into fb */
int pool; /* Pool we drew from */
int drm_fd; /* Fd in DRM mode */
drmViaMem drm; /* DRM management object */
int slot; /* Pool 3 slot */
void *pVia; /* VIA driver pointer */
FBLinearPtr linear; /* X linear pool info ptr */
} VIAMem;
typedef VIAMem *VIAMemPtr;
typedef struct {
unsigned long gdwVideoFlagTV1;
unsigned long gdwVideoFlagSW;
unsigned long gdwVideoFlagMPEG;
unsigned long gdwAlphaEnabled; /* For Alpha blending use*/
VIAMem SWOVMem;
VIAMem HQVMem;
VIAMem SWfbMem;
DDPIXELFORMAT DPFsrc;
DDUPDATEOVERLAY UpdateOverlayBackup; /* For HQVcontrol func use
// To save MPEG updateoverlay info.*/
/* device struct */
SWDEVICE SWDevice;
SUBDEVICE SUBDevice;
MPGDEVICE MPGDevice;
OVERLAYRECORD overlayRecordV1;
OVERLAYRECORD overlayRecordV3;
BoxRec AvailFBArea;
FBLinearPtr SWOVlinear;
Bool MPEG_ON;
Bool SWVideo_ON;
/*To solve the bandwidth issue */
unsigned long gdwUseExtendedFIFO;
/* For panning mode use */
int panning_old_x;
int panning_old_y;
int panning_x;
int panning_y;
/*To solve the bandwidth issue */
unsigned char Save_3C4_16;
unsigned char Save_3C4_17;
unsigned char Save_3C4_18;
} swovRec, *swovPtr;
#endif /* _VIA_PRIV_H_ */
|