2 /* Prototypes for DGA functions that the DDX must provide */
4 #ifdef HAVE_DIX_CONFIG_H
5 #include <dix-config.h>
8 #ifndef _VIDMODEPROC_H_
9 #define _VIDMODEPROC_H_
30 VIDMODE_MON_NVREFRESH
,
33 VIDMODE_MON_VREFRESH_LO
,
34 VIDMODE_MON_VREFRESH_HI
35 } VidModeSelectMonitor
;
43 void XFree86VidModeExtensionInit(void);
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
);