1 alanh 3.189 /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86.h,v 3.188 2005/08/28 20:04:46 tsi Exp $ */
|
2 dawes 3.76
3 /*
|
4 dawes 3.178 * Copyright (c) 1997-2005 by The XFree86 Project, Inc.
|
5 dawes 3.174 * All rights reserved.
|
6 dawes 3.170 *
|
7 dawes 3.174 * Permission is hereby granted, free of charge, to any person obtaining
8 * a copy of this software and associated documentation files (the
9 * "Software"), to deal in the Software without restriction, including
10 * without limitation the rights to use, copy, modify, merge, publish,
11 * distribute, sublicense, and/or sell copies of the Software, and to
12 * permit persons to whom the Software is furnished to do so, subject
13 * to the following conditions:
|
14 dawes 3.170 *
|
15 dawes 3.174 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions, and the following disclaimer.
|
17 dawes 3.170 *
|
18 dawes 3.174 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer
20 * in the documentation and/or other materials provided with the
21 * distribution, and in the same place and form as other copyright,
22 * license and disclaimer information.
|
23 dawes 3.170 *
|
24 dawes 3.174 * 3. The end-user documentation included with the redistribution,
25 * if any, must include the following acknowledgment: "This product
26 * includes software developed by The XFree86 Project, Inc
27 * (http://www.xfree86.org/) and its contributors", in the same
28 * place and form as other third-party acknowledgments. Alternately,
29 * this acknowledgment may appear in the software itself, in the
30 * same form and location as other such third-party acknowledgments.
31 *
32 * 4. Except as contained in this notice, the name of The XFree86
33 * Project, Inc shall not be used in advertising or otherwise to
34 * promote the sale, use or other dealings in this Software without
35 * prior written authorization from The XFree86 Project, Inc.
36 *
37 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
38 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
39 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
40 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
41 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
42 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
43 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
44 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
45 dawes 3.174 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
46 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
47 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
48 dawes 3.76 */
|
49 dawes 3.179 /*
50 * Copyright © 2003, 2004, 2005 David H. Dawes.
51 * Copyright © 2003, 2004, 2005 X-Oz Technologies.
52 * All rights reserved.
53 *
54 * Permission is hereby granted, free of charge, to any person obtaining a
55 * copy of this software and associated documentation files (the "Software"),
56 * to deal in the Software without restriction, including without limitation
57 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
58 * and/or sell copies of the Software, and to permit persons to whom the
59 * Software is furnished to do so, subject to the following conditions:
60 *
61 * 1. Redistributions of source code must retain the above copyright
62 * notice, this list of conditions, and the following disclaimer.
63 *
64 * 2. Redistributions in binary form must reproduce the above
65 * copyright notice, this list of conditions and the following
66 * disclaimer in the documentation and/or other materials provided
67 * with the distribution.
68 *
69 * 3. The end-user documentation included with the redistribution,
70 dawes 3.179 * if any, must include the following acknowledgment: "This product
71 * includes software developed by X-Oz Technologies
72 * (http://www.x-oz.com/)." Alternately, this acknowledgment may
73 * appear in the software itself, if and wherever such third-party
74 * acknowledgments normally appear.
75 *
76 * 4. Except as contained in this notice, the name of X-Oz
77 * Technologies shall not be used in advertising or otherwise to
78 * promote the sale, use or other dealings in this Software without
79 * prior written authorization from X-Oz Technologies.
80 *
81 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR
82 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
83 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
84 * ARE DISCLAIMED. IN NO EVENT SHALL X-OZ TECHNOLOGIES OR ITS CONTRIBUTORS
85 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
86 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
87 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
88 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
89 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
90 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
91 dawes 3.179 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
92 */
|
93 dawes 3.76
|
94 dawes 3.15 /*
|
95 dawes 3.76 * This file contains declarations for public XFree86 functions and variables,
96 * and definitions of public macros.
|
97 dawes 1.1 *
|
98 dawes 3.76 * "public" means available to video drivers.
|
99 dawes 1.1 */
100
101 #ifndef _XF86_H
102 #define _XF86_H
103
|
104 dawes 3.76 #include "xf86str.h"
105 #include "xf86Opt.h"
106 #include <X11/Xfuncproto.h>
|
107 dawes 3.133 #ifndef IN_MODULE
|
108 dawes 3.76 #include <stdarg.h>
|
109 dawes 3.133 #else
110 #include "xf86_ansic.h"
111 #endif
|
112 alanh 3.189 #ifdef RANDR
113 #include <X11/extensions/randr.h>
114 #endif
|
115 dawes 1.1
|
116 dawes 3.118 #include "propertyst.h"
117
|
118 dawes 3.76 /* General parameters */
|
119 alanh 3.123 extern int xf86DoConfigure;
|
120 alanh 3.129 extern Bool xf86DoConfigurePass1;
|
121 dawes 3.76 extern int xf86ScreenIndex; /* Index into pScreen.devPrivates */
|
122 dawes 3.118 extern int xf86CreateRootWindowIndex; /* Index into pScreen.devPrivates */
|
123 dawes 3.76 extern int xf86PixmapIndex;
|
124 dawes 3.106 extern Bool xf86ResAccessEnter;
|
125 dawes 3.76 extern ScrnInfoPtr *xf86Screens; /* List of pointers to ScrnInfoRecs */
126 extern const unsigned char byte_reversed[256];
|
127 eich 3.126 extern ScrnInfoPtr xf86CurrentScreen;
|
128 eich 3.145 extern Bool pciSlotClaimed;
129 extern Bool isaSlotClaimed;
130 extern Bool fbSlotClaimed;
131 #ifdef __sparc__
|
132 eich 3.146 extern Bool sbusSlotClaimed;
|
133 eich 3.145 #endif
|
134 dawes 3.150 extern confDRIRec xf86ConfigDRI;
|
135 eich 3.167 extern Bool xf86inSuspend;
|
136 dawes 3.150
|
137 dawes 3.76 #define XF86SCRNINFO(p) ((ScrnInfoPtr)((p)->devPrivates[xf86ScreenIndex].ptr))
|
138 hohndel 3.69
|
139 dawes 3.76 #define XF86FLIP_PIXELS() \
140 do { \
141 if (xf86GetFlipPixels()) { \
142 pScreen->whitePixel = (pScreen->whitePixel) ? 0 : 1; \
143 pScreen->blackPixel = (pScreen->blackPixel) ? 0 : 1; \
144 } \
145 while (0)
|
146 hohndel 3.52
|
147 dawes 3.181 /* Some macros for messages. */
|
148 dawes 3.76 #define BOOLTOSTRING(b) ((b) ? "TRUE" : "FALSE")
|
149 dawes 3.179 #define PLURAL(n) ((n) == 1 ? "" : "s")
|
150 dawes 3.181 #define EMPTYIFNULL(s) ((s) ? (s) : "")
151
|
152 dawes 3.16
|
153 dawes 3.85 #define PIX24TOBPP(p) (((p) == Pix24Use24) ? 24 : \
154 (((p) == Pix24Use32) ? 32 : 0))
155
|
156 eich 3.120 /* variables for debugging */
|
157 eich 3.157 #ifdef BUILDDEBUG
158 extern char* xf86p8bit[];
|
159 eich 3.120 extern CARD32 xf86DummyVar1;
160 extern CARD32 xf86DummyVar2;
161 extern CARD32 xf86DummyVar3;
|
162 eich 3.157 #endif
|
163 eich 3.120
|
164 dawes 3.76 /* Function Prototypes */
165 #ifndef _NO_XF86_PROTOTYPES
|
166 dawes 1.1
|
167 dawes 3.76 /* xf86Bus.c */
|
168 hohndel 3.65
|
169 dawes 3.106 Bool xf86CheckPciSlot(int bus, int device, int func);
170 int xf86ClaimPciSlot(int bus, int device, int func, DriverPtr drvp,
171 int chipset, GDevPtr dev, Bool active);
172 Bool xf86ParsePciBusString(const char *busID, int *bus, int *device,
173 int *func);
174 Bool xf86ComparePciBusString(const char *busID, int bus, int device, int func);
|
175 tsi 3.158 void xf86FormatPciBusNumber(int busnum, char *buffer);
|
176 dawes 3.76 pciVideoPtr *xf86GetPciVideoInfo(void);
|
177 dawes 3.98 pciConfigPtr *xf86GetPciConfigInfo(void);
|
178 tsi 3.186 void xf86SetPciVideo(pciVideoPtr pvp, resType rt);
|
179 tsi 3.187 Bool xf86CheckPciVideo(pciVideoPtr pvp, Bool *pActivate);
180 Bool xf86CheckPciSparseIO(int domain, IOADDRESS Base, int count,
181 memType mask, Bool *pUnRouted);
182 Bool xf86DomainHasBIOSSegments(int domain);
|
183 dawes 3.115 void xf86PrintResList(int verb, resPtr list);
|
184 eich 3.120 resPtr xf86AddRangesToList(resPtr list, resRange *pRange, int entityIndex);
|
185 dawes 3.106 int xf86ClaimIsaSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
186 int xf86GetIsaInfoForScreen(int scrnIndex);
|
187 eich 3.145 int xf86GetFbInfoForScreen(int scrnIndex);
|
188 dawes 3.78 Bool xf86ParseIsaBusString(const char *busID);
|
189 eich 3.145 int xf86ClaimFbSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
190 eich 3.162 int xf86ClaimNoSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active);
|
191 dawes 3.106 void xf86EnableAccess(ScrnInfoPtr pScrn);
|
192 eich 3.120 void xf86SetCurrentAccess(Bool Enable, ScrnInfoPtr pScrn);
|
193 dawes 3.80 Bool xf86IsPrimaryPci(pciVideoPtr pPci);
|
194 dawes 3.82 Bool xf86IsPrimaryIsa(void);
195 int xf86CheckPciGAType(pciVideoPtr pPci);
|
196 dawes 3.100 /* new RAC */
|
197 tsi 3.137 resPtr xf86AddResToList(resPtr rlist, resRange *Range, int entityIndex);
198 resPtr xf86JoinResLists(resPtr rlist1, resPtr rlist2);
199 resPtr xf86DupResList(const resPtr rlist);
200 void xf86FreeResList(resPtr rlist);
|
201 dawes 3.106 void xf86ClaimFixedResources(resList list, int entityIndex);
|
202 eich 3.135 Bool xf86DriverHasEntities(DriverPtr drvp);
|
203 dawes 3.175 void xf86ClearDriverEntities(DriverPtr drvp);
|
204 dawes 3.106 void xf86AddEntityToScreen(ScrnInfoPtr pScrn, int entityIndex);
|
205 dawes 3.140 void xf86SetEntityInstanceForScreen(ScrnInfoPtr pScrn, int entityIndex,
206 int instance);
207 int xf86GetNumEntityInstances(int entityIndex);
208 GDevPtr xf86GetDevFromEntity(int entityIndex, int instance);
|
209 dawes 3.106 void xf86RemoveEntityFromScreen(ScrnInfoPtr pScrn, int entityIndex);
210 EntityInfoPtr xf86GetEntityInfo(int entityIndex);
211 pciVideoPtr xf86GetPciInfoForEntity(int entityIndex);
|
212 eich 3.135 int xf86GetPciEntity(int bus, int dev, int func);
|
213 dawes 3.106 Bool xf86SetEntityFuncs(int entityIndex, EntityProc init,
214 EntityProc enter, EntityProc leave, pointer);
|
215 tsi 3.156 void xf86DeallocateResourcesForEntity(int entityIndex, unsigned long type);
|
216 herrb 3.160 resPtr xf86RegisterResources(int entityIndex, resList list,
217 unsigned long Access);
|
218 dawes 3.109 Bool xf86CheckPciMemBase(pciVideoPtr pPci, memType base);
|
219 eich 3.135 void xf86SetAccessFuncs(EntityInfoPtr pEnt, xf86SetAccessFuncPtr funcs,
220 xf86SetAccessFuncPtr oldFuncs);
|
221 dawes 3.106 Bool xf86IsEntityPrimary(int entityIndex);
|
222 dawes 3.111 Bool xf86FixPciResource(int entityIndex, int prt, memType alignment,
|
223 tsi 3.156 unsigned long type);
|
224 dawes 3.106 resPtr xf86ReallocatePciResources(int entityIndex, resPtr pRes);
|
225 tsi 3.156 resPtr xf86SetOperatingState(resList list, int entityIndex, int mask);
|
226 dawes 3.107 void xf86EnterServerState(xf86State state);
|
227 tsi 3.156 resRange xf86GetBlock(unsigned long type, memType size,
|
228 dawes 3.109 memType window_start, memType window_end,
229 memType align_mask, resPtr avoid);
|
230 tsi 3.156 resRange xf86GetSparse(unsigned long type, memType fixed_bits,
|
231 dawes 3.109 memType decode_mask, memType address_mask,
|
232 dawes 3.106 resPtr avoid);
|
233 dawes 3.109 memType xf86ChkConflict(resRange *rgp, int entityIndex);
|
234 dawes 3.117 Bool xf86IsPciDevPresent(int bus, int dev, int func);
235 ScrnInfoPtr xf86FindScreenForEntity(int entityIndex);
|
236 dawes 3.132 Bool xf86NoSharedResources(int screenIndex, resType res);
|
237 eich 3.120 resPtr xf86FindIntersectOfLists(resPtr l1, resPtr l2);
|
238 dawes 3.125 pciVideoPtr xf86FindPciDeviceVendor(CARD16 vendorID, CARD16 deviceID,
|
239 eich 3.124 char n, pciVideoPtr pvp_exclude);
|
240 dawes 3.125 pciVideoPtr xf86FindPciClass(CARD8 intf, CARD8 subClass, CARD16 class,
|
241 eich 3.124 char n, pciVideoPtr pvp_exclude);
|
242 tsi 3.164 #ifdef INCLUDE_DEPRECATED
|
243 dawes 3.149 void xf86EnablePciBusMaster(pciVideoPtr pPci, Bool enable);
|
244 tsi 3.164 #endif
|
245 eich 3.126 void xf86RegisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func, pointer arg);
246 Bool xf86DeregisterStateChangeNotificationCallback(xf86StateChangeNotificationCallbackFunc func);
247 #ifdef async
248 Bool xf86QueueAsyncEvent(void (*func)(pointer),pointer arg);
249 #endif
|
250 dawes 3.140
251 int xf86GetLastScrnFlag(int entityIndex);
252 void xf86SetLastScrnFlag(int entityIndex, int scrnIndex);
253 Bool xf86IsEntityShared(int entityIndex);
254 void xf86SetEntityShared(int entityIndex);
255 Bool xf86IsEntitySharable(int entityIndex);
256 void xf86SetEntitySharable(int entityIndex);
257 Bool xf86IsPrimInitDone(int entityIndex);
258 void xf86SetPrimInitDone(int entityIndex);
259 void xf86ClearPrimInitDone(int entityIndex);
260 int xf86AllocateEntityPrivateIndex(void);
261 DevUnion *xf86GetEntityPrivate(int entityIndex, int privIndex);
262
|
263 dawes 3.181 /* xf86Config.c */
264 void xf86ConfFreeScreenData(confScreenPtr pConfScreen);
265 void xf86ConfFreeGraphicsDeviceData(GDevPtr pGDev);
266 void xf86ConfFreeInputDeviceData(IDevPtr pIDev);
267 void xf86ConfFreeMonitorData(MonPtr pMonitor);
268 void xf86ConfFreeModeData(DisplayModePtr pMode);
269 void xf86ConfFreeModeSetData(confModeSetPtr pModeSet);
270 void xf86ConfFreeModeList(DisplayModePtr pModes);
271 void xf86ConfFreeDisplayData(DispPtr pDisplay);
272 void xf86ConfFreeXvAdaptorData(confXvAdaptorPtr pAdaptor);
273 void xf86ConfFreeXvPortData(confXvPortPtr pPort);
274 void xf86ConfFreeScreenLayoutData(screenLayoutPtr pScreenLayout);
275 void xf86ConfFreeServerLayoutData(serverLayoutPtr pServerLayout);
276 void xf86ConfFreeFilesData(confFilesPtr pFiles);
277 void xf86ConfFreeServerFlagsData(confFlagsPtr pFlags);
278 void xf86ConfFreeLoadModuleData(confLoadModulePtr pLoad);
279 void xf86ConfFreeModulesData(confModulesPtr pModules);
280 void xf86ConfFreeDRIData(confDRIPtr pDri);
281 void xf86ConfFreeDRIBufferData(confDRIBufferPtr pDriBuf);
282 void xf86ConfFreeVendorData(confVendorPtr pVendor);
283 void xf86ConfFreeVendorSubData(confVendorSubPtr pVendorSub);
284 dawes 3.181 confScreenPtr xf86ConfAllocScreen(void);
285 GDevPtr xf86ConfAllocGraphicsDevice(void);
286 IDevPtr xf86ConfAllocInputDevice(void);
287 MonPtr xf86ConfAllocMonitor(void);
288 DisplayModePtr xf86ConfAllocMode(void);
289 confModeSetPtr xf86ConfAllocModeSet(void);
290 DisplayModePtr xf86ConfAllocModeList(int n);
291 DispPtr xf86ConfAllocDisplay(void);
292 confXvAdaptorPtr xf86ConfAllocXvAdaptor(void);
293 confXvPortPtr xf86ConfAllocXvPort(void);
294 screenLayoutPtr xf86ConfAllocScreenLayout(void);
295 serverLayoutPtr xf86ConfAllocServerLayout(void);
296 confFilesPtr xf86ConfAllocFiles(void);
297 confFlagsPtr xf86ConfAllocServerFlags(void);
298 confLoadModulePtr xf86ConfAllocLoadModule(void);
299 confModulesPtr xf86ConfAllocModules(void);
300 confDRIPtr xf86ConfAllocDRI(void);
301 confDRIBufferPtr xf86ConfAllocDRIBuffer(void);
302 confVendorPtr xf86ConfAllocVendor(void);
303 confVendorSubPtr xf86ConfAllocVendorSub(void);
304 confScreenPtr xf86ConfDupScreen(const confScreenRec *pConfScreen, int depth);
305 dawes 3.181 GDevPtr xf86ConfDupGraphicsDevice(const GDevRec *pGDev);
306 IDevPtr xf86ConfDupInputDevice(const IDevRec *pIDev, int depth);
307 MonPtr xf86ConfDupMonitor(const MonRec *pMonitor, int depth);
308 DisplayModePtr xf86ConfDupMode(const DisplayModeRec *pMode, int depth);
309 confModeSetPtr xf86ConfDupModeSet(const confModeSetRec *pModeSet, int depth);
310 DisplayModePtr xf86ConfDupModeList(const DisplayModeRec *pModes, int depth);
311 DispPtr xf86ConfDupDisplay(const DispRec *pDisplay);
312 confXvAdaptorPtr xf86ConfDupXvAdaptor(const confXvAdaptorRec *pAdaptor);
313 confXvPortPtr xf86ConfDupXvPort(const confXvPortRec *pPort);
314 screenLayoutPtr xf86ConfDupScreenLayout(const screenLayoutRec *pScreenLayout,
315 int depth);
316 serverLayoutPtr xf86ConfDupServerLayout(const serverLayoutRec *pServerLayout,
317 int depth);
318 confFilesPtr xf86ConfDupFiles(const confFilesRec *pFiles);
319 confFlagsPtr xf86ConfDupServerFlags(const confFlagsRec *pFlags);
320 confLoadModulePtr xf86ConfDupLoadModule(const confLoadModuleRec *pLoad);
321 confModulesPtr xf86ConfDupModules(const confModulesRec *pModules);
322 confDRIPtr xf86ConfDupDRI(const confDRIRec *pDri);
323 confDRIBufferPtr xf86ConfDupDRIBuffer(const confDRIBufferRec *pDriBuffer);
324 confVendorPtr xf86ConfDupVendor(const confVendorRec *pVendor);
325 confVendorSubPtr xf86ConfDupVendorSub(const confVendorSubRec *pVendorSub);
326 dawes 3.181 serverLayoutPtr xf86ConfResolveServerLayout(ConfigHandle handle,
327 serverLayoutPtr pServerLayout,
328 int depth);
329 int xf86ConfCheckResolvedServerLayout(const serverLayoutRec *pServerLayout,
330 int depth, Bool strict);
331 serverLayoutPtr xf86ConfGetServerLayoutByName(ConfigHandle handle,
332 const char *name, int depth);
333 serverLayoutPtr xf86ConfGetNextServerLayout(ConfigHandle handle,
334 ConfigDataHandle prevLayoutHandle,
335 int depth);
336 confScreenPtr xf86ConfResolveScreen(ConfigHandle handle,
337 confScreenPtr pConfScreen, int depth);
338 int xf86ConfCheckResolvedScreen(const confScreenRec *pConfScreen, int depth,
339 Bool strict);
340 confScreenPtr xf86ConfGetScreenByName(ConfigHandle handle, const char *name,
341 int depth);
342 confScreenPtr xf86ConfGetNextScreen(ConfigHandle handle,
343 ConfigDataHandle prevScreenHandle,
344 int depth);
345 MonPtr xf86ConfResolveMonitor(ConfigHandle handle, MonPtr pMonitor);
346 int xf86ConfCheckResolvedMonitor(const MonRec *pMonitor, int depth,
347 dawes 3.181 Bool strict);
348 MonPtr xf86ConfGetMonitorByName(ConfigHandle handle, const char *name,
349 int depth);
350 MonPtr xf86ConfGetNextMonitor(ConfigHandle handle,
351 ConfigDataHandle prevMonitorHandle, int depth);
352 confModeSetPtr xf86ConfGetModeSetByName(ConfigHandle handle, const char *name);
353 confModeSetPtr xf86ConfGetNextModeSet(ConfigHandle handle,
354 ConfigDataHandle prevModeSetHandle);
355 GDevPtr xf86ConfGetGraphicsDeviceByName(ConfigHandle handle, const char *name);
356 GDevPtr xf86ConfGetNextGraphicsDevice(ConfigHandle handle,
357 ConfigDataHandle prevDeviceHandle);
358 IDevPtr xf86ConfGetInputDeviceByName(ConfigHandle handle, const char *name);
359 IDevPtr xf86ConfGetNextInputDevice(ConfigHandle handle,
360 ConfigDataHandle prevIDevHandle, int depth);
361 IDevPtr xf86ConfGetInputDeviceByDriver(ConfigHandle handle, const char *driver);
362 IDevPtr xf86ConfGetInputDeviceByOption(ConfigHandle handle, const char *option);
363 confXvAdaptorPtr xf86ConfGetXvAdaptorByName(ConfigHandle handle,
364 const char *name);
365 confXvAdaptorPtr xf86ConfGetNextXvAdaptor(ConfigHandle handle,
366 ConfigDataHandle prevAdaptorHandle);
367 confFilesPtr xf86ConfGetFilesByName(ConfigHandle handle, const char *name);
368 dawes 3.181 confFilesPtr xf86ConfGetNextFiles(ConfigHandle handle,
369 ConfigDataHandle prevFilesHandle);
370 confFilesPtr xf86ConfCombineFilesData(const confFilesRec *src1, MessageType m1,
371 const confFilesRec *src2, MessageType m2);
372 confModulesPtr xf86ConfGetModulesByName(ConfigHandle handle, const char *name);
373 confModulesPtr xf86ConfGetNextModules(ConfigHandle handle,
374 ConfigDataHandle prevModulesHandle);
375 confModulesPtr xf86ConfCombineModulesData(const confModulesRec *src1,
376 const confModulesRec *src2);
377 confFlagsPtr xf86ConfGetServerFlagsByName(ConfigHandle handle,
378 const char *name);
379 confFlagsPtr xf86ConfGetNextServerFlags(ConfigHandle handle,
380 ConfigDataHandle prevFilesHandle);
381 confFlagsPtr xf86ConfCombineServerFlagsData(const confFlagsRec *src1,
382 const confFlagsRec *src2);
383 confDRIPtr xf86ConfGetDRIByName(ConfigHandle handle, const char *name);
384 confDRIPtr xf86ConfGetNextDRI(ConfigHandle handle,
385 ConfigDataHandle prevDRIHandle);
386 confVendorPtr xf86ConfGetVendorByName(ConfigHandle handle, const char *name);
387 confVendorPtr xf86ConfGetVendorByVendorName(ConfigHandle handle,
388 const char *vname);
389 dawes 3.181 confVendorPtr xf86ConfGetNextVendor(ConfigHandle handle,
390 ConfigDataHandle prevVendorHandle);
391
|
392 tsi 3.130 /* xf86Configure.c */
|
393 dawes 3.139 GDevPtr xf86AddBusDeviceToConfigure(const char *driver, BusType bus,
394 void *busData, int chipset);
|
395 tsi 3.131 GDevPtr xf86AddDeviceToConfigure(const char *driver, pciVideoPtr pVideo,
|
396 tsi 3.130 int chipset);
|
397 dawes 3.106
|
398 dawes 3.76 /* xf86Cursor.c */
|
399 hohndel 3.55
|
400 dawes 3.76 void xf86LockZoom(ScreenPtr pScreen, int lock);
401 void xf86InitViewport(ScrnInfoPtr pScr);
402 void xf86SetViewport(ScreenPtr pScreen, int x, int y);
403 void xf86ZoomViewport(ScreenPtr pScreen, int zoom);
|
404 tsi 3.159 Bool xf86SwitchMode(ScreenPtr pScreen, DisplayModePtr mode);
|
405 dawes 3.76 void *xf86GetPointerScreenFuncs(void);
|
406 dawes 3.117 void xf86InitOrigins(void);
|
407 eich 3.169 void xf86ReconfigureLayout(void);
|
408 dawes 3.106
|
409 dawes 3.76 /* xf86DPMS.c */
410
411 Bool xf86DPMSInit(ScreenPtr pScreen, DPMSSetProcPtr set, int flags);
412
413 /* xf86DGA.c */
414
|
415 dawes 3.93 Bool DGAInit(ScreenPtr pScreen, DGAFunctionPtr funcs, DGAModePtr modes,
416 int num);
|
417 tsi 3.153 xf86SetDGAModeProc xf86SetDGAMode;
|
418 dawes 1.1
|
419 dawes 3.76 /* xf86Events.c */
|
420 dawes 3.33
|
421 dawes 3.76 void SetTimeSinceLastInputEvent(void);
|
422 dawes 3.108 pointer xf86AddInputHandler(int fd, InputHandlerProc proc, pointer data);
|
423 eich 3.124 int xf86RemoveInputHandler(pointer handler);
|
424 dawes 3.108 void xf86DisableInputHandler(pointer handler);
425 void xf86EnableInputHandler(pointer handler);
|
426 tsi 3.186 void xf86InterceptSignals(volatile int *signo);
|
427 dawes 3.147 Bool xf86EnableVTSwitch(Bool new);
|
428 dawes 3.165 Bool xf86CommonSpecialKey(int key, Bool down, int modifiers);
|
429 dawes 3.166 void xf86ProcessActionEvent(ActionEvent action, void *arg);
|
430 dawes 3.59
|
431 dawes 3.76 /* xf86Helper.c */
|
432 dawes 1.1
|
433 tsi 3.176 /* XXX Need to check which GCC versions have the format(printf) attribute. */
434 #if (!defined(printf) || defined(printf_is_xf86printf)) && \
435 defined(__GNUC__) && \
436 ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 4)))
437 # define _printf_attribute(a,b) __attribute((format(printf,a,b)))
438 # undef printf
439 #else
440 # define _printf_attribute(a,b) /**/
|
441 dawes 3.172 #endif
442
|
443 dawes 3.76 void xf86AddDriver(DriverPtr driver, pointer module, int flags);
|
444 dawes 3.182 void xf86DeleteDriver(int drvIndex, Bool deferUnload);
|
445 dawes 3.76 ScrnInfoPtr xf86AllocateScreen(DriverPtr drv, int flags);
446 void xf86DeleteScreen(int scrnIndex, int flags);
447 int xf86AllocateScrnInfoPrivateIndex(void);
|
448 dawes 3.85 Bool xf86AddPixFormat(ScrnInfoPtr pScrn, int depth, int bpp, int pad);
|
449 dawes 3.76 Bool xf86SetDepthBpp(ScrnInfoPtr scrp, int depth, int bpp, int fbbpp,
450 int depth24flags);
451 void xf86PrintDepthBpp(ScrnInfoPtr scrp);
452 Bool xf86SetWeight(ScrnInfoPtr scrp, rgb weight, rgb mask);
453 Bool xf86SetDefaultVisual(ScrnInfoPtr scrp, int visual);
|
454 tsi 3.138 Bool xf86SetGamma(ScrnInfoPtr scrp, Gamma newGamma);
|
455 dawes 3.76 void xf86SetDpi(ScrnInfoPtr pScrn, int x, int y);
456 void xf86SetBlackWhitePixels(ScreenPtr pScreen);
|
457 dawes 3.121 void xf86EnableDisableFBAccess(int scrnIndex, Bool enable);
|
458 dawes 3.76 void xf86VDrvMsgVerb(int scrnIndex, MessageType type, int verb,
459 const char *format, va_list args);
460 void xf86DrvMsgVerb(int scrnIndex, MessageType type, int verb,
|
461 dawes 3.172 const char *format, ...) _printf_attribute(4,5);
462 void xf86DrvMsg(int scrnIndex, MessageType type, const char *format, ...)
463 _printf_attribute(3,4);
464 void xf86MsgVerb(MessageType type, int verb, const char *format, ...)
465 _printf_attribute(3,4);
466 void xf86Msg(MessageType type, const char *format, ...) _printf_attribute(2,3);
467 void xf86ErrorFVerb(int verb, const char *format, ...) _printf_attribute(2,3);
468 void xf86ErrorF(const char *format, ...) _printf_attribute(1,2);
|
469 dawes 3.76 const char *xf86TokenToString(SymTabPtr table, int token);
470 int xf86StringToToken(SymTabPtr table, const char *string);
471 void xf86ShowClocks(ScrnInfoPtr scrp, MessageType from);
472 void xf86PrintChipsets(const char *drvname, const char *drvmsg,
473 SymTabPtr chips);
474 int xf86MatchDevice(const char *drivername, GDevPtr **driversectlist);
|
475 dawes 3.78 int xf86MatchPciInstances(const char *driverName, int vendorID,
|
476 dawes 3.106 SymTabPtr chipsets, PciChipsets *PCIchipsets,
477 GDevPtr *devList, int numDevs, DriverPtr drvp,
478 int **foundEntities);
|
479 dawes 3.82 int xf86MatchIsaInstances(const char *driverName, SymTabPtr chipsets,
|
480 dawes 3.106 IsaChipsets *ISAchipsets, DriverPtr drvp,
481 FindIsaDevProc FindIsaDevice, GDevPtr *devList,
482 int numDevs, int **foundEntities);
|
483 dawes 3.76 void xf86GetClocks(ScrnInfoPtr pScrn, int num,
484 Bool (*ClockFunc)(ScrnInfoPtr, int),
485 void (*ProtectRegs)(ScrnInfoPtr, Bool),
|
486 tsi 3.158 void (*BlankScreen)(ScrnInfoPtr, Bool),
487 IOADDRESS vertsyncreg, int maskval,
488 int knownclkindex, int knownclkvalue);
|
489 tsi 3.141 void xf86SetPriority(Bool up);
|
490 dawes 3.76 const char *xf86GetVisualName(int visual);
491 int xf86GetVerbosity(void);
|
492 dawes 3.85 Pix24Flags xf86GetPix24(void);
|
493 dawes 3.76 int xf86GetDepth(void);
494 rgb xf86GetWeight(void);
495 Gamma xf86GetGamma(void);
496 Bool xf86GetFlipPixels(void);
497 const char *xf86GetServerName(void);
498 Bool xf86ServerIsExiting(void);
499 Bool xf86ServerIsResetting(void);
|
500 dawes 3.95 Bool xf86ServerIsInitialising(void);
|
501 tsi 3.143 Bool xf86ServerIsOnlyDetecting(void);
|
502 dawes 3.105 Bool xf86ServerIsOnlyProbing(void);
|
503 dawes 3.76 Bool xf86CaughtSignal(void);
|
504 dawes 3.94 Bool xf86GetVidModeAllowNonLocal(void);
505 Bool xf86GetVidModeEnabled(void);
|
506 dawes 3.113 Bool xf86GetModInDevAllowNonLocal(void);
507 Bool xf86GetModInDevEnabled(void);
|
508 dawes 3.104 Bool xf86GetAllowMouseOpenFail(void);
|
509 dawes 3.114 Bool xf86IsPc98(void);
|
510 dawes 3.168 void xf86DisableRandR(void);
|
511 dawes 3.161 CARD32 xf86GetVersion(void);
512 CARD32 xf86GetModuleVersion(pointer module);
|
513 tsi 3.188 void xf86SetParentModuleRequirements(pointer module, pointer req);
|
514 eich 3.135 pointer xf86LoadDrvSubModule(DriverPtr drv, const char *name);
|
515 tsi 3.188 pointer xf86LoadDrvSubModuleWithRequirements(DriverPtr drv, const char *name,
516 pointer req);
|
517 dawes 3.76 pointer xf86LoadSubModule(ScrnInfoPtr pScrn, const char *name);
|
518 tsi 3.188 pointer xf86LoadSubModuleWithRequirements(ScrnInfoPtr pScrn, const char *name,
519 pointer req);
|
520 tsi 3.143 pointer xf86LoadOneModule(char *name, pointer optlist);
|
521 tsi 3.134 void xf86UnloadSubModule(pointer mod);
|
522 dawes 3.128 Bool xf86LoaderCheckSymbol(const char *name);
|
523 dawes 3.81 void xf86LoaderReqSymLists(const char **, ...);
524 void xf86LoaderReqSymbols(const char *, ...);
|
525 dawes 3.154 void xf86LoaderRefSymLists(const char **, ...);
526 void xf86LoaderRefSymbols(const char *, ...);
|
527 dawes 3.84 void xf86SetBackingStore(ScreenPtr pScreen);
|
528 dawes 3.119 void xf86SetSilkenMouse(ScreenPtr pScreen);
|
529 dawes 3.89 int xf86NewSerialNumber(WindowPtr p, pointer unused);
|
530 dawes 3.97 pointer xf86FindXvOptions(int scrnIndex, int adapt_index, char *port_name,
531 char **adaptor_name, pointer *adaptor_options);
|
532 dawes 3.101 void xf86GetOS(const char **name, int *major, int *minor, int *teeny);
|
533 eich 3.135 ScrnInfoPtr xf86ConfigPciEntity(ScrnInfoPtr pScrn, int scrnFlag,
534 int entityIndex,PciChipsets *p_chip,
535 resList res, EntityProc init,
536 EntityProc enter, EntityProc leave,
537 pointer private);
538 ScrnInfoPtr xf86ConfigIsaEntity(ScrnInfoPtr pScrn, int scrnFlag,
539 int entityIndex, IsaChipsets *i_chip,
540 resList res, EntityProc init,
541 EntityProc enter, EntityProc leave,
542 pointer private);
|
543 eich 3.145 ScrnInfoPtr xf86ConfigFbEntity(ScrnInfoPtr pScrn, int scrnFlag,
544 int entityIndex, EntityProc init,
545 EntityProc enter, EntityProc leave,
546 pointer private);
|
547 eich 3.135 /* Obsolete! don't use */
548 Bool xf86ConfigActivePciEntity(ScrnInfoPtr pScrn,
549 int entityIndex,PciChipsets *p_chip,
550 resList res, EntityProc init,
551 EntityProc enter, EntityProc leave,
552 pointer private);
553 /* Obsolete! don't use */
554 Bool xf86ConfigActiveIsaEntity(ScrnInfoPtr pScrn,
555 int entityIndex, IsaChipsets *i_chip,
556 resList res, EntityProc init,
557 EntityProc enter, EntityProc leave,
558 pointer private);
|
559 dawes 3.106 void xf86ConfigPciEntityInactive(EntityInfoPtr pEnt, PciChipsets *p_chip,
560 resList res, EntityProc init,
561 EntityProc enter, EntityProc leave,
562 pointer private);
563 void xf86ConfigIsaEntityInactive(EntityInfoPtr pEnt, IsaChipsets *i_chip,
564 resList res, EntityProc init,
565 EntityProc enter, EntityProc leave,
566 pointer private);
|
567 eich 3.145 void xf86ConfigFbEntityInactive(EntityInfoPtr pEnt, EntityProc init,
568 EntityProc enter, EntityProc leave,
569 pointer private);
|
570 dawes 3.106 Bool xf86IsScreenPrimary(int scrnIndex);
|
571 dawes 3.127 int xf86RegisterRootWindowProperty(int ScrnIndex, Atom property, Atom type,
|
572 dawes 3.118 int format, unsigned long len,
573 pointer value);
|
574 dawes 3.127 Bool xf86IsUnblank(int mode);
|
575 dawes 3.178 MonPtr xf86GetMonitorByNumber(const ScrnInfoRec *pScrn, int monNum);
576 DispPtr xf86GetDisplayByMonitorNum(const ScrnInfoRec *pScrn, int monNum);
|
577 tsi 3.180 Bool xf86GetNextMonitor(const ScrnInfoRec *pScrn, MonPtr *pMonitor,
578 DispPtr *pDisplay);
|
579 paulo 3.152
580 #ifdef XFree86LOADER
|
581 paulo 3.151 void xf86AddModuleInfo(ModuleInfoPtr info, pointer module);
582 void xf86DeleteModuleInfo(int idx);
|
583 dawes 3.172 #endif
584
|
585 tsi 3.176 #undef _printf_attribute
|
586 tsi 3.177 #if defined(printf_is_xf86printf) && !defined(printf)
|
587 dawes 3.172 #define printf xf86printf
|
588 paulo 3.152 #endif
|
589 dawes 3.89
|
590 eich 3.142 /* xf86Debug.c */
591 #ifdef BUILDDEBUG
592 void xf86Break1(void);
593 void xf86Break2(void);
594 void xf86Break3(void);
595 CARD8 xf86PeekFb8(CARD8 *p);
596 CARD16 xf86PeekFb16(CARD16 *p);
597 CARD32 xf86PeekFb32(CARD32 *p);
598 void xf86PokeFb8(CARD8 *p, CARD8 v);
599 void xf86PokeFb16(CARD16 *p, CARD16 v);
600 void xf86PokeFb32(CARD16 *p, CARD32 v);
601 CARD8 xf86PeekMmio8(pointer Base, unsigned long Offset);
602 CARD16 xf86PeekMmio16(pointer Base, unsigned long Offset);
603 CARD32 xf86PeekMmio32(pointer Base, unsigned long Offset);
604 void xf86PokeMmio8(pointer Base, unsigned long Offset, CARD8 v);
605 void xf86PokeMmio16(pointer Base, unsigned long Offset, CARD16 v);
606 void xf86PokeMmio32(pointer Base, unsigned long Offset, CARD32 v);
607 extern void xf86SPTimestamp(xf86TsPtr* timestamp, char* string);
608 extern void xf86STimestamp(xf86TsPtr* timestamp);
609 #endif
610
|
611 dawes 3.87 /* xf86Init.c */
612
|
613 dawes 3.88 PixmapFormatPtr xf86GetPixFormat(ScrnInfoPtr pScrn, int depth);
614 int xf86GetBppFromDepth(ScrnInfoPtr pScrn, int depth);
|
615 dawes 3.76
616 /* xf86Mode.c */
617
618 int xf86GetNearestClock(ScrnInfoPtr scrp, int freq, Bool allowDiv2,
|
619 dawes 3.77 int DivFactor, int MulFactor, int *divider);
|
620 dawes 3.76 const char *xf86ModeStatusToString(ModeStatus status);
|
621 dawes 3.183 const char *xf86ModeTypeToString(int mType);
|
622 dawes 3.76 ModeStatus xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep,
623 ClockRangePtr clockRanges, LookupModeFlags strategy);
624 ModeStatus xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor);
625 ModeStatus xf86InitialCheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode,
|
626 dawes 3.118 ClockRangePtr clockRanges,
627 LookupModeFlags strategy,
|
628 dawes 3.76 int maxPitch, int virtualX,
629 int virtualY);
630 ModeStatus xf86CheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode,
631 int flags);
|
632 dawes 3.184 Bool xf86SetMonitorParameters(ScrnInfoPtr pScrn, MonPtr monitor,
633 int hSize, int vSize, int refresh);
|
634 dawes 3.185 Bool xf86AddEDIDModes(ScrnInfoPtr pScrn, MonPtr monitor, int flags);
|
635 dawes 3.76 int xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes,
636 char **modeNames, ClockRangePtr clockRanges,
637 int *linePitches, int minPitch, int maxPitch,
638 int minHeight, int maxHeight, int pitchInc,
639 int virtualX, int virtualY, int apertureSize,
640 LookupModeFlags strategy);
641 void xf86DeleteMode(DisplayModePtr *modeList, DisplayModePtr mode);
642 void xf86PruneDriverModes(ScrnInfoPtr scrp);
643 void xf86SetCrtcForModes(ScrnInfoPtr scrp, int adjustFlags);
644 void xf86PrintModes(ScrnInfoPtr scrp);
|
645 dawes 3.80 void xf86ShowClockRanges(ScrnInfoPtr scrp, ClockRangePtr clockRanges);
|
646 dawes 3.179 Bool xf86ModeIsPresent(const char *modeName, const DisplayModeRec *modeList,
647 int inclTypeMask, int exclTypeMask);
648 void xf86AddModeAfter(DisplayModePtr *ppOld, DisplayModePtr pNew);
649 void xf86AddModeBefore(DisplayModePtr *ppOld, DisplayModePtr pNew);
650 void xf86AddModeToMonitor(MonPtr pMonitor, DisplayModePtr pNew);
651
|
652 dawes 1.1
|
653 dawes 3.76 /* xf86Option.c */
|
654 dawes 1.1
|
655 dawes 3.76 void xf86CollectOptions(ScrnInfoPtr pScrn, pointer extraOpts);
|
656 dawes 3.94
|
657 keithp 3.163
658 /* xf86RandR.c */
659 #ifdef RANDR
660 Bool xf86RandRInit (ScreenPtr pScreen);
661 void xf86RandRSetInitialMode (ScreenPtr pScreen);
|
662 alanh 3.189 Rotation xf86GetRotation(ScreenPtr pScreen);
|
663 keithp 3.163 #endif
664
|
665 dawes 3.94 /* xf86VidModeExtentionInit.c */
666
667 Bool VidModeExtensionInit(ScreenPtr pScreen);
|
668 dawes 3.171
669 /* xf86Versions.c */
670 CARD32 xf86GetBuiltinInterfaceVersion(BuiltinInterface iface, int flag);
671 Bool xf86RegisterBuiltinInterfaceVersion(BuiltinInterface iface,
672 CARD32 version, int flags);
673
|
674 dawes 3.33
|
675 dawes 1.1 #endif /* _NO_XF86_PROTOTYPES */
676
677 #endif /* _XF86_H */
|