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 | */
|
---|
48 | extern const char *xf86ConfigFile;
|
---|
49 | extern Bool xf86AllowMouseOpenFail;
|
---|
50 | #ifdef XF86VIDMODE
|
---|
51 | extern Bool xf86VidModeDisabled;
|
---|
52 | extern Bool xf86VidModeAllowNonLocal;
|
---|
53 | #endif
|
---|
54 | extern Bool xf86fpFlag;
|
---|
55 | extern Bool xf86sFlag;
|
---|
56 | extern Bool xf86bsEnableFlag;
|
---|
57 | extern Bool xf86bsDisableFlag;
|
---|
58 | extern Bool xf86silkenMouseDisableFlag;
|
---|
59 | extern Bool xf86xkbdirFlag;
|
---|
60 | extern Bool xf86acpiDisableFlag;
|
---|
61 | extern char *xf86LayoutName;
|
---|
62 | extern char *xf86ScreenName;
|
---|
63 | extern char *xf86PointerName;
|
---|
64 | extern char *xf86KeyboardName;
|
---|
65 | #ifdef KEEPBPP
|
---|
66 | extern int xf86Bpp;
|
---|
67 | #endif
|
---|
68 | extern int xf86FbBpp;
|
---|
69 | extern int xf86Depth;
|
---|
70 | extern Pix24Flags xf86Pix24;
|
---|
71 | extern rgb xf86Weight;
|
---|
72 | extern Bool xf86FlipPixels;
|
---|
73 | extern Gamma xf86Gamma;
|
---|
74 | extern char *xf86ServerName;
|
---|
75 | extern struct pci_slot_match xf86IsolateDevice;
|
---|
76 |
|
---|
77 | /* Other parameters */
|
---|
78 |
|
---|
79 | extern xf86InfoRec xf86Info;
|
---|
80 | extern const char *xf86InputDeviceList;
|
---|
81 | extern const char *xf86ModulePath;
|
---|
82 | extern MessageType xf86ModPathFrom;
|
---|
83 | extern const char *xf86LogFile;
|
---|
84 | extern MessageType xf86LogFileFrom;
|
---|
85 | extern Bool xf86LogFileWasOpened;
|
---|
86 | extern serverLayoutRec xf86ConfigLayout;
|
---|
87 | extern Pix24Flags xf86ConfigPix24;
|
---|
88 |
|
---|
89 | extern unsigned short xf86MouseCflags[];
|
---|
90 | extern Bool xf86SupportedMouseTypes[];
|
---|
91 | extern int xf86NumMouseTypes;
|
---|
92 |
|
---|
93 | extern DriverPtr *xf86DriverList;
|
---|
94 | extern int xf86NumDrivers;
|
---|
95 | extern Bool xf86Resetting;
|
---|
96 | extern Bool xf86Initialising;
|
---|
97 | extern int xf86NumScreens;
|
---|
98 | extern xf86CurrentAccessRec xf86CurrentAccess;
|
---|
99 | extern const char *xf86VisualNames[];
|
---|
100 | extern int xf86Verbose; /* verbosity level */
|
---|
101 | extern int xf86LogVerbose; /* log file verbosity level */
|
---|
102 | extern Bool xf86ProbeOnly;
|
---|
103 | extern Bool xf86DoProbe;
|
---|
104 | extern Bool xorgHWAccess;
|
---|
105 |
|
---|
106 | extern 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 |
|
---|
126 | void xf86BusProbe(void);
|
---|
127 | void xf86ChangeBusIndex(int oldIndex, int newIndex);
|
---|
128 | void xf86AccessInit(void);
|
---|
129 | void xf86AccessEnter(void);
|
---|
130 | void xf86AccessLeave(void);
|
---|
131 | void xf86EntityInit(void);
|
---|
132 | void xf86EntityEnter(void);
|
---|
133 | void xf86EntityLeave(void);
|
---|
134 | void xf86AccessLeaveState(void);
|
---|
135 |
|
---|
136 | void xf86FindPrimaryDevice(void);
|
---|
137 | /* new RAC */
|
---|
138 | void xf86ResourceBrokerInit(void);
|
---|
139 | void xf86PostProbe(void);
|
---|
140 | void xf86ClearEntityListForScreen(int scrnIndex);
|
---|
141 | void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
|
---|
142 | extern void xf86PostPreInit(void);
|
---|
143 | extern void xf86PostScreenInit(void);
|
---|
144 |
|
---|
145 | /* xf86Config.c */
|
---|
146 |
|
---|
147 | Bool xf86PathIsSafe(const char *path);
|
---|
148 |
|
---|
149 | /* xf86DefaultModes */
|
---|
150 |
|
---|
151 | extern const DisplayModeRec xf86DefaultModes[];
|
---|
152 | extern const int xf86NumDefaultModes;
|
---|
153 |
|
---|
154 | /* xf86Configure.c */
|
---|
155 | void DoConfigure(void);
|
---|
156 |
|
---|
157 | /* xf86ShowOpts.c */
|
---|
158 | void DoShowOptions(void);
|
---|
159 |
|
---|
160 | /* xf86Events.c */
|
---|
161 |
|
---|
162 | void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
|
---|
163 | void xf86SigHandler(int signo);
|
---|
164 | void xf86HandlePMEvents(int fd, pointer data);
|
---|
165 | extern int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
|
---|
166 | extern pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
|
---|
167 |
|
---|
168 | /* xf86Helper.c */
|
---|
169 | void xf86LogInit(void);
|
---|
170 | void xf86CloseLog(void);
|
---|
171 |
|
---|
172 | /* xf86Init.c */
|
---|
173 | Bool xf86LoadModules(char **list, pointer *optlist);
|
---|
174 | int xf86SetVerbosity(int verb);
|
---|
175 | int xf86SetLogVerbosity(int verb);
|
---|
176 | Bool xf86CallDriverProbe( struct _DriverRec * drv, Bool detect_only );
|
---|
177 |
|
---|
178 | /* xf86Xinput.c */
|
---|
179 | extern EventList *xf86Events;
|
---|
180 |
|
---|
181 | #endif /* _NO_XF86_PROTOTYPES */
|
---|
182 |
|
---|
183 |
|
---|
184 | #endif /* _XF86PRIV_H */
|
---|