ubee: update for termios masks
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 11:46:17 +0000 (12:46 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 11:46:17 +0000 (12:46 +0100)
Kernel/platform-ubee/devtty.c

index 2ee600a..2263a68 100644 (file)
@@ -13,6 +13,8 @@
  *     actual UART although there are interrupting on the edges. We don't
  *     support those for now. Some machines had add in Z8530 based
  *     interfaces at 0x68/0x69:  we need to look at those some day.
+ *
+ *     FIXME: need to look at multi-console support
  */
 
 #include <kernel.h>
@@ -37,6 +39,18 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {   /* ttyinq[0] is never used */
        {tbuf1, tbuf1, tbuf1, TTYSIZ, 0, TTYSIZ / 2},
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask
+};
+
 /* Write to system console */
 void kputchar(char c)
 {