VirtualBox

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

Last change on this file since 78374 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

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