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