From: Alan Cox Date: Tue, 2 Oct 2018 13:00:54 +0000 (+0100) Subject: dragon-nx-32: update to termios masking X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=abe5fa135fe6e23bc83262d5a3ec46f28609339e;p=FUZIX.git dragon-nx-32: update to termios masking --- diff --git a/Kernel/platform-dragon-nx32/devtty.c b/Kernel/platform-dragon-nx32/devtty.c index 996fcd83..e4feb663 100644 --- a/Kernel/platform-dragon-nx32/devtty.c +++ b/Kernel/platform-dragon-nx32/devtty.c @@ -45,6 +45,37 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ {tbuf7, tbuf7, tbuf7, TTYSIZ, 0, TTYSIZ / 2}, }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +static tcflag_t acia_mask[4] = { + _ISYS, + _OSYS, + /* Review flow control and CSTOPB TODO */ + _CSYS|CBAUD|CSIZE|PARENB|PARODD|PARMRK, + _LSYS +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + /* Console */ + console_mask, + /* 9128 */ + console_mask, + /* VC */ + console_mask, + console_mask, + /* ACIA */ + acia_mask, + /* Drivewire */ + console_mask, + console_mask +}; + uint8_t vtattr_cap = VTA_INVERSE|VTA_UNDERLINE|VTA_ITALIC|VTA_BOLD| VTA_OVERSTRIKE|VTA_NOCURSOR;