gxfb: replace FBSIZE config option with a module parameter
Use a command line option (vram) rather than hardcoding the vram size. LxFB already does this; it's useful for machines that can't query the BIOS for fb size. This patch originated from David Woodhouse, was modified by Jordan Crouse, and was then modified further by me. This also adds some gxfb documentation in Documentation/fb. Signed-off-by: Andres Salomon <dilinger@debian.org> Cc: Jordan Crouse <jordan.crouse@amd.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
0a5e790987
commit
fa20c8a6e5
@@ -21,12 +21,6 @@
|
||||
#include "geodefb.h"
|
||||
#include "display_gx.h"
|
||||
|
||||
#ifdef CONFIG_FB_GEODE_GX_SET_FBSIZE
|
||||
unsigned int gx_frame_buffer_size(void)
|
||||
{
|
||||
return CONFIG_FB_GEODE_GX_FBSIZE;
|
||||
}
|
||||
#else
|
||||
unsigned int gx_frame_buffer_size(void)
|
||||
{
|
||||
unsigned int val;
|
||||
@@ -41,7 +35,6 @@ unsigned int gx_frame_buffer_size(void)
|
||||
val = (unsigned int)(inw(0xAC1E)) & 0xFFl;
|
||||
return (val << 19);
|
||||
}
|
||||
#endif
|
||||
|
||||
int gx_line_delta(int xres, int bpp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user