#
# "Workstation Console" glue; attaches frame buffer to emulator & keyboard,
# plus deals with kernel mouse drivers.
#
# These files are included with strange conditions because of the hairy
# interactions between them. In particular, chunks of the glue,
# keyboard, and mouse code are called directly by other chunks. Also,
# each hardware driver can make calls into its (child) interface driver.
# This could all be cleaned up, but it's not clear that it's worth the
# trouble.
#
# this loses, but there's no way to define attributes which have attributes
device wsdisplay #tty?
attach wsdisplay at wsemuldisplaydev with wsdisplay_emul
attach wsdisplay at wsdisplaydev with wsdisplay_noemul
device wskbd
attach wskbd at wskbddev
device wsmouse
attach wsmouse at wsmousedev
device wsbell
attach wsbell at wsbelldev
# generic virtual console support on bitmapped framebuffers
file dev/wscons/wsdisplay_vcons.c vcons
file dev/wscons/wsdisplay_vcons_util.c vcons
defflag opt_vcons.h VCONS_DRAW_INTR VCONS_INTR_DEBUG VCONS_DEBUG
# generic support code for caching rendered glyphs in video memory
define glyphcache
file dev/wscons/wsdisplay_glyphcache.c glyphcache
defflag opt_glyphcache.h GLYPHCACHE_DEBUG
# linux event code keymap
file dev/wscons/linux_keymap.c linux_keymap