]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit7dfe50b3aac2b3500139ab10a6e228d34fed9a49
treed72efb4cccdbcc4660268ca040f6d4db614f4791
parent19f3d3a5546be431f3846d8a8581e7a2f169dba3
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