lkml.org 
[lkml]   [2003]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRadeonfb update and fix
Date
	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.
--
Pozdrav,
Toplica Tanasković
diff -ruN orig/linux-2.4.21/drivers/video/radeonfb.c linux/drivers/video/radeonfb.c
--- orig/linux-2.4.21/drivers/video/radeonfb.c 2003-06-14 00:38:58.000000000 +0200
+++ linux/drivers/video/radeonfb.c 2003-06-14 01:46:30.000000000 +0200
@@ -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;
}
diff -ruN orig/linux-2.4.21/drivers/video/radeon.h linux/drivers/video/radeon.h
--- orig/linux-2.4.21/drivers/video/radeon.h 2002-11-29 00:53:15.000000000 +0100
+++ linux/drivers/video/radeon.h 2003-06-14 01:43:46.000000000 +0200
@@ -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
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.041 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site