n8v4em/p112: Minimal changes for tty termios
authorAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 12:10:28 +0000 (13:10 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 12:10:28 +0000 (13:10 +0100)
Proper support for these platforms still needs adding

Kernel/platform-n8vem-mark4/devtty.c
Kernel/platform-p112/devtty.c

index c0c1cef..2ee9726 100644 (file)
@@ -23,6 +23,23 @@ struct  s_queue  ttyinq[NUM_DEV_TTY+1] = {       /* ttyinq[0] is never used */
 #endif
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+/* TODO: stty support for  the Z180 ports */
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       console_mask,
+#ifdef CONFIG_PROPIO2
+       console_mask
+#endif
+};
+
 void tty_setup(uint8_t minor, uint8_t flags)
 {
     minor;
index e284ef8..5f4a57b 100644 (file)
@@ -59,6 +59,23 @@ struct  s_queue  ttyinq[NUM_DEV_TTY+1] = {       /* ttyinq[0] is never used */
     {   tbuf5,   tbuf5,   tbuf5,   TTYSIZ,   0,   TTYSIZ/2 },
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+/* TODO: stty support on the ESCC, ASCI and 16550 */
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       console_mask,
+       console_mask,
+       console_mask,
+       console_mask
+};
+
 /* tty_hw_init() which sets up tty5 can be found in discard.c */
 
 void tty_setup(uint8_t minor, uint8_t flags)