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