From fdc62ef6dd8df9e370bb3e6940e0686058161cd4 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 1 Oct 2018 23:52:41 +0100 Subject: [PATCH] z80pack: update for tty masks --- Kernel/dev/z80pack/devtty.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Kernel/dev/z80pack/devtty.c b/Kernel/dev/z80pack/devtty.c index b7c346cd..74c0de85 100644 --- a/Kernel/dev/z80pack/devtty.c +++ b/Kernel/dev/z80pack/devtty.c @@ -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 */ -- 2.34.1