Skip to contentSkip to conversation

radeonfb accelerator id in 2.4.19

PATCH In review Ingo Albrecht 2 participants 4 messages Apr 5, 2002 – Apr 7, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 radeonfb accelerator id in 2.4.19

This small patch assigns an accelerator id to radeonfb. The reason for this should be obvious.

This is against 2.4.19-pre6, but making it apply against something else shouldnt be a lot of work ;)

I read LKML, but not fbdev-devel.

Ingo

Signature · 2 lines
Let the people think they govern and they will be governed.
                -- William Penn, founder of Pennsylvania
#1 lore raw

Stupid me. Forgot the patch.

Quoted 14 lines · Ingo Albrecht

This small patch assigns an accelerator id to radeonfb. The reason for this should be obvious.

This is against 2.4.19-pre6, but making it apply against something else shouldnt be a lot of work ;)

I read LKML, but not fbdev-devel.

Ingo

Signature · 2 lines
Let the people think they govern and they will be governed.
                -- William Penn, founder of Pennsylvania
Signature · 2 lines
Let the people think they govern and they will be governed.
                -- William Penn, founder of Pennsylvania
drivers/video/radeonfb.c +1 -1
diff -Nurb linux-2.4.19-pre6-orig/drivers/video/radeonfb.c linux/drivers/video/radeonfb.c
@@ -1855,7 +1855,7 @@
 	if (noaccel)
 	        fix->accel = FB_ACCEL_NONE;
 	else
-		fix->accel = 40;	/* XXX */
+		fix->accel = FB_ACCEL_ATI_RADEON;
         
         return 0;
 }
include/linux/fb.h +1 -0
diff -Nurb linux-2.4.19-pre6-orig/include/linux/fb.h linux/include/linux/fb.h
@@ -93,6 +93,7 @@
 #define FB_ACCEL_IGS_CYBER2010	34	/* CyberPro 2010		*/
 #define FB_ACCEL_IGS_CYBER5000	35	/* CyberPro 5000		*/
 #define FB_ACCEL_SIS_GLAMOUR    36	/* SiS 300/630/540              */
+#define FB_ACCEL_ATI_RADEON	37	/* ATI Radeon family		*/
 
 struct fb_fix_screeninfo {
 	char id[16];			/* identification string eg "TT Builtin" */
#2 lore raw
Quoted 1 line · Ingo Albrecht

Stupid me. Forgot the patch.

And sent one that doesnt apply. Bad day for me.
Well, this one does.

Thanks to marcello for wasting his time on
trying to apply the old one ;)

Ingo

Signature · 2 lines
Let the people think they govern and they will be governed.
                -- William Penn, founder of Pennsylvania
drivers/video/radeonfb.c +1 -1
diff -Nurb linux-2.4.19-pre6/drivers/video/radeonfb.c linux/drivers/video/radeonfb.c
@@ -1855,7 +1855,7 @@
 	if (noaccel)
 	        fix->accel = FB_ACCEL_NONE;
 	else
-		fix->accel = 40;	/* XXX */
+		fix->accel = FB_ACCEL_ATI_RADEON;
         
         return 0;
 }
include/linux/fb.h +1 -0
diff -Nurb linux-2.4.19-pre6/include/linux/fb.h linux/include/linux/fb.h
@@ -94,6 +94,7 @@
 #define FB_ACCEL_IGS_CYBER5000	35	/* CyberPro 5000		*/
 #define FB_ACCEL_SIS_GLAMOUR    36	/* SiS 300/630/540              */
 #define FB_ACCEL_3DLABS_PERMEDIA3 37	/* 3Dlabs Permedia 3		*/
+#define FB_ACCEL_ATI_RADEON	38	/* ATI Radeon family		*/
 
 
 #define FB_ACCEL_NEOMAGIC_NM2070 90	/* NeoMagic NM2070              */
#3 lore raw
Quoted 8 lines · Ingo Albrecht
Quoted 1 line · Ingo Albrecht

Stupid me. Forgot the patch.

And sent one that doesnt apply. Bad day for me.
Well, this one does.

Thanks to marcello for wasting his time on
trying to apply the old one ;)

Latest one applied.