From 23fd595c49a0946b052d8b7aa775d01e6e92685e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 2 Oct 2018 14:01:09 +0100 Subject: [PATCH] genie-e64: update termios masking --- Kernel/platform-genie-eg64/devtty.c | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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 */ -- 2.34.1