VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/xf86Privstr.h@ 32915

Last change on this file since 32915 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 6.4 KB
Line 
1
2/*
3 * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
4 *
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:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
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.
22 *
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).
27 */
28
29/*
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.
32 */
33
34#ifndef _XF86PRIVSTR_H
35#define _XF86PRIVSTR_H
36
37#include "xf86Pci.h"
38#include "xf86str.h"
39
40/* PCI probe flags */
41
42typedef enum {
43 PCIProbe1 = 0,
44 PCIProbe2,
45 PCIForceConfig1,
46 PCIForceConfig2,
47 PCIForceNone,
48 PCIOsConfig
49} PciProbeType;
50
51typedef enum {
52 LogNone,
53 LogFlush,
54 LogSync
55} Log;
56
57typedef enum {
58 SKNever,
59 SKWhenNeeded,
60 SKAlways
61} SpecialKeysInDDX;
62
63/*
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.
67 */
68
69typedef struct {
70
71 /* keyboard part */
72 DeviceIntPtr pKeyboard;
73 DeviceProc kbdProc; /* procedure for initializing */
74 void (* kbdEvents)(void); /* proc for processing events */
75 int consoleFd;
76 int kbdFd;
77 int vtno;
78 int kbdType; /* AT84 / AT101 */
79 int kbdRate;
80 int kbdDelay;
81 int bell_pitch;
82 int bell_duration;
83 Bool autoRepeat;
84 unsigned long leds;
85 unsigned long xleds;
86 char * vtinit;
87 int scanPrefix; /* scancode-state */
88 Bool capsLock;
89 Bool numLock;
90 Bool scrollLock;
91 Bool modeSwitchLock;
92 Bool composeLock;
93 Bool vtSysreq;
94 SpecialKeysInDDX ddxSpecialKeys;
95 Bool ActionKeyBindingsSet;
96#if defined(SVR4) && defined(i386)
97 Bool panix106;
98#endif /* SVR4 && i386 */
99#if defined(__OpenBSD__) || defined(__NetBSD__)
100 int wsKbdType;
101#endif
102
103 /* mouse part */
104 DeviceIntPtr pMouse;
105#ifdef XINPUT
106 pointer mouseLocal;
107#endif
108
109 /* event handler part */
110 int lastEventTime;
111 Bool vtRequestsPending;
112 Bool inputPending;
113 Bool dontVTSwitch;
114 Bool dontZap;
115 Bool dontZoom;
116 Bool notrapSignals; /* don't exit cleanly - die at fault */
117 Bool caughtSignal;
118
119 /* graphics part */
120 Bool sharedMonitor;
121 ScreenPtr currentScreen;
122#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
123 int screenFd; /* fd for memory mapped access to
124 * vga card */
125 int consType; /* Which console driver? */
126#endif
127
128#ifdef XKB
129 /*
130 * would like to use an XkbComponentNamesRec here but can't without
131 * pulling in a bunch of header files. :-(
132 */
133 char * xkbkeymap;
134 char * xkbkeycodes;
135 char * xkbtypes;
136 char * xkbcompat;
137 char * xkbsymbols;
138 char * xkbgeometry;
139 Bool xkbcomponents_specified;
140 char * xkbrules;
141 char * xkbmodel;
142 char * xkblayout;
143 char * xkbvariant;
144 char * xkboptions;
145#endif
146
147 /* Other things */
148 Bool allowMouseOpenFail;
149 Bool vidModeEnabled; /* VidMode extension enabled */
150 Bool vidModeAllowNonLocal; /* allow non-local VidMode
151 * connections */
152 Bool miscModInDevEnabled; /* Allow input devices to be
153 * changed */
154 Bool miscModInDevAllowNonLocal;
155 PciProbeType pciFlags;
156 Pix24Flags pixmap24;
157 MessageType pix24From;
158#if defined(i386) || defined(__i386__)
159 Bool pc98;
160#endif
161 Bool pmFlag;
162 Log log;
163 int estimateSizesAggressively;
164 Bool kbdCustomKeycodes;
165 Bool disableRandR;
166 MessageType randRFrom;
167 Bool aiglx;
168 MessageType aiglxFrom;
169 Bool ignoreABI;
170 struct {
171 Bool disabled; /* enable/disable deactivating
172 * grabs or closing the
173 * connection to the grabbing
174 * client */
175 ClientPtr override; /* client that disabled
176 * grab deactivation.
177 */
178 Bool allowDeactivate;
179 Bool allowClosedown;
180 ServerGrabInfoRec server;
181 } grabInfo;
182} xf86InfoRec, *xf86InfoPtr;
183
184#ifdef DPMSExtension
185/* Private info for DPMS */
186typedef struct {
187 CloseScreenProcPtr CloseScreen;
188 Bool Enabled;
189 int Flags;
190} DPMSRec, *DPMSPtr;
191#endif
192
193#ifdef XF86VIDMODE
194/* Private info for Video Mode Extentsion */
195typedef struct {
196 DisplayModePtr First;
197 DisplayModePtr Next;
198 int Flags;
199 CloseScreenProcPtr CloseScreen;
200} VidModeRec, *VidModePtr;
201#endif
202
203/* Information for root window properties. */
204typedef struct _RootWinProp {
205 struct _RootWinProp * next;
206 char * name;
207 Atom type;
208 short format;
209 long size;
210 pointer data;
211} RootWinProp, *RootWinPropPtr;
212
213/* private resource types */
214#define ResNoAvoid ResBios
215
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)
225
226/* BSD console driver types (consType) */
227#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
228#define PCCONS 0
229#define CODRV011 1
230#define CODRV01X 2
231#define SYSCONS 8
232#define PCVT 16
233#define WSCONS 32
234#endif
235
236#endif /* _XF86PRIVSTR_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette