Skip to contentSkip to conversation

2.4.21-rc2 Radeon 9000 fb update

PATCH New Toplica Tanasković 1 participant 1 message May 11, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.21-rc2 Radeon 9000 fb update

This patch adds RV250 Radeon 9000 if ID to framebuffer driver, and fixes bug
in radeonfb.c for Radeon PM in radeonfb_pci_register (missing break in case).

Marcello, please apply.

Signature · 2 lines
Best wishes,
Tanasković Toplica
drivers/video/radeonfb.c renamed from linux-2.4.21-rc2/drivers/video/radeonfb.c +14 -7
diff -ruN orig/linux-2.4.21-rc2/drivers/video/radeonfb.c linux-2.4.21-rc2/drivers/video/radeonfb.c
@@ -101,7 +101,8 @@
 	RADEON_LW,	/* Radeon Mobility M7 */
 	RADEON_LY,	/* Radeon Mobility M6 */
 	RADEON_LZ,	/* Radeon Mobility M6 */
-	RADEON_PM	/* Radeon Mobility P/M */
+	RADEON_PM,	/* Radeon Mobility P/M */
+	RADEON_IF	/* Radeon RV250 (9000) */
 };
 
 
@@ -129,6 +130,7 @@
 	{ 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_PM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_PM},
+	{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_IF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_IF},
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, radeonfb_pci_table);
@@ -861,6 +863,11 @@
 	        case PCI_DEVICE_ID_RADEON_PM:
 			strcpy(rinfo->name, "Radeon P/M ");
 			rinfo->hasCRTC2 = 1;
+			break;
+		case PCI_DEVICE_ID_RADEON_IF:
+			strcpy(rinfo->name, "Radeon 9000 ");
+			rinfo->hasCRTC2 = 1;
+			break;
 		default:
 			return -ENODEV;
 	}
@@ -893,7 +900,7 @@
 			rinfo->ram.cl = 2;
 			rinfo->ram.loop_latency = 16;
 			rinfo->ram.rloop = 16;
-	
+
 			break;
 		case 1:
 			/* DDR SGRAM */
@@ -1053,18 +1060,18 @@
 static void __devexit radeonfb_pci_unregister (struct pci_dev *pdev)
 {
         struct radeonfb_info *rinfo = pci_get_drvdata(pdev);
- 
+
         if (!rinfo)
                 return;
- 
+
 	/* restore original state */
         radeon_write_mode (rinfo, &rinfo->init_state);
- 
+
         unregister_framebuffer ((struct fb_info *) rinfo);
-                
+
         iounmap ((void*)rinfo->mmio_base);
         iounmap ((void*)rinfo->fb_base);
- 
+
 	release_mem_region (rinfo->mmio_base_phys,
 			    pci_resource_len(pdev, 2));
 	release_mem_region (rinfo->fb_base_phys,
drivers/video/radeon.h renamed from linux-2.4.21-rc2/drivers/video/radeon.h +1 -0
diff -ruN orig/linux-2.4.21-rc2/drivers/video/radeon.h linux-2.4.21-rc2/drivers/video/radeon.h
@@ -9,6 +9,7 @@
 #define PCI_DEVICE_ID_RADEON_QG		0x5147
 #define PCI_DEVICE_ID_RADEON_QY		0x5159
 #define PCI_DEVICE_ID_RADEON_QZ		0x515a
+#define PCI_DEVICE_ID_RADEON_IF		0x4966
 #define PCI_DEVICE_ID_RADEON_LW		0x4c57
 #define PCI_DEVICE_ID_RADEON_LY		0x4c59
 #define PCI_DEVICE_ID_RADEON_LZ		0x4c5a