Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/x11/Xserver Xfree68 server code. Brought over from Xfree 3.



details:   https://anonhg.NetBSD.org/src/rev/1881d79ffc22
branches:  trunk
changeset: 560105:1881d79ffc22
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sun Mar 28 15:31:32 2004 +0000

description:
Xfree68 server code.  Brought over from Xfree 3.
XXX: This does not compile and some extra code needs to be brought across.

diffstat:

 x11/Xserver/Xserver/XF68_FBDev/XF68_FBDev.c |   42 +
 x11/Xserver/Xserver/XF68_SVGA/XF68_SVGA.c   |   54 +
 x11/Xserver/Xserver/XF68_W32/XF68_W32.c     |   56 +
 x11/Xserver/hw/xfree68/FBDev/Makefile       |   29 +
 x11/Xserver/hw/xfree68/FBDev/fbdev_netbsd.c |  950 ++++++++++++++++++++++++++++
 x11/Xserver/hw/xfree68/Makefile             |   27 +
 6 files changed, 1158 insertions(+), 0 deletions(-)

diffs (truncated from 1182 to 300 lines):

diff -r c488d2f6c4c9 -r 1881d79ffc22 x11/Xserver/Xserver/XF68_FBDev/XF68_FBDev.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/Xserver/Xserver/XF68_FBDev/XF68_FBDev.c       Sun Mar 28 15:31:32 2004 +0000
@@ -0,0 +1,42 @@
+/* $XConsortium: XF68_FBDev.c /main/1 1996/09/21 11:17:40 kaleb $ */
+
+
+
+
+/* $XFree86: xc/programs/Xserver/hw/xfree68/common/XF68_FBDev.c,v 3.1 1996/12/27 06:52:00 dawes Exp $ */
+#include "X.h"
+#include "os.h"
+
+#define _NO_XF86_PROTOTYPES
+
+#include "xf86.h"
+#include "xf86_Config.h"
+
+
+extern ScrnInfoRec fbdevInfoRec;
+
+ScrnInfoPtr xf86Screens[] = {
+       &fbdevInfoRec,
+};
+
+int xf86MaxScreens = sizeof(xf86Screens)/sizeof(ScrnInfoPtr);
+
+int xf86ScreenNames[] = {
+       FBDEV,
+       -1
+};
+
+int fbdevValidTokens[] = {
+       STATICGRAY,
+       GRAYSCALE,
+       STATICCOLOR,
+       PSEUDOCOLOR,
+       TRUECOLOR,
+       DIRECTCOLOR,
+       MODES,
+       VIEWPORT,
+       VIRTUAL,
+       -1
+};
+
+#include "xf86ExtInit.h"
diff -r c488d2f6c4c9 -r 1881d79ffc22 x11/Xserver/Xserver/XF68_SVGA/XF68_SVGA.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/Xserver/Xserver/XF68_SVGA/XF68_SVGA.c Sun Mar 28 15:31:32 2004 +0000
@@ -0,0 +1,54 @@
+/* $XFree86: xc/programs/Xserver/hw/xfree86/common/XF86_SVGA.c,v 3.7 1996/02/04 09:05:57 dawes Exp $ */
+
+
+
+
+
+/* $XConsortium: XF86_SVGA.c /main/3 1995/11/12 19:20:51 kaleb $ */
+
+#include "X.h"
+#include "os.h"
+
+#define _NO_XF86_PROTOTYPES
+
+#include "xf86.h"
+#include "xf86_Config.h"
+
+extern ScrnInfoRec vga256InfoRec;
+
+ScrnInfoPtr xf86Screens[] = 
+{
+  &vga256InfoRec,
+};
+
+int  xf86MaxScreens = sizeof(xf86Screens) / sizeof(ScrnInfoPtr);
+
+int xf86ScreenNames[] =
+{
+  SVGA,
+  -1
+};
+
+int vga256ValidTokens[] =
+{
+  STATICGRAY,
+  GRAYSCALE,
+  STATICCOLOR,
+  PSEUDOCOLOR,
+  TRUECOLOR,
+  DIRECTCOLOR,
+  CHIPSET,
+  CLOCKS,
+  MODES,
+  OPTION,
+  VIDEORAM,
+  VIEWPORT,
+  VIRTUAL,
+  CLOCKPROG,
+  IOBASE,
+  MEMBASE,
+  -1
+};
+
+#include "xf86ExtInit.h"
+
diff -r c488d2f6c4c9 -r 1881d79ffc22 x11/Xserver/Xserver/XF68_W32/XF68_W32.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/Xserver/Xserver/XF68_W32/XF68_W32.c   Sun Mar 28 15:31:32 2004 +0000
@@ -0,0 +1,56 @@
+/* $XFree86: xc/programs/Xserver/hw/xfree86/common/XF86_W32.c,v 3.2 1996/02/04 09:05:58 dawes Exp $ */
+
+
+
+
+
+/* $XConsortium: XF86_W32.c /main/3 1995/11/12 19:20:57 kaleb $ */
+
+#include "X.h"
+#include "os.h"
+
+#define _NO_XF86_PROTOTYPES
+
+#include "xf86.h"
+#include "xf86_Config.h"
+
+extern ScrnInfoRec vga256InfoRec;
+
+ScrnInfoPtr xf86Screens[] = 
+{
+  &vga256InfoRec,
+};
+
+int  xf86MaxScreens = sizeof(xf86Screens) / sizeof(ScrnInfoPtr);
+
+int xf86ScreenNames[] =
+{
+  ACCEL,
+  -1
+};
+
+int vga256ValidTokens[] =
+{
+  STATICGRAY,
+  GRAYSCALE,
+  STATICCOLOR,
+  PSEUDOCOLOR,
+  TRUECOLOR,
+  DIRECTCOLOR,
+  CHIPSET,
+  CLOCKS,
+  DISPLAYSIZE,
+  MODES,
+  OPTION,
+  VIDEORAM,
+  VIEWPORT,
+  VIRTUAL,
+  SPEEDUP,
+  NOSPEEDUP,
+  CLOCKPROG,
+  IOBASE,
+  MEMBASE,
+  -1
+};
+
+#include "xf86ExtInit.h"
diff -r c488d2f6c4c9 -r 1881d79ffc22 x11/Xserver/hw/xfree68/FBDev/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/Xserver/hw/xfree68/FBDev/Makefile     Sun Mar 28 15:31:32 2004 +0000
@@ -0,0 +1,29 @@
+#      $NetBSD: Makefile,v 1.1 2004/03/28 15:31:32 jdc Exp $
+
+.include "../../../Makefile.serverlib"
+
+.include <bsd.own.mk>
+
+LIB=   fbdev
+
+SRCS=  fbdev_netbsd.c
+
+CPPFLAGS+=     -I${X11SRCDIR.xc}/programs/Xserver/hw/netbsd/atari \
+               -I${X11SRCDIR.xc}/programs/Xserver/mi \
+               -I${X11SRCDIR.xc}/programs/Xserver/iplan2p4 \
+               -I${X11SRCDIR.xc}/programs/Xserver/iplan2p8 \
+               -I${X11SRCDIR.xc}/programs/Xserver/mfb \
+               -I${X11SRCDIR.xc}/programs/Xserver/include \
+               -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86 \
+               -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/common \
+               -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \
+               -I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/bus \
+               -I${DESTDIR}${X11INCDIR}/X11 \
+               -I${DESTDIR}${X11INCDIR}/X11/extensions \
+               -I${X11SRCDIR.xc}/include/fonts \
+               -I${XSERVERINCDIR}
+
+CPPFLAGS+=     -DCONFIG_IPLAN2p4 -DCONFIG_IPLAN2p8
+
+.include <bsd.x11.mk>
+.include <bsd.lib.mk>
diff -r c488d2f6c4c9 -r 1881d79ffc22 x11/Xserver/hw/xfree68/FBDev/fbdev_netbsd.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/Xserver/hw/xfree68/FBDev/fbdev_netbsd.c       Sun Mar 28 15:31:32 2004 +0000
@@ -0,0 +1,950 @@
+/* $XFree86: xc/programs/Xserver/hw/xfree68/fbdev/fbdev.c,v 3.1 1996/08/18 03:54:46 dawes Exp $ */
+/*
+ *
+ *  Author: Thomas Gerner. Taken from fbdev.c by Martin Schaller
+ *
+ *  Generic version by Geert Uytterhoeven (Geert.Uytterhoeven%cs.kuleuven.ac.be@localhost)
+ *
+ *  This version contains support for:
+ *
+ *     - Monochrome, 1 bitplane [mfb]
+ *     - Color, 4/8 interleaved bitplanes with 2 bytes interleave [iplan2p?]
+ */
+
+
+#define fbdev_PATCHLEVEL "4"
+
+
+#include "X.h"
+#include "input.h"
+#include "scrnintstr.h"
+#include "pixmapstr.h"
+#include "regionstr.h"
+#include "mipointer.h"
+#include "cursorstr.h"
+#include "gcstruct.h"
+
+#include "compiler.h"
+
+#include "xf86.h"
+#include "xf86Priv.h"
+#include "xf86_OSlib.h"
+#include "xf86_Config.h"
+#include "mfb.h"
+
+#include "colormapst.h"
+#include "resource.h"
+
+#undef MODES
+
+#include <sys/queue.h>
+#include "/sys/arch/atari/dev/grfabs_reg.h"
+#include "/sys/arch/atari/dev/viewioctl.h"
+
+static int *fbdevPrivateIndexP;
+static void (*fbdevBitBlt)();
+static int (*CreateDefColormap)(ScreenPtr);
+
+extern int mfbCreateDefColormap(ScreenPtr);
+
+#if defined(CONFIG_IPLAN2p2) || defined(CONFIG_IPLAN2p4) || \
+     defined(CONFIG_IPLAN2p8)
+extern int iplCreateDefColormap(ScreenPtr);
+#ifdef CONFIG_IPLAN2p2
+extern int ipl2p2ScreenPrivateIndex;
+extern void ipl2p2DoBitblt();
+#endif /* CONFIG_IPLAN2p2 */
+#ifdef CONFIG_IPLAN2p4
+extern int ipl2p4ScreenPrivateIndex;
+extern void ipl2p4DoBitblt();
+#endif /* CONFIG_IPLAN2p4 */
+#ifdef CONFIG_IPLAN2p8
+extern int ipl2p8ScreenPrivateIndex;
+extern void ipl2p8DoBitblt();
+#endif /* CONFIG_IPLAN2p8 */
+#endif /* defined(CONFIG_IPLAN2p2) || defined(CONFIG_IPLAN2p4) || \
+         defined(CONFIG_IPLAN2p8) */
+#ifdef CONFIG_CFB16
+extern int cfb16ScreenPrivateIndex;
+extern void cfb16DoBitblt();
+#endif /* CONFIG_CFB16 */
+
+extern int fbdevValidTokens[];
+
+static Bool fbdevProbe(void);
+static void fbdevPrintIdent(void);
+static Bool fbdevSaveScreen(ScreenPtr pScreen, int on);
+static Bool fbdevScreenInit(int scr_index, ScreenPtr pScreen, int argc,
+                           char **argv);
+static void fbdevEnterLeaveVT(Bool enter, int screen_idx);
+static Bool fbdevCloseScreen(int screen_idx, ScreenPtr screen);
+static Bool fbdevValidMode(DisplayModePtr mode);
+static Bool fbdevSwitchMode(DisplayModePtr mode);
+
+static void xfree2fbdev(DisplayModePtr mode, struct view_size *var);
+static void fbdev2xfree(struct view_size *var, DisplayModePtr mode);
+
+extern Bool xf86Exiting, xf86Resetting, xf86ProbeFailed;
+
+ScrnInfoRec fbdevInfoRec = {
+    FALSE,                     /* Bool configured */
+    -1,                                /* int tmpIndex */
+    -1,                                /* int scrnIndex */
+    fbdevProbe,                        /* Bool (*Probe)() */
+    fbdevScreenInit,           /* Bool (*Init)() */
+    (Bool (*)())NoopDDA,       /* Bool (*ValidMode)() */
+    fbdevEnterLeaveVT,         /* void (*EnterLeaveVT)() */
+    (void (*)())NoopDDA,       /* void (*EnterLeaveMonitor)() */
+    (void (*)())NoopDDA,       /* void (*EnterLeaveCursor)() */
+    (void (*)())NoopDDA,       /* void (*AdjustFrame)() */



Home | Main Index | Thread Index | Old Index