Skip to contentSkip to conversation

Radeonfb update and fix

PATCH Toplica Tanasković 2 participants 3 messages Jun 18, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hi, everyone!

This patch does two things:

1. Adds RV250 (R9000 series) Radeon to radeon framebuffer files.
2. Fixes small but annoying bug for Radeon P/M users. The brake was missing
in case so -ENODEV was returned for this card.

	It applies to 2.4.21 and 2.4.21-ac1, both.

	Alan and Marcelo please apply.
Signature · 2 lines
Pozdrav,
Toplica Tanasković
drivers/video/radeonfb.c renamed from linux-2.4.21/drivers/video/radeonfb.c +8 -1
diff -ruN orig/linux-2.4.21/drivers/video/radeonfb.c linux/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 R9000 IF ");
+			rinfo->hasCRTC2 = 1;
+			break;
 		default:
 			return -ENODEV;
 	}
drivers/video/radeon.h renamed from linux-2.4.21/drivers/video/radeon.h +1 -0
diff -ruN orig/linux-2.4.21/drivers/video/radeon.h linux/drivers/video/radeon.h
@@ -15,6 +15,7 @@
 #define PCI_DEVICE_ID_RADEON_PM		0x4c52
 #define PCI_DEVICE_ID_RADEON_QL		0x514c
 #define PCI_DEVICE_ID_RADEON_QW		0x5157
+#define PCI_DEVICE_ID_RADEON_IF		0x4966
 
 #define RADEON_REGSIZE			0x4000
 
#1 lore raw
Quoted 9 lines · Toplica Tanasković

Hi, everyone!

This patch does two things:

1. Adds RV250 (R9000 series) Radeon to radeon framebuffer files.
2. Fixes small but annoying bug for Radeon P/M users. The brake was missing
in case so -ENODEV was returned for this card.

	It applies to 2.4.21 and 2.4.21-ac1, both.

Well... ATI keeps claiming there is no such thing as Radeon P/M, there is indeed a mach64 P/M chip and the device ID there matches a mach64 chip. Do you own such a thing that works with radeonfb or knows somebody who do ?

Ben.

#2 lore raw

Dana sreda 18. jun 2003. 23:06 napisali ste:

Quoted 5 lines

Well... ATI keeps claiming there is no such thing as Radeon P/M, there is indeed a mach64 P/M chip and the device ID there matches a mach64 chip. Do you own such a thing that works with radeonfb or knows somebody who do ?

Nope. Sorry.

Signature · 2 lines
Pozdrav,
Toplica Tanasković