mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
RTS shouldn't be touched unless CS_RTS_IFLOW is set.
This commit is contained in:
parent
2b4ff1d41e
commit
bfbc1f09d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1215
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user