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 | */
|
---|
24 | extern const char *xf86ConfigFile;
|
---|
25 | extern Bool xf86AllowMouseOpenFail;
|
---|
26 | #ifdef XF86VIDMODE
|
---|
27 | extern Bool xf86VidModeDisabled;
|
---|
28 | extern Bool xf86VidModeAllowNonLocal;
|
---|
29 | #endif
|
---|
30 | #ifdef XF86MISC
|
---|
31 | extern Bool xf86MiscModInDevDisabled;
|
---|
32 | extern Bool xf86MiscModInDevAllowNonLocal;
|
---|
33 | #endif
|
---|
34 | extern Bool xf86fpFlag;
|
---|
35 | extern Bool xf86coFlag;
|
---|
36 | extern Bool xf86sFlag;
|
---|
37 | extern Bool xf86bsEnableFlag;
|
---|
38 | extern Bool xf86bsDisableFlag;
|
---|
39 | extern Bool xf86silkenMouseDisableFlag;
|
---|
40 | extern char *xf86LayoutName;
|
---|
41 | extern char *xf86ScreenName;
|
---|
42 | extern char *xf86PointerName;
|
---|
43 | extern char *xf86KeyboardName;
|
---|
44 | #ifdef KEEPBPP
|
---|
45 | extern int xf86Bpp;
|
---|
46 | #endif
|
---|
47 | extern int xf86FbBpp;
|
---|
48 | extern int xf86Depth;
|
---|
49 | extern Pix24Flags xf86Pix24;
|
---|
50 | extern rgb xf86Weight;
|
---|
51 | extern Bool xf86FlipPixels;
|
---|
52 | extern Bool xf86BestRefresh;
|
---|
53 | extern Gamma xf86Gamma;
|
---|
54 | extern char *xf86ServerName;
|
---|
55 | extern Bool xf86ShowUnresolved;
|
---|
56 |
|
---|
57 | /* Other parameters */
|
---|
58 |
|
---|
59 | extern xf86InfoRec xf86Info;
|
---|
60 | extern const char *xf86InputDeviceList;
|
---|
61 | extern const char *xf86ModulePath;
|
---|
62 | extern MessageType xf86ModPathFrom;
|
---|
63 | extern const char *xf86LogFile;
|
---|
64 | extern MessageType xf86LogFileFrom;
|
---|
65 | extern Bool xf86LogFileWasOpened;
|
---|
66 | extern serverLayoutRec xf86ConfigLayout;
|
---|
67 | extern Pix24Flags xf86ConfigPix24;
|
---|
68 |
|
---|
69 | extern unsigned short xf86MouseCflags[];
|
---|
70 | extern Bool xf86SupportedMouseTypes[];
|
---|
71 | extern int xf86NumMouseTypes;
|
---|
72 |
|
---|
73 | #ifdef XFree86LOADER
|
---|
74 | extern DriverPtr *xf86DriverList;
|
---|
75 | extern ModuleInfoPtr *xf86ModuleInfoList;
|
---|
76 | extern int xf86NumModuleInfos;
|
---|
77 | #else
|
---|
78 | extern DriverPtr xf86DriverList[];
|
---|
79 | #endif
|
---|
80 | extern int xf86NumDrivers;
|
---|
81 | extern Bool xf86Resetting;
|
---|
82 | extern Bool xf86Initialising;
|
---|
83 | extern Bool xf86ProbeFailed;
|
---|
84 | extern int xf86NumScreens;
|
---|
85 | extern pciVideoPtr *xf86PciVideoInfo;
|
---|
86 | extern xf86CurrentAccessRec xf86CurrentAccess;
|
---|
87 | extern const char *xf86VisualNames[];
|
---|
88 | extern int xf86Verbose; /* verbosity level */
|
---|
89 | extern int xf86LogVerbose; /* log file verbosity level */
|
---|
90 | extern Bool xf86ProbeOnly;
|
---|
91 | extern 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 */
|
---|
110 | extern void xf86CheckBeta(int extraDays, char *key);
|
---|
111 |
|
---|
112 | /* xf86Bus.c */
|
---|
113 |
|
---|
114 | void xf86BusProbe(void);
|
---|
115 | void xf86ChangeBusIndex(int oldIndex, int newIndex);
|
---|
116 | void xf86AccessInit(void);
|
---|
117 | void xf86AccessEnter(void);
|
---|
118 | void xf86AccessLeave(void);
|
---|
119 | void xf86EntityInit(void);
|
---|
120 | void xf86EntityEnter(void);
|
---|
121 | void xf86EntityLeave(void);
|
---|
122 | void xf86AccessLeaveState(void);
|
---|
123 |
|
---|
124 | void xf86FindPrimaryDevice(void);
|
---|
125 | /* new RAC */
|
---|
126 | void xf86ResourceBrokerInit(void);
|
---|
127 | void xf86PostProbe(void);
|
---|
128 | void xf86ClearEntityListForScreen(int scrnIndex);
|
---|
129 | void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
|
---|
130 | extern void xf86PostPreInit(void);
|
---|
131 | extern void xf86PostScreenInit(void);
|
---|
132 | extern memType getValidBIOSBase(PCITAG tag, int num);
|
---|
133 | extern int pciTestMultiDeviceCard(int bus, int dev, int func, PCITAG** pTag);
|
---|
134 |
|
---|
135 | /* xf86Config.c */
|
---|
136 |
|
---|
137 | Bool xf86PathIsAbsolute(const char *path);
|
---|
138 | Bool xf86PathIsSafe(const char *path);
|
---|
139 |
|
---|
140 | /* xf86DefaultModes */
|
---|
141 |
|
---|
142 | extern DisplayModeRec xf86DefaultModes [];
|
---|
143 |
|
---|
144 | /* xf86DoScanPci.c */
|
---|
145 |
|
---|
146 | void DoScanPci(int argc, char **argv, int i);
|
---|
147 |
|
---|
148 | /* xf86DoProbe.c */
|
---|
149 | void DoProbeArgs(int argc, char **argv, int i);
|
---|
150 | void DoProbe(void);
|
---|
151 | void DoConfigure(void);
|
---|
152 |
|
---|
153 | /* xf86Events.c */
|
---|
154 |
|
---|
155 | void xf86PostKbdEvent(unsigned key);
|
---|
156 | void xf86PostMseEvent(DeviceIntPtr device, int buttons, int dx, int dy);
|
---|
157 | void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
|
---|
158 | void xf86SigHandler(int signo);
|
---|
159 | #ifdef MEMDEBUG
|
---|
160 | void xf86SigMemDebug(int signo);
|
---|
161 | #endif
|
---|
162 | void xf86HandlePMEvents(int fd, pointer data);
|
---|
163 | extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
|
---|
164 | extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
|
---|
165 | void xf86GrabServerCallback(CallbackListPtr *, pointer, pointer);
|
---|
166 |
|
---|
167 | /* xf86Helper.c */
|
---|
168 | void xf86LogInit(void);
|
---|
169 | void xf86CloseLog(void);
|
---|
170 | void OsVendorVErrorF(const char *f, va_list args);
|
---|
171 |
|
---|
172 | /* xf86Init.c */
|
---|
173 | Bool xf86LoadModules(char **list, pointer *optlist);
|
---|
174 |
|
---|
175 | /* xf86Io.c */
|
---|
176 |
|
---|
177 | void xf86KbdBell(int percent, DeviceIntPtr pKeyboard, pointer ctrl,
|
---|
178 | int unused);
|
---|
179 | void xf86KbdLeds(void);
|
---|
180 | void xf86UpdateKbdLeds(void);
|
---|
181 | void xf86KbdCtrl(DevicePtr pKeyboard, KeybdCtrl *ctrl);
|
---|
182 | void xf86InitKBD(Bool init);
|
---|
183 | int xf86KbdProc(DeviceIntPtr pKeyboard, int what);
|
---|
184 |
|
---|
185 | /* xf86Kbd.c */
|
---|
186 |
|
---|
187 | void xf86KbdGetMapping(KeySymsPtr pKeySyms, CARD8 *pModMap);
|
---|
188 |
|
---|
189 | /* xf86Lock.c */
|
---|
190 |
|
---|
191 | #ifdef USE_XF86_SERVERLOCK
|
---|
192 | void xf86UnlockServer(void);
|
---|
193 | #endif
|
---|
194 |
|
---|
195 | /* xf86XKB.c */
|
---|
196 |
|
---|
197 | void xf86InitXkb(void);
|
---|
198 |
|
---|
199 | #endif /* _NO_XF86_PROTOTYPES */
|
---|
200 |
|
---|
201 |
|
---|
202 | #endif /* _XF86PRIV_H */
|
---|