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