[PATCH 2/5] matroxfb: Add support for Mystique AGP

From
syrjala@sci.fi
Date
2005-10-31 22:12:28
Add new entries for Mystique AGP with the PCI ID 0x051e.

I don't actually have such boards but according to google they do exist. 
Curiosly X.Org doesn't recognize that PCI ID. And what's even more 
interesting is that Matrox's own Windows drivers don't recognize it 
either. After going through about a dozen different versions I did find 
one older driver that does list this particular ID. It is also listed in 
the pci.ids file.

I'm not sure if non-220 AGP chips exist. I left the chip revision check 
intact for AGP chips nonetheless.

Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
---

 drivers/video/matrox/matroxfb_base.c |   14 ++++++++++++++
 include/linux/pci_ids.h              |    1 +
 2 files changed, 15 insertions(+)

diff -uprN linux-2.6.14-1/drivers/video/matrox/matroxfb_base.c linux-2.6.14-2/drivers/video/matrox/matroxfb_base.c
--- linux-2.6.14-1/drivers/video/matrox/matroxfb_base.c	2005-10-31 17:44:11.000000000 +0200
+++ linux-2.6.14-2/drivers/video/matrox/matroxfb_base.c	2005-10-31 17:45:41.000000000 +0200
@@ -1428,6 +1428,20 @@ static struct board {
 		MGA_1164,
 		&vbMystique,
 		"Mystique 220 (PCI)"},
+	{PCI_VENDOR_ID_MATROX,	PCI_DEVICE_ID_MATROX_MYS_AGP,	0x02,
+		0,			0,
+		DEVF_VIDEO64BIT | DEVF_CROSS4MB,
+		180000,
+		MGA_1064,
+		&vbMystique,
+		"Mystique (AGP)"},
+	{PCI_VENDOR_ID_MATROX,	PCI_DEVICE_ID_MATROX_MYS_AGP,	0xFF,
+		0,			0,
+		DEVF_VIDEO64BIT | DEVF_SWAPS | DEVF_CROSS4MB,
+		220000,
+		MGA_1164,
+		&vbMystique,
+		"Mystique 220 (AGP)"},
 #endif
 #ifdef CONFIG_FB_MATROX_G
 	{PCI_VENDOR_ID_MATROX,	PCI_DEVICE_ID_MATROX_G100_MM,	0xFF,
diff -uprN linux-2.6.14-1/include/linux/pci_ids.h linux-2.6.14-2/include/linux/pci_ids.h
--- linux-2.6.14-1/include/linux/pci_ids.h	2005-10-31 17:43:06.000000000 +0200
+++ linux-2.6.14-2/include/linux/pci_ids.h	2005-10-31 17:46:34.000000000 +0200
@@ -568,6 +568,7 @@
 #define PCI_DEVICE_ID_MATROX_MIL	0x0519
 #define PCI_DEVICE_ID_MATROX_MYS	0x051A
 #define PCI_DEVICE_ID_MATROX_MIL_2	0x051b
+#define PCI_DEVICE_ID_MATROX_MYS_AGP	0x051e
 #define PCI_DEVICE_ID_MATROX_MIL_2_AGP	0x051f
 #define PCI_DEVICE_ID_MATROX_MGA_IMP	0x0d10
 #define PCI_DEVICE_ID_MATROX_G100_MM	0x1000



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help