git: vga(4): Simplify conditions for mode rejection somewhat.

看板DFBSD_commit作者時間16年前 (2009/12/15 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit fb5d6e269d49634015cfcda26285309a7bf582ae Author: Sascha Wildner <saw@online.de> 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 register settings. 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(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fb5d6e269d49634015cfcda26285309a7bf582ae -- DragonFly BSD source repository
文章代碼(AID): #1B9g35gU (DFBSD_commit)