Another installment of the Radeon frame buffer driver patch (still against 2.4.19-pre2). * All colour modes > 8bpp are now DIRECTCOLOR (Geert inspired). * Driver now uses 'ypan' to speed up scrolling even further. * Fix CRTC pitch to match accelerator pitch (800x600x256 works again). Driver seems okay now, plays nicely with X etc. etc. Please test if you can P. diff -ur linux-2.4.19-pre2/drivers/video/radeon.h linux.pdh/drivers/video/radeon.h --- linux-2.4.19-pre2/drivers/video/radeon.h Sat Apr 6 16:34:27 2002 +++ linux.pdh/drivers/video/radeon.h Tue Apr 9 06:40:43 2002 @@ -379,6 +379,7 @@ #define SC_TOP_LEFT 0x16EC #define SC_BOTTOM_RIGHT 0x16F0 #define SRC_SC_BOTTOM_RIGHT 0x16F4 +#define RB2D_DSTCACHE_MODE 0x3428 #define RB2D_DSTCACHE_CTLSTAT 0x342C #define LVDS_GEN_CNTL 0x02d0 #define LVDS_PLL_CNTL 0x02d4 @@ -395,6 +396,7 @@ #define RADEON_BIOS_6_SCRATCH 0x0028 #define RADEON_BIOS_7_SCRATCH 0x002c +#define HDP_SOFT_RESET (1 << 26) #define CLK_PIN_CNTL 0x0001 #define PPLL_CNTL 0x0002 diff -ur linux-2.4.19-pre2/drivers/video/radeonfb.c linux.pdh/drivers/video/radeonfb.c --- linux-2.4.19-pre2/drivers/video/radeonfb.c Sat Apr 6 16:34:27 2002 +++ linux.pdh/drivers/video/radeonfb.c Wed Apr 10 00:07:53 2002 @@ -22,6 +22,13 @@ * * Special thanks to ATI DevRel team for their hardware donations. * + * 2002-04-02 Added MTRR support. Fixed 8bpp acceleration. Added + * acceleration for 16/32bpp. Applied fix from XFree86 + * for hard crash on accelerator reset. Fixed up the + * colour stuff. Peter Horton + * 2002-04-10 Make ypan work. More colour fixes, all modes >8bpp + * now DIRECTCOLOR. Match up CRTC and accelerator + * pitch. */ @@ -44,6 +51,7 @@ #include #include #include +#include #include #if defined(__powerpc__) @@ -73,18 +81,22 @@ #include