DragonFly commits List (threaded) for 2009-12
git: vga(4): Simplify conditions for mode rejection somewhat.
Author: Sascha Wildner <firstname.lastname@example.org>
Date: Mon Dec 14 21:16:50 2009 +0100
vga(4): Simplify conditions for mode rejection somewhat.
When mapping the video parameter table to our mode_map, only reject modes
which are neither 40x25, 80x25 nor 80x30, instead of rejecting or accepting
the whole table based on comparing the initial mode's BIOS and power-up
Add a VGA_KEEP_POWERON_MODE option which (when set) preserves the register
settings which were found for the initial mode upon power-on for switching
back to it (or some mode derived from it) from another mode. The power-on
settings are also taken for the initial mode in case the video parameter
table has no valid settings for it.
This is kinda similar to what's proposed in FreeBSD's kern/64114.
Summary of changes:
share/man/man4/vga.4 | 41 +++++++------
sys/config/LINT | 5 +-
sys/dev/video/fb/vga.c | 121 +++++++---------------------------------
sys/platform/pc32/conf/options | 2 +-
sys/platform/pc64/conf/options | 5 +-
5 files changed, 49 insertions(+), 125 deletions(-)
DragonFly BSD source repository