1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Disable fifos in sioclose(). Closes PR 576.

This commit is contained in:
Bruce Evans 1995-08-13 07:49:35 +00:00
parent f653006611
commit 6097a1e94f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10040
3 changed files with 27 additions and 3 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.108 1995/07/31 18:29:51 bde Exp $
* $Id: sio.c,v 1.109 1995/07/31 21:10:36 bde Exp $
*/
#include "sio.h"
@ -986,6 +986,14 @@ comhardclose(com)
}
}
}
if (com->hasfifo) {
/*
* Disable fifos so that they are off after controlled
* reboots. Some BIOSes fail to detect 16550s when the
* fifos are enabled.
*/
outb(iobase + com_fifo, 0);
}
com->active_out = FALSE;
wakeup(&com->active_out);
wakeup(TSA_CARR_ON(tp)); /* restart any wopeners */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.108 1995/07/31 18:29:51 bde Exp $
* $Id: sio.c,v 1.109 1995/07/31 21:10:36 bde Exp $
*/
#include "sio.h"
@ -986,6 +986,14 @@ comhardclose(com)
}
}
}
if (com->hasfifo) {
/*
* Disable fifos so that they are off after controlled
* reboots. Some BIOSes fail to detect 16550s when the
* fifos are enabled.
*/
outb(iobase + com_fifo, 0);
}
com->active_out = FALSE;
wakeup(&com->active_out);
wakeup(TSA_CARR_ON(tp)); /* restart any wopeners */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.108 1995/07/31 18:29:51 bde Exp $
* $Id: sio.c,v 1.109 1995/07/31 21:10:36 bde Exp $
*/
#include "sio.h"
@ -986,6 +986,14 @@ comhardclose(com)
}
}
}
if (com->hasfifo) {
/*
* Disable fifos so that they are off after controlled
* reboots. Some BIOSes fail to detect 16550s when the
* fifos are enabled.
*/
outb(iobase + com_fifo, 0);
}
com->active_out = FALSE;
wakeup(&com->active_out);
wakeup(TSA_CARR_ON(tp)); /* restart any wopeners */