summaryrefslogtreecommitdiff
path: root/driver/xf86-video-newport
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-06-05 20:40:50 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-06-05 20:40:50 +0000
commit8e630a9a634133ffe14268eeca5355b5afac085d (patch)
tree31551695747e20a6950bd00ca4156c7d3687f538 /driver/xf86-video-newport
parent3f691f9404b0f2e30d48ee55f992bec73b144de9 (diff)
update xf86-video-newport to 0.2.2
Diffstat (limited to 'driver/xf86-video-newport')
-rw-r--r--driver/xf86-video-newport/configure.ac2
-rw-r--r--driver/xf86-video-newport/man/newport.man2
-rw-r--r--driver/xf86-video-newport/src/newport_driver.c28
3 files changed, 14 insertions, 18 deletions
diff --git a/driver/xf86-video-newport/configure.ac b/driver/xf86-video-newport/configure.ac
index 5aa16091d..4478cbcab 100644
--- a/driver/xf86-video-newport/configure.ac
+++ b/driver/xf86-video-newport/configure.ac
@@ -22,7 +22,7 @@
AC_PREREQ(2.57)
AC_INIT([xf86-video-newport],
- 0.2.1,
+ 0.2.2,
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
xf86-video-newport)
diff --git a/driver/xf86-video-newport/man/newport.man b/driver/xf86-video-newport/man/newport.man
index 701735a82..1fbc5fea4 100644
--- a/driver/xf86-video-newport/man/newport.man
+++ b/driver/xf86-video-newport/man/newport.man
@@ -39,7 +39,7 @@ Enable or disable the HW cursor. Default: on.
.BI "Option \*qBusID\*q \*q"integer \*q
Set to 1 for the Indigo2 XL. Default: 0
.SH "SEE ALSO"
-__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), xorgconfig(__appmansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
+__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
.SH AUTHORS
Authors:
Guido GÜnther \fIagx@sigxcpu.org\fP
diff --git a/driver/xf86-video-newport/src/newport_driver.c b/driver/xf86-video-newport/src/newport_driver.c
index 2bb6cab93..757fd1205 100644
--- a/driver/xf86-video-newport/src/newport_driver.c
+++ b/driver/xf86-video-newport/src/newport_driver.c
@@ -1,6 +1,4 @@
/*
- * Id: newport_driver.c,v 1.2 2000/11/29 20:58:10 agx Exp $
- *
* Driver for the SGI Indy's Newport graphics card
*
* This driver is based on the newport.c & newport_con.c kernel code
@@ -30,7 +28,6 @@
* Project.
*
*/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/newport/newport_driver.c,v 1.25 2003/04/23 21:51:41 tsi Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -62,9 +59,9 @@
#define NEWPORT_VERSION 4000
#define NEWPORT_NAME "NEWPORT"
#define NEWPORT_DRIVER_NAME "newport"
-#define NEWPORT_MAJOR_VERSION 0
-#define NEWPORT_MINOR_VERSION 2
-#define NEWPORT_PATCHLEVEL 0
+#define NEWPORT_MAJOR_VERSION PACKAGE_VERSION_MAJOR
+#define NEWPORT_MINOR_VERSION PACKAGE_VERSION_MINOR
+#define NEWPORT_PATCHLEVEL PACKAGE_VERSION_PATCHLEVEL
/* Prototypes ------------------------------------------------------- */
@@ -272,17 +269,13 @@ NewportProbe(DriverPtr drv, int flags)
int entity;
ScrnInfoPtr pScrn = NULL;
- /* This is a hack because don't have the RAC info(and don't want it).
- * Set it as an ISA entity to get the entity field set up right.
- */
- entity = xf86ClaimIsaSlot(drv, 0, dev, TRUE);
+ entity = xf86ClaimNoSlot(drv, 0, dev, TRUE);
base = (NEWPORT_BASE_ADDR0
+ busID * NEWPORT_BASE_OFFSET);
RANGE(range[0], base, base + sizeof(NewportRegs),\
ResExcMemBlock);
- pScrn = xf86ConfigIsaEntity(pScrn, 0, entity, NULL, range, \
- NULL, NULL, NULL, NULL);
- /* Allocate a ScrnInfoRec */
+ pScrn = xf86AllocateScreen(drv, 0);
+ xf86AddEntityToScreen(pScrn, entity);
pScrn->driverVersion = NEWPORT_VERSION;
pScrn->driverName = NEWPORT_DRIVER_NAME;
pScrn->name = NEWPORT_NAME;
@@ -593,12 +586,15 @@ NewportScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
pNewport->NoAccel = FALSE;
if (xf86ReturnOptValBool(pNewport->Options, OPTION_NOACCEL, FALSE))
{
- if (!xf86LoadSubModule(pScrn, "xaa"))
- return FALSE;
- xf86LoaderReqSymLists(xaaSymbols, NULL);
pNewport->NoAccel = TRUE;
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Acceleration disabled\n");
}
+ if (!pNewport->NoAccel) {
+ if (!xf86LoadSubModule(pScrn, "xaa"))
+ pNewport->NoAccel = TRUE;
+ else
+ xf86LoaderReqSymLists(xaaSymbols, NULL);
+ }
#if 0
if (pScrn->bitsPerPixel < 24)
{ /* not implemented yet */