]> git.baikalelectronics.ru Git - kernel.git/commit
nvidiafb: VGA state save and restore
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 8 May 2007 07:38:33 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:28 +0000 (11:15 -0700)
commit994e786bfd4ac9eca1cc68c57f60f0107926ad59
treed72efb4cccdbcc4660268ca040f6d4db614f4791
parente627ec133bdd81a6ecc3ea9ded1a28f88b60064b
nvidiafb: 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 non-linear mapping
of the VGA registers to the MMIO space, this will be done only on X86
platforms where the device is the primary display.

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/nvidia/nv_type.h
drivers/video/nvidia/nvidia.c