cocos: update to termios masks
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:00:22 +0000 (14:00 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:00:22 +0000 (14:00 +0100)
Kernel/platform-coco2/devtty.c
Kernel/platform-coco2cart/devtty.c
Kernel/platform-coco3/devtty.c

index 41788df..016546d 100644 (file)
@@ -25,6 +25,27 @@ 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
+};
+
+static tcflag_t acia_mask[4] = {
+       _ISYS,
+       _OSYS,
+       /* Review flow control and CSTOPB TODO */
+       _CSYS|CBAUD|CSIZE|PARENB|PARODD|PARMRK,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       acia_mask
+};
+
 uint8_t vtattr_cap = 0;
 struct vt_repeat keyrepeat;
 static uint8_t kbd_timer;
index f9e4804..de7f9c8 100644 (file)
@@ -27,6 +27,27 @@ 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
+};
+
+static tcflag_t acia_mask[4] = {
+       _ISYS,
+       _OSYS,
+       /* Review flow control and CSTOPB TODO */
+       _CSYS|CBAUD|CSIZE|PARENB|PARODD|PARMRK,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       acia_mask
+};
+
 uint8_t vtattr_cap = 0;
 struct vt_repeat keyrepeat = { 40, 4 };
 static uint8_t kbd_timer;
index 2918978..12e2b05 100644 (file)
@@ -59,6 +59,29 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {
 };
 
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       /* GIME consoles */
+       console_mask,
+       console_mask,
+       /* Drivewire */
+       console_mask,
+       console_mask,
+       console_mask,
+       console_mask,
+       /* Virtual Window */
+       console_mask,
+       console_mask,
+       console_mask,
+       console_mask
+};
 
 
 struct mode_s{