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