VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86Priv.h@ 69098

Last change on this file since 69098 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

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