VirtualBox

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

Last change on this file since 54163 was 54163, checked in by vboxsync, 10 years ago

Additions/x11/vboxvideo: support X.Org Server 1.17 (still untested).

  • Property svn:eol-style set to native
File size: 5.0 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 "xf86str.h"
38
39typedef enum {
40 XF86_GlxVisualsMinimal,
41 XF86_GlxVisualsTypical,
42 XF86_GlxVisualsAll,
43} XF86_GlxVisuals;
44
45/*
46 * xf86InfoRec contains global parameters which the video drivers never
47 * need to access. Global parameters which the video drivers do need
48 * should be individual globals.
49 */
50
51typedef struct {
52 int consoleFd;
53 int vtno;
54
55 /* event handler part */
56 int lastEventTime;
57 Bool vtRequestsPending;
58#ifdef sun
59 int vtPendingNum;
60#endif
61 Bool dontVTSwitch;
62 Bool autoVTSwitch;
63 Bool ShareVTs;
64 Bool dontZap;
65 Bool dontZoom;
66 Bool notrapSignals; /* don't exit cleanly - die at fault */
67 Bool caughtSignal;
68
69 /* graphics part */
70 ScreenPtr currentScreen;
71#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
72 int consType; /* Which console driver? */
73#endif
74
75 /* Other things */
76 Bool allowMouseOpenFail;
77 Bool vidModeEnabled; /* VidMode extension enabled */
78 Bool vidModeAllowNonLocal; /* allow non-local VidMode
79 * connections */
80 Bool miscModInDevEnabled; /* Allow input devices to be
81 * changed */
82 Bool miscModInDevAllowNonLocal;
83 Bool useSIGIO; /* Use SIGIO for handling
84 input device events */
85 Pix24Flags pixmap24;
86 MessageType pix24From;
87 Bool pmFlag;
88 Bool disableRandR;
89 MessageType randRFrom;
90 Bool aiglx;
91 MessageType aiglxFrom;
92 XF86_GlxVisuals glxVisuals;
93 MessageType glxVisualsFrom;
94
95 Bool useDefaultFontPath;
96 Bool ignoreABI;
97
98 Bool forceInputDevices; /* force xorg.conf or built-in input devices */
99 Bool autoAddDevices; /* Whether to succeed NIDR, or ignore. */
100 Bool autoEnableDevices; /* Whether to enable, or let the client
101 * control. */
102
103 Bool dri2;
104 MessageType dri2From;
105
106 Bool autoAddGPU;
107} xf86InfoRec, *xf86InfoPtr;
108
109#ifdef DPMSExtension
110/* Private info for DPMS */
111typedef struct {
112 CloseScreenProcPtr CloseScreen;
113 Bool Enabled;
114 int Flags;
115} DPMSRec, *DPMSPtr;
116#endif
117
118#ifdef XF86VIDMODE
119/* Private info for Video Mode Extentsion */
120typedef struct {
121 DisplayModePtr First;
122 DisplayModePtr Next;
123 int Flags;
124 CloseScreenProcPtr CloseScreen;
125} VidModeRec, *VidModePtr;
126#endif
127
128/* Information for root window properties. */
129typedef struct _RootWinProp {
130 struct _RootWinProp *next;
131 const char *name;
132 Atom type;
133 short format;
134 long size;
135 void *data;
136} RootWinProp, *RootWinPropPtr;
137
138/* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
139#define XLED1 ((unsigned long) 0x00000001)
140#define XLED2 ((unsigned long) 0x00000002)
141#define XLED3 ((unsigned long) 0x00000004)
142#define XLED4 ((unsigned long) 0x00000008)
143#define XCAPS ((unsigned long) 0x20000000)
144#define XNUM ((unsigned long) 0x40000000)
145#define XSCR ((unsigned long) 0x80000000)
146#define XCOMP ((unsigned long) 0x00008000)
147
148/* BSD console driver types (consType) */
149#if defined(CSRG_BASED) || defined(__FreeBSD_kernel__)
150#define PCCONS 0
151#define CODRV011 1
152#define CODRV01X 2
153#define SYSCONS 8
154#define PCVT 16
155#define WSCONS 32
156#endif
157
158/* Root window property to tell clients whether our VT is currently active.
159 * Name chosen to match the "XFree86_VT" property. */
160#define HAS_VT_ATOM_NAME "XFree86_has_VT"
161
162#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