public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66afe3a
)
trs80m1: update for tty termios masks
author
Alan Cox
<alan@linux.intel.com>
Wed, 3 Oct 2018 13:35:53 +0000
(14:35 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Wed, 3 Oct 2018 13:35:53 +0000
(14:35 +0100)
Kernel/platform-trs80m1/devtty.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-trs80m1/devtty.c
b/Kernel/platform-trs80m1/devtty.c
index
2683dd5
..
80a290f
100644
(file)
--- a/
Kernel/platform-trs80m1/devtty.c
+++ b/
Kernel/platform-trs80m1/devtty.c
@@
-55,6
+55,32
@@
struct s_queue ttyinq[NUM_DEV_TTY + 1] = { /* ttyinq[0] is never used */
static uint8_t trs_flow; /* RTS/CTS */
+static tcflag_t console_mask[4] = {
+ _ISYS,
+ _OSYS,
+ _CSYS,
+ _LSYS
+};
+
+static tcflag_t uart0_mask[4] = {
+ _ISYS,
+ _OSYS,
+ _CSYS|CBAUD|CSIZE|CRTSCTS|CSTOPB,
+ _LSYS
+};
+
+static tcflag_t uart1_mask[4] = {
+ _ISYS,
+ _OSYS,
+ _CSYS|CSIZE|CRTSCTS|CSTOPB,
+ _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+ NULL,
+ console_mask
+};
+
/* Write to system console */
void kputchar(char c)
{