summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-02-26 00:04:03 +0000
committerphk <phk@FreeBSD.org>1994-02-26 00:04:03 +0000
commit70c6a315ee49d8f4758f04c910aa5ba025ddef41 (patch)
tree46278e1019966ca861c7e1ee7531a702a44a29e9
parenta0857f9bf388f513e91731df11f6df718ce8ffcc (diff)
downloadFreeBSD-src-70c6a315ee49d8f4758f04c910aa5ba025ddef41.zip
FreeBSD-src-70c6a315ee49d8f4758f04c910aa5ba025ddef41.tar.gz
RTS shouldn't be touched unless CS_RTS_IFLOW is set.
-rw-r--r--sys/dev/sio/sio.c5
-rw-r--r--sys/i386/isa/sio.c5
-rw-r--r--sys/isa/sio.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 6bcee34..f17f6ae 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.28 1994/02/07 18:37:21 ache Exp $
+ * $Id: sio.c,v 1.29 1994/02/24 16:39:48 phk Exp $
*/
#include "sio.h"
@@ -1243,7 +1243,8 @@ repeat:
* of input, so enable RTS if it is now disabled and
* there is room in the high-level buffer.
*/
- if (!(com->mcr_image & MCR_RTS)
+ if ((com->state & CS_RTS_IFLOW)
+ && !(com->mcr_image & MCR_RTS)
&& !(tp->t_state & TS_RTS_IFLOW))
outb(com->modem_ctl_port,
com->mcr_image |= MCR_RTS);
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c
index 6bcee34..f17f6ae 100644
--- a/sys/i386/isa/sio.c
+++ b/sys/i386/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.28 1994/02/07 18:37:21 ache Exp $
+ * $Id: sio.c,v 1.29 1994/02/24 16:39:48 phk Exp $
*/
#include "sio.h"
@@ -1243,7 +1243,8 @@ repeat:
* of input, so enable RTS if it is now disabled and
* there is room in the high-level buffer.
*/
- if (!(com->mcr_image & MCR_RTS)
+ if ((com->state & CS_RTS_IFLOW)
+ && !(com->mcr_image & MCR_RTS)
&& !(tp->t_state & TS_RTS_IFLOW))
outb(com->modem_ctl_port,
com->mcr_image |= MCR_RTS);
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index 6bcee34..f17f6ae 100644
--- a/sys/isa/sio.c
+++ b/sys/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.28 1994/02/07 18:37:21 ache Exp $
+ * $Id: sio.c,v 1.29 1994/02/24 16:39:48 phk Exp $
*/
#include "sio.h"
@@ -1243,7 +1243,8 @@ repeat:
* of input, so enable RTS if it is now disabled and
* there is room in the high-level buffer.
*/
- if (!(com->mcr_image & MCR_RTS)
+ if ((com->state & CS_RTS_IFLOW)
+ && !(com->mcr_image & MCR_RTS)
&& !(tp->t_state & TS_RTS_IFLOW))
outb(com->modem_ctl_port,
com->mcr_image |= MCR_RTS);
OpenPOWER on IntegriCloud