1 |
|
---|
2 | /* Prototypes for DGA functions that the DDX must provide */
|
---|
3 |
|
---|
4 | #ifdef HAVE_DIX_CONFIG_H
|
---|
5 | #include <dix-config.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef _VIDMODEPROC_H_
|
---|
9 | #define _VIDMODEPROC_H_
|
---|
10 |
|
---|
11 | typedef enum {
|
---|
12 | VIDMODE_H_DISPLAY,
|
---|
13 | VIDMODE_H_SYNCSTART,
|
---|
14 | VIDMODE_H_SYNCEND,
|
---|
15 | VIDMODE_H_TOTAL,
|
---|
16 | VIDMODE_H_SKEW,
|
---|
17 | VIDMODE_V_DISPLAY,
|
---|
18 | VIDMODE_V_SYNCSTART,
|
---|
19 | VIDMODE_V_SYNCEND,
|
---|
20 | VIDMODE_V_TOTAL,
|
---|
21 | VIDMODE_FLAGS,
|
---|
22 | VIDMODE_CLOCK
|
---|
23 | } VidModeSelectMode;
|
---|
24 |
|
---|
25 | typedef enum {
|
---|
26 | VIDMODE_MON_VENDOR,
|
---|
27 | VIDMODE_MON_MODEL,
|
---|
28 | VIDMODE_MON_NHSYNC,
|
---|
29 | VIDMODE_MON_NVREFRESH,
|
---|
30 | VIDMODE_MON_HSYNC_LO,
|
---|
31 | VIDMODE_MON_HSYNC_HI,
|
---|
32 | VIDMODE_MON_VREFRESH_LO,
|
---|
33 | VIDMODE_MON_VREFRESH_HI
|
---|
34 | } VidModeSelectMonitor;
|
---|
35 |
|
---|
36 | typedef union {
|
---|
37 | const void *ptr;
|
---|
38 | int i;
|
---|
39 | float f;
|
---|
40 | } vidMonitorValue;
|
---|
41 |
|
---|
42 | extern Bool VidModeExtensionInit(ScreenPtr pScreen);
|
---|
43 |
|
---|
44 | extern Bool VidModeGetCurrentModeline(int scrnIndex, void **mode,
|
---|
45 | int *dotClock);
|
---|
46 | extern Bool VidModeGetFirstModeline(int scrnIndex, void **mode,
|
---|
47 | int *dotClock);
|
---|
48 | extern Bool VidModeGetNextModeline(int scrnIndex, void **mode,
|
---|
49 | int *dotClock);
|
---|
50 | extern Bool VidModeDeleteModeline(int scrnIndex, void *mode);
|
---|
51 | extern Bool VidModeZoomViewport(int scrnIndex, int zoom);
|
---|
52 | extern Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
|
---|
53 | extern Bool VidModeSetViewPort(int scrnIndex, int x, int y);
|
---|
54 | extern Bool VidModeSwitchMode(int scrnIndex, void *mode);
|
---|
55 | extern Bool VidModeLockZoom(int scrnIndex, Bool lock);
|
---|
56 | extern Bool VidModeGetMonitor(int scrnIndex, void **monitor);
|
---|
57 | extern int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
|
---|
58 | extern Bool VidModeGetClocks(int scrnIndex, int *Clocks);
|
---|
59 | extern ModeStatus VidModeCheckModeForMonitor(int scrnIndex,
|
---|
60 | void *mode);
|
---|
61 | extern ModeStatus VidModeCheckModeForDriver(int scrnIndex,
|
---|
62 | void *mode);
|
---|
63 | extern void VidModeSetCrtcForMode(int scrnIndex, void *mode);
|
---|
64 | extern Bool VidModeAddModeline(int scrnIndex, void *mode);
|
---|
65 | extern int VidModeGetDotClock(int scrnIndex, int Clock);
|
---|
66 | extern int VidModeGetNumOfModes(int scrnIndex);
|
---|
67 | extern Bool VidModeSetGamma(int scrnIndex, float red, float green,
|
---|
68 | float blue);
|
---|
69 | extern Bool VidModeGetGamma(int scrnIndex, float *red, float *green,
|
---|
70 | float *blue);
|
---|
71 | extern void *VidModeCreateMode(void);
|
---|
72 | extern void VidModeCopyMode(void *modefrom, void *modeto);
|
---|
73 | extern int VidModeGetModeValue(void *mode, int valtyp);
|
---|
74 | extern void VidModeSetModeValue(void *mode, int valtyp, int val);
|
---|
75 | extern vidMonitorValue VidModeGetMonitorValue(void *monitor,
|
---|
76 | int valtyp, int indx);
|
---|
77 | extern Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *,
|
---|
78 | CARD16 *);
|
---|
79 | extern Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *,
|
---|
80 | CARD16 *);
|
---|
81 | extern int VidModeGetGammaRampSize(int scrnIndex);
|
---|
82 |
|
---|
83 | #endif
|
---|