VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.18.0/vidmodeproc.h@ 74087

Last change on this file since 74087 was 58634, checked in by vboxsync, 9 years ago

Additions/x11: added header files for building X.Org video driver against X.Org Server 1.18.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
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
11typedef 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
25typedef 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
36typedef union {
37 const void *ptr;
38 int i;
39 float f;
40} vidMonitorValue;
41
42extern Bool VidModeExtensionInit(ScreenPtr pScreen);
43
44extern Bool VidModeGetCurrentModeline(int scrnIndex, void **mode,
45 int *dotClock);
46extern Bool VidModeGetFirstModeline(int scrnIndex, void **mode,
47 int *dotClock);
48extern Bool VidModeGetNextModeline(int scrnIndex, void **mode,
49 int *dotClock);
50extern Bool VidModeDeleteModeline(int scrnIndex, void *mode);
51extern Bool VidModeZoomViewport(int scrnIndex, int zoom);
52extern Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
53extern Bool VidModeSetViewPort(int scrnIndex, int x, int y);
54extern Bool VidModeSwitchMode(int scrnIndex, void *mode);
55extern Bool VidModeLockZoom(int scrnIndex, Bool lock);
56extern Bool VidModeGetMonitor(int scrnIndex, void **monitor);
57extern int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
58extern Bool VidModeGetClocks(int scrnIndex, int *Clocks);
59extern ModeStatus VidModeCheckModeForMonitor(int scrnIndex,
60 void *mode);
61extern ModeStatus VidModeCheckModeForDriver(int scrnIndex,
62 void *mode);
63extern void VidModeSetCrtcForMode(int scrnIndex, void *mode);
64extern Bool VidModeAddModeline(int scrnIndex, void *mode);
65extern int VidModeGetDotClock(int scrnIndex, int Clock);
66extern int VidModeGetNumOfModes(int scrnIndex);
67extern Bool VidModeSetGamma(int scrnIndex, float red, float green,
68 float blue);
69extern Bool VidModeGetGamma(int scrnIndex, float *red, float *green,
70 float *blue);
71extern void *VidModeCreateMode(void);
72extern void VidModeCopyMode(void *modefrom, void *modeto);
73extern int VidModeGetModeValue(void *mode, int valtyp);
74extern void VidModeSetModeValue(void *mode, int valtyp, int val);
75extern vidMonitorValue VidModeGetMonitorValue(void *monitor,
76 int valtyp, int indx);
77extern Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *,
78 CARD16 *);
79extern Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *,
80 CARD16 *);
81extern int VidModeGetGammaRampSize(int scrnIndex);
82
83#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette