From: Alan Cox Date: Wed, 3 Oct 2018 12:10:28 +0000 (+0100) Subject: n8v4em/p112: Minimal changes for tty termios X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=90c14a53b6a4965cfeb30a3bfb15a147d570694b;p=FUZIX.git n8v4em/p112: Minimal changes for tty termios Proper support for these platforms still needs adding --- diff --git a/Kernel/platform-n8vem-mark4/devtty.c b/Kernel/platform-n8vem-mark4/devtty.c index c0c1cef3..2ee97260 100644 --- a/Kernel/platform-n8vem-mark4/devtty.c +++ b/Kernel/platform-n8vem-mark4/devtty.c @@ -23,6 +23,23 @@ struct s_queue ttyinq[NUM_DEV_TTY+1] = { /* ttyinq[0] is never used */ #endif }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +/* TODO: stty support for the Z180 ports */ +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask, +#ifdef CONFIG_PROPIO2 + console_mask +#endif +}; + void tty_setup(uint8_t minor, uint8_t flags) { minor; diff --git a/Kernel/platform-p112/devtty.c b/Kernel/platform-p112/devtty.c index e284ef8d..5f4a57b1 100644 --- a/Kernel/platform-p112/devtty.c +++ b/Kernel/platform-p112/devtty.c @@ -59,6 +59,23 @@ struct s_queue ttyinq[NUM_DEV_TTY+1] = { /* ttyinq[0] is never used */ { tbuf5, tbuf5, tbuf5, TTYSIZ, 0, TTYSIZ/2 }, }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +/* TODO: stty support on the ESCC, ASCI and 16550 */ +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask, + console_mask, + console_mask, + console_mask +}; + /* tty_hw_init() which sets up tty5 can be found in discard.c */ void tty_setup(uint8_t minor, uint8_t flags)