VirtualBox

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

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

Additions/x11: added a full header set for X.Org server 1.5 and 1.6

  • Property svn:eol-style set to native
File size: 5.3 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#include "input.h"
43
44/*
45 * Parameters set ONLY from the command line options
46 * The global state of these things is held in xf86InfoRec (when appropriate).
47 */
48extern const char *xf86ConfigFile;
49extern Bool xf86AllowMouseOpenFail;
50#ifdef XF86VIDMODE
51extern Bool xf86VidModeDisabled;
52extern Bool xf86VidModeAllowNonLocal;
53#endif
54extern Bool xf86fpFlag;
55extern Bool xf86sFlag;
56extern Bool xf86bsEnableFlag;
57extern Bool xf86bsDisableFlag;
58extern Bool xf86silkenMouseDisableFlag;
59extern Bool xf86xkbdirFlag;
60extern Bool xf86acpiDisableFlag;
61extern char *xf86LayoutName;
62extern char *xf86ScreenName;
63extern char *xf86PointerName;
64extern char *xf86KeyboardName;
65#ifdef KEEPBPP
66extern int xf86Bpp;
67#endif
68extern int xf86FbBpp;
69extern int xf86Depth;
70extern Pix24Flags xf86Pix24;
71extern rgb xf86Weight;
72extern Bool xf86FlipPixels;
73extern Gamma xf86Gamma;
74extern char *xf86ServerName;
75extern struct pci_slot_match xf86IsolateDevice;
76
77/* Other parameters */
78
79extern xf86InfoRec xf86Info;
80extern const char *xf86InputDeviceList;
81extern const char *xf86ModulePath;
82extern MessageType xf86ModPathFrom;
83extern const char *xf86LogFile;
84extern MessageType xf86LogFileFrom;
85extern Bool xf86LogFileWasOpened;
86extern serverLayoutRec xf86ConfigLayout;
87extern Pix24Flags xf86ConfigPix24;
88
89extern unsigned short xf86MouseCflags[];
90extern Bool xf86SupportedMouseTypes[];
91extern int xf86NumMouseTypes;
92
93extern DriverPtr *xf86DriverList;
94extern int xf86NumDrivers;
95extern Bool xf86Resetting;
96extern Bool xf86Initialising;
97extern int xf86NumScreens;
98extern xf86CurrentAccessRec xf86CurrentAccess;
99extern const char *xf86VisualNames[];
100extern int xf86Verbose; /* verbosity level */
101extern int xf86LogVerbose; /* log file verbosity level */
102extern Bool xf86ProbeOnly;
103extern Bool xf86DoProbe;
104extern Bool xorgHWAccess;
105
106extern RootWinPropPtr *xf86RegisteredPropertiesTable;
107
108#ifndef DEFAULT_VERBOSE
109#define DEFAULT_VERBOSE 0
110#endif
111#ifndef DEFAULT_LOG_VERBOSE
112#define DEFAULT_LOG_VERBOSE 3
113#endif
114#ifndef DEFAULT_DPI
115#define DEFAULT_DPI 96
116#endif
117
118#define DEFAULT_UNRESOLVED TRUE
119#define DEFAULT_BEST_REFRESH FALSE
120
121/* Function Prototypes */
122#ifndef _NO_XF86_PROTOTYPES
123
124/* xf86Bus.c */
125
126void xf86BusProbe(void);
127void xf86ChangeBusIndex(int oldIndex, int newIndex);
128void xf86AccessInit(void);
129void xf86AccessEnter(void);
130void xf86AccessLeave(void);
131void xf86EntityInit(void);
132void xf86EntityEnter(void);
133void xf86EntityLeave(void);
134void xf86AccessLeaveState(void);
135
136void xf86FindPrimaryDevice(void);
137/* new RAC */
138void xf86ResourceBrokerInit(void);
139void xf86PostProbe(void);
140void xf86ClearEntityListForScreen(int scrnIndex);
141void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
142extern void xf86PostPreInit(void);
143extern void xf86PostScreenInit(void);
144
145/* xf86Config.c */
146
147Bool xf86PathIsSafe(const char *path);
148
149/* xf86DefaultModes */
150
151extern const DisplayModeRec xf86DefaultModes[];
152extern const int xf86NumDefaultModes;
153
154/* xf86Configure.c */
155void DoConfigure(void);
156
157/* xf86ShowOpts.c */
158void DoShowOptions(void);
159
160/* xf86Events.c */
161
162void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
163void xf86SigHandler(int signo);
164void xf86HandlePMEvents(int fd, pointer data);
165extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
166extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
167
168/* xf86Helper.c */
169void xf86LogInit(void);
170void xf86CloseLog(void);
171
172/* xf86Init.c */
173Bool xf86LoadModules(char **list, pointer *optlist);
174int xf86SetVerbosity(int verb);
175int xf86SetLogVerbosity(int verb);
176Bool xf86CallDriverProbe( struct _DriverRec * drv, Bool detect_only );
177
178/* xf86Xinput.c */
179extern EventList *xf86Events;
180
181#endif /* _NO_XF86_PROTOTYPES */
182
183
184#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