VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/xf86Priv.h@ 78406

Last change on this file since 78406 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 6.4 KB
Line 
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 */
46extern const char *xf86ConfigFile;
47extern Bool xf86AllowMouseOpenFail;
48#ifdef XF86VIDMODE
49extern Bool xf86VidModeDisabled;
50extern Bool xf86VidModeAllowNonLocal;
51#endif
52#ifdef XF86MISC
53extern Bool xf86MiscModInDevDisabled;
54extern Bool xf86MiscModInDevAllowNonLocal;
55#endif
56extern Bool xf86fpFlag;
57extern Bool xf86coFlag;
58extern Bool xf86sFlag;
59extern Bool xf86bsEnableFlag;
60extern Bool xf86bsDisableFlag;
61extern Bool xf86silkenMouseDisableFlag;
62extern Bool xf86acpiDisableFlag;
63extern char *xf86LayoutName;
64extern char *xf86ScreenName;
65extern char *xf86PointerName;
66extern char *xf86KeyboardName;
67#ifdef KEEPBPP
68extern int xf86Bpp;
69#endif
70extern int xf86FbBpp;
71extern int xf86Depth;
72extern Pix24Flags xf86Pix24;
73extern rgb xf86Weight;
74extern Bool xf86FlipPixels;
75extern Bool xf86BestRefresh;
76extern Gamma xf86Gamma;
77extern char *xf86ServerName;
78extern Bool xf86ShowUnresolved;
79extern PciBusId xf86IsolateDevice;
80
81/* Other parameters */
82
83extern xf86InfoRec xf86Info;
84extern const char *xf86InputDeviceList;
85extern const char *xf86ModulePath;
86extern MessageType xf86ModPathFrom;
87extern const char *xf86LogFile;
88extern MessageType xf86LogFileFrom;
89extern Bool xf86LogFileWasOpened;
90extern serverLayoutRec xf86ConfigLayout;
91extern Pix24Flags xf86ConfigPix24;
92
93extern unsigned short xf86MouseCflags[];
94extern Bool xf86SupportedMouseTypes[];
95extern int xf86NumMouseTypes;
96
97extern DriverPtr *xf86DriverList;
98extern ModuleInfoPtr *xf86ModuleInfoList;
99extern int xf86NumModuleInfos;
100extern int xf86NumDrivers;
101extern Bool xf86Resetting;
102extern Bool xf86Initialising;
103extern Bool xf86ProbeFailed;
104extern int xf86NumScreens;
105extern pciVideoPtr *xf86PciVideoInfo;
106extern xf86CurrentAccessRec xf86CurrentAccess;
107extern const char *xf86VisualNames[];
108extern int xf86Verbose; /* verbosity level */
109extern int xf86LogVerbose; /* log file verbosity level */
110extern Bool xf86ProbeOnly;
111extern Bool xf86DoProbe;
112extern Bool xorgHWAccess;
113
114extern RootWinPropPtr *xf86RegisteredPropertiesTable;
115
116#ifndef DEFAULT_VERBOSE
117#define DEFAULT_VERBOSE 0
118#endif
119#ifndef DEFAULT_LOG_VERBOSE
120#define DEFAULT_LOG_VERBOSE 3
121#endif
122#ifndef DEFAULT_DPI
123#define DEFAULT_DPI 75
124#endif
125
126#define DEFAULT_UNRESOLVED TRUE
127#define DEFAULT_BEST_REFRESH FALSE
128
129/* Function Prototypes */
130#ifndef _NO_XF86_PROTOTYPES
131
132/* xf86Bus.c */
133
134void xf86BusProbe(void);
135void xf86ChangeBusIndex(int oldIndex, int newIndex);
136void xf86AccessInit(void);
137void xf86AccessEnter(void);
138void xf86AccessLeave(void);
139void xf86EntityInit(void);
140void xf86EntityEnter(void);
141void xf86EntityLeave(void);
142void xf86AccessLeaveState(void);
143
144void xf86FindPrimaryDevice(void);
145/* new RAC */
146void xf86ResourceBrokerInit(void);
147void xf86PostProbe(void);
148void xf86ClearEntityListForScreen(int scrnIndex);
149void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
150extern void xf86PostPreInit(void);
151extern void xf86PostScreenInit(void);
152extern memType getValidBIOSBase(PCITAG tag, int num);
153extern memType getEmptyPciRange(PCITAG tag, int base_reg);
154extern int pciTestMultiDeviceCard(int bus, int dev, int func, PCITAG** pTag);
155
156/* xf86Config.c */
157
158Bool xf86PathIsAbsolute(const char *path);
159Bool xf86PathIsSafe(const char *path);
160
161/* xf86DefaultModes */
162
163extern DisplayModeRec xf86DefaultModes [];
164
165/* xf86DoScanPci.c */
166
167void DoScanPci(int argc, char **argv, int i);
168
169/* xf86DoProbe.c */
170void DoProbe(void);
171void DoConfigure(void);
172
173/* xf86Events.c */
174
175void xf86PostKbdEvent(unsigned key);
176void xf86PostMseEvent(DeviceIntPtr device, int buttons, int dx, int dy);
177void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
178void xf86SigHandler(int signo);
179#ifdef MEMDEBUG
180void xf86SigMemDebug(int signo);
181#endif
182void xf86HandlePMEvents(int fd, pointer data);
183extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
184extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
185void xf86GrabServerCallback(CallbackListPtr *, pointer, pointer);
186
187/* xf86Helper.c */
188void xf86LogInit(void);
189void xf86CloseLog(void);
190
191/* xf86Init.c */
192Bool xf86LoadModules(char **list, pointer *optlist);
193int xf86SetVerbosity(int verb);
194int xf86SetLogVerbosity(int verb);
195
196/* xf86Io.c */
197
198void xf86KbdBell(int percent, DeviceIntPtr pKeyboard, pointer ctrl,
199 int unused);
200void xf86KbdLeds(void);
201void xf86UpdateKbdLeds(void);
202void xf86KbdCtrl(DevicePtr pKeyboard, KeybdCtrl *ctrl);
203void xf86InitKBD(Bool init);
204int xf86KbdProc(DeviceIntPtr pKeyboard, int what);
205
206/* xf86Kbd.c */
207
208void xf86KbdGetMapping(KeySymsPtr pKeySyms, CARD8 *pModMap);
209
210/* xf86Lock.c */
211
212#ifdef USE_XF86_SERVERLOCK
213void xf86UnlockServer(void);
214#endif
215
216/* xf86XKB.c */
217
218void xf86InitXkb(void);
219
220#endif /* _NO_XF86_PROTOTYPES */
221
222
223#endif /* _XF86PRIV_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette