From: Alan Cox Date: Tue, 2 Oct 2018 13:01:09 +0000 (+0100) Subject: genie-e64: update termios masking X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=23fd595c49a0946b052d8b7aa775d01e6e92685e;p=FUZIX.git genie-e64: update termios masking --- diff --git a/Kernel/platform-genie-eg64/devtty.c b/Kernel/platform-genie-eg64/devtty.c index 9c2c1ee2..de204f97 100644 --- a/Kernel/platform-genie-eg64/devtty.c +++ b/Kernel/platform-genie-eg64/devtty.c @@ -51,6 +51,37 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */ {tbuf3, tbuf3, tbuf3, TTYSIZ, 0, TTYSIZ / 2}, }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +static tcflag_t uart_mask[4] = { + _ISYS, + _OSYS, + /* Need to review CSTOPB */ + _CSYS|CBAUD|CSIZE|PARENB|PARODD|CRTSCTS, + _LSYS +}; + +static tcflag_t uartnb_mask[4] = { + _ISYS, + _OSYS, + /* Need to review CSTOPB */ + _CSYS|CSIZE|PARENB|PARODD|CRTSCTS, + _LSYS +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + uart_mask, + /* FIXME: set both to uartnb_mask on LNW80 */ + uartnb_mask +}; + static uint8_t trs_flow; /* RTS/CTS */ /* Write to system console */