summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/common/xf86Priv.h')
-rw-r--r--hw/xfree86/common/xf86Priv.h175
1 files changed, 175 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h
new file mode 100644
index 000000000..3c73f6e56
--- /dev/null
+++ b/hw/xfree86/common/xf86Priv.h
@@ -0,0 +1,175 @@
+/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Priv.h,v 3.24.2.1 1998/02/01 16:04:47 robin Exp $ */
+/*
+ * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Thomas Roell not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Thomas Roell makes no representations
+ * about the suitability of this software for any purpose. It is provided
+ * "as is" without express or implied warranty.
+ *
+ * THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ *
+ */
+/* $Xorg: xf86Priv.h,v 1.3 2000/08/17 19:50:30 cpqbld Exp $ */
+
+#ifndef _XF86PRIV_H
+#define _XF86PRIV_H
+
+#ifndef _XF86VIDMODE_SERVER_
+#include "Xproto.h"
+#include "xf86_OSproc.h"
+#endif
+
+typedef struct {
+
+ /* keyboard part */
+ DeviceIntPtr pKeyboard;
+ DeviceProc kbdProc; /* procedure for initializing */
+ void (* kbdEvents)( /* proc for processing events */
+#if NeedNestedPrototypes && !defined(__OSF__)
+ void
+#endif
+ );
+#ifndef MINIX
+ int consoleFd;
+#else
+ int kbdFd;
+#endif /* MINIX */
+#if defined(MACH386) || defined(__OSF__)
+ int kbdFd;
+#endif /* MACH386 || __OSF__ */
+ int vtno;
+ int kbdType; /* AT84 / AT101 */
+ int kbdRate;
+ int kbdDelay;
+ int bell_pitch;
+ int bell_duration;
+ Bool autoRepeat;
+ unsigned long leds;
+ unsigned long xleds;
+ char *vtinit;
+ int *specialKeyMap;
+ int scanPrefix; /* scancode-state */
+ Bool capsLock;
+ Bool numLock;
+ Bool scrollLock;
+ Bool modeSwitchLock;
+ Bool serverNumLock;
+ Bool composeLock;
+ Bool vtSysreq;
+#if defined(SVR4) && defined(i386)
+ Bool panix106;
+#endif /* SVR4 && i386 */
+
+ /* mouse part */
+ DeviceIntPtr pMouse;
+#ifdef XINPUT
+ pointer mouseLocal;
+#endif
+ MouseDevPtr mouseDev;
+
+ /* event handler part */
+ int lastEventTime;
+ Bool vtRequestsPending;
+ Bool inputPending;
+ Bool dontZap;
+ Bool dontZoom;
+ Bool notrapSignals; /* don't exit cleanly - die at fault */
+ Bool caughtSignal;
+
+ /* graphics part */
+ Bool sharedMonitor;
+ ScreenPtr currentScreen;
+#ifdef CSRG_BASED
+ int screenFd; /* fd for memory mapped access to vga card */
+ int consType; /* Which console driver? */
+#endif
+#if defined(AMOEBA)
+ void *screenPtr;
+#endif
+
+#ifdef XKB
+/*
+ * would like to use an XkbComponentNamesRec here but can't without
+ * pulling in a bunch of header files. :-(
+ */
+ char *xkbkeymap;
+ char *xkbkeycodes;
+ char *xkbtypes;
+ char *xkbcompat;
+ char *xkbsymbols;
+ char *xkbgeometry;
+ Bool xkbcomponents_specified;
+ char *xkbrules;
+ char *xkbmodel;
+ char *xkblayout;
+ char *xkbvariant;
+ char *xkboptions;
+#endif
+
+} xf86InfoRec, *xf86InfoPtr;
+
+extern xf86InfoRec xf86Info;
+
+/* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */
+#define XLED1 ((unsigned long) 0x00000001)
+#define XLED2 ((unsigned long) 0x00000002)
+#define XLED3 ((unsigned long) 0x00000004)
+#define XCAPS ((unsigned long) 0x20000000)
+#define XNUM ((unsigned long) 0x40000000)
+#define XSCR ((unsigned long) 0x80000000)
+#define XCOMP ((unsigned long) 0x00008000)
+
+/* 386BSD console driver types (consType) */
+#ifdef CSRG_BASED
+#define PCCONS 0
+#define CODRV011 1
+#define CODRV01X 2
+#define SYSCONS 8
+#define PCVT 16
+#endif
+
+/* Values of xf86Info.mouseFlags */
+#define MF_CLEAR_DTR 1
+#define MF_CLEAR_RTS 2
+
+extern int xf86ScreenIndex;
+
+#define XF86SCRNINFO(p) ((ScrnInfoPtr)((p)->devPrivates[xf86ScreenIndex].ptr))
+
+extern int xf86MaxScreens;
+extern ScrnInfoPtr xf86Screens[];
+extern int xf86ScreenNames[];
+
+extern char xf86ConfigFile[];
+extern int xf86Verbose;
+extern Bool xf86ProbeOnly, xf86ProbeFailed;
+extern unsigned short xf86MouseCflags[];
+extern Bool xf86SupportedMouseTypes[];
+extern int xf86NumMouseTypes;
+extern int xf86bpp;
+extern xrgb xf86weight;
+extern Bool xf86AllowMouseOpenFail;
+extern Bool xf86BestRefresh;
+
+extern Bool xf86FlipPixels;
+#define XF86FLIP_PIXELS() \
+ if (xf86FlipPixels) { \
+ pScreen->whitePixel = (pScreen->whitePixel) ? 0 : 1; \
+ pScreen->blackPixel = (pScreen->blackPixel) ? 0 : 1; \
+ }
+
+#endif /* _XF86PRIV_H */
+
+