1 | /*
|
---|
2 | * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
|
---|
3 | *
|
---|
4 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
5 | * copy of this software and associated documentation files (the "Software"),
|
---|
6 | * to deal in the Software without restriction, including without limitation
|
---|
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
8 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
9 | * Software is furnished to do so, subject to the following conditions:
|
---|
10 | *
|
---|
11 | * The above copyright notice and this permission notice shall be included in
|
---|
12 | * all copies or substantial portions of the Software.
|
---|
13 | *
|
---|
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
20 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
21 | *
|
---|
22 | * Except as contained in this notice, the name of the copyright holder(s)
|
---|
23 | * and author(s) shall not be used in advertising or otherwise to promote
|
---|
24 | * the sale, use or other dealings in this Software without prior written
|
---|
25 | * authorization from the copyright holder(s) and author(s).
|
---|
26 | */
|
---|
27 |
|
---|
28 | /*
|
---|
29 | * This file contains declarations for public XFree86 functions and variables,
|
---|
30 | * and definitions of public macros.
|
---|
31 | *
|
---|
32 | * "public" means available to video drivers.
|
---|
33 | */
|
---|
34 |
|
---|
35 | #ifndef _XF86_H
|
---|
36 | #define _XF86_H
|
---|
37 |
|
---|
38 | #if HAVE_XORG_CONFIG_H
|
---|
39 | #include <xorg-config.h>
|
---|
40 | #elif HAVE_DIX_CONFIG_H
|
---|
41 | #include <dix-config.h>
|
---|
42 | #endif
|
---|
43 |
|
---|
44 | #include "xf86str.h"
|
---|
45 | #include "xf86Opt.h"
|
---|
46 | #include <X11/Xfuncproto.h>
|
---|
47 | #include <stdarg.h>
|
---|
48 | #ifdef RANDR
|
---|
49 | #include <X11/extensions/randr.h>
|
---|
50 | #endif
|
---|
51 |
|
---|
52 | #include "propertyst.h"
|
---|
53 |
|
---|
54 | /* General parameters */
|
---|
55 | extern _X_EXPORT int xf86DoConfigure;
|
---|
56 | extern _X_EXPORT int xf86DoShowOptions;
|
---|
57 | extern _X_EXPORT Bool xf86DoConfigurePass1;
|
---|
58 |
|
---|
59 | extern _X_EXPORT DevPrivateKeyRec xf86ScreenKeyRec;
|
---|
60 | #define xf86ScreenKey (&xf86ScreenKeyRec)
|
---|
61 |
|
---|
62 | extern _X_EXPORT DevPrivateKeyRec xf86CreateRootWindowKeyRec;
|
---|
63 | #define xf86CreateRootWindowKey (&xf86CreateRootWindowKeyRec)
|
---|
64 |
|
---|
65 | extern _X_EXPORT DevPrivateKeyRec xf86PixmapKeyRec;
|
---|
66 | #define xf86PixmapKey (&xf86PixmapKeyRec)
|
---|
67 |
|
---|
68 | extern _X_EXPORT ScrnInfoPtr *xf86Screens; /* List of pointers to ScrnInfoRecs */
|
---|
69 | extern _X_EXPORT const unsigned char byte_reversed[256];
|
---|
70 | extern _X_EXPORT Bool fbSlotClaimed;
|
---|
71 | #if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
|
---|
72 | extern _X_EXPORT Bool sbusSlotClaimed;
|
---|
73 | #endif
|
---|
74 | extern _X_EXPORT confDRIRec xf86ConfigDRI;
|
---|
75 | extern _X_EXPORT Bool xf86inSuspend;
|
---|
76 | extern _X_EXPORT Bool xf86DRI2Enabled(void);
|
---|
77 |
|
---|
78 | extern _X_EXPORT Bool VTSwitchEnabled; /* kbd driver */
|
---|
79 |
|
---|
80 | #define XF86SCRNINFO(p) ((ScrnInfoPtr)dixLookupPrivate(&(p)->devPrivates, \
|
---|
81 | xf86ScreenKey))
|
---|
82 | #define XF86FLIP_PIXELS() \
|
---|
83 | do { \
|
---|
84 | if (xf86GetFlipPixels()) { \
|
---|
85 | pScreen->whitePixel = (pScreen->whitePixel) ? 0 : 1; \
|
---|
86 | pScreen->blackPixel = (pScreen->blackPixel) ? 0 : 1; \
|
---|
87 | } \
|
---|
88 | while (0)
|
---|
89 |
|
---|
90 | #define BOOLTOSTRING(b) ((b) ? "TRUE" : "FALSE")
|
---|
91 |
|
---|
92 | #define PIX24TOBPP(p) (((p) == Pix24Use24) ? 24 : \
|
---|
93 | (((p) == Pix24Use32) ? 32 : 0))
|
---|
94 |
|
---|
95 | /* Function Prototypes */
|
---|
96 | #ifndef _NO_XF86_PROTOTYPES
|
---|
97 |
|
---|
98 | /* PCI related */
|
---|
99 | #include <pciaccess.h>
|
---|
100 | extern _X_EXPORT Bool pciSlotClaimed;
|
---|
101 |
|
---|
102 | extern _X_EXPORT Bool xf86CheckPciSlot(const struct pci_device *);
|
---|
103 | extern _X_EXPORT int xf86ClaimPciSlot(struct pci_device *, DriverPtr drvp,
|
---|
104 | int chipset, GDevPtr dev, Bool active);
|
---|
105 | extern _X_EXPORT void xf86UnclaimPciSlot(struct pci_device *);
|
---|
106 | extern _X_EXPORT Bool xf86ParsePciBusString(const char *busID, int *bus,
|
---|
107 | int *device, int *func);
|
---|
108 | extern _X_EXPORT Bool xf86ComparePciBusString(const char *busID, int bus,
|
---|
109 | int device, int func);
|
---|
110 | extern _X_EXPORT void xf86FormatPciBusNumber(int busnum, char *buffer);
|
---|
111 | extern _X_EXPORT Bool xf86IsPrimaryPci(struct pci_device * pPci);
|
---|
112 | extern _X_EXPORT Bool xf86CheckPciMemBase(struct pci_device * pPci,
|
---|
113 | memType base);
|
---|
114 | extern _X_EXPORT struct pci_device * xf86GetPciInfoForEntity(int entityIndex);
|
---|
115 | extern _X_EXPORT int xf86MatchPciInstances(const char *driverName,
|
---|
116 | int vendorID, SymTabPtr chipsets, PciChipsets *PCIchipsets,
|
---|
117 | GDevPtr *devList, int numDevs, DriverPtr drvp, int **foundEntities);
|
---|
118 | extern _X_EXPORT ScrnInfoPtr xf86ConfigPciEntity(ScrnInfoPtr pScrn,
|
---|
119 | int scrnFlag, int entityIndex,PciChipsets *p_chip, void *dummy,
|
---|
120 | EntityProc init, EntityProc enter, EntityProc leave, pointer private);
|
---|
121 | /* Obsolete! don't use */
|
---|
122 | extern _X_EXPORT Bool xf86ConfigActivePciEntity(ScrnInfoPtr pScrn,
|
---|
123 | int entityIndex,PciChipsets *p_chip, void *dummy, EntityProc init,
|
---|
124 | EntityProc enter, EntityProc leave, pointer private);
|
---|
125 |
|
---|
126 | /* xf86Bus.c */
|
---|
127 |
|
---|
128 | extern _X_EXPORT int xf86GetFbInfoForScreen(int scrnIndex);
|
---|
129 | extern _X_EXPORT int xf86ClaimFbSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
---|
130 | extern _X_EXPORT int xf86ClaimNoSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
---|
131 | extern _X_EXPORT Bool xf86DriverHasEntities(DriverPtr drvp);
|
---|
132 | extern _X_EXPORT void xf86AddEntityToScreen(ScrnInfoPtr pScrn, int entityIndex);
|
---|
133 | extern _X_EXPORT void xf86SetEntityInstanceForScreen(ScrnInfoPtr pScrn, int entityIndex,
|
---|
134 | int instance);
|
---|
135 | extern _X_EXPORT int xf86GetNumEntityInstances(int entityIndex);
|
---|
136 | extern _X_EXPORT GDevPtr xf86GetDevFromEntity(int entityIndex, int instance);
|
---|
137 | extern _X_EXPORT void xf86RemoveEntityFromScreen(ScrnInfoPtr pScrn, int entityIndex);
|
---|
138 | extern _X_EXPORT EntityInfoPtr xf86GetEntityInfo(int entityIndex);
|
---|
139 | extern _X_EXPORT Bool xf86SetEntityFuncs(int entityIndex, EntityProc init,
|
---|
140 | EntityProc enter, EntityProc leave, pointer);
|
---|
141 | extern _X_EXPORT Bool xf86IsEntityPrimary(int entityIndex);
|
---|
142 | extern _X_EXPORT void xf86EnterServerState(xf86State state);
|
---|
143 | extern _X_EXPORT ScrnInfoPtr xf86FindScreenForEntity(int entityIndex);
|
---|
144 |
|
---|
145 | extern _X_EXPORT int xf86GetLastScrnFlag(int entityIndex);
|
---|
146 | extern _X_EXPORT void xf86SetLastScrnFlag(int entityIndex, int scrnIndex);
|
---|
147 | extern _X_EXPORT Bool xf86IsEntityShared(int entityIndex);
|
---|
148 | extern _X_EXPORT void xf86SetEntityShared(int entityIndex);
|
---|
149 | extern _X_EXPORT Bool xf86IsEntitySharable(int entityIndex);
|
---|
150 | extern _X_EXPORT void xf86SetEntitySharable(int entityIndex);
|
---|
151 | extern _X_EXPORT Bool xf86IsPrimInitDone(int entityIndex);
|
---|
152 | extern _X_EXPORT void xf86SetPrimInitDone(int entityIndex);
|
---|
153 | extern _X_EXPORT void xf86ClearPrimInitDone(int entityIndex);
|
---|
154 | extern _X_EXPORT int xf86AllocateEntityPrivateIndex(void);
|
---|
155 | extern _X_EXPORT DevUnion *xf86GetEntityPrivate(int entityIndex, int privIndex);
|
---|
156 |
|
---|
157 | /* xf86Configure.c */
|
---|
158 | extern _X_EXPORT GDevPtr xf86AddBusDeviceToConfigure(const char *driver, BusType bus,
|
---|
159 | void *busData, int chipset);
|
---|
160 |
|
---|
161 | /* xf86Cursor.c */
|
---|
162 |
|
---|
163 | extern _X_EXPORT void xf86LockZoom(ScreenPtr pScreen, int lock);
|
---|
164 | extern _X_EXPORT void xf86InitViewport(ScrnInfoPtr pScr);
|
---|
165 | extern _X_EXPORT void xf86SetViewport(ScreenPtr pScreen, int x, int y);
|
---|
166 | extern _X_EXPORT void xf86ZoomViewport(ScreenPtr pScreen, int zoom);
|
---|
167 | extern _X_EXPORT Bool xf86SwitchMode(ScreenPtr pScreen, DisplayModePtr mode);
|
---|
168 | extern _X_EXPORT void *xf86GetPointerScreenFuncs(void);
|
---|
169 | extern _X_EXPORT void xf86InitOrigins(void);
|
---|
170 | extern _X_EXPORT void xf86ReconfigureLayout(void);
|
---|
171 |
|
---|
172 | /* xf86cvt.c */
|
---|
173 | extern _X_EXPORT DisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VRefresh,
|
---|
174 | Bool Reduced, Bool Interlaced);
|
---|
175 |
|
---|
176 | /* xf86DPMS.c */
|
---|
177 |
|
---|
178 | extern _X_EXPORT Bool xf86DPMSInit(ScreenPtr pScreen, DPMSSetProcPtr set, int flags);
|
---|
179 |
|
---|
180 | #ifdef DPMSExtension
|
---|
181 | extern _X_EXPORT int DPMSSet(ClientPtr client, int level);
|
---|
182 | extern _X_EXPORT Bool DPMSSupported(void);
|
---|
183 | #endif
|
---|
184 |
|
---|
185 |
|
---|
186 | /* xf86DGA.c */
|
---|
187 |
|
---|
188 | #ifdef XFreeXDGA
|
---|
189 | extern _X_EXPORT Bool DGAInit(ScreenPtr pScreen, DGAFunctionPtr funcs, DGAModePtr modes,
|
---|
190 | int num);
|
---|
191 | extern _X_EXPORT Bool DGAReInitModes(ScreenPtr pScreen, DGAModePtr modes, int num);
|
---|
192 | extern _X_EXPORT xf86SetDGAModeProc xf86SetDGAMode;
|
---|
193 | #endif
|
---|
194 |
|
---|
195 | /* xf86Events.c */
|
---|
196 |
|
---|
197 | extern _X_EXPORT void SetTimeSinceLastInputEvent(void);
|
---|
198 | extern _X_EXPORT pointer xf86AddInputHandler(int fd, InputHandlerProc proc, pointer data);
|
---|
199 | extern _X_EXPORT int xf86RemoveInputHandler(pointer handler);
|
---|
200 | extern _X_EXPORT void xf86DisableInputHandler(pointer handler);
|
---|
201 | extern _X_EXPORT void xf86EnableInputHandler(pointer handler);
|
---|
202 | extern _X_EXPORT pointer xf86AddGeneralHandler(int fd, InputHandlerProc proc, pointer data);
|
---|
203 | extern _X_EXPORT int xf86RemoveGeneralHandler(pointer handler);
|
---|
204 | extern _X_EXPORT void xf86DisableGeneralHandler(pointer handler);
|
---|
205 | extern _X_EXPORT void xf86EnableGeneralHandler(pointer handler);
|
---|
206 | extern _X_EXPORT void xf86InterceptSignals(int *signo);
|
---|
207 | extern _X_EXPORT void xf86InterceptSigIll(void (*sigillhandler)(void));
|
---|
208 | extern _X_EXPORT Bool xf86EnableVTSwitch(Bool new);
|
---|
209 | extern _X_EXPORT void xf86ProcessActionEvent(ActionEvent action, void *arg);
|
---|
210 | extern _X_EXPORT void xf86PrintBacktrace(void);
|
---|
211 |
|
---|
212 | /* xf86Helper.c */
|
---|
213 |
|
---|
214 | extern _X_EXPORT void xf86AddDriver(DriverPtr driver, pointer module, int flags);
|
---|
215 | extern _X_EXPORT void xf86DeleteDriver(int drvIndex);
|
---|
216 | extern _X_EXPORT ScrnInfoPtr xf86AllocateScreen(DriverPtr drv, int flags);
|
---|
217 | extern _X_EXPORT void xf86DeleteScreen(int scrnIndex, int flags);
|
---|
218 | extern _X_EXPORT int xf86AllocateScrnInfoPrivateIndex(void);
|
---|
219 | extern _X_EXPORT Bool xf86AddPixFormat(ScrnInfoPtr pScrn, int depth, int bpp, int pad);
|
---|
220 | extern _X_EXPORT Bool xf86SetDepthBpp(ScrnInfoPtr scrp, int depth, int bpp, int fbbpp,
|
---|
221 | int depth24flags);
|
---|
222 | extern _X_EXPORT void xf86PrintDepthBpp(ScrnInfoPtr scrp);
|
---|
223 | extern _X_EXPORT Bool xf86SetWeight(ScrnInfoPtr scrp, rgb weight, rgb mask);
|
---|
224 | extern _X_EXPORT Bool xf86SetDefaultVisual(ScrnInfoPtr scrp, int visual);
|
---|
225 | extern _X_EXPORT Bool xf86SetGamma(ScrnInfoPtr scrp, Gamma newGamma);
|
---|
226 | extern _X_EXPORT void xf86SetDpi(ScrnInfoPtr pScrn, int x, int y);
|
---|
227 | extern _X_EXPORT void xf86SetBlackWhitePixels(ScreenPtr pScreen);
|
---|
228 | extern _X_EXPORT void xf86EnableDisableFBAccess(int scrnIndex, Bool enable);
|
---|
229 | extern _X_EXPORT void xf86VDrvMsgVerb(int scrnIndex, MessageType type, int verb,
|
---|
230 | const char *format, va_list args);
|
---|
231 | extern _X_EXPORT void xf86DrvMsgVerb(int scrnIndex, MessageType type, int verb,
|
---|
232 | const char *format, ...) _X_ATTRIBUTE_PRINTF(4,5);
|
---|
233 | extern _X_EXPORT void xf86DrvMsg(int scrnIndex, MessageType type, const char *format, ...)
|
---|
234 | _X_ATTRIBUTE_PRINTF(3,4);
|
---|
235 | extern _X_EXPORT void xf86MsgVerb(MessageType type, int verb, const char *format, ...)
|
---|
236 | _X_ATTRIBUTE_PRINTF(3,4);
|
---|
237 | extern _X_EXPORT void xf86Msg(MessageType type, const char *format, ...) _X_ATTRIBUTE_PRINTF(2,3);
|
---|
238 | extern _X_EXPORT void xf86ErrorFVerb(int verb, const char *format, ...) _X_ATTRIBUTE_PRINTF(2,3);
|
---|
239 | extern _X_EXPORT void xf86ErrorF(const char *format, ...) _X_ATTRIBUTE_PRINTF(1,2);
|
---|
240 | extern _X_EXPORT const char *xf86TokenToString(SymTabPtr table, int token);
|
---|
241 | extern _X_EXPORT int xf86StringToToken(SymTabPtr table, const char *string);
|
---|
242 | extern _X_EXPORT void xf86ShowClocks(ScrnInfoPtr scrp, MessageType from);
|
---|
243 | extern _X_EXPORT void xf86PrintChipsets(const char *drvname, const char *drvmsg,
|
---|
244 | SymTabPtr chips);
|
---|
245 | extern _X_EXPORT int xf86MatchDevice(const char *drivername, GDevPtr **driversectlist);
|
---|
246 | extern _X_EXPORT void xf86GetClocks(ScrnInfoPtr pScrn, int num,
|
---|
247 | Bool (*ClockFunc)(ScrnInfoPtr, int),
|
---|
248 | void (*ProtectRegs)(ScrnInfoPtr, Bool),
|
---|
249 | void (*BlankScreen)(ScrnInfoPtr, Bool),
|
---|
250 | IOADDRESS vertsyncreg, int maskval,
|
---|
251 | int knownclkindex, int knownclkvalue);
|
---|
252 | extern _X_EXPORT const char *xf86GetVisualName(int visual);
|
---|
253 | extern _X_EXPORT int xf86GetVerbosity(void);
|
---|
254 | extern _X_EXPORT Pix24Flags xf86GetPix24(void);
|
---|
255 | extern _X_EXPORT int xf86GetDepth(void);
|
---|
256 | extern _X_EXPORT rgb xf86GetWeight(void);
|
---|
257 | extern _X_EXPORT Gamma xf86GetGamma(void);
|
---|
258 | extern _X_EXPORT Bool xf86GetFlipPixels(void);
|
---|
259 | extern _X_EXPORT const char *xf86GetServerName(void);
|
---|
260 | extern _X_EXPORT Bool xf86ServerIsExiting(void);
|
---|
261 | extern _X_EXPORT Bool xf86ServerIsResetting(void);
|
---|
262 | extern _X_EXPORT Bool xf86ServerIsInitialising(void);
|
---|
263 | extern _X_EXPORT Bool xf86ServerIsOnlyDetecting(void);
|
---|
264 | extern _X_EXPORT Bool xf86CaughtSignal(void);
|
---|
265 | extern _X_EXPORT Bool xf86GetVidModeAllowNonLocal(void);
|
---|
266 | extern _X_EXPORT Bool xf86GetVidModeEnabled(void);
|
---|
267 | extern _X_EXPORT Bool xf86GetModInDevAllowNonLocal(void);
|
---|
268 | extern _X_EXPORT Bool xf86GetModInDevEnabled(void);
|
---|
269 | extern _X_EXPORT Bool xf86GetAllowMouseOpenFail(void);
|
---|
270 | extern _X_EXPORT Bool xf86IsPc98(void);
|
---|
271 | extern _X_EXPORT void xf86DisableRandR(void);
|
---|
272 | extern _X_EXPORT CARD32 xorgGetVersion(void);
|
---|
273 | extern _X_EXPORT CARD32 xf86GetModuleVersion(pointer module);
|
---|
274 | extern _X_EXPORT pointer xf86LoadDrvSubModule(DriverPtr drv, const char *name);
|
---|
275 | extern _X_EXPORT pointer xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name);
|
---|
276 | extern _X_EXPORT pointer xf86LoadOneModule(char *name, pointer optlist);
|
---|
277 | extern _X_EXPORT void xf86UnloadSubModule(pointer mod);
|
---|
278 | extern _X_EXPORT Bool xf86LoaderCheckSymbol(const char *name);
|
---|
279 | extern _X_EXPORT void xf86SetBackingStore(ScreenPtr pScreen);
|
---|
280 | extern _X_EXPORT void xf86SetSilkenMouse(ScreenPtr pScreen);
|
---|
281 | extern _X_EXPORT pointer xf86FindXvOptions(int scrnIndex, int adapt_index, char *port_name,
|
---|
282 | char **adaptor_name, pointer *adaptor_options);
|
---|
283 | extern _X_EXPORT void xf86GetOS(const char **name, int *major, int *minor, int *teeny);
|
---|
284 | extern _X_EXPORT ScrnInfoPtr xf86ConfigFbEntity(ScrnInfoPtr pScrn, int scrnFlag,
|
---|
285 | int entityIndex, EntityProc init,
|
---|
286 | EntityProc enter, EntityProc leave,
|
---|
287 | pointer private);
|
---|
288 |
|
---|
289 | extern _X_EXPORT Bool xf86IsScreenPrimary(int scrnIndex);
|
---|
290 | extern _X_EXPORT int xf86RegisterRootWindowProperty(int ScrnIndex, Atom property, Atom type,
|
---|
291 | int format, unsigned long len,
|
---|
292 | pointer value);
|
---|
293 | extern _X_EXPORT Bool xf86IsUnblank(int mode);
|
---|
294 |
|
---|
295 | /* xf86Init.c */
|
---|
296 |
|
---|
297 | extern _X_EXPORT PixmapFormatPtr xf86GetPixFormat(ScrnInfoPtr pScrn, int depth);
|
---|
298 | extern _X_EXPORT int xf86GetBppFromDepth(ScrnInfoPtr pScrn, int depth);
|
---|
299 |
|
---|
300 | /* xf86Mode.c */
|
---|
301 |
|
---|
302 | extern _X_EXPORT int xf86GetNearestClock(ScrnInfoPtr scrp, int freq, Bool allowDiv2,
|
---|
303 | int DivFactor, int MulFactor, int *divider);
|
---|
304 | extern _X_EXPORT const char *xf86ModeStatusToString(ModeStatus status);
|
---|
305 | extern _X_EXPORT ModeStatus xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep,
|
---|
306 | ClockRangePtr clockRanges, LookupModeFlags strategy);
|
---|
307 | extern _X_EXPORT ModeStatus xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor);
|
---|
308 | extern _X_EXPORT ModeStatus xf86InitialCheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode,
|
---|
309 | ClockRangePtr clockRanges,
|
---|
310 | LookupModeFlags strategy,
|
---|
311 | int maxPitch, int virtualX,
|
---|
312 | int virtualY);
|
---|
313 | extern _X_EXPORT ModeStatus xf86CheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode,
|
---|
314 | int flags);
|
---|
315 | extern _X_EXPORT int xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
---|
316 | char **modeNames, ClockRangePtr clockRanges,
|
---|
317 | int *linePitches, int minPitch, int maxPitch,
|
---|
318 | int minHeight, int maxHeight, int pitchInc,
|
---|
319 | int virtualX, int virtualY, int apertureSize,
|
---|
320 | LookupModeFlags strategy);
|
---|
321 | extern _X_EXPORT void xf86DeleteMode(DisplayModePtr *modeList, DisplayModePtr mode);
|
---|
322 | extern _X_EXPORT void xf86PruneDriverModes(ScrnInfoPtr scrp);
|
---|
323 | extern _X_EXPORT void xf86SetCrtcForModes(ScrnInfoPtr scrp, int adjustFlags);
|
---|
324 | extern _X_EXPORT void xf86PrintModes(ScrnInfoPtr scrp);
|
---|
325 | extern _X_EXPORT void xf86ShowClockRanges(ScrnInfoPtr scrp, ClockRangePtr clockRanges);
|
---|
326 | extern _X_EXPORT double xf86ModeHSync(const DisplayModeRec *mode);
|
---|
327 | extern _X_EXPORT double xf86ModeVRefresh(const DisplayModeRec *mode);
|
---|
328 | extern _X_EXPORT void xf86SetModeDefaultName(DisplayModePtr mode);
|
---|
329 | extern _X_EXPORT void xf86SetModeCrtc(DisplayModePtr p, int adjustFlags);
|
---|
330 | extern _X_EXPORT DisplayModePtr xf86DuplicateMode(const DisplayModeRec *pMode);
|
---|
331 | extern _X_EXPORT DisplayModePtr xf86DuplicateModes(ScrnInfoPtr pScrn, DisplayModePtr modeList);
|
---|
332 | extern _X_EXPORT Bool xf86ModesEqual(const DisplayModeRec *pMode1,
|
---|
333 | const DisplayModeRec *pMode2);
|
---|
334 | extern _X_EXPORT void xf86PrintModeline(int scrnIndex,DisplayModePtr mode);
|
---|
335 | extern _X_EXPORT DisplayModePtr xf86ModesAdd(DisplayModePtr modes, DisplayModePtr new);
|
---|
336 |
|
---|
337 | /* xf86Option.c */
|
---|
338 |
|
---|
339 | extern _X_EXPORT void xf86CollectOptions(ScrnInfoPtr pScrn, pointer extraOpts);
|
---|
340 |
|
---|
341 |
|
---|
342 | /* xf86RandR.c */
|
---|
343 | #ifdef RANDR
|
---|
344 | extern _X_EXPORT Bool xf86RandRInit (ScreenPtr pScreen);
|
---|
345 | extern _X_EXPORT Rotation xf86GetRotation(ScreenPtr pScreen);
|
---|
346 | extern _X_EXPORT Bool xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen,
|
---|
347 | int newvirtX, int newvirtY,
|
---|
348 | int newmmWidth, int newmmHeight, Bool resetMode);
|
---|
349 | #endif
|
---|
350 |
|
---|
351 | /* xf86VidModeExtentionInit.c */
|
---|
352 |
|
---|
353 | extern _X_EXPORT Bool VidModeExtensionInit(ScreenPtr pScreen);
|
---|
354 |
|
---|
355 | #endif /* _NO_XF86_PROTOTYPES */
|
---|
356 |
|
---|
357 | #endif /* _XF86_H */
|
---|