savagefb: VGA state save and restore
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 8 May 2007 07:38:36 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:29 +0000 (11:15 -0700)
commit22d832edcace45b26ced76efef6c863449e4e060
tree155190ea0e8d4b1504c754d272518cd9da147771
parentf7829158bce2c8180bf7a1cb922cad812d3a2788
savagefb: VGA state save and restore

Allow the saving and restoration of VGA text mode.  The state is saved on the
first open and restored on the last close. Because of the VGA registers are
linearly mapped to the MMIO space, MMIO access is used which is not limited to
X86 platforms nor to the primary display device.

An echo 0 > /sys/class/vtconsole/vtcon1/bind will convert the display from
graphics to text mode.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/Makefile
drivers/video/savage/savagefb.h
drivers/video/savage/savagefb_driver.c