VirtualBox

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

最後變更 在這個檔案從61386是 32163,由 vboxsync 提交於 14 年 前

Additions/x11/x11include: additional headers for building drivers for X.Org Server 1.9

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.9 KB
 
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
12typedef 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
26typedef 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
37typedef union {
38 pointer ptr;
39 int i;
40 float f;
41} vidMonitorValue;
42
43extern _X_EXPORT void XFree86VidModeExtensionInit(void);
44
45extern _X_EXPORT Bool VidModeAvailable(int scrnIndex);
46extern _X_EXPORT Bool VidModeGetCurrentModeline(int scrnIndex, pointer *mode, int *dotClock);
47extern _X_EXPORT Bool VidModeGetFirstModeline(int scrnIndex, pointer *mode, int *dotClock);
48extern _X_EXPORT Bool VidModeGetNextModeline(int scrnIndex, pointer *mode, int *dotClock);
49extern _X_EXPORT Bool VidModeDeleteModeline(int scrnIndex, pointer mode);
50extern _X_EXPORT Bool VidModeZoomViewport(int scrnIndex, int zoom);
51extern _X_EXPORT Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
52extern _X_EXPORT Bool VidModeSetViewPort(int scrnIndex, int x, int y);
53extern _X_EXPORT Bool VidModeSwitchMode(int scrnIndex, pointer mode);
54extern _X_EXPORT Bool VidModeLockZoom(int scrnIndex, Bool lock);
55extern _X_EXPORT Bool VidModeGetMonitor(int scrnIndex, pointer *monitor);
56extern _X_EXPORT int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
57extern _X_EXPORT Bool VidModeGetClocks(int scrnIndex, int *Clocks);
58extern _X_EXPORT ModeStatus VidModeCheckModeForMonitor(int scrnIndex, pointer mode);
59extern _X_EXPORT ModeStatus VidModeCheckModeForDriver(int scrnIndex, pointer mode);
60extern _X_EXPORT void VidModeSetCrtcForMode(int scrnIndex, pointer mode);
61extern _X_EXPORT Bool VidModeAddModeline(int scrnIndex, pointer mode);
62extern _X_EXPORT int VidModeGetDotClock(int scrnIndex, int Clock);
63extern _X_EXPORT int VidModeGetNumOfModes(int scrnIndex);
64extern _X_EXPORT Bool VidModeSetGamma(int scrnIndex, float red, float green, float blue);
65extern _X_EXPORT Bool VidModeGetGamma(int scrnIndex, float *red, float *green, float *blue);
66extern _X_EXPORT pointer VidModeCreateMode(void);
67extern _X_EXPORT void VidModeCopyMode(pointer modefrom, pointer modeto);
68extern _X_EXPORT int VidModeGetModeValue(pointer mode, int valtyp);
69extern _X_EXPORT void VidModeSetModeValue(pointer mode, int valtyp, int val);
70extern _X_EXPORT vidMonitorValue VidModeGetMonitorValue(pointer monitor, int valtyp, int indx);
71extern _X_EXPORT Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *);
72extern _X_EXPORT Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *);
73extern _X_EXPORT int VidModeGetGammaRampSize(int scrnIndex);
74
75#endif
76
77
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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