aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/fbio.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2017-04-20 13:46:55 +0000
committerBruce Evans <bde@FreeBSD.org>2017-04-20 13:46:55 +0000
commitecb56aaf6099f5336b8816cbc1ad21ae55c8a101 (patch)
tree806556af21606181ba52b6959f6a1629fc351b5b /sys/sys/fbio.h
parent05d06ecac32d892eafc5e8e13652324d8f5ac46a (diff)
downloadsrc-ecb56aaf6099f5336b8816cbc1ad21ae55c8a101.tar.gz
src-ecb56aaf6099f5336b8816cbc1ad21ae55c8a101.zip
Attempt to determine the modes in which 8-bit wide characters are actually
9 wide. I only need this to improve the mouse cursor, but it has always been needed to select and/or adjust fonts. This is complicated because there are no standard parameter tables giving this bit of information directly, and the device register bit giving the information can't be trusted even if it is read from the hardware. Use a heuristic to guess if the device register can be trusted. (The device register is normally read from the BIOS mode table, but on my system where the device register is wrong, the mode table doesn't match the hardware and is not used; the device registers are used in this case.)
Notes
Notes: svn path=/head/; revision=317190
Diffstat (limited to 'sys/sys/fbio.h')
-rw-r--r--sys/sys/fbio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 0d16402cb077..4aea3c37ab7d 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -338,6 +338,7 @@ struct video_info {
#define V_INFO_LINEAR (1 << 2)
#define V_INFO_VESA (1 << 3)
#define V_INFO_NONVGA (1 << 4)
+#define V_INFO_CWIDTH9 (1 << 5)
int vi_width;
int vi_height;
int vi_cwidth;
@@ -400,6 +401,7 @@ struct video_adapter {
#define V_ADP_REGISTERED (1 << 18)
#define V_ADP_ATTACHED (1 << 19)
#define V_ADP_DAC8 (1 << 20)
+#define V_ADP_CWIDTH9 (1 << 21)
vm_offset_t va_io_base;
int va_io_size;
vm_offset_t va_crtc_addr;