Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2001 02:58:49 -0500 (EST)
From:      Dan Langille <dan@langille.org>
To:        freebsd-ports@freebsd.org
Cc:        jmz@freebsd.org
Subject:   XFree86-4 patch to support ATI XPERT 128
Message-ID:  <20011224025658.C86781-100000@xeon.unixathome.org>

next in thread | raw e-mail | index | archive | help
With thanks to Chris Dillon, I've been able to create a patch for
XFree86-4 which correctly detects an ATI XPERT 128.  I would appreciate
another pair of eyes to review the patches.  I suppose the correct thing
to do is forward them to the XFree86 project, but I'd like to get the
solution confirmed by someone else first.

Thanks

xc/programs/Xserver/hw/xfree86/common

--- xf86PciInfo.h.org	Fri May 11 03:56:10 2001
+++ xf86PciInfo.h	Mon Dec 24 02:08:39 2001
@@ -234,6 +234,7 @@
 #define PCI_CHIP_RAGE128ML	0x4D4C
 #define PCI_CHIP_RAGE128PD	0x5044
 #define PCI_CHIP_RAGE128PF	0x5046
+#define PCI_CHIP_RAGE128PE	0x5050
 #define PCI_CHIP_RAGE128PR	0x5052
 #define PCI_CHIP_RADEON_QD	0x5144
 #define PCI_CHIP_RADEON_QE	0x5145
@@ -826,6 +827,7 @@
 				{PCI_CHIP_RAGE128MF,	"Rage 128 Mobility MF",0},
 				{PCI_CHIP_RAGE128ML,	"Rage 128 Mobility ML",0},
 				{PCI_CHIP_RAGE128PD,	"Rage 128 Pro PD",0},
+				{PCI_CHIP_RAGE128PE,	"Rage 128 Xpert 128",0},
 				{PCI_CHIP_RAGE128PF,	"Rage 128 Pro PF",0},
 				{PCI_CHIP_RAGE128PR,	"Rage 128 Pro PR",0},
 				{PCI_CHIP_RADEON_QD,	"Radeon QD",0},

xc/programs/Xserver/hw/xfree86/drivers/ati

--- r128_probe.c.org	Mon Dec 24 02:14:34 2001
+++ r128_probe.c	Mon Dec 24 02:18:50 2001
@@ -81,6 +81,7 @@
     { PCI_CHIP_RAGE128RK, "ATI Rage 128 RK (PCI)" },
     { PCI_CHIP_RAGE128RL, "ATI Rage 128 RL (AGP)" },
     { PCI_CHIP_RAGE128PD, "ATI Rage 128 Pro PD (PCI)" },
+    { PCI_CHIP_RAGE128PE, "ATI Rage 128 Xpert 128 (PCI)" },
     { PCI_CHIP_RAGE128PF, "ATI Rage 128 Pro PF (AGP)" },
     { PCI_CHIP_RAGE128LE, "ATI Rage 128 Mobility LE (PCI)" },
     { PCI_CHIP_RAGE128LF, "ATI Rage 128 Mobility LF (AGP)" },
@@ -96,6 +97,7 @@
     { PCI_CHIP_RAGE128RK, PCI_CHIP_RAGE128RK, RES_SHARED_VGA },
     { PCI_CHIP_RAGE128RL, PCI_CHIP_RAGE128RL, RES_SHARED_VGA },
     { PCI_CHIP_RAGE128PD, PCI_CHIP_RAGE128PD, RES_SHARED_VGA },
+    { PCI_CHIP_RAGE128PE, PCI_CHIP_RAGE128PE, RES_SHARED_VGA },
     { PCI_CHIP_RAGE128PF, PCI_CHIP_RAGE128PF, RES_SHARED_VGA },
     { PCI_CHIP_RAGE128LE, PCI_CHIP_RAGE128LE, RES_SHARED_VGA },
     { PCI_CHIP_RAGE128LF, PCI_CHIP_RAGE128LF, RES_SHARED_VGA },
--- r128_driver.c.org	Mon Dec 24 02:14:23 2001
+++ r128_driver.c	Mon Dec 24 02:17:28 2001
@@ -895,6 +895,7 @@
 	case PCI_CHIP_RAGE128RK:
 	case PCI_CHIP_RAGE128RL:
 	case PCI_CHIP_RAGE128PD:
+	case PCI_CHIP_RAGE128PE:
 	case PCI_CHIP_RAGE128PF:
 	default:                 info->HasPanelRegs = FALSE; break;
 	}
@@ -1025,7 +1026,8 @@
 	case PCI_CHIP_RAGE128LE:
 	case PCI_CHIP_RAGE128RE:
 	case PCI_CHIP_RAGE128RK:
-	case PCI_CHIP_RAGE128PD: info->IsPCI = TRUE;  break;
+	case PCI_CHIP_RAGE128PD:
+	case PCI_CHIP_RAGE128PE: info->IsPCI = TRUE;  break;
 	case PCI_CHIP_RAGE128LF:
 	case PCI_CHIP_RAGE128MF:
 	case PCI_CHIP_RAGE128ML:
--- r128_dri.c.org	Mon Dec 24 02:13:31 2001
+++ r128_dri.c	Mon Dec 24 02:22:47 2001
@@ -705,6 +705,7 @@
     case PCI_CHIP_RAGE128LE:
     case PCI_CHIP_RAGE128RE:
     case PCI_CHIP_RAGE128RK:
+    case PCI_CHIP_RAGE128PE:
 	/* This is a PCI card, do nothing */
 	break;



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011224025658.C86781-100000>