lkml.org 
[lkml]   [2001]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] Proper detection of G400 DH MAX cards in matroxfb
From
Subject[PATCH] Proper detection of G400 DH MAX cards in matroxfb
Hey,

A simple little patch on matroxfb_base.{c/h} in the 2.4.8 kernel.
The current matroxfb driver doesn't detect G400 MAX Dual-Head cards
properly, instead calling them "Unknown G400" and setting their DAC
speed to 300 MHz instead of the correct 360 MHz. This patch fixes
that.

--simon

diff -urN -X dontdiff linux-vanilla/drivers/video/matrox/matroxfb_base.c kernel-source-2.4.8/drivers/vide
o/matrox/matroxfb_base.c
--- linux-vanilla/drivers/video/matrox/matroxfb_base.c Wed Sep 5 19:04:32 2001
+++ kernel-source-2.4.8/drivers/video/matrox/matroxfb_base.c Wed Sep 5 19:16:52 2001
@@ -75,6 +75,9 @@
* "Uns Lider" <unslider@miranda.org>
* G100 PLNWT fixes
*
+ * "Simon Kongshoj" <simon@home1.gvdnet.dk>
+ * G400 MAX Dual-Head detection
+ *
* (following author is not in any relation with this code, but his code
* is included in this driver)
*
@@ -1566,6 +1569,12 @@
360000,
&vbG400,
"Millennium G400 MAX (AGP)"},
+ {PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0x80,
+ PCI_SS_VENDOR_ID_MATROX, PCI_SS_ID_MATROX_MILLENNIUM_G400_MAX_DUAL_AGP,
+ DEVF_G400,
+ 360000,
+ &vbG400,
+ "Millennium G400 MAX Dual-Head (AGP)"},
{PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400_AGP, 0x80,
0, 0,
DEVF_G400,
diff -urN -X dontdiff linux-vanilla/drivers/video/matrox/matroxfb_base.h kernel-source-2.4.8/drivers/vide
o/matrox/matroxfb_base.h
--- linux-vanilla/drivers/video/matrox/matroxfb_base.h Wed Sep 5 19:04:32 2001
+++ kernel-source-2.4.8/drivers/video/matrox/matroxfb_base.h Wed Sep 5 19:09:56 2001
@@ -171,6 +171,7 @@
#define PCI_SS_ID_MATROX_MGA_G100_PCI 0xFF05
#define PCI_SS_ID_MATROX_MGA_G100_AGP 0x1001
#define PCI_SS_ID_MATROX_MILLENNIUM_G400_MAX_AGP 0x2179
+#define PCI_SS_ID_MATROX_MILLENNIUM_G400_MAX_DUAL_AGP 0x217D
#define PCI_SS_ID_SIEMENS_MGA_G100_AGP 0x001E /* 30 */
#define PCI_SS_ID_SIEMENS_MGA_G200_AGP 0x0032 /* 50 */
#endif






-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [W:0.025 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site