6502/65c816: update to new termios masking
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:01:40 +0000 (14:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:01:40 +0000 (14:01 +0100)
Kernel/platform-v65/devtty.c
Kernel/platform-v65c816-big/devtty.c
Kernel/platform-v65c816/devtty.c

index 04f0fd6..e995cab 100644 (file)
@@ -19,7 +19,17 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {   /* ttyinq[0] is never used */
        PTY_QUEUES
 };
 
-/* tty1 is the screen tty2 is the serial port */
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask
+};
 
 /* Output for the system console (kprintf etc) */
 void kputchar(uint8_t c)
index 6970afa..4238928 100644 (file)
@@ -17,6 +17,18 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {   /* ttyinq[0] is never used */
        PTY_QUEUES
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask
+};
+
 /* Output for the system console (kprintf etc) */
 void kputchar(uint8_t c)
 {
index a0fbe93..eccf95f 100644 (file)
@@ -26,6 +26,19 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {   /* ttyinq[0] is never used */
        PTY_QUEUES
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       console_mask
+};
+
 /* VT support logic */
 
 uint16_t fb_off;