summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-03-17 20:30:52 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-03-17 20:30:52 +0000
commite44250c4bee7fcb5d925abd2dd1e847d51c165c1 (patch)
treef9d30b4e08628c13eee9c34934ce7127311d221b
parentc9cf138345be72157b7a9da79dac29e392a5ed0e (diff)
merge with XORG-RELEASE-1 (tag XORG-CYGWIN-LAST-MERGE)CYGWIN-RELEASE-1-MERGE
-rw-r--r--README.sgml2
-rw-r--r--man/rendition.man2
-rw-r--r--src/accel.h2
-rw-r--r--src/accelX.c2
-rw-r--r--src/cmd2d.h2
-rw-r--r--src/commonregs.h2
-rw-r--r--src/cscode.h2
-rw-r--r--src/hwcursor.c2
-rw-r--r--src/hwcursor.h2
-rw-r--r--src/rendition.c81
-rw-r--r--src/rendition.h2
-rw-r--r--src/rendition_options.h2
-rw-r--r--src/rendition_shadow.c2
-rw-r--r--src/rendition_shadow.h2
-rw-r--r--src/v1kregs.h2
-rw-r--r--src/v1krisc.c2
-rw-r--r--src/v1krisc.h2
-rw-r--r--src/v2kregs.h2
-rw-r--r--src/vboard.c2
-rw-r--r--src/vboard.h2
-rw-r--r--src/vgafont-std.data2
-rw-r--r--src/vgafont-vrx.data2
-rw-r--r--src/vgapalette.data2
-rw-r--r--src/vloaduc.c2
-rw-r--r--src/vloaduc.h2
-rw-r--r--src/vmisc.c2
-rw-r--r--src/vmisc.h2
-rw-r--r--src/vmodes.c23
-rw-r--r--src/vmodes.h2
-rw-r--r--src/vos.h2
-rw-r--r--src/vramdac.c2
-rw-r--r--src/vramdac.h2
-rw-r--r--src/vtypes.h2
33 files changed, 115 insertions, 51 deletions
diff --git a/README.sgml b/README.sgml
index a3c5391..aed0c63 100644
--- a/README.sgml
+++ b/README.sgml
@@ -8,7 +8,7 @@
<date>9 June 2000, last update by Dejan Ilic <email>dejan.ilic@home.se</email>
<ident>
-$XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/rendition.sgml,v 1.13 2003/10/19 19:47:17 dawes Exp $
+$XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/rendition.sgml,v 1.12 2000/06/17 02:30:33 dawes Exp $
</ident>
<toc>
diff --git a/man/rendition.man b/man/rendition.man
index b286f59..396f3c0 100644
--- a/man/rendition.man
+++ b/man/rendition.man
@@ -1,4 +1,4 @@
-.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition.man,v 1.3 2003/06/18 16:17:39 eich Exp $
+.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition.man,v 1.1 2001/01/24 00:06:26 dawes Exp $
.\" shorthand for double quote that works everywhere.
.ds q \N'34'
.TH RENDITION __drivermansuffix__ __vendorversion__
diff --git a/src/accel.h b/src/accel.h
index e2cfba7..ea814b6 100644
--- a/src/accel.h
+++ b/src/accel.h
@@ -3,7 +3,7 @@
*
* header file for accel.c
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/accel.h,v 1.3 1999/11/19 13:54:44 hohndel Exp $ */
+/* $XFree86$ */
#ifndef __ACCEL_H__
#define __ACCEL_H__
diff --git a/src/accelX.c b/src/accelX.c
index 04d92b5..9f1b06e 100644
--- a/src/accelX.c
+++ b/src/accelX.c
@@ -3,7 +3,7 @@
*
* accelerator functions for X
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/accelX.c,v 1.12 2002/04/04 14:05:45 eich Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/accelX.c,v 1.10 2001/06/15 21:22:54 dawes Exp $ */
diff --git a/src/cmd2d.h b/src/cmd2d.h
index 8290ac7..a3866b5 100644
--- a/src/cmd2d.h
+++ b/src/cmd2d.h
@@ -4,7 +4,7 @@
/*
* commands the 2d microcode offers
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/cmd2d.h,v 1.2 1999/10/14 04:43:14 dawes Exp $ */
+/* $XFree86$ */
#define CMD_SETUP 32
#define CMD_SET_PIX_REG 2
diff --git a/src/commonregs.h b/src/commonregs.h
index 8958bf1..e472c53 100644
--- a/src/commonregs.h
+++ b/src/commonregs.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/commonregs.h,v 1.1 1999/11/19 13:54:44 hohndel Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1kregs.h,v 1.2 1999/04/17 07:06:34 dawes Exp $ */
#ifndef __COMMONREGS_H__
#define __COMMONREGS_H__
diff --git a/src/cscode.h b/src/cscode.h
index 7ffb578..f73a438 100644
--- a/src/cscode.h
+++ b/src/cscode.h
@@ -1,7 +1,7 @@
/****************************************************************************\
* NOTE: This file generated automatically. Do not edit by hand! *
\****************************************************************************/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/cscode.h,v 1.3 1999/10/13 04:21:19 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/cscode.h,v 1.2 1999/04/17 07:06:31 dawes Exp $ */
#ifndef __CSCODE_H__
#define __CSCODE_H__
diff --git a/src/hwcursor.c b/src/hwcursor.c
index baf4c4d..e22e2f4 100644
--- a/src/hwcursor.c
+++ b/src/hwcursor.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/hwcursor.c,v 1.8 2002/04/04 14:05:45 eich Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/hwcursor.c,v 1.6 2000/02/25 21:03:00 dawes Exp $ */
/*
* includes
*/
diff --git a/src/hwcursor.h b/src/hwcursor.h
index 1387858..38b444c 100644
--- a/src/hwcursor.h
+++ b/src/hwcursor.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/hwcursor.h,v 1.4 1999/11/19 13:54:45 hohndel Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/rendition/hwcursor.h,v 1.1.2.2 1998/08/07 06:40:20 hohndel Exp $ */
/*
* file hwcursor.h
*/
diff --git a/src/rendition.c b/src/rendition.c
index 1aa9055..34ccabf 100644
--- a/src/rendition.c
+++ b/src/rendition.c
@@ -75,6 +75,22 @@
#define RENDITION_VERSION_CURRENT ((RENDITION_VERSION_MAJOR << 24) | \
(RENDITION_VERSION_MINOR << 16) | RENDITION_PATCHLEVEL)
+/*
+ * Constants for the (theoretical) maximum width and height that can
+ * be used to display data on the CRT. These were calculated from
+ * the HORZ and VERT macors, respectively, in vmodes.c.
+ */
+static const int MAX_HDISPLAY = 2048;
+static const int MAX_VDISPLAY = 2048;
+
+/*
+ * Constants for the (theoretical) maximum line length of a scan line
+ * and scan lines per screen (including overdraw). These were
+ * calculated from the HORZ and VERT macors, respectively, in vmodes.c.
+ */
+static const int MAX_HTOTAL = 2880;
+static const int MAX_VTOTAL = 2184;
+
/*
* local function prototypes
*/
@@ -533,15 +549,40 @@ renditionPreInit(ScrnInfoPtr pScreenInfo, int flags)
if (!xf86SetDepthBpp(pScreenInfo, 0, 0, 0, Support32bppFb))
return FALSE;
- if (pScreenInfo->depth == 15)
- {
- if (PCI_CHIP_V1000 != pRendition->PciInfo->chipType) {
- xf86DrvMsg(pScreenInfo->scrnIndex, X_ERROR,
- "Given depth (%d) is not supported by this chipset.\n",
- pScreenInfo->depth);
- return FALSE;
- }
- }
+ /* Verify that the color depth is supported. */
+ switch( pScreenInfo->depth ) {
+
+ case 8:
+ case 16:
+ case 24:
+ {
+ break;
+ }
+
+ case 15:
+ {
+ if (PCI_CHIP_V1000 != pRendition->PciInfo->chipType) {
+ xf86DrvMsg( pScreenInfo->scrnIndex, X_ERROR,
+ "Given depth (%d) is not supported by this chipset.\n",
+ pScreenInfo->depth);
+ return FALSE;
+ }
+ }
+
+ default:
+ {
+ xf86DrvMsg( pScreenInfo->scrnIndex, X_ERROR,
+ "Given depth (%d) is not supported by this driver\n",
+ pScreenInfo->depth );
+ return FALSE;
+ }
+
+ } /* End of switch( pScreenInfo->depth ) {*/
+
+
+ /* Print the color depth and frame buffer bits per pixel. */
+ xf86PrintDepthBpp( pScreenInfo );
+
/* collect all of the options flags and process them */
@@ -788,12 +829,13 @@ renditionPreInit(ScrnInfoPtr pScreenInfo, int flags)
* Validate the modes. Note that the limits passed to
* xf86ValidateModes() are VGA CRTC architectural limits.
*/
- pScreenInfo->maxHValue = 2080;
- pScreenInfo->maxVValue = 1025;
+ pScreenInfo->maxHValue = MAX_HTOTAL;
+ pScreenInfo->maxVValue = MAX_VTOTAL;
nModes = xf86ValidateModes(pScreenInfo,
pScreenInfo->monitor->Modes, pScreenInfo->display->modes,
- &renditionClockRange, NULL, 8, 2040, Rounding, 1, 1024,
- pScreenInfo->display->virtualX, pScreenInfo->display->virtualY,
+ &renditionClockRange, NULL, 8, MAX_HDISPLAY, Rounding,
+ 1, MAX_VDISPLAY, pScreenInfo->display->virtualX,
+ pScreenInfo->display->virtualY,
0x10000, LOOKUP_CLOSEST_CLOCK | LOOKUP_CLKDIV2);
if (nModes < 0)
@@ -1039,17 +1081,17 @@ renditionCloseScreen(int scrnIndex, ScreenPtr pScreen)
if (prenditionPriv->board.accel)
RENDITIONAccelNone(pScreenInfo);
+ if (pScreenInfo->vtSema)
+ renditionLeaveGraphics(pScreenInfo);
+
+ pScreenInfo->vtSema = FALSE;
+
if (prenditionPriv
&& (pScreen->CloseScreen = prenditionPriv->CloseScreen)) {
prenditionPriv->CloseScreen = NULL;
Closed = (*pScreen->CloseScreen)(scrnIndex, pScreen);
}
- if (pScreenInfo->vtSema)
- renditionLeaveGraphics(pScreenInfo);
-
- pScreenInfo->vtSema = FALSE;
-
#ifdef DEBUG
ErrorF("Closescreen OK...!!!!\n");
sleep(1);
@@ -1104,6 +1146,8 @@ renditionScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
verite_save(pScreenInfo);
+ pScreenInfo->vtSema = TRUE;
+
if (!renditionSetMode(pScreenInfo, pScreenInfo->currentMode))
return FALSE;
@@ -1225,7 +1269,6 @@ renditionScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if (pScreenInfo->depth > 1)
if (!xf86HandleColormaps(pScreen, 256, pScreenInfo->rgbBits,
renditionLoadPalette, NULL,
- CMAP_LOAD_EVEN_IF_OFFSCREEN|
CMAP_RELOAD_ON_MODE_SWITCH)) {
xf86DrvMsg(pScreenInfo->scrnIndex, X_ERROR,
"Colormap initialization failed\n");
diff --git a/src/rendition.h b/src/rendition.h
index 3ec6726..44035d2 100644
--- a/src/rendition.h
+++ b/src/rendition.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition.h,v 1.7 2001/05/16 06:48:10 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition.h,v 1.5 2000/02/25 21:03:02 dawes Exp $ */
#ifndef __RENDITION_H__
#define __RENDITION_H__
diff --git a/src/rendition_options.h b/src/rendition_options.h
index c41db49..414a23f 100644
--- a/src/rendition_options.h
+++ b/src/rendition_options.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition_options.h,v 1.5 2001/05/04 19:05:42 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition_options.h,v 1.4 2000/03/01 00:25:24 dawes Exp $ */
#ifndef __RENDITION_OPTION_H__
#define __RENDITION_OPTION_H__
diff --git a/src/rendition_shadow.c b/src/rendition_shadow.c
index cf93af5..8ec4a0b 100644
--- a/src/rendition_shadow.c
+++ b/src/rendition_shadow.c
@@ -4,7 +4,7 @@
* The functions used by ShadowFB
* Based on code written by Mark Vojkovich <markv@valinux.com>
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition_shadow.c,v 1.1 2000/03/01 00:25:25 dawes Exp $ */
+/* $XFree86$ */
#include "rendition.h"
#include "vtypes.h"
diff --git a/src/rendition_shadow.h b/src/rendition_shadow.h
index ec74463..19e4a5e 100644
--- a/src/rendition_shadow.h
+++ b/src/rendition_shadow.h
@@ -3,7 +3,7 @@
*
* headfile for rendition_shadow.c
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/rendition_shadow.h,v 1.1 2000/03/01 00:25:25 dawes Exp $ */
+/* $XFree86$ */
#ifndef __RENDITION_SHADOW_H__
#define __RENDITION_SHADOW_H__
diff --git a/src/v1kregs.h b/src/v1kregs.h
index af1817b..b2758b9 100644
--- a/src/v1kregs.h
+++ b/src/v1kregs.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1kregs.h,v 1.4 1999/11/19 13:54:45 hohndel Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1kregs.h,v 1.2 1999/04/17 07:06:34 dawes Exp $ */
#ifndef __V1KREGS_H__
#define __V1KREGS_H__
diff --git a/src/v1krisc.c b/src/v1krisc.c
index dc0a42d..0c18bae 100644
--- a/src/v1krisc.c
+++ b/src/v1krisc.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1krisc.c,v 1.7 2002/01/25 21:56:07 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1krisc.c,v 1.6 2000/03/31 20:13:25 dawes Exp $ */
/*
*
*/
diff --git a/src/v1krisc.h b/src/v1krisc.h
index 7301129..e005a3a 100644
--- a/src/v1krisc.h
+++ b/src/v1krisc.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1krisc.h,v 1.3 1999/10/13 04:21:21 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v1krisc.h,v 1.2 1999/04/17 07:06:34 dawes Exp $ */
/*
* file v1krisc.h
*
diff --git a/src/v2kregs.h b/src/v2kregs.h
index d2b66be..faadd6a 100644
--- a/src/v2kregs.h
+++ b/src/v2kregs.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v2kregs.h,v 1.4 1999/11/19 13:54:46 hohndel Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/v2kregs.h,v 1.2 1999/04/17 07:06:34 dawes Exp $ */
#ifndef __V2KREGS_H__
#define __V2KREGS_H__
diff --git a/src/vboard.c b/src/vboard.c
index 95a8fbc..f38f7b3 100644
--- a/src/vboard.c
+++ b/src/vboard.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vboard.c,v 1.19 2003/11/06 18:38:04 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vboard.c,v 1.18tsi Exp $ */
/*
* includes
*/
diff --git a/src/vboard.h b/src/vboard.h
index ddda206..3de5aec 100644
--- a/src/vboard.h
+++ b/src/vboard.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vboard.h,v 1.6 2000/03/31 20:13:26 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vboard.h,v 1.5 2000/02/25 21:03:04 dawes Exp $ */
/*
* vboard.h
diff --git a/src/vgafont-std.data b/src/vgafont-std.data
index db63ea8..37a3b9c 100644
--- a/src/vgafont-std.data
+++ b/src/vgafont-std.data
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vgafont-std.data,v 1.3 1999/10/13 04:21:22 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vgafont-std.data,v 1.2 1999/04/17 07:06:37 dawes Exp $ */
#ifndef __VGAFONT_STD__
#define __VGAFONT_STD__
diff --git a/src/vgafont-vrx.data b/src/vgafont-vrx.data
index ad34582..9f99844 100644
--- a/src/vgafont-vrx.data
+++ b/src/vgafont-vrx.data
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vgafont-vrx.data,v 1.3 1999/10/13 04:21:23 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vgafont-vrx.data,v 1.2 1999/04/17 07:06:38 dawes Exp $ */
#ifndef __VGAFONT_VRX__
#define __VGAFONT_VRX__
diff --git a/src/vgapalette.data b/src/vgapalette.data
index 5267608..b1926a1 100644
--- a/src/vgapalette.data
+++ b/src/vgapalette.data
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vgapalette.data,v 1.3 1999/10/13 04:21:23 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vgapalette.data,v 1.2 1999/04/17 07:06:38 dawes Exp $ */
#ifndef __VGAPALETTE__
#define __VGAPALETTE__
diff --git a/src/vloaduc.c b/src/vloaduc.c
index 2b69969..a052ce8 100644
--- a/src/vloaduc.c
+++ b/src/vloaduc.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vloaduc.c,v 1.14 2003/11/06 18:38:04 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vloaduc.c,v 1.13tsi Exp $ */
/*
* includes
*/
diff --git a/src/vloaduc.h b/src/vloaduc.h
index 0c127d1..e44f110 100644
--- a/src/vloaduc.h
+++ b/src/vloaduc.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vloaduc.h,v 1.4 2000/03/31 20:13:27 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vloaduc.h,v 1.3 1999/10/13 04:21:23 dawes Exp $ */
/*
* file vloaduc.h
diff --git a/src/vmisc.c b/src/vmisc.c
index fec54ed..ac14cf0 100644
--- a/src/vmisc.c
+++ b/src/vmisc.c
@@ -1,5 +1,5 @@
/* Misc routines used elsewhere in driver */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c,v 1.4 2000/03/31 20:13:27 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.c,v 1.3 2000/02/25 21:03:05 dawes Exp $ */
#include "rendition.h"
#include "vtypes.h"
diff --git a/src/vmisc.h b/src/vmisc.h
index c104147..5e75ea0 100644
--- a/src/vmisc.h
+++ b/src/vmisc.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.h,v 1.3 2000/03/31 20:13:27 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmisc.h,v 1.2 1999/11/19 14:59:18 hohndel Exp $ */
#ifndef __VMISC_H__
#define __VMISC_H__
diff --git a/src/vmodes.c b/src/vmodes.c
index 3e0bfd3..4c4336b 100644
--- a/src/vmodes.c
+++ b/src/vmodes.c
@@ -376,7 +376,16 @@ verite_restore(ScrnInfoPtr pScreenInfo, RenditionRegPtr reg)
int iob=pRendition->board.io_base;
verite_restoredac (pScreenInfo, reg);
- verite_out32(iob+MODEREG,reg->mode);
+ /*
+ * If this is a Verite 1000, restore the MODEREG
+ * register now. The MODEREG gets restored later
+ * for the Verite 2x00 because restoring it here
+ * has been confirmed to cause intermittent
+ * system locks.
+ */
+ if (pRendition->board.chip == V1000_DEVICE) {
+ verite_out32(iob+MODEREG,reg->mode);
+ }
verite_out8(iob+MEMENDIAN,reg->memendian);
verite_out32(iob+DRAMCTL,reg->dramctl);
verite_out32(iob+SCLKPLL,reg->sclkpll);
@@ -397,6 +406,18 @@ verite_restore(ScrnInfoPtr pScreenInfo, RenditionRegPtr reg)
while ((verite_in32(iob+CRTCSTATUS)&CRTCSTATUS_VERT_MASK) ==
CRTCSTATUS_VERT_ACTIVE);
}
+
+ /*
+ * If this is a Verite 2x00, restore the MODEREG
+ * register now. The MODEREG register is restored
+ * earlier for the Verite 1000, but is restored
+ * here for the Verite 2x00 to prevent system
+ * locks.
+ */
+ if (pRendition->board.chip != V1000_DEVICE) {
+ verite_out32(iob+MODEREG,reg->mode);
+ }
+
verite_out32(iob+CRTCHORZ,reg->crtch);
verite_out32(iob+CRTCVERT,reg->crtcv);
verite_out32(iob+FRAMEBASEA, reg->vbasea);
diff --git a/src/vmodes.h b/src/vmodes.h
index 3cb8669..4f2c308 100644
--- a/src/vmodes.h
+++ b/src/vmodes.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmodes.h,v 1.5 2002/04/04 14:05:45 eich Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vmodes.h,v 1.3 1999/10/13 04:21:24 dawes Exp $ */
/*
* file vmodes.h
*
diff --git a/src/vos.h b/src/vos.h
index e2ec54f..bcb75ab 100644
--- a/src/vos.h
+++ b/src/vos.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vos.h,v 1.9 2002/01/25 21:56:07 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vos.h,v 1.8 2000/03/31 20:13:28 dawes Exp $ */
/*
* file vos.h
*
diff --git a/src/vramdac.c b/src/vramdac.c
index 850030c..f09d198 100644
--- a/src/vramdac.c
+++ b/src/vramdac.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vramdac.c,v 1.19 2003/09/24 02:43:25 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vramdac.c,v 1.18 2002/12/11 17:23:33 dawes Exp $ */
/*
* includes
*/
diff --git a/src/vramdac.h b/src/vramdac.h
index c7db3c1..ac29672 100644
--- a/src/vramdac.h
+++ b/src/vramdac.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vramdac.h,v 1.6 2002/04/04 14:05:45 eich Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vramdac.h,v 1.4 2000/02/25 21:03:07 dawes Exp $ */
/*
* file vramdac.h
*
diff --git a/src/vtypes.h b/src/vtypes.h
index cc0482a..e33f1fd 100644
--- a/src/vtypes.h
+++ b/src/vtypes.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vtypes.h,v 1.10 2002/04/04 14:05:45 eich Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/rendition/vtypes.h,v 1.8 2001/10/28 03:33:44 tsi Exp $ */
#ifndef _VTYPES_H_
#define _VTYPES_H_