VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86Privstr.h@ 97956

最後變更 在這個檔案從97956是 69098,由 vboxsync 提交於 7 年 前

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • 屬性 svn:eol-style 設為 native
檔案大小: 5.5 KB
 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Privstr.h,v 1.37 2003/02/20 04:05:14 dawes Exp $ */
2
3/*
4 * Copyright (c) 1997,1998 by The XFree86 Project, Inc.
5 */
6
7/*
8 * This file contains definitions of the private XFree86 data structures/types.
9 * None of the data structures here should be used by video drivers.
10 */
11
12#ifndef _XF86PRIVSTR_H
13#define _XF86PRIVSTR_H
14
15#include "xf86Pci.h"
16#include "xf86str.h"
17
18/* PCI probe flags */
19
20typedef enum {
21 PCIProbe1 = 0,
22 PCIProbe2,
23 PCIForceConfig1,
24 PCIForceConfig2,
25 PCIForceNone,
26 PCIOsConfig
27} PciProbeType;
28
29typedef enum {
30 LogNone,
31 LogFlush,
32 LogSync
33} Log;
34
35typedef enum {
36 SKNever,
37 SKWhenNeeded,
38 SKAlways
39} SpecialKeysInDDX;
40
41/*
42 * xf86InfoRec contains global parameters which the video drivers never
43 * need to access. Global parameters which the video drivers do need
44 * should be individual globals.
45 */
46
47typedef struct {
48
49 /* keyboard part */
50 DeviceIntPtr pKeyboard;
51 DeviceProc kbdProc; /* procedure for initializing */
52 void (* kbdEvents)(void); /* proc for processing events */
53 int consoleFd;
54 int kbdFd;
55 int vtno;
56 int kbdType; /* AT84 / AT101 */
57 int kbdRate;
58 int kbdDelay;
59 int bell_pitch;
60 int bell_duration;
61 Bool autoRepeat;
62 unsigned long leds;
63 unsigned long xleds;
64 char * vtinit;
65 int scanPrefix; /* scancode-state */
66 Bool capsLock;
67 Bool numLock;
68 Bool scrollLock;
69 Bool modeSwitchLock;
70 Bool composeLock;
71 Bool vtSysreq;
72 SpecialKeysInDDX ddxSpecialKeys;
73 Bool ActionKeyBindingsSet;
74#if defined(SVR4) && defined(i386)
75 Bool panix106;
76#endif /* SVR4 && i386 */
77#if defined(__OpenBSD__) || defined(__NetBSD__)
78 int wsKbdType;
79#endif
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#ifdef CSRG_BASED
101 int screenFd; /* fd for memory mapped access to
102 * vga card */
103 int consType; /* Which console driver? */
104#endif
105
106#ifdef XKB
107 /*
108 * would like to use an XkbComponentNamesRec here but can't without
109 * pulling in a bunch of header files. :-(
110 */
111 char * xkbkeymap;
112 char * xkbkeycodes;
113 char * xkbtypes;
114 char * xkbcompat;
115 char * xkbsymbols;
116 char * xkbgeometry;
117 Bool xkbcomponents_specified;
118 char * xkbrules;
119 char * xkbmodel;
120 char * xkblayout;
121 char * xkbvariant;
122 char * xkboptions;
123#endif
124
125 /* Other things */
126 Bool allowMouseOpenFail;
127 Bool vidModeEnabled; /* VidMode extension enabled */
128 Bool vidModeAllowNonLocal; /* allow non-local VidMode
129 * connections */
130 Bool miscModInDevEnabled; /* Allow input devices to be
131 * changed */
132 Bool miscModInDevAllowNonLocal;
133 PciProbeType pciFlags;
134 Pix24Flags pixmap24;
135 MessageType pix24From;
136#if defined(i386) || defined(__i386__)
137 Bool pc98;
138#endif
139 Bool pmFlag;
140 Log log;
141 int estimateSizesAggressively;
142 Bool kbdCustomKeycodes;
143 Bool disableRandR;
144 MessageType randRFrom;
145 struct {
146 Bool disabled; /* enable/disable deactivating
147 * grabs or closing the
148 * connection to the grabbing
149 * client */
150 ClientPtr override; /* client that disabled
151 * grab deactivation.
152 */
153 Bool allowDeactivate;
154 Bool allowClosedown;
155 ServerGrabInfoRec server;
156 } grabInfo;
157} xf86InfoRec, *xf86InfoPtr;
158
159#ifdef DPMSExtension
160/* Private info for DPMS */
161typedef struct {
162 DPMSSetProcPtr Set;
163 CloseScreenProcPtr CloseScreen;
164 Bool Enabled;
165 int Flags;
166} DPMSRec, *DPMSPtr;
167#endif
168
169#ifdef XF86VIDMODE
170/* Private info for Video Mode Extentsion */
171typedef struct {
172 DisplayModePtr First;
173 DisplayModePtr Next;
174 int Flags;
175 CloseScreenProcPtr CloseScreen;
176} VidModeRec, *VidModePtr;
177#endif
178
179/* private resource types */
180#define ResNoAvoid ResBios
181
182/* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
183#define XLED1 ((unsigned long) 0x00000001)
184#define XLED2 ((unsigned long) 0x00000002)
185#define XLED3 ((unsigned long) 0x00000004)
186#define XLED4 ((unsigned long) 0x00000008)
187#define XCAPS ((unsigned long) 0x20000000)
188#define XNUM ((unsigned long) 0x40000000)
189#define XSCR ((unsigned long) 0x80000000)
190#define XCOMP ((unsigned long) 0x00008000)
191
192/* BSD console driver types (consType) */
193#ifdef CSRG_BASED
194#define PCCONS 0
195#define CODRV011 1
196#define CODRV01X 2
197#define SYSCONS 8
198#define PCVT 16
199#define WSCONS 32
200#endif
201
202/* Prefix strings for driver messages */
203#ifndef X_UNKNOWN_STRING
204#define X_UNKNOWN_STRING "(\?\?)"
205#endif
206#ifndef X_PROBE_STRING
207#define X_PROBE_STRING "(--)"
208#endif
209#ifndef X_CONFIG_STRING
210#define X_CONFIG_STRING "(**)"
211#endif
212#ifndef X_DEFAULT_STRING
213#define X_DEFAULT_STRING "(==)"
214#endif
215#ifndef X_CMDLINE_STRING
216#define X_CMDLINE_STRING "(++)"
217#endif
218#ifndef X_NOTICE_STRING
219#define X_NOTICE_STRING "(!!)"
220#endif
221#ifndef X_ERROR_STRING
222#define X_ERROR_STRING "(EE)"
223#endif
224#ifndef X_WARNING_STRING
225#define X_WARNING_STRING "(WW)"
226#endif
227#ifndef X_INFO_STRING
228#define X_INFO_STRING "(II)"
229#endif
230#ifndef X_NOT_IMPLEMENTED_STRING
231#define X_NOT_IMPLEMENTED_STRING "(NI)"
232#endif
233
234#endif /* _XF86PRIVSTR_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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