aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/fbio.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-02-23 21:51:14 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-02-23 21:51:14 +0000
commit8d521790d0ee82630996e41d38d6997a4c28d9ac (patch)
tree74511fa17ee4c97f2b6b9f1addc7cdb3567f0034 /sys/sys/fbio.h
parentdbfc596084321440c941cc22d4577f8387700c78 (diff)
downloadsrc-8d521790d0ee82630996e41d38d6997a4c28d9ac.tar.gz
src-8d521790d0ee82630996e41d38d6997a4c28d9ac.zip
Yet another attempt to make palette loading more safer:
- Add a separate palette data for 8-bit DAC mode when SC_PIXEL_MODE is set and fill it up with default gray-scale palette data for text. Now we don't have to set `hint.sc.0.vesa_mode' to get the default palette data. - Add a new adapter flag, V_ADP_DAC8 to track whether the controller is using 8-bit palette format and load correct palette when switching modes. - Set 8-bit DAC mode only for non-VGA compatible graphics mode.
Notes
Notes: svn path=/head/; revision=204265
Diffstat (limited to 'sys/sys/fbio.h')
-rw-r--r--sys/sys/fbio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 415ad966911f..5745182316bc 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -332,6 +332,7 @@ struct video_adapter {
#define V_ADP_INITIALIZED (1 << 17)
#define V_ADP_REGISTERED (1 << 18)
#define V_ADP_ATTACHED (1 << 19)
+#define V_ADP_DAC8 (1 << 20)
vm_offset_t va_io_base;
int va_io_size;
vm_offset_t va_crtc_addr;