3 * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
23 * Except as contained in this notice, the name of the copyright holder(s)
24 * and author(s) shall not be used in advertising or otherwise to promote
25 * the sale, use or other dealings in this Software without prior written
26 * authorization from the copyright holder(s) and author(s).
30 * This file contains definitions of the private XFree86 data structures/types.
31 * None of the data structures here should be used by video drivers.
34 #ifndef _XF86PRIVSTR_H
35 #define _XF86PRIVSTR_H
64 * xf86InfoRec contains global parameters which the video drivers never
65 * need to access. Global parameters which the video drivers do need
66 * should be individual globals.
74 SpecialKeysInDDX ddxSpecialKeys
;
82 /* event handler part */
84 Bool vtRequestsPending
;
89 Bool notrapSignals
; /* don't exit cleanly - die at fault */
94 ScreenPtr currentScreen
;
95 #if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
96 int screenFd
; /* fd for memory mapped access to
98 int consType
; /* Which console driver? */
102 Bool allowMouseOpenFail
;
103 Bool vidModeEnabled
; /* VidMode extension enabled */
104 Bool vidModeAllowNonLocal
; /* allow non-local VidMode
106 Bool miscModInDevEnabled
; /* Allow input devices to be
108 Bool miscModInDevAllowNonLocal
;
109 PciProbeType pciFlags
;
111 MessageType pix24From
;
112 #if defined(i386) || defined(__i386__)
117 int estimateSizesAggressively
;
118 Bool kbdCustomKeycodes
;
120 MessageType randRFrom
;
122 MessageType aiglxFrom
;
123 Bool useDefaultFontPath
;
124 MessageType useDefaultFontPathFrom
;
127 Bool disabled
; /* enable/disable deactivating
128 * grabs or closing the
129 * connection to the grabbing
131 ClientPtr override
; /* client that disabled
134 Bool allowDeactivate
;
136 ServerGrabInfoRec server
;
139 Bool allowEmptyInput
; /* Allow the server to start with no input
141 Bool autoAddDevices
; /* Whether to succeed NIDR, or ignore. */
142 Bool autoEnableDevices
; /* Whether to enable, or let the client
144 } xf86InfoRec
, *xf86InfoPtr
;
147 /* Private info for DPMS */
149 CloseScreenProcPtr CloseScreen
;
156 /* Private info for Video Mode Extentsion */
158 DisplayModePtr First
;
161 CloseScreenProcPtr CloseScreen
;
162 } VidModeRec
, *VidModePtr
;
165 /* Information for root window properties. */
166 typedef struct _RootWinProp
{
167 struct _RootWinProp
* next
;
173 } RootWinProp
, *RootWinPropPtr
;
175 /* private resource types */
176 #define ResNoAvoid ResBios
178 /* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
179 #define XLED1 ((unsigned long) 0x00000001)
180 #define XLED2 ((unsigned long) 0x00000002)
181 #define XLED3 ((unsigned long) 0x00000004)
182 #define XLED4 ((unsigned long) 0x00000008)
183 #define XCAPS ((unsigned long) 0x20000000)
184 #define XNUM ((unsigned long) 0x40000000)
185 #define XSCR ((unsigned long) 0x80000000)
186 #define XCOMP ((unsigned long) 0x00008000)
188 /* BSD console driver types (consType) */
189 #if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
198 #endif /* _XF86PRIVSTR_H */