1
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Privstr.h,v 1.41 2004/01/27 01:31:45 dawes Exp $ */
4
* Copyright (c) 1997-2003 by The XFree86 Project, Inc.
6
* Permission is hereby granted, free of charge, to any person obtaining a
7
* copy of this software and associated documentation files (the "Software"),
8
* to deal in the Software without restriction, including without limitation
9
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
* and/or sell copies of the Software, and to permit persons to whom the
11
* Software is furnished to do so, subject to the following conditions:
13
* The above copyright notice and this permission notice shall be included in
14
* all copies or substantial portions of the Software.
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
* OTHER DEALINGS IN THE SOFTWARE.
24
* Except as contained in this notice, the name of the copyright holder(s)
25
* and author(s) shall not be used in advertising or otherwise to promote
26
* the sale, use or other dealings in this Software without prior written
27
* authorization from the copyright holder(s) and author(s).
31
* This file contains definitions of the private XFree86 data structures/types.
32
* None of the data structures here should be used by video drivers.
35
#ifndef _XF86PRIVSTR_H
36
#define _XF86PRIVSTR_H
65
* xf86InfoRec contains global parameters which the video drivers never
66
* need to access. Global parameters which the video drivers do need
67
* should be individual globals.
73
DeviceIntPtr pKeyboard;
74
DeviceProc kbdProc; /* procedure for initializing */
75
void (* kbdEvents)(void); /* proc for processing events */
79
int kbdType; /* AT84 / AT101 */
88
int scanPrefix; /* scancode-state */
95
SpecialKeysInDDX ddxSpecialKeys;
96
Bool ActionKeyBindingsSet;
97
#if defined(SVR4) && defined(i386)
99
#endif /* SVR4 && i386 */
100
#if defined(__OpenBSD__) || defined(__NetBSD__)
110
/* event handler part */
112
Bool vtRequestsPending;
117
Bool notrapSignals; /* don't exit cleanly - die at fault */
122
ScreenPtr currentScreen;
123
#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
124
int screenFd; /* fd for memory mapped access to
126
int consType; /* Which console driver? */
131
* would like to use an XkbComponentNamesRec here but can't without
132
* pulling in a bunch of header files. :-(
140
Bool xkbcomponents_specified;
149
Bool allowMouseOpenFail;
150
Bool vidModeEnabled; /* VidMode extension enabled */
151
Bool vidModeAllowNonLocal; /* allow non-local VidMode
153
Bool miscModInDevEnabled; /* Allow input devices to be
155
Bool miscModInDevAllowNonLocal;
156
PciProbeType pciFlags;
158
MessageType pix24From;
159
#if defined(i386) || defined(__i386__)
164
int estimateSizesAggressively;
165
Bool kbdCustomKeycodes;
167
MessageType randRFrom;
169
MessageType aiglxFrom;
171
Bool disabled; /* enable/disable deactivating
172
* grabs or closing the
173
* connection to the grabbing
175
ClientPtr override; /* client that disabled
178
Bool allowDeactivate;
180
ServerGrabInfoRec server;
182
} xf86InfoRec, *xf86InfoPtr;
185
/* Private info for DPMS */
187
CloseScreenProcPtr CloseScreen;
194
/* Private info for Video Mode Extentsion */
196
DisplayModePtr First;
199
CloseScreenProcPtr CloseScreen;
200
} VidModeRec, *VidModePtr;
203
/* Information for root window properties. */
204
typedef struct _RootWinProp {
205
struct _RootWinProp * next;
211
} RootWinProp, *RootWinPropPtr;
213
/* private resource types */
214
#define ResNoAvoid ResBios
216
/* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
217
#define XLED1 ((unsigned long) 0x00000001)
218
#define XLED2 ((unsigned long) 0x00000002)
219
#define XLED3 ((unsigned long) 0x00000004)
220
#define XLED4 ((unsigned long) 0x00000008)
221
#define XCAPS ((unsigned long) 0x20000000)
222
#define XNUM ((unsigned long) 0x40000000)
223
#define XSCR ((unsigned long) 0x80000000)
224
#define XCOMP ((unsigned long) 0x00008000)
226
/* BSD console driver types (consType) */
227
#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
236
#endif /* _XF86PRIVSTR_H */