5 #include <X11/Xproto.h>
8 #define DGA_CONCURRENT_ACCESS 0x00000001
9 #define DGA_FILL_RECT 0x00000002
10 #define DGA_BLIT_RECT 0x00000004
11 #define DGA_BLIT_RECT_TRANS 0x00000008
12 #define DGA_PIXMAP_AVAILABLE 0x00000010
14 #define DGA_INTERLACED 0x00010000
15 #define DGA_DOUBLESCAN 0x00020000
17 #define DGA_FLIP_IMMEDIATE 0x00000001
18 #define DGA_FLIP_RETRACE 0x00000002
20 #define DGA_COMPLETED 0x00000000
21 #define DGA_PENDING 0x00000001
23 #define DGA_NEED_ROOT 0x00000001
26 int num
; /* A unique identifier for the mode (num > 0) */
27 char *name
; /* name of mode given in the XF86Config */
30 int flags
; /* DGA_CONCURRENT_ACCESS, etc... */
31 int imageWidth
; /* linear accessible portion (pixels) */
33 int pixmapWidth
; /* Xlib accessible portion (pixels) */
34 int pixmapHeight
; /* both fields ignored if no concurrent access */
36 int byteOrder
; /* MSBFirst, LSBFirst */
39 unsigned long red_mask
;
40 unsigned long green_mask
;
41 unsigned long blue_mask
;
45 int xViewportStep
; /* viewport position granularity */
47 int maxViewportX
; /* max viewport origin */
49 int viewportFlags
; /* types of page flipping possible */
53 } XDGAModeRec
, *XDGAModePtr
;
79 Bool
DGAAvailable(int Index
);
80 Bool
DGAActive(int Index
);
81 void DGAShutdown(void);
82 void DGAInstallCmap(ColormapPtr cmap
);
83 int DGAGetViewportStatus(int Index
);
84 int DGASync(int Index
);
89 int x
, int y
, int w
, int h
,
117 int DGAGetModes(int Index
);
118 int DGAGetOldDGAMode(int Index
);
120 int DGAGetModeInfo(int Index
, XDGAModePtr mode
, int num
);
122 Bool
DGAVTSwitch(void);
123 Bool
DGAStealButtonEvent(int Index
, int button
, int is_down
);
124 Bool
DGAStealMotionEvent(int Index
, int dx
, int dy
);
125 Bool
DGAStealKeyEvent(int Index
, int key_code
, int is_down
);
126 Bool
DGAIsDgaEvent (xEvent
*e
);
128 Bool
DGADeliverEvent (ScreenPtr pScreen
, xEvent
*e
);
130 Bool
DGAOpenFramebuffer(int Index
, char **name
, unsigned char **mem
,
131 int *size
, int *offset
, int *flags
);
132 void DGACloseFramebuffer(int Index
);
133 Bool
DGAChangePixmapMode(int Index
, int *x
, int *y
, int mode
);
134 int DGACreateColormap(int Index
, ClientPtr client
, int id
, int mode
,
137 extern unsigned char DGAReqCode
;
138 extern int DGAErrorBase
;
139 extern int DGAEventBase
;
140 extern int *XDGAEventBase
;
144 #endif /* __DGAPROC_H */