path: root/sys/sys/fbio.h
diff options
authorJung-uk Kim <jkim@FreeBSD.org>2009-11-03 20:22:09 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2009-11-03 20:22:09 +0000
commit761eeb5fff4769159956c3ebe360a3515703c6e5 (patch)
tree1ca98f62a3bdba171d52de5e76d79c5379962729 /sys/sys/fbio.h
parent4586315a7665712af5da18220337831ddfc7ce5d (diff)
Fix VESA color palette corruption:
- VBE 3.0 says palette format resets to 6-bit mode when video mode changes. We simply set 8-bit mode when we switch modes if the adapter supports it. - VBE 3.0 also says if the mode is not VGA compatible, we must use VBE function to save/restore palette. Otherwise, VGA function may be used. Thus, reinstate the save/load palette functions only for non-VGA compatible modes regardless of its palette format. - Let vesa(4) set VESA modes even if vga(4) claims to support it. - Reset default palette if VESA pixel mode is set initially. - Fix more style nits.
Notes: svn path=/head/; revision=198858
Diffstat (limited to 'sys/sys/fbio.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index c7183dfc38c0..415ad966911f 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -269,6 +269,7 @@ struct video_info {
#define V_INFO_GRAPHICS (1 << 1)
#define V_INFO_LINEAR (1 << 2)
#define V_INFO_VESA (1 << 3)
+#define V_INFO_NONVGA (1 << 4)
int vi_width;
int vi_height;
int vi_cwidth;