VirtualBox

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

Last change on this file was 17471, checked in by vboxsync, 16 years ago

export to OSE

  • Property svn:eol-style set to native
File size: 5.8 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
63typedef enum {
64 XF86_GlxVisualsMinimal,
65 XF86_GlxVisualsTypical,
66 XF86_GlxVisualsAll,
67} XF86_GlxVisuals;
68
69/*
70 * xf86InfoRec contains global parameters which the video drivers never
71 * need to access. Global parameters which the video drivers do need
72 * should be individual globals.
73 */
74
75typedef struct {
76 int consoleFd;
77 int vtno;
78 Bool vtSysreq;
79 SpecialKeysInDDX ddxSpecialKeys;
80
81 /* mouse part */
82 DeviceIntPtr pMouse;
83#ifdef XINPUT
84 pointer mouseLocal;
85#endif
86
87 /* event handler part */
88 int lastEventTime;
89 Bool vtRequestsPending;
90 Bool inputPending;
91 Bool dontVTSwitch;
92 Bool dontZap;
93 Bool dontZoom;
94 Bool notrapSignals; /* don't exit cleanly - die at fault */
95 Bool caughtSignal;
96
97 /* graphics part */
98 Bool sharedMonitor;
99 ScreenPtr currentScreen;
100#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
101 int screenFd; /* fd for memory mapped access to
102 * vga card */
103 int consType; /* Which console driver? */
104#endif
105
106 /* Other things */
107 Bool allowMouseOpenFail;
108 Bool vidModeEnabled; /* VidMode extension enabled */
109 Bool vidModeAllowNonLocal; /* allow non-local VidMode
110 * connections */
111 Bool miscModInDevEnabled; /* Allow input devices to be
112 * changed */
113 Bool miscModInDevAllowNonLocal;
114 PciProbeType pciFlags;
115 Pix24Flags pixmap24;
116 MessageType pix24From;
117#ifdef __i386__
118 Bool pc98;
119#endif
120 Bool pmFlag;
121 Log log;
122 int estimateSizesAggressively;
123 Bool kbdCustomKeycodes;
124 Bool disableRandR;
125 MessageType randRFrom;
126 Bool aiglx;
127 MessageType aiglxFrom;
128 XF86_GlxVisuals glxVisuals;
129 MessageType glxVisualsFrom;
130
131 Bool useDefaultFontPath;
132 MessageType useDefaultFontPathFrom;
133 Bool ignoreABI;
134 struct {
135 Bool disabled; /* enable/disable deactivating
136 * grabs or closing the
137 * connection to the grabbing
138 * client */
139 ClientPtr override; /* client that disabled
140 * grab deactivation.
141 */
142 Bool allowDeactivate;
143 Bool allowClosedown;
144 ServerGrabInfoRec server;
145 } grabInfo;
146
147 Bool allowEmptyInput; /* Allow the server to start with no input
148 * devices. */
149 Bool autoAddDevices; /* Whether to succeed NIDR, or ignore. */
150 Bool autoEnableDevices; /* Whether to enable, or let the client
151 * control. */
152
153 Bool dri2;
154 MessageType dri2From;
155} xf86InfoRec, *xf86InfoPtr;
156
157#ifdef DPMSExtension
158/* Private info for DPMS */
159typedef struct {
160 CloseScreenProcPtr CloseScreen;
161 Bool Enabled;
162 int Flags;
163} DPMSRec, *DPMSPtr;
164#endif
165
166#ifdef XF86VIDMODE
167/* Private info for Video Mode Extentsion */
168typedef struct {
169 DisplayModePtr First;
170 DisplayModePtr Next;
171 int Flags;
172 CloseScreenProcPtr CloseScreen;
173} VidModeRec, *VidModePtr;
174#endif
175
176/* Information for root window properties. */
177typedef struct _RootWinProp {
178 struct _RootWinProp * next;
179 char * name;
180 Atom type;
181 short format;
182 long size;
183 pointer data;
184} RootWinProp, *RootWinPropPtr;
185
186/* private resource types */
187#define ResNoAvoid ResBios
188
189/* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
190#define XLED1 ((unsigned long) 0x00000001)
191#define XLED2 ((unsigned long) 0x00000002)
192#define XLED3 ((unsigned long) 0x00000004)
193#define XLED4 ((unsigned long) 0x00000008)
194#define XCAPS ((unsigned long) 0x20000000)
195#define XNUM ((unsigned long) 0x40000000)
196#define XSCR ((unsigned long) 0x80000000)
197#define XCOMP ((unsigned long) 0x00008000)
198
199/* BSD console driver types (consType) */
200#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
201#define PCCONS 0
202#define CODRV011 1
203#define CODRV01X 2
204#define SYSCONS 8
205#define PCVT 16
206#define WSCONS 32
207#endif
208
209#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