public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e7fca6
)
cromemco: update for tty masks
author
Alan Cox
<alan@linux.intel.com>
Mon, 1 Oct 2018 22:52:27 +0000
(23:52 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 1 Oct 2018 22:52:27 +0000
(23:52 +0100)
Kernel/platform-cromemco/devtty.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-cromemco/devtty.c
b/Kernel/platform-cromemco/devtty.c
index
7141779
..
ffdb4bc
100644
(file)
--- a/
Kernel/platform-cromemco/devtty.c
+++ b/
Kernel/platform-cromemco/devtty.c
@@
-20,6
+20,20
@@
static uint8_t ttybase[NUM_DEV_TTY+1] = {
0, 0, 32, 80
};
+tcflag_t uart_mask[4] = {
+ _ISYS,
+ _OSYS,
+ CBAUD|CSTOPB|_CSYS,
+ _LSYS,
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+ NULL,
+ uart_mask,
+ uart_mask,
+ uart_mask
+};
+
static uint8_t ttypoll;
/* Write to system console */
@@
-109,9
+123,6
@@
void tty_setup(uint8_t minor, uint8_t flags)
out(r + 2, 0x8);
else
out(r + 2, 0x18);
- t->c_cflag |= CS8;
- t->c_cflag &= ~PARENB;
- /* Ok we could do sw parity .. */
}
/* For the moment */