]> git.baikalelectronics.ru Git - kernel.git/commit
video: Fix the HGA framebuffer driver
authorBrent Cook <busterb@gmail.com>
Fri, 31 Dec 2010 05:56:50 +0000 (05:56 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 6 Jan 2011 06:48:13 +0000 (15:48 +0900)
commit05538477994ae0006391c32e34ee652af8d72d88
treeb8287b72e0a832496eb49fc77e17add713273c55
parentc0affa9761c413e1fa94d28a8c6d145591b67d6b
video: Fix the HGA framebuffer driver

Resurrected some old hardware and fixed up the hgafb driver to work
again. Only tested with fbcon, since most fbdev-based software appears
to only support 12bpp and up. It does not appear that this driver has
worked for at least the entire 2.6.x series, perhaps since 2002.

Hercules graphics hardware uses packed pixels horizontally, but rows are
not linear. In other words, the pixels are not packed vertically. This
means that custom imageblit, fillrect and copyarea need to be written
specific to the hardware.

 * Removed the experimental acceleration option, since it is required
   for the hardware to work.
 * Fixed imageblit to work with fb_image's wider than 8 pixels.
 * Updated configuration text (HGA hardware is from 1984)

Signed-off-by: Brent Cook <busterb@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/Kconfig
drivers/video/hgafb.c