1 |
|
---|
2 | /*
|
---|
3 | * Copyright (c) 1997-2002 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 private XFree86 functions and variables,
|
---|
31 | * and definitions of private macros.
|
---|
32 | *
|
---|
33 | * "private" means not available to video drivers.
|
---|
34 | */
|
---|
35 |
|
---|
36 | #ifndef _XF86PRIV_H
|
---|
37 | #define _XF86PRIV_H
|
---|
38 |
|
---|
39 | #include "xf86Privstr.h"
|
---|
40 | #include "propertyst.h"
|
---|
41 |
|
---|
42 | /*
|
---|
43 | * Parameters set ONLY from the command line options
|
---|
44 | * The global state of these things is held in xf86InfoRec (when appropriate).
|
---|
45 | */
|
---|
46 | extern const char *xf86ConfigFile;
|
---|
47 | extern Bool xf86AllowMouseOpenFail;
|
---|
48 | #ifdef XF86VIDMODE
|
---|
49 | extern Bool xf86VidModeDisabled;
|
---|
50 | extern Bool xf86VidModeAllowNonLocal;
|
---|
51 | #endif
|
---|
52 | #ifdef XF86MISC
|
---|
53 | extern Bool xf86MiscModInDevDisabled;
|
---|
54 | extern Bool xf86MiscModInDevAllowNonLocal;
|
---|
55 | #endif
|
---|
56 | extern Bool xf86fpFlag;
|
---|
57 | extern Bool xf86coFlag;
|
---|
58 | extern Bool xf86sFlag;
|
---|
59 | extern Bool xf86bsEnableFlag;
|
---|
60 | extern Bool xf86bsDisableFlag;
|
---|
61 | extern Bool xf86silkenMouseDisableFlag;
|
---|
62 | extern Bool xf86acpiDisableFlag;
|
---|
63 | extern char *xf86LayoutName;
|
---|
64 | extern char *xf86ScreenName;
|
---|
65 | extern char *xf86PointerName;
|
---|
66 | extern char *xf86KeyboardName;
|
---|
67 | #ifdef KEEPBPP
|
---|
68 | extern int xf86Bpp;
|
---|
69 | #endif
|
---|
70 | extern int xf86FbBpp;
|
---|
71 | extern int xf86Depth;
|
---|
72 | extern Pix24Flags xf86Pix24;
|
---|
73 | extern rgb xf86Weight;
|
---|
74 | extern Bool xf86FlipPixels;
|
---|
75 | extern Bool xf86BestRefresh;
|
---|
76 | extern Gamma xf86Gamma;
|
---|
77 | extern char *xf86ServerName;
|
---|
78 | extern Bool xf86ShowUnresolved;
|
---|
79 | extern PciBusId xf86IsolateDevice;
|
---|
80 |
|
---|
81 | /* Other parameters */
|
---|
82 |
|
---|
83 | extern xf86InfoRec xf86Info;
|
---|
84 | extern const char *xf86InputDeviceList;
|
---|
85 | extern const char *xf86ModulePath;
|
---|
86 | extern MessageType xf86ModPathFrom;
|
---|
87 | extern const char *xf86LogFile;
|
---|
88 | extern MessageType xf86LogFileFrom;
|
---|
89 | extern Bool xf86LogFileWasOpened;
|
---|
90 | extern serverLayoutRec xf86ConfigLayout;
|
---|
91 | extern Pix24Flags xf86ConfigPix24;
|
---|
92 |
|
---|
93 | extern unsigned short xf86MouseCflags[];
|
---|
94 | extern Bool xf86SupportedMouseTypes[];
|
---|
95 | extern int xf86NumMouseTypes;
|
---|
96 |
|
---|
97 | extern DriverPtr *xf86DriverList;
|
---|
98 | extern ModuleInfoPtr *xf86ModuleInfoList;
|
---|
99 | extern int xf86NumModuleInfos;
|
---|
100 | extern int xf86NumDrivers;
|
---|
101 | extern Bool xf86Resetting;
|
---|
102 | extern Bool xf86Initialising;
|
---|
103 | extern int xf86NumScreens;
|
---|
104 | extern pciVideoPtr *xf86PciVideoInfo;
|
---|
105 | extern xf86CurrentAccessRec xf86CurrentAccess;
|
---|
106 | extern const char *xf86VisualNames[];
|
---|
107 | extern int xf86Verbose; /* verbosity level */
|
---|
108 | extern int xf86LogVerbose; /* log file verbosity level */
|
---|
109 | extern Bool xf86ProbeOnly;
|
---|
110 | extern Bool xf86DoProbe;
|
---|
111 | extern Bool xorgHWAccess;
|
---|
112 |
|
---|
113 | extern RootWinPropPtr *xf86RegisteredPropertiesTable;
|
---|
114 |
|
---|
115 | #ifndef DEFAULT_VERBOSE
|
---|
116 | #define DEFAULT_VERBOSE 0
|
---|
117 | #endif
|
---|
118 | #ifndef DEFAULT_LOG_VERBOSE
|
---|
119 | #define DEFAULT_LOG_VERBOSE 3
|
---|
120 | #endif
|
---|
121 | #ifndef DEFAULT_DPI
|
---|
122 | #define DEFAULT_DPI 96
|
---|
123 | #endif
|
---|
124 |
|
---|
125 | #define DEFAULT_UNRESOLVED TRUE
|
---|
126 | #define DEFAULT_BEST_REFRESH FALSE
|
---|
127 |
|
---|
128 | /* Function Prototypes */
|
---|
129 | #ifndef _NO_XF86_PROTOTYPES
|
---|
130 |
|
---|
131 | /* xf86Bus.c */
|
---|
132 |
|
---|
133 | void xf86BusProbe(void);
|
---|
134 | void xf86ChangeBusIndex(int oldIndex, int newIndex);
|
---|
135 | void xf86AccessInit(void);
|
---|
136 | void xf86AccessEnter(void);
|
---|
137 | void xf86AccessLeave(void);
|
---|
138 | void xf86EntityInit(void);
|
---|
139 | void xf86EntityEnter(void);
|
---|
140 | void xf86EntityLeave(void);
|
---|
141 | void xf86AccessLeaveState(void);
|
---|
142 |
|
---|
143 | void xf86FindPrimaryDevice(void);
|
---|
144 | /* new RAC */
|
---|
145 | void xf86ResourceBrokerInit(void);
|
---|
146 | void xf86PostProbe(void);
|
---|
147 | void xf86ClearEntityListForScreen(int scrnIndex);
|
---|
148 | void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
|
---|
149 | extern void xf86PostPreInit(void);
|
---|
150 | extern void xf86PostScreenInit(void);
|
---|
151 | extern memType getValidBIOSBase(PCITAG tag, int num);
|
---|
152 | extern memType getEmptyPciRange(PCITAG tag, int base_reg);
|
---|
153 | extern int pciTestMultiDeviceCard(int bus, int dev, int func, PCITAG** pTag);
|
---|
154 |
|
---|
155 | /* xf86Config.c */
|
---|
156 |
|
---|
157 | Bool xf86PathIsSafe(const char *path);
|
---|
158 |
|
---|
159 | /* xf86DefaultModes */
|
---|
160 |
|
---|
161 | extern DisplayModeRec xf86DefaultModes [];
|
---|
162 |
|
---|
163 | /* xf86DoScanPci.c */
|
---|
164 |
|
---|
165 | void DoScanPci(int argc, char **argv, int i);
|
---|
166 |
|
---|
167 | /* xf86DoProbe.c */
|
---|
168 | void DoProbe(void);
|
---|
169 | void DoConfigure(void);
|
---|
170 |
|
---|
171 | /* xf86Events.c */
|
---|
172 |
|
---|
173 | void xf86PostKbdEvent(unsigned key);
|
---|
174 | void xf86PostMseEvent(DeviceIntPtr device, int buttons, int dx, int dy);
|
---|
175 | void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
|
---|
176 | void xf86SigHandler(int signo);
|
---|
177 | void xf86HandlePMEvents(int fd, pointer data);
|
---|
178 | extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
|
---|
179 | extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
|
---|
180 | void xf86GrabServerCallback(CallbackListPtr *, pointer, pointer);
|
---|
181 |
|
---|
182 | /* xf86Helper.c */
|
---|
183 | void xf86LogInit(void);
|
---|
184 | void xf86CloseLog(void);
|
---|
185 |
|
---|
186 | /* xf86Init.c */
|
---|
187 | Bool xf86LoadModules(char **list, pointer *optlist);
|
---|
188 | int xf86SetVerbosity(int verb);
|
---|
189 | int xf86SetLogVerbosity(int verb);
|
---|
190 |
|
---|
191 | /* xf86Lock.c */
|
---|
192 |
|
---|
193 | #ifdef USE_XF86_SERVERLOCK
|
---|
194 | void xf86UnlockServer(void);
|
---|
195 | #endif
|
---|
196 |
|
---|
197 | /* xf86XKB.c */
|
---|
198 |
|
---|
199 | void xf86InitXkb(void);
|
---|
200 |
|
---|
201 | /* xf86Xinput.c */
|
---|
202 | extern xEvent *xf86Events;
|
---|
203 |
|
---|
204 | #endif /* _NO_XF86_PROTOTYPES */
|
---|
205 |
|
---|
206 |
|
---|
207 | #endif /* _XF86PRIV_H */
|
---|