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 _X_EXPORT const char *xf86ConfigFile;
|
---|
49 | extern _X_EXPORT Bool xf86AllowMouseOpenFail;
|
---|
50 | #ifdef XF86VIDMODE
|
---|
51 | extern _X_EXPORT Bool xf86VidModeDisabled;
|
---|
52 | extern _X_EXPORT Bool xf86VidModeAllowNonLocal;
|
---|
53 | #endif
|
---|
54 | extern _X_EXPORT Bool xf86fpFlag;
|
---|
55 | extern _X_EXPORT Bool xf86sFlag;
|
---|
56 | extern _X_EXPORT Bool xf86bsEnableFlag;
|
---|
57 | extern _X_EXPORT Bool xf86bsDisableFlag;
|
---|
58 | extern _X_EXPORT Bool xf86silkenMouseDisableFlag;
|
---|
59 | extern _X_EXPORT Bool xf86xkbdirFlag;
|
---|
60 | #ifdef HAVE_ACPI
|
---|
61 | extern _X_EXPORT Bool xf86acpiDisableFlag;
|
---|
62 | #endif
|
---|
63 | extern _X_EXPORT char *xf86LayoutName;
|
---|
64 | extern _X_EXPORT char *xf86ScreenName;
|
---|
65 | extern _X_EXPORT char *xf86PointerName;
|
---|
66 | extern _X_EXPORT char *xf86KeyboardName;
|
---|
67 | extern _X_EXPORT int xf86FbBpp;
|
---|
68 | extern _X_EXPORT int xf86Depth;
|
---|
69 | extern _X_EXPORT Pix24Flags xf86Pix24;
|
---|
70 | extern _X_EXPORT rgb xf86Weight;
|
---|
71 | extern _X_EXPORT Bool xf86FlipPixels;
|
---|
72 | extern _X_EXPORT Gamma xf86Gamma;
|
---|
73 | extern _X_EXPORT char *xf86ServerName;
|
---|
74 | extern _X_EXPORT struct pci_slot_match xf86IsolateDevice;
|
---|
75 |
|
---|
76 | /* Other parameters */
|
---|
77 |
|
---|
78 | extern _X_EXPORT xf86InfoRec xf86Info;
|
---|
79 | extern _X_EXPORT const char *xf86ModulePath;
|
---|
80 | extern _X_EXPORT MessageType xf86ModPathFrom;
|
---|
81 | extern _X_EXPORT const char *xf86LogFile;
|
---|
82 | extern _X_EXPORT MessageType xf86LogFileFrom;
|
---|
83 | extern _X_EXPORT Bool xf86LogFileWasOpened;
|
---|
84 | extern _X_EXPORT serverLayoutRec xf86ConfigLayout;
|
---|
85 |
|
---|
86 | extern _X_EXPORT DriverPtr *xf86DriverList;
|
---|
87 | extern _X_EXPORT int xf86NumDrivers;
|
---|
88 | extern _X_EXPORT Bool xf86Resetting;
|
---|
89 | extern _X_EXPORT Bool xf86Initialising;
|
---|
90 | extern _X_EXPORT int xf86NumScreens;
|
---|
91 | extern _X_EXPORT const char *xf86VisualNames[];
|
---|
92 | extern _X_EXPORT int xf86Verbose; /* verbosity level */
|
---|
93 | extern _X_EXPORT int xf86LogVerbose; /* log file verbosity level */
|
---|
94 | extern _X_EXPORT Bool xorgHWAccess;
|
---|
95 |
|
---|
96 | extern _X_EXPORT RootWinPropPtr *xf86RegisteredPropertiesTable;
|
---|
97 |
|
---|
98 | #ifndef DEFAULT_VERBOSE
|
---|
99 | #define DEFAULT_VERBOSE 0
|
---|
100 | #endif
|
---|
101 | #ifndef DEFAULT_LOG_VERBOSE
|
---|
102 | #define DEFAULT_LOG_VERBOSE 3
|
---|
103 | #endif
|
---|
104 | #ifndef DEFAULT_DPI
|
---|
105 | #define DEFAULT_DPI 96
|
---|
106 | #endif
|
---|
107 |
|
---|
108 | /* Function Prototypes */
|
---|
109 | #ifndef _NO_XF86_PROTOTYPES
|
---|
110 |
|
---|
111 | /* xf86Bus.c */
|
---|
112 |
|
---|
113 | extern _X_EXPORT void xf86BusProbe(void);
|
---|
114 | extern _X_EXPORT void xf86AccessInit(void);
|
---|
115 | extern _X_EXPORT void xf86AccessEnter(void);
|
---|
116 | extern _X_EXPORT void xf86AccessLeave(void);
|
---|
117 | extern _X_EXPORT void xf86EntityInit(void);
|
---|
118 |
|
---|
119 | extern _X_EXPORT void xf86FindPrimaryDevice(void);
|
---|
120 | /* new RAC */
|
---|
121 | extern _X_EXPORT void xf86PostProbe(void);
|
---|
122 | extern _X_EXPORT void xf86ClearEntityListForScreen(int scrnIndex);
|
---|
123 | extern _X_EXPORT void xf86AddDevToEntity(int entityIndex, GDevPtr dev);
|
---|
124 | extern _X_EXPORT void xf86PostScreenInit(void);
|
---|
125 |
|
---|
126 | /* xf86Config.c */
|
---|
127 |
|
---|
128 | extern _X_EXPORT Bool xf86PathIsSafe(const char *path);
|
---|
129 |
|
---|
130 | /* xf86DefaultModes */
|
---|
131 |
|
---|
132 | extern _X_EXPORT const DisplayModeRec xf86DefaultModes[];
|
---|
133 | extern _X_EXPORT const int xf86NumDefaultModes;
|
---|
134 |
|
---|
135 | /* xf86Configure.c */
|
---|
136 | extern _X_EXPORT void DoConfigure(void);
|
---|
137 |
|
---|
138 | /* xf86ShowOpts.c */
|
---|
139 | extern _X_EXPORT void DoShowOptions(void);
|
---|
140 |
|
---|
141 | /* xf86Events.c */
|
---|
142 |
|
---|
143 | extern _X_EXPORT void xf86Wakeup(pointer blockData, int err, pointer pReadmask);
|
---|
144 | extern _X_HIDDEN int xf86SigWrapper(int signo);
|
---|
145 | extern _X_EXPORT void xf86HandlePMEvents(int fd, pointer data);
|
---|
146 | extern _X_EXPORT int (*xf86PMGetEventFromOs)(int fd,pmEvent *events,int num);
|
---|
147 | extern _X_EXPORT pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event);
|
---|
148 |
|
---|
149 | /* xf86Helper.c */
|
---|
150 | extern _X_EXPORT void xf86LogInit(void);
|
---|
151 | extern _X_EXPORT void xf86CloseLog(void);
|
---|
152 |
|
---|
153 | /* xf86Init.c */
|
---|
154 | extern _X_EXPORT Bool xf86LoadModules(char **list, pointer *optlist);
|
---|
155 | extern _X_EXPORT int xf86SetVerbosity(int verb);
|
---|
156 | extern _X_EXPORT int xf86SetLogVerbosity(int verb);
|
---|
157 | extern _X_EXPORT Bool xf86CallDriverProbe( struct _DriverRec * drv, Bool detect_only );
|
---|
158 |
|
---|
159 | /* xf86Xinput.c */
|
---|
160 | extern _X_EXPORT EventList *xf86Events;
|
---|
161 |
|
---|
162 | #endif /* _NO_XF86_PROTOTYPES */
|
---|
163 |
|
---|
164 |
|
---|
165 | #endif /* _XF86PRIV_H */
|
---|