1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

incorporated patches from Marc Frajola (marc@escargot.rain.com) to

unset TS_TBLOCK when the RBLEN falls below the low water mark.
This commit is contained in:
David Greenman 1993-10-12 06:32:28 +00:00
parent 5e89f9d804
commit 357eebce38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=580
3 changed files with 12 additions and 6 deletions

View File

@ -41,7 +41,7 @@
* into the patch kit. Added in sioselect
* from com.c. Added port 4 support.
*/
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.8 1993/09/10 16:59:16 rgrimes Exp $";
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.9 1993/09/28 00:01:10 jkh Exp $";
#include "sio.h"
#if NSIO > 0
@ -1430,8 +1430,10 @@ comstart(tp)
outb(com->modem_ctl_port, com->mcr_image &= ~MCR_RTS);
}
else {
if (!(com->mcr_image & MCR_RTS) && com->iptr < com->ihighwater)
if (!(com->mcr_image & MCR_RTS) && com->iptr < com->ihighwater) {
tp->t_state &= ~TS_RTSBLOCK;
outb(com->modem_ctl_port, com->mcr_image |= MCR_RTS);
}
}
enable_intr();
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP))

View File

@ -41,7 +41,7 @@
* into the patch kit. Added in sioselect
* from com.c. Added port 4 support.
*/
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.8 1993/09/10 16:59:16 rgrimes Exp $";
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.9 1993/09/28 00:01:10 jkh Exp $";
#include "sio.h"
#if NSIO > 0
@ -1430,8 +1430,10 @@ comstart(tp)
outb(com->modem_ctl_port, com->mcr_image &= ~MCR_RTS);
}
else {
if (!(com->mcr_image & MCR_RTS) && com->iptr < com->ihighwater)
if (!(com->mcr_image & MCR_RTS) && com->iptr < com->ihighwater) {
tp->t_state &= ~TS_RTSBLOCK;
outb(com->modem_ctl_port, com->mcr_image |= MCR_RTS);
}
}
enable_intr();
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP))

View File

@ -41,7 +41,7 @@
* into the patch kit. Added in sioselect
* from com.c. Added port 4 support.
*/
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.8 1993/09/10 16:59:16 rgrimes Exp $";
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.9 1993/09/28 00:01:10 jkh Exp $";
#include "sio.h"
#if NSIO > 0
@ -1430,8 +1430,10 @@ comstart(tp)
outb(com->modem_ctl_port, com->mcr_image &= ~MCR_RTS);
}
else {
if (!(com->mcr_image & MCR_RTS) && com->iptr < com->ihighwater)
if (!(com->mcr_image & MCR_RTS) && com->iptr < com->ihighwater) {
tp->t_state &= ~TS_RTSBLOCK;
outb(com->modem_ctl_port, com->mcr_image |= MCR_RTS);
}
}
enable_intr();
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP))