diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-09 04:25:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-09 04:25:39 +0000 |
commit | 383072967a61373767c93cf92656aa700352c197 (patch) | |
tree | f6202bbc053788de1b6bc08efe1e0cf30c3587ae /sys/arch/sh | |
parent | f51171bb2c91c9614bbbf28076cc0f52c7a9b2d3 (diff) |
landisk has no DCD line, so we must force TS_CARR_ON. This is a gruesome
hack, otherwise the console tty is not quite right. Solve better someday.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r-- | sys/arch/sh/dev/scif.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c index e6d2382c83e..782d34006b7 100644 --- a/sys/arch/sh/dev/scif.c +++ b/sys/arch/sh/dev/scif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scif.c,v 1.2 2006/11/03 20:21:23 mickey Exp $ */ +/* $OpenBSD: scif.c,v 1.3 2006/11/09 04:25:38 deraadt Exp $ */ /* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */ /*- @@ -746,6 +746,13 @@ scifopen(dev_t dev, int flag, int mode, struct proc *p) /* Make sure scifparam() will do something. */ tp->t_ospeed = 0; (void) scifparam(tp, &t); + + /* + * XXX landisk has no hardware flow control! + * When porting to another platform, fix this somehow + */ + SET(tp->t_state, TS_CARR_ON); + tp->t_iflag = TTYDEF_IFLAG; tp->t_oflag = TTYDEF_OFLAG; tp->t_lflag = TTYDEF_LFLAG; |