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 _X_EXPORT Bool VidModeAvailable(int scrnIndex);
|
---|
45 | extern _X_EXPORT Bool VidModeGetCurrentModeline(int scrnIndex, void **mode,
|
---|
46 | int *dotClock);
|
---|
47 | extern _X_EXPORT Bool VidModeGetFirstModeline(int scrnIndex, void **mode,
|
---|
48 | int *dotClock);
|
---|
49 | extern _X_EXPORT Bool VidModeGetNextModeline(int scrnIndex, void **mode,
|
---|
50 | int *dotClock);
|
---|
51 | extern _X_EXPORT Bool VidModeDeleteModeline(int scrnIndex, void *mode);
|
---|
52 | extern _X_EXPORT Bool VidModeZoomViewport(int scrnIndex, int zoom);
|
---|
53 | extern _X_EXPORT Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
|
---|
54 | extern _X_EXPORT Bool VidModeSetViewPort(int scrnIndex, int x, int y);
|
---|
55 | extern _X_EXPORT Bool VidModeSwitchMode(int scrnIndex, void *mode);
|
---|
56 | extern _X_EXPORT Bool VidModeLockZoom(int scrnIndex, Bool lock);
|
---|
57 | extern _X_EXPORT Bool VidModeGetMonitor(int scrnIndex, void **monitor);
|
---|
58 | extern _X_EXPORT int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
|
---|
59 | extern _X_EXPORT Bool VidModeGetClocks(int scrnIndex, int *Clocks);
|
---|
60 | extern _X_EXPORT ModeStatus VidModeCheckModeForMonitor(int scrnIndex,
|
---|
61 | void *mode);
|
---|
62 | extern _X_EXPORT ModeStatus VidModeCheckModeForDriver(int scrnIndex,
|
---|
63 | void *mode);
|
---|
64 | extern _X_EXPORT void VidModeSetCrtcForMode(int scrnIndex, void *mode);
|
---|
65 | extern _X_EXPORT Bool VidModeAddModeline(int scrnIndex, void *mode);
|
---|
66 | extern _X_EXPORT int VidModeGetDotClock(int scrnIndex, int Clock);
|
---|
67 | extern _X_EXPORT int VidModeGetNumOfModes(int scrnIndex);
|
---|
68 | extern _X_EXPORT Bool VidModeSetGamma(int scrnIndex, float red, float green,
|
---|
69 | float blue);
|
---|
70 | extern _X_EXPORT Bool VidModeGetGamma(int scrnIndex, float *red, float *green,
|
---|
71 | float *blue);
|
---|
72 | extern _X_EXPORT void *VidModeCreateMode(void);
|
---|
73 | extern _X_EXPORT void VidModeCopyMode(void *modefrom, void *modeto);
|
---|
74 | extern _X_EXPORT int VidModeGetModeValue(void *mode, int valtyp);
|
---|
75 | extern _X_EXPORT void VidModeSetModeValue(void *mode, int valtyp, int val);
|
---|
76 | extern _X_EXPORT vidMonitorValue VidModeGetMonitorValue(void *monitor,
|
---|
77 | int valtyp, int indx);
|
---|
78 | extern _X_EXPORT Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *,
|
---|
79 | CARD16 *);
|
---|
80 | extern _X_EXPORT Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *,
|
---|
81 | CARD16 *);
|
---|
82 | extern _X_EXPORT int VidModeGetGammaRampSize(int scrnIndex);
|
---|
83 |
|
---|
84 | #endif
|
---|