vesa.c:
authorSascha Wildner <swildner@dragonflybsd.org>
Sun, 10 Jul 2005 13:06:18 +0000 (13:06 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sun, 10 Jul 2005 13:06:18 +0000 (13:06 +0000)
commitb5f86e2fae1ea6a26f8b8f90aeb580db0e0397a7
tree6ceec2b40c523476256cdc43b4e8afe4e3280848
parentce8a9b76f2cee21c41232d88725f6e82043ed128
vesa.c:

Add a missing bcopy() to make saving the VESA state actually work.
Also save the DAC state, increase the maximum save state size up to
12k, and refuse to save the VESA state if the BIOS reports it is
larger than the maximum size we can handle.

vgareg.h & vga_isa.c:

Save and restore the VGA state across a suspend-resume cycle. This is
particularly useful when VESA is available (either 'options VESA' or
load the vesa module), as BIOSes in some notebooks may correctly save
and restore LCD panel settings using VESA in cases where calling the
video BIOS POST is not effective. On some systems it may also be
necessary to set the hw.acpi.reset_video sysctl to 0.

Obtained from: FreeBSD
sys/bus/isa/vga_isa.c
sys/dev/video/fb/vgareg.h
sys/dev/video/i386/vesa/vesa.c