trs80m1: update for tty termios masks
authorAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 13:35:53 +0000 (14:35 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 13:35:53 +0000 (14:35 +0100)
Kernel/platform-trs80m1/devtty.c

index 2683dd5..80a290f 100644 (file)
@@ -55,6 +55,32 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {   /* ttyinq[0] is never used */
 
 static uint8_t trs_flow;               /* RTS/CTS */
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+static tcflag_t uart0_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS|CBAUD|CSIZE|CRTSCTS|CSTOPB,
+       _LSYS
+};
+
+static tcflag_t uart1_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS|CSIZE|CRTSCTS|CSTOPB,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask
+};
+
 /* Write to system console */
 void kputchar(char c)
 {