VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/1.4/xorg/xf86Priv.h@ 17236

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

Additions/x11/x11include: blast! Reverted r43555 and r43556

  • Property svn:eol-style set to native
File size: 5.9 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 int xf86NumScreens;
104extern pciVideoPtr *xf86PciVideoInfo;
105extern xf86CurrentAccessRec xf86CurrentAccess;
106extern const char *xf86VisualNames[];
107extern int xf86Verbose; /* verbosity level */
108extern int xf86LogVerbose; /* log file verbosity level */
109extern Bool xf86ProbeOnly;
110extern Bool xf86DoProbe;
111extern Bool xorgHWAccess;
112
113extern 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 75
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
133void xf86BusProbe(void);
134void xf86ChangeBusIndex(int oldIndex, int newIndex);
135void xf86AccessInit(void);
136void xf86AccessEnter(void);
137void xf86AccessLeave(void);
138void xf86EntityInit(void);
139void xf86EntityEnter(void);
140void xf86EntityLeave(void);
141void xf86AccessLeaveState(void);
142
143void xf86FindPrimaryDevice(void);
144/* new RAC */
145void xf86ResourceBrokerInit(void);
146void xf86PostProbe(void);
147void xf86ClearEntityListForScreen(int scrnIndex);
148void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
149extern void xf86PostPreInit(void);
150extern void xf86PostScreenInit(void);
151extern memType getValidBIOSBase(PCITAG tag, int num);
152extern memType getEmptyPciRange(PCITAG tag, int base_reg);
153extern int pciTestMultiDeviceCard(int bus, int dev, int func, PCITAG** pTag);
154
155/* xf86Config.c */
156
157Bool xf86PathIsSafe(const char *path);
158
159/* xf86DefaultModes */
160
161extern DisplayModeRec xf86DefaultModes [];
162
163/* xf86DoScanPci.c */
164
165void DoScanPci(int argc, char **argv, int i);
166
167/* xf86DoProbe.c */
168void DoProbe(void);
169void DoConfigure(void);
170
171/* xf86Events.c */
172
173void xf86PostKbdEvent(unsigned key);
174void xf86PostMseEvent(DeviceIntPtr device, int buttons, int dx, int dy);
175void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
176void xf86SigHandler(int signo);
177void xf86HandlePMEvents(int fd, pointer data);
178extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
179extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
180void xf86GrabServerCallback(CallbackListPtr *, pointer, pointer);
181
182/* xf86Helper.c */
183void xf86LogInit(void);
184void xf86CloseLog(void);
185
186/* xf86Init.c */
187Bool xf86LoadModules(char **list, pointer *optlist);
188int xf86SetVerbosity(int verb);
189int xf86SetLogVerbosity(int verb);
190
191/* xf86Lock.c */
192
193#ifdef USE_XF86_SERVERLOCK
194void xf86UnlockServer(void);
195#endif
196
197/* xf86XKB.c */
198
199void xf86InitXkb(void);
200
201/* xf86Xinput.c */
202extern xEvent *xf86Events;
203
204#endif /* _NO_XF86_PROTOTYPES */
205
206
207#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