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 Bool xf86DoModalias;
|
---|
60 | extern Bool xf86DoConfigurePass1;
|
---|
61 | extern DevPrivateKey xf86ScreenKey;
|
---|
62 | extern DevPrivateKey xf86CreateRootWindowKey;
|
---|
63 | extern DevPrivateKey xf86PixmapKey;
|
---|
64 | extern ScrnInfoPtr *xf86Screens; /* List of pointers to ScrnInfoRecs */
|
---|
65 | extern const unsigned char byte_reversed[256];
|
---|
66 | extern ScrnInfoPtr xf86CurrentScreen;
|
---|
67 | extern Bool pciSlotClaimed;
|
---|
68 | extern Bool isaSlotClaimed;
|
---|
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 | void xf86PrintResList(int verb, resPtr list);
|
---|
105 | resPtr xf86AddRangesToList(resPtr list, resRange *pRange, int entityIndex);
|
---|
106 | int xf86ClaimIsaSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
---|
107 | int xf86GetIsaInfoForScreen(int scrnIndex);
|
---|
108 | int xf86GetFbInfoForScreen(int scrnIndex);
|
---|
109 | Bool xf86ParseIsaBusString(const char *busID);
|
---|
110 | int xf86ClaimFbSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
---|
111 | int xf86ClaimNoSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
---|
112 | void xf86EnableAccess(ScrnInfoPtr pScrn);
|
---|
113 | void xf86SetCurrentAccess(Bool Enable, ScrnInfoPtr pScrn);
|
---|
114 | Bool xf86IsPrimaryPci(struct pci_device * pPci);
|
---|
115 | Bool xf86IsPrimaryIsa(void);
|
---|
116 | /* new RAC */
|
---|
117 | resPtr xf86AddResToList(resPtr rlist, resRange *Range, int entityIndex);
|
---|
118 | resPtr xf86JoinResLists(resPtr rlist1, resPtr rlist2);
|
---|
119 | resPtr xf86DupResList(const resPtr rlist);
|
---|
120 | void xf86FreeResList(resPtr rlist);
|
---|
121 | void xf86ClaimFixedResources(resList list, int entityIndex);
|
---|
122 | Bool xf86DriverHasEntities(DriverPtr drvp);
|
---|
123 | void xf86AddEntityToScreen(ScrnInfoPtr pScrn, int entityIndex);
|
---|
124 | void xf86SetEntityInstanceForScreen(ScrnInfoPtr pScrn, int entityIndex,
|
---|
125 | int instance);
|
---|
126 | int xf86GetNumEntityInstances(int entityIndex);
|
---|
127 | GDevPtr xf86GetDevFromEntity(int entityIndex, int instance);
|
---|
128 | void xf86RemoveEntityFromScreen(ScrnInfoPtr pScrn, int entityIndex);
|
---|
129 | EntityInfoPtr xf86GetEntityInfo(int entityIndex);
|
---|
130 | struct pci_device * xf86GetPciInfoForEntity(int entityIndex);
|
---|
131 | Bool xf86SetEntityFuncs(int entityIndex, EntityProc init,
|
---|
132 | EntityProc enter, EntityProc leave, pointer);
|
---|
133 | void xf86DeallocateResourcesForEntity(int entityIndex, unsigned long type);
|
---|
134 | resPtr xf86RegisterResources(int entityIndex, resList list,
|
---|
135 | unsigned long Access);
|
---|
136 | Bool xf86CheckPciMemBase(struct pci_device * pPci, memType base);
|
---|
137 | void xf86SetAccessFuncs(EntityInfoPtr pEnt, xf86SetAccessFuncPtr funcs,
|
---|
138 | xf86SetAccessFuncPtr oldFuncs);
|
---|
139 | Bool xf86IsEntityPrimary(int entityIndex);
|
---|
140 | resPtr xf86ReallocatePciResources(int entityIndex, resPtr pRes);
|
---|
141 | resPtr xf86SetOperatingState(resList list, int entityIndex, int mask);
|
---|
142 | void xf86EnterServerState(xf86State state);
|
---|
143 | memType xf86ChkConflict(resRange *rgp, int entityIndex);
|
---|
144 | ScrnInfoPtr xf86FindScreenForEntity(int entityIndex);
|
---|
145 | Bool xf86NoSharedResources(int screenIndex, resType res);
|
---|
146 | resPtr xf86FindIntersectOfLists(resPtr l1, resPtr l2);
|
---|
147 | void xf86RegisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func, pointer arg);
|
---|
148 | Bool xf86DeregisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func);
|
---|
149 |
|
---|
150 | int xf86GetLastScrnFlag(int entityIndex);
|
---|
151 | void xf86SetLastScrnFlag(int entityIndex, int scrnIndex);
|
---|
152 | Bool xf86IsEntityShared(int entityIndex);
|
---|
153 | void xf86SetEntityShared(int entityIndex);
|
---|
154 | Bool xf86IsEntitySharable(int entityIndex);
|
---|
155 | void xf86SetEntitySharable(int entityIndex);
|
---|
156 | Bool xf86IsPrimInitDone(int entityIndex);
|
---|
157 | void xf86SetPrimInitDone(int entityIndex);
|
---|
158 | void xf86ClearPrimInitDone(int entityIndex);
|
---|
159 | int xf86AllocateEntityPrivateIndex(void);
|
---|
160 | DevUnion *xf86GetEntityPrivate(int entityIndex, int privIndex);
|
---|
161 |
|
---|
162 | /* xf86Configure.c */
|
---|
163 | GDevPtr xf86AddBusDeviceToConfigure(const char *driver, BusType bus,
|
---|
164 | void *busData, int chipset);
|
---|
165 | GDevPtr xf86AddDeviceToConfigure( const char *driver,
|
---|
166 | struct pci_device * pVideo, int chipset );
|
---|
167 |
|
---|
168 | /* xf86Cursor.c */
|
---|
169 |
|
---|
170 | void xf86LockZoom(ScreenPtr pScreen, int lock);
|
---|
171 | void xf86InitViewport(ScrnInfoPtr pScr);
|
---|
172 | void xf86SetViewport(ScreenPtr pScreen, int x, int y);
|
---|
173 | void xf86ZoomViewport(ScreenPtr pScreen, int zoom);
|
---|
174 | Bool xf86SwitchMode(ScreenPtr pScreen, DisplayModePtr mode);
|
---|
175 | void *xf86GetPointerScreenFuncs(void);
|
---|
176 | void xf86InitOrigins(void);
|
---|
177 | void xf86ReconfigureLayout(void);
|
---|
178 |
|
---|
179 | /* xf86cvt.c */
|
---|
180 | DisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VRefresh,
|
---|
181 | Bool Reduced, Bool Interlaced);
|
---|
182 |
|
---|
183 | /* xf86DPMS.c */
|
---|
184 |
|
---|
185 | Bool xf86DPMSInit(ScreenPtr pScreen, DPMSSetProcPtr set, int flags);
|
---|
186 |
|
---|
187 | /* xf86DGA.c */
|
---|
188 |
|
---|
189 | Bool DGAInit(ScreenPtr pScreen, DGAFunctionPtr funcs, DGAModePtr modes,
|
---|
190 | int num);
|
---|
191 | Bool DGAReInitModes(ScreenPtr pScreen, DGAModePtr modes, int num);
|
---|
192 | xf86SetDGAModeProc xf86SetDGAMode;
|
---|
193 |
|
---|
194 | /* xf86Events.c */
|
---|
195 |
|
---|
196 | void SetTimeSinceLastInputEvent(void);
|
---|
197 | pointer xf86AddInputHandler(int fd, InputHandlerProc proc, pointer data);
|
---|
198 | int xf86RemoveInputHandler(pointer handler);
|
---|
199 | void xf86DisableInputHandler(pointer handler);
|
---|
200 | void xf86EnableInputHandler(pointer handler);
|
---|
201 | pointer xf86AddGeneralHandler(int fd, InputHandlerProc proc, pointer data);
|
---|
202 | int xf86RemoveGeneralHandler(pointer handler);
|
---|
203 | void xf86DisableGeneralHandler(pointer handler);
|
---|
204 | void xf86EnableGeneralHandler(pointer handler);
|
---|
205 | void xf86InterceptSignals(int *signo);
|
---|
206 | void xf86InterceptSigIll(void (*sigillhandler)(void));
|
---|
207 | Bool xf86EnableVTSwitch(Bool new);
|
---|
208 | Bool xf86CommonSpecialKey(int key, Bool down, int modifiers);
|
---|
209 | void xf86ProcessActionEvent(ActionEvent action, void *arg);
|
---|
210 |
|
---|
211 | /* xf86Helper.c */
|
---|
212 |
|
---|
213 | void xf86AddDriver(DriverPtr driver, pointer module, int flags);
|
---|
214 | void xf86DeleteDriver(int drvIndex);
|
---|
215 | ScrnInfoPtr xf86AllocateScreen(DriverPtr drv, int flags);
|
---|
216 | void xf86DeleteScreen(int scrnIndex, int flags);
|
---|
217 | int xf86AllocateScrnInfoPrivateIndex(void);
|
---|
218 | Bool xf86AddPixFormat(ScrnInfoPtr pScrn, int depth, int bpp, int pad);
|
---|
219 | Bool xf86SetDepthBpp(ScrnInfoPtr scrp, int depth, int bpp, int fbbpp,
|
---|
220 | int depth24flags);
|
---|
221 | void xf86PrintDepthBpp(ScrnInfoPtr scrp);
|
---|
222 | Bool xf86SetWeight(ScrnInfoPtr scrp, rgb weight, rgb mask);
|
---|
223 | Bool xf86SetDefaultVisual(ScrnInfoPtr scrp, int visual);
|
---|
224 | Bool xf86SetGamma(ScrnInfoPtr scrp, Gamma newGamma);
|
---|
225 | void xf86SetDpi(ScrnInfoPtr pScrn, int x, int y);
|
---|
226 | void xf86SetBlackWhitePixels(ScreenPtr pScreen);
|
---|
227 | void xf86EnableDisableFBAccess(int scrnIndex, Bool enable);
|
---|
228 | void xf86VDrvMsgVerb(int scrnIndex, MessageType type, int verb,
|
---|
229 | const char *format, va_list args);
|
---|
230 | void xf86DrvMsgVerb(int scrnIndex, MessageType type, int verb,
|
---|
231 | const char *format, ...) _printf_attribute(4,5);
|
---|
232 | void xf86DrvMsg(int scrnIndex, MessageType type, const char *format, ...)
|
---|
233 | _printf_attribute(3,4);
|
---|
234 | void xf86MsgVerb(MessageType type, int verb, const char *format, ...)
|
---|
235 | _printf_attribute(3,4);
|
---|
236 | void xf86Msg(MessageType type, const char *format, ...) _printf_attribute(2,3);
|
---|
237 | void xf86ErrorFVerb(int verb, const char *format, ...) _printf_attribute(2,3);
|
---|
238 | void xf86ErrorF(const char *format, ...) _printf_attribute(1,2);
|
---|
239 | const char *xf86TokenToString(SymTabPtr table, int token);
|
---|
240 | int xf86StringToToken(SymTabPtr table, const char *string);
|
---|
241 | void xf86ShowClocks(ScrnInfoPtr scrp, MessageType from);
|
---|
242 | void xf86PrintChipsets(const char *drvname, const char *drvmsg,
|
---|
243 | SymTabPtr chips);
|
---|
244 | int xf86MatchDevice(const char *drivername, GDevPtr **driversectlist);
|
---|
245 | int xf86MatchPciInstances(const char *driverName, int vendorID,
|
---|
246 | SymTabPtr chipsets, PciChipsets *PCIchipsets,
|
---|
247 | GDevPtr *devList, int numDevs, DriverPtr drvp,
|
---|
248 | int **foundEntities);
|
---|
249 | int xf86MatchIsaInstances(const char *driverName, SymTabPtr chipsets,
|
---|
250 | IsaChipsets *ISAchipsets, DriverPtr drvp,
|
---|
251 | FindIsaDevProc FindIsaDevice, GDevPtr *devList,
|
---|
252 | int numDevs, int **foundEntities);
|
---|
253 | void xf86GetClocks(ScrnInfoPtr pScrn, int num,
|
---|
254 | Bool (*ClockFunc)(ScrnInfoPtr, int),
|
---|
255 | void (*ProtectRegs)(ScrnInfoPtr, Bool),
|
---|
256 | void (*BlankScreen)(ScrnInfoPtr, Bool),
|
---|
257 | IOADDRESS vertsyncreg, int maskval,
|
---|
258 | int knownclkindex, int knownclkvalue);
|
---|
259 | void xf86SetPriority(Bool up);
|
---|
260 | const char *xf86GetVisualName(int visual);
|
---|
261 | int xf86GetVerbosity(void);
|
---|
262 | Pix24Flags xf86GetPix24(void);
|
---|
263 | int xf86GetDepth(void);
|
---|
264 | rgb xf86GetWeight(void);
|
---|
265 | Gamma xf86GetGamma(void);
|
---|
266 | Bool xf86GetFlipPixels(void);
|
---|
267 | const char *xf86GetServerName(void);
|
---|
268 | Bool xf86ServerIsExiting(void);
|
---|
269 | Bool xf86ServerIsResetting(void);
|
---|
270 | Bool xf86ServerIsInitialising(void);
|
---|
271 | Bool xf86ServerIsOnlyDetecting(void);
|
---|
272 | Bool xf86ServerIsOnlyProbing(void);
|
---|
273 | Bool xf86CaughtSignal(void);
|
---|
274 | Bool xf86GetVidModeAllowNonLocal(void);
|
---|
275 | Bool xf86GetVidModeEnabled(void);
|
---|
276 | Bool xf86GetModInDevAllowNonLocal(void);
|
---|
277 | Bool xf86GetModInDevEnabled(void);
|
---|
278 | Bool xf86GetAllowMouseOpenFail(void);
|
---|
279 | Bool xf86IsPc98(void);
|
---|
280 | void xf86DisableRandR(void);
|
---|
281 | CARD32 xf86GetVersion(void);
|
---|
282 | CARD32 xorgGetVersion(void);
|
---|
283 | CARD32 xf86GetModuleVersion(pointer module);
|
---|
284 | pointer xf86LoadDrvSubModule(DriverPtr drv, const char *name);
|
---|
285 | pointer xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name);
|
---|
286 | pointer xf86LoadOneModule(char *name, pointer optlist);
|
---|
287 | void xf86UnloadSubModule(pointer mod);
|
---|
288 | Bool xf86LoaderCheckSymbol(const char *name);
|
---|
289 | void xf86LoaderReqSymLists(const char **, ...);
|
---|
290 | void xf86LoaderReqSymbols(const char *, ...);
|
---|
291 | void xf86LoaderRefSymLists(const char **, ...);
|
---|
292 | void xf86LoaderRefSymbols(const char *, ...);
|
---|
293 | void xf86SetBackingStore(ScreenPtr pScreen);
|
---|
294 | void xf86SetSilkenMouse(ScreenPtr pScreen);
|
---|
295 | int xf86NewSerialNumber(WindowPtr p, pointer unused);
|
---|
296 | pointer xf86FindXvOptions(int scrnIndex, int adapt_index, char *port_name,
|
---|
297 | char **adaptor_name, pointer *adaptor_options);
|
---|
298 | void xf86GetOS(const char **name, int *major, int *minor, int *teeny);
|
---|
299 | ScrnInfoPtr xf86ConfigPciEntity(ScrnInfoPtr pScrn, int scrnFlag,
|
---|
300 | int entityIndex,PciChipsets *p_chip,
|
---|
301 | resList res, EntityProc init,
|
---|
302 | EntityProc enter, EntityProc leave,
|
---|
303 | pointer private);
|
---|
304 | ScrnInfoPtr xf86ConfigIsaEntity(ScrnInfoPtr pScrn, int scrnFlag,
|
---|
305 | int entityIndex, IsaChipsets *i_chip,
|
---|
306 | resList res, EntityProc init,
|
---|
307 | EntityProc enter, EntityProc leave,
|
---|
308 | pointer private);
|
---|
309 | ScrnInfoPtr xf86ConfigFbEntity(ScrnInfoPtr pScrn, int scrnFlag,
|
---|
310 | int entityIndex, EntityProc init,
|
---|
311 | EntityProc enter, EntityProc leave,
|
---|
312 | pointer private);
|
---|
313 | /* Obsolete! don't use */
|
---|
314 | Bool xf86ConfigActivePciEntity(ScrnInfoPtr pScrn,
|
---|
315 | int entityIndex,PciChipsets *p_chip,
|
---|
316 | resList res, EntityProc init,
|
---|
317 | EntityProc enter, EntityProc leave,
|
---|
318 | pointer private);
|
---|
319 | /* Obsolete! don't use */
|
---|
320 | Bool xf86ConfigActiveIsaEntity(ScrnInfoPtr pScrn,
|
---|
321 | int entityIndex, IsaChipsets *i_chip,
|
---|
322 | resList res, EntityProc init,
|
---|
323 | EntityProc enter, EntityProc leave,
|
---|
324 | pointer private);
|
---|
325 | void xf86ConfigPciEntityInactive(EntityInfoPtr pEnt, PciChipsets *p_chip,
|
---|
326 | resList res, EntityProc init,
|
---|
327 | EntityProc enter, EntityProc leave,
|
---|
328 | pointer private);
|
---|
329 | void xf86ConfigIsaEntityInactive(EntityInfoPtr pEnt, IsaChipsets *i_chip,
|
---|
330 | resList res, EntityProc init,
|
---|
331 | EntityProc enter, EntityProc leave,
|
---|
332 | pointer private);
|
---|
333 | void xf86ConfigFbEntityInactive(EntityInfoPtr pEnt, EntityProc init,
|
---|
334 | EntityProc enter, EntityProc leave,
|
---|
335 | pointer private);
|
---|
336 | Bool xf86IsScreenPrimary(int scrnIndex);
|
---|
337 | int xf86RegisterRootWindowProperty(int ScrnIndex, Atom property, Atom type,
|
---|
338 | int format, unsigned long len,
|
---|
339 | pointer value);
|
---|
340 | Bool xf86IsUnblank(int mode);
|
---|
341 |
|
---|
342 | _X_DEPRECATED void xf86AddModuleInfo(pointer info, pointer module);
|
---|
343 | _X_DEPRECATED void xf86DeleteModuleInfo(int idx);
|
---|
344 | void xf86getsecs(long *, long *);
|
---|
345 |
|
---|
346 | /* xf86Debug.c */
|
---|
347 | #ifdef BUILDDEBUG
|
---|
348 | CARD8 xf86PeekFb8(CARD8 *p);
|
---|
349 | CARD16 xf86PeekFb16(CARD16 *p);
|
---|
350 | CARD32 xf86PeekFb32(CARD32 *p);
|
---|
351 | void xf86PokeFb8(CARD8 *p, CARD8 v);
|
---|
352 | void xf86PokeFb16(CARD16 *p, CARD16 v);
|
---|
353 | void xf86PokeFb32(CARD16 *p, CARD32 v);
|
---|
354 | CARD8 xf86PeekMmio8(pointer Base, unsigned long Offset);
|
---|
355 | CARD16 xf86PeekMmio16(pointer Base, unsigned long Offset);
|
---|
356 | CARD32 xf86PeekMmio32(pointer Base, unsigned long Offset);
|
---|
357 | void xf86PokeMmio8(pointer Base, unsigned long Offset, CARD8 v);
|
---|
358 | void xf86PokeMmio16(pointer Base, unsigned long Offset, CARD16 v);
|
---|
359 | void xf86PokeMmio32(pointer Base, unsigned long Offset, CARD32 v);
|
---|
360 | #endif
|
---|
361 |
|
---|
362 | /* xf86Init.c */
|
---|
363 |
|
---|
364 | PixmapFormatPtr xf86GetPixFormat(ScrnInfoPtr pScrn, int depth);
|
---|
365 | int xf86GetBppFromDepth(ScrnInfoPtr pScrn, int depth);
|
---|
366 |
|
---|
367 | /* xf86Mode.c */
|
---|
368 |
|
---|
369 | int xf86GetNearestClock(ScrnInfoPtr scrp, int freq, Bool allowDiv2,
|
---|
370 | int DivFactor, int MulFactor, int *divider);
|
---|
371 | const char *xf86ModeStatusToString(ModeStatus status);
|
---|
372 | ModeStatus xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep,
|
---|
373 | ClockRangePtr clockRanges, LookupModeFlags strategy);
|
---|
374 | ModeStatus xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor);
|
---|
375 | ModeStatus xf86InitialCheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode,
|
---|
376 | ClockRangePtr clockRanges,
|
---|
377 | LookupModeFlags strategy,
|
---|
378 | int maxPitch, int virtualX,
|
---|
379 | int virtualY);
|
---|
380 | ModeStatus xf86CheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode,
|
---|
381 | int flags);
|
---|
382 | int xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
|
---|
383 | char **modeNames, ClockRangePtr clockRanges,
|
---|
384 | int *linePitches, int minPitch, int maxPitch,
|
---|
385 | int minHeight, int maxHeight, int pitchInc,
|
---|
386 | int virtualX, int virtualY, int apertureSize,
|
---|
387 | LookupModeFlags strategy);
|
---|
388 | void xf86DeleteMode(DisplayModePtr *modeList, DisplayModePtr mode);
|
---|
389 | void xf86PruneDriverModes(ScrnInfoPtr scrp);
|
---|
390 | void xf86SetCrtcForModes(ScrnInfoPtr scrp, int adjustFlags);
|
---|
391 | void xf86PrintModes(ScrnInfoPtr scrp);
|
---|
392 | void xf86ShowClockRanges(ScrnInfoPtr scrp, ClockRangePtr clockRanges);
|
---|
393 | double xf86ModeHSync(DisplayModePtr mode);
|
---|
394 | double xf86ModeVRefresh(DisplayModePtr mode);
|
---|
395 | void xf86SetModeDefaultName(DisplayModePtr mode);
|
---|
396 | void xf86SetModeCrtc(DisplayModePtr p, int adjustFlags);
|
---|
397 | DisplayModePtr xf86DuplicateMode(DisplayModePtr pMode);
|
---|
398 | DisplayModePtr xf86DuplicateModes(ScrnInfoPtr pScrn, DisplayModePtr modeList);
|
---|
399 | Bool xf86ModesEqual(DisplayModePtr pMode1, DisplayModePtr pMode2);
|
---|
400 | void xf86PrintModeline(int scrnIndex,DisplayModePtr mode);
|
---|
401 | DisplayModePtr xf86ModesAdd(DisplayModePtr modes, DisplayModePtr new);
|
---|
402 |
|
---|
403 | /* xf86Option.c */
|
---|
404 |
|
---|
405 | void xf86CollectOptions(ScrnInfoPtr pScrn, pointer extraOpts);
|
---|
406 |
|
---|
407 |
|
---|
408 | /* xf86RandR.c */
|
---|
409 | #ifdef RANDR
|
---|
410 | Bool xf86RandRInit (ScreenPtr pScreen);
|
---|
411 | void xf86RandRSetInitialMode (ScreenPtr pScreen);
|
---|
412 | Rotation xf86GetRotation(ScreenPtr pScreen);
|
---|
413 | Bool xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen,
|
---|
414 | int newvirtX, int newvirtY,
|
---|
415 | int newmmWidth, int newmmHeight, Bool resetMode);
|
---|
416 | #endif
|
---|
417 |
|
---|
418 | /* xf86VidModeExtentionInit.c */
|
---|
419 |
|
---|
420 | Bool VidModeExtensionInit(ScreenPtr pScreen);
|
---|
421 |
|
---|
422 | /* xf86Versions.c */
|
---|
423 | CARD32 xf86GetBuiltinInterfaceVersion(BuiltinInterface iface, int flag);
|
---|
424 | Bool xf86RegisterBuiltinInterfaceVersion(BuiltinInterface iface,
|
---|
425 | CARD32 version, int flags);
|
---|
426 |
|
---|
427 |
|
---|
428 | #endif /* _NO_XF86_PROTOTYPES */
|
---|
429 |
|
---|
430 | #endif /* _XF86_H */
|
---|