z80pack: update for tty masks
authorAlan Cox <alan@linux.intel.com>
Mon, 1 Oct 2018 22:52:41 +0000 (23:52 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 1 Oct 2018 22:52:41 +0000 (23:52 +0100)
Kernel/dev/z80pack/devtty.c

index b7c346c..74c0de8 100644 (file)
@@ -27,6 +27,22 @@ struct  s_queue  ttyinq[NUM_DEV_TTY+1] = {       /* ttyinq[0] is never used */
     {   tbuf4,   tbuf4,   tbuf4,   TTYSIZ,   0,   TTYSIZ/2 }
 };
 
+/* We have no actual controls on the virtual ports */
+static tcflag_t port_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       port_mask,
+       port_mask,
+       port_mask,
+       port_mask
+};
+
 static uint8_t ttypoll;
 
 /* Write to system console */