# HG changeset patch # User nick # Date 1007293544 0 # Node ID ec69d8238c84268a1f6b1eabd4b36ce39f0d7f7d # Parent cc33b869b9a065ebfd410752886abef25c1a06e5 Support for MTRR and 'swap_fourcc' flag diff -r cc33b869b9a0 -r ec69d8238c84 drivers/radeon/README --- a/drivers/radeon/README Sun Dec 02 11:16:25 2001 +0000 +++ b/drivers/radeon/README Sun Dec 02 11:45:44 2001 +0000 @@ -65,8 +65,27 @@ deinterlace=on/off enables/disables adaprive deinterlacing deinterlace_pattern=hexval defines deinterlacing pattern +Driver parameters: +~~~~~~~~~~~~~~~~~~ + +You can use some additional parameters during module loading: +Example: +modprobe radeon_vid swap_fourcc=1 + +List of driver's parameters: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mtrr=1/0 configures MTRR (if available) default = 1 +swap_fourcc=1/0 performs byte swapping of passed fourcc. + (It's required for compatibility with -vo mga) + +To know more about driver's parameters execute: +modinfo radeon_vid +or +modinfo rage128_vid + Note: ~~~~~ +For command line of mplayer: You can pass only options with can be recognized by vo_vesa driver. (Indeed radeon_vid and rage128_vid are stupid things and can create video overlay only. But mode switching and other adjustement performs @@ -77,4 +96,10 @@ This stuff (radeon(rage128)_vid) currently doesn't support any standards. So after implementing linux standards I'll fully rewrite this driver. -Enjoy \ No newline at end of file +Full example: +~~~~~~~~~~~~~ +modprobe radeon_vid mtrr=1 +echo "deinterlace_pattern=F0055555">>/dev/radeon_vid +mplayer -vo vesa:lvo:/dev/radeon_vid -fs -zoom -bpp 32 filename + +Enjoy! \ No newline at end of file diff -r cc33b869b9a0 -r ec69d8238c84 drivers/radeon/radeon_vid.c --- a/drivers/radeon/radeon_vid.c Sun Dec 02 11:16:25 2001 +0000 +++ b/drivers/radeon/radeon_vid.c Sun Dec 02 11:45:44 2001 +0000 @@ -53,6 +53,7 @@ #include #include #include +#include #include "radeon_vid.h" #include "radeon.h" @@ -80,6 +81,15 @@ #ifdef MODULE_LICENSE MODULE_LICENSE("GPL"); #endif +#ifdef CONFIG_MTRR +MODULE_PARM(mtrr, "i"); +MODULE_PARM_DESC(mtrr, "Tune MTRR (touch=1(default))"); +static int mtrr __initdata = 1; +static struct { int vram; int vram_valid; } smtrr; +#endif +MODULE_PARM(swap_fourcc, "i"); +MODULE_PARM_DESC(swap_fourcc, "Swap fourcc (dont't swap=0(default))"); +static int swap_fourcc __initdata = 0; #ifdef RAGE128 #define RVID_MSG "rage128_vid: " @@ -260,14 +270,14 @@ #define INREG(addr) readl((radeon_mmio_base)+addr) #define OUTREG(addr,val) writel(val, (radeon_mmio_base)+addr) -static void radeon_vid_save_state( void ) +static void __init radeon_vid_save_state( void ) { size_t i; for(i=0;i