1# $NetBSD: files.wscons,v 1.56 2019/01/27 02:08:42 pgoyette Exp $
2
3#
4# "Workstation Console" glue; attaches frame buffer to emulator & keyboard,
5# plus deals with kernel mouse drivers.
6#
7# These files are included with strange conditions because of the hairy
8# interactions between them.  In particular, chunks of the glue,
9# keyboard, and mouse code are called directly by other chunks.  Also,
10# each hardware driver can make calls into its (child) interface driver.
11# This could all be cleaned up, but it's not clear that it's worth the
12# trouble.
13#
14
15defparam opt_wsemul.h                   WSEMUL_DEFAULT
16defflag   opt_wsemul.h                  WSEMUL_NO_DUMB WSEMUL_SUN WSEMUL_VT100
17defflag opt_wsdisplay_border.h          WSDISPLAY_CUSTOM_BORDER
18defparam opt_wsdisplay_border.h         WSDISPLAY_BORDER_COLOR
19defflag opt_wsmsgattrs.h      WSDISPLAY_CUSTOM_OUTPUT
20defparam opt_wsmsgattrs.h     WS_DEFAULT_COLATTR WS_DEFAULT_MONOATTR
21                                        WS_DEFAULT_BG WS_DEFAULT_FG
22                                        WS_KERNEL_COLATTR WS_KERNEL_MONOATTR
23                                        WS_KERNEL_BG WS_KERNEL_FG
24                                        WSDISPLAY_SCROLLCOMBO
25defparam opt_wsemul.h                   WSEMUL_VT100_HILIT_FG WSEMUL_VT100_UNDERLINE_FG
26                                        WSEMUL_VT100_HILIT_BG WSEMUL_VT100_UNDERLINE_BG
27defflag   opt_wsdisplay_compat.h        WSDISPLAY_COMPAT_USL
28                                        WSDISPLAY_COMPAT_RAWKBD
29                                        WSDISPLAY_COMPAT_PCVT WSDISPLAY_COMPAT_SYSCONS
30                                        WSCONS_SUPPORT_PCVTFONTS
31                                        WSCONS_SUPPORT_ISO7FONTS
32                                        WSDISPLAY_SCROLLSUPPORT
33                                        WSKBD_EVENT_AUTOREPEAT
34                                        WSDISPLAY_MULTICONS
35defparam opt_wsdisplay_compat.h         WSCOMPAT_USL_SYNCTIMEOUT
36                                        WSDISPLAY_DEFAULTSCREENS
37defparam opt_wsdisplay_compat.h WSDISPLAY_SCROLLBACK_LINES=100
38
39# this loses, but there's no way to define attributes which have attributes
40device    wsdisplay #tty?
41attach    wsdisplay at wsemuldisplaydev with wsdisplay_emul
42attach    wsdisplay at wsdisplaydev with wsdisplay_noemul
43device    wskbd
44attach    wskbd at wskbddev
45device    wsmouse
46attach    wsmouse at wsmousedev
47device    wsbell
48attach    wsbell at wsbelldev
49
50file      dev/wscons/wsdisplay.c                  wsdisplay           needs-flag
51file      dev/wscons/wsdisplay_compat_usl.c wsdisplay & wsdisplay_compat_usl
52file      dev/wscons/wsdisplay_util.c   wsdisplay
53file      dev/wscons/wsemulconf.c                 wsdisplay
54file      dev/wscons/wsemul_dumb.c      wsdisplay & !wsemul_no_dumb
55file      dev/wscons/wsemul_sun.c                 wsdisplay & wsemul_sun
56file      dev/wscons/wsemul_vt100.c     wsdisplay & wsemul_vt100
57file      dev/wscons/wsemul_vt100_subr.c          wsdisplay & wsemul_vt100
58file      dev/wscons/wsemul_vt100_chars.c         wsdisplay & wsemul_vt100
59file      dev/wscons/wsemul_vt100_keys.c          wsdisplay & wsemul_vt100
60file      dev/wscons/wsevent.c                    wsdisplay | wskbd | wsmouse | wsmux
61file      dev/wscons/wsevent_50.c                 compat_50
62file      dev/wscons/wskbd.c            wskbd                         needs-flag
63file      dev/wscons/wskbdutil.c                  wskbd                         needs-flag
64file      dev/wscons/wsmouse.c                    wsmouse                       needs-flag
65file      dev/wscons/wsbell.c           wsbell
66
67# rcons bit-depth options
68include "dev/rcons/files.rcons"
69
70file      dev/wscons/wscons_rinit.c     wsrasteremulops
71file      dev/wscons/wscons_rops.c      wsrasteremulops
72
73defpseudo wsmux
74file      dev/wscons/wsmux.c            wsmux                         needs-flag
75file      dev/wscons/wsbellmux.c                  wsmux
76
77define    tpcalib
78file      dev/wscons/tpcalib.c                    tpcalib
79file      dev/wscons/mra.c              tpcalib
80defflag opt_tpcalib.h                   TPCALIBDEBUG
81
82# generic virtual console support on bitmapped framebuffers
83file      dev/wscons/wsdisplay_vcons.c            vcons
84file      dev/wscons/wsdisplay_vcons_util.c       vcons
85defflag   opt_vcons.h                   VCONS_DRAW_INTR VCONS_INTR_DEBUG VCONS_DEBUG
86
87# generic support code for caching rendered glyphs in video memory
88define    glyphcache
89file      dev/wscons/wsdisplay_glyphcache.c       glyphcache
90defflag   opt_glyphcache.h GLYPHCACHE_DEBUG
91
92# linux event code keymap
93file      dev/wscons/linux_keymap.c     linux_keymap
94