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 |
|
---|
12 | typedef enum {
|
---|
13 | VIDMODE_H_DISPLAY,
|
---|
14 | VIDMODE_H_SYNCSTART,
|
---|
15 | VIDMODE_H_SYNCEND,
|
---|
16 | VIDMODE_H_TOTAL,
|
---|
17 | VIDMODE_H_SKEW,
|
---|
18 | VIDMODE_V_DISPLAY,
|
---|
19 | VIDMODE_V_SYNCSTART,
|
---|
20 | VIDMODE_V_SYNCEND,
|
---|
21 | VIDMODE_V_TOTAL,
|
---|
22 | VIDMODE_FLAGS,
|
---|
23 | VIDMODE_CLOCK
|
---|
24 | } VidModeSelectMode;
|
---|
25 |
|
---|
26 | typedef enum {
|
---|
27 | VIDMODE_MON_VENDOR,
|
---|
28 | VIDMODE_MON_MODEL,
|
---|
29 | VIDMODE_MON_NHSYNC,
|
---|
30 | VIDMODE_MON_NVREFRESH,
|
---|
31 | VIDMODE_MON_HSYNC_LO,
|
---|
32 | VIDMODE_MON_HSYNC_HI,
|
---|
33 | VIDMODE_MON_VREFRESH_LO,
|
---|
34 | VIDMODE_MON_VREFRESH_HI
|
---|
35 | } VidModeSelectMonitor;
|
---|
36 |
|
---|
37 | typedef union {
|
---|
38 | pointer ptr;
|
---|
39 | int i;
|
---|
40 | float f;
|
---|
41 | } vidMonitorValue;
|
---|
42 |
|
---|
43 | extern _X_EXPORT void XFree86VidModeExtensionInit(void);
|
---|
44 |
|
---|
45 | extern _X_EXPORT Bool VidModeAvailable(int scrnIndex);
|
---|
46 | extern _X_EXPORT Bool VidModeGetCurrentModeline(int scrnIndex, pointer *mode, int *dotClock);
|
---|
47 | extern _X_EXPORT Bool VidModeGetFirstModeline(int scrnIndex, pointer *mode, int *dotClock);
|
---|
48 | extern _X_EXPORT Bool VidModeGetNextModeline(int scrnIndex, pointer *mode, int *dotClock);
|
---|
49 | extern _X_EXPORT Bool VidModeDeleteModeline(int scrnIndex, pointer mode);
|
---|
50 | extern _X_EXPORT Bool VidModeZoomViewport(int scrnIndex, int zoom);
|
---|
51 | extern _X_EXPORT Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
|
---|
52 | extern _X_EXPORT Bool VidModeSetViewPort(int scrnIndex, int x, int y);
|
---|
53 | extern _X_EXPORT Bool VidModeSwitchMode(int scrnIndex, pointer mode);
|
---|
54 | extern _X_EXPORT Bool VidModeLockZoom(int scrnIndex, Bool lock);
|
---|
55 | extern _X_EXPORT Bool VidModeGetMonitor(int scrnIndex, pointer *monitor);
|
---|
56 | extern _X_EXPORT int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
|
---|
57 | extern _X_EXPORT Bool VidModeGetClocks(int scrnIndex, int *Clocks);
|
---|
58 | extern _X_EXPORT ModeStatus VidModeCheckModeForMonitor(int scrnIndex, pointer mode);
|
---|
59 | extern _X_EXPORT ModeStatus VidModeCheckModeForDriver(int scrnIndex, pointer mode);
|
---|
60 | extern _X_EXPORT void VidModeSetCrtcForMode(int scrnIndex, pointer mode);
|
---|
61 | extern _X_EXPORT Bool VidModeAddModeline(int scrnIndex, pointer mode);
|
---|
62 | extern _X_EXPORT int VidModeGetDotClock(int scrnIndex, int Clock);
|
---|
63 | extern _X_EXPORT int VidModeGetNumOfModes(int scrnIndex);
|
---|
64 | extern _X_EXPORT Bool VidModeSetGamma(int scrnIndex, float red, float green, float blue);
|
---|
65 | extern _X_EXPORT Bool VidModeGetGamma(int scrnIndex, float *red, float *green, float *blue);
|
---|
66 | extern _X_EXPORT pointer VidModeCreateMode(void);
|
---|
67 | extern _X_EXPORT void VidModeCopyMode(pointer modefrom, pointer modeto);
|
---|
68 | extern _X_EXPORT int VidModeGetModeValue(pointer mode, int valtyp);
|
---|
69 | extern _X_EXPORT void VidModeSetModeValue(pointer mode, int valtyp, int val);
|
---|
70 | extern _X_EXPORT vidMonitorValue VidModeGetMonitorValue(pointer monitor, int valtyp, int indx);
|
---|
71 | extern _X_EXPORT Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *);
|
---|
72 | extern _X_EXPORT Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *);
|
---|
73 | extern _X_EXPORT int VidModeGetGammaRampSize(int scrnIndex);
|
---|
74 |
|
---|
75 | #endif
|
---|
76 |
|
---|
77 |
|
---|