aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/tty.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-10-18 21:51:27 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-10-18 21:51:27 +0000
commit95bc56897714a12b8e95c92dd8e1a70f1154162d (patch)
tree20f824d4840c6e3d41b20debf19f65f472d3916d /sys/sys/tty.h
parent2b0448ba0c40d092a45e294f98d8256c6fdb33d7 (diff)
downloadsrc-95bc56897714a12b8e95c92dd8e1a70f1154162d.tar.gz
src-95bc56897714a12b8e95c92dd8e1a70f1154162d.zip
Add new function ttyinitmode() which sets our systemwide default
modes on a tty structure. Both the ".init" and the current settings are initialized allowing the function to be used both at attach and open time. The function takes an argument to decide if echoing should be enabled. Echoing should not be enabled for regular physical serial ports unless they are consoles, in which case they should be configured by ttyconsolemode() instead. Use the new function throughout.
Notes
Notes: svn path=/head/; revision=136680
Diffstat (limited to 'sys/sys/tty.h')
-rw-r--r--sys/sys/tty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index 75d183b96d09..d9f104aef81d 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -357,6 +357,7 @@ void ttyflush(struct tty *tp, int rw);
void ttyfree(struct tty *tp);
void ttygone(struct tty *tp);
void ttyinfo(struct tty *tp);
+void ttyinitmode(struct tty *tp, int echo, int speed);
int ttyinput(int c, struct tty *tp);
int ttylclose(struct tty *tp, int flag);
void ttyldoptim(struct tty *tp);