socz80: add tty masking
authorAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 12:11:01 +0000 (13:11 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 12:11:01 +0000 (13:11 +0100)
Needs updating to handling the improved bitstream with serial config

Kernel/platform-socz80/devtty.c

index c1e6f2f..992f239 100644 (file)
@@ -15,6 +15,20 @@ struct  s_queue  ttyinq[NUM_DEV_TTY+1] = {       /* ttyinq[0] is never used */
     {   tbuf2,   tbuf2,   tbuf2,   TTYSIZ,   0,   TTYSIZ/2 }
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+/* FIXME: will do for now though */
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       console_mask
+};
+
 /* console helper */
 void kputchar(char c)
 {