changeset 1967:4e3e03effdac

Radeon2 support
author nick
date Wed, 26 Sep 2001 08:14:37 +0000
parents 9d528800f110
children dde27e9e34bf
files drivers/radeon/radeon.h drivers/radeon/radeonfb.c
diffstat 2 files changed, 19 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/radeon/radeon.h	Wed Sep 26 06:33:38 2001 +0000
+++ b/drivers/radeon/radeon.h	Wed Sep 26 08:14:37 2001 +0000
@@ -12,6 +12,8 @@
 #define PCI_DEVICE_ID_RADEON_LY		0x4C59
 #define PCI_DEVICE_ID_RADEON_LZ		0x4C5A
 #define PCI_DEVICE_ID_RADEON_LW		0x4C57
+#define PCI_DEVICE_ID_R200_QL		0x514C
+#define PCI_DEVICE_ID_RV200_QW		0x5157
 
 #define RADEON_REGSIZE			0x4000
 
--- a/drivers/radeon/radeonfb.c	Wed Sep 26 06:33:38 2001 +0000
+++ b/drivers/radeon/radeonfb.c	Wed Sep 26 08:14:37 2001 +0000
@@ -102,7 +102,9 @@
 	RADEON_QZ,
 	RADEON_LY,
 	RADEON_LZ,
-	RADEON_LW
+	RADEON_LW,
+	R200_QL,
+	RV200_QW
 };
 
 enum radeon_montype
@@ -143,6 +145,8 @@
 	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_LY, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_LY},
 	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_LZ, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_LZ},
 	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_LW, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_LW},
+	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_R200_QL, PCI_ANY_ID, PCI_ANY_ID, 0, 0, R200_QL},
+	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RV200_QW, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RV200_QW},
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table);
@@ -248,7 +252,7 @@
 	struct radeon_regs state;
 	struct radeon_regs init_state;
 
-	char name[14];
+	char name[17];
 	char ram_type[12];
 
 	int hasCRTC2;
@@ -256,6 +260,7 @@
 	int dviDispType;
 	int hasTVout;
 	int isM7;
+	int isR200;
 
 	u32 mmio_base_phys;
 	u32 fb_base_phys;
@@ -794,6 +799,16 @@
 			rinfo->isM7 = 1;
 			strcpy(rinfo->name, "Radeon M7 LW ");
 			break;
+		case PCI_DEVICE_ID_R200_QL:
+			rinfo->hasCRTC2 = 1;
+			rinfo->isR200 = 1;
+			strcpy(rinfo->name, "Radeon2 8500 LW ");
+			break;
+		case PCI_DEVICE_ID_RV200_QW:
+			rinfo->hasCRTC2 = 1;
+			rinfo->isM7 = 1;
+			strcpy(rinfo->name, "Radeon2 7500 QW ");
+			break;
 		default:
 			release_mem_region (rinfo->mmio_base_phys,
 				    pci_resource_len(pdev, 2));