Skip to contentSkip to conversation

Proper detection of G400 DH MAX cards in matroxfb

PATCH New [email protected] 1 participant 1 message Sep 5, 2001 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

drivers/video/matrox/matroxfb_base.c Wed Sep 5 19:16:52 2001 renamed from drivers/video/matrox/matroxfb_base.c Wed Sep 5 19:04:32 2001 +9 -0
@@ -75,6 +75,9 @@
  *               "Uns Lider" <[email protected]>
  *                     G100 PLNWT fixes
  *
+ *               "Simon Kongshoj" <[email protected]>
+ *                     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

drivers/video/matrox/matroxfb_base.h Wed Sep 5 19:09:56 2001 renamed from drivers/video/matrox/matroxfb_base.h Wed Sep 5 19:04:32 2001 +1 -0
@@ -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