VirtualBox

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

Last change on this file since 83531 was 17471, checked in by vboxsync, 16 years ago

export to OSE

  • Property svn:eol-style set to native
File size: 5.7 KB
Line 
1/*
2 * Copyright (c) 1997-2002 by The XFree86 Project, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Except as contained in this notice, the name of the copyright holder(s)
23 * and author(s) shall not be used in advertising or otherwise to promote
24 * the sale, use or other dealings in this Software without prior written
25 * authorization from the copyright holder(s) and author(s).
26 */
27
28/*
29 * This file contains declarations for private XFree86 functions and variables,
30 * and definitions of private macros.
31 *
32 * "private" means not available to video drivers.
33 */
34
35#ifndef _XF86PRIV_H
36#define _XF86PRIV_H
37
38#include <pciaccess.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 struct pci_slot_match 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
98extern DriverPtr *xf86DriverList;
99extern int xf86NumDrivers;
100extern Bool xf86Resetting;
101extern Bool xf86Initialising;
102extern int xf86NumScreens;
103extern xf86CurrentAccessRec xf86CurrentAccess;
104extern const char *xf86VisualNames[];
105extern int xf86Verbose; /* verbosity level */
106extern int xf86LogVerbose; /* log file verbosity level */
107extern Bool xf86ProbeOnly;
108extern Bool xf86DoProbe;
109extern Bool xorgHWAccess;
110
111extern RootWinPropPtr *xf86RegisteredPropertiesTable;
112
113#ifndef DEFAULT_VERBOSE
114#define DEFAULT_VERBOSE 0
115#endif
116#ifndef DEFAULT_LOG_VERBOSE
117#define DEFAULT_LOG_VERBOSE 3
118#endif
119#ifndef DEFAULT_DPI
120#define DEFAULT_DPI 96
121#endif
122
123#define DEFAULT_UNRESOLVED TRUE
124#define DEFAULT_BEST_REFRESH FALSE
125
126/* Function Prototypes */
127#ifndef _NO_XF86_PROTOTYPES
128
129/* xf86Bus.c */
130
131void xf86BusProbe(void);
132void xf86ChangeBusIndex(int oldIndex, int newIndex);
133void xf86AccessInit(void);
134void xf86AccessEnter(void);
135void xf86AccessLeave(void);
136void xf86EntityInit(void);
137void xf86EntityEnter(void);
138void xf86EntityLeave(void);
139void xf86AccessLeaveState(void);
140
141void xf86FindPrimaryDevice(void);
142/* new RAC */
143void xf86ResourceBrokerInit(void);
144void xf86PostProbe(void);
145void xf86ClearEntityListForScreen(int scrnIndex);
146void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
147extern void xf86PostPreInit(void);
148extern void xf86PostScreenInit(void);
149
150/* xf86Config.c */
151
152Bool xf86PathIsSafe(const char *path);
153
154/* xf86DefaultModes */
155
156extern const DisplayModeRec xf86DefaultModes[];
157extern const int xf86NumDefaultModes;
158
159/* xf86DoProbe.c */
160void DoProbe(void);
161void DoConfigure(void);
162
163/* xf86Events.c */
164
165void xf86PostKbdEvent(unsigned key);
166void xf86PostMseEvent(DeviceIntPtr device, int buttons, int dx, int dy);
167void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
168void xf86SigHandler(int signo);
169void xf86HandlePMEvents(int fd, pointer data);
170extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
171extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
172void xf86GrabServerCallback(CallbackListPtr *, pointer, pointer);
173
174/* xf86Helper.c */
175void xf86LogInit(void);
176void xf86CloseLog(void);
177
178/* xf86Init.c */
179Bool xf86LoadModules(char **list, pointer *optlist);
180int xf86SetVerbosity(int verb);
181int xf86SetLogVerbosity(int verb);
182Bool xf86CallDriverProbe( struct _DriverRec * drv, Bool detect_only );
183
184/* xf86Lock.c */
185
186#ifdef USE_XF86_SERVERLOCK
187void xf86UnlockServer(void);
188#endif
189
190/* xf86XKB.c */
191
192void xf86InitXkb(void);
193
194/* xf86Xinput.c */
195extern xEvent *xf86Events;
196
197#endif /* _NO_XF86_PROTOTYPES */
198
199
200#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