It is currently Sat, 05 Dec 2020 11:50:38 GMT



 
Author Message
 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" <unsli...@miranda.org>
  *                     G100 PLNWT fixes
  *
+ *               "Simon Kongshoj" <si...@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 majord...@vger.kernel.org
More majordomo info at   http://www.**-**.com/
Please read the FAQ at   http://www.**-**.com/



 Mon, 23 Feb 2004 01:50:07 GMT   
 
   [ 1 post ] 

Similar Threads

1. XFree 4.0 and Matrox G400 D.H. Max

2. xfree86 4.01 and g400 DH card

3. will matrox g400 DH cards run in SH mode with current drivers

4. will Matrox millenium g400 DH cards work on linux in SH mode

5. Millennium G400 or G400 MAX - Linux ?

6. Matrox G400 DH - 2 Monitors

7. G400 DH and Xfree86 4.x

8. Dual head with Matrox G400 DH

9. XFree86 4.0.1 and Matrox G400 DH ?

10. matroxfb problems with dualhead G400


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software