diff options
author | kato <kato@FreeBSD.org> | 1998-01-22 03:52:55 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1998-01-22 03:52:55 +0000 |
commit | 3bc6c00a55119beda0c52a36dbbcc242e98282a7 (patch) | |
tree | a444dd09f31dfaa534d6e5d2255fb2de788eccf0 | |
parent | ceb8ae2e31ca3f5df00144ba01fdaa170adfbaab (diff) | |
download | FreeBSD-src-3bc6c00a55119beda0c52a36dbbcc242e98282a7.zip FreeBSD-src-3bc6c00a55119beda0c52a36dbbcc242e98282a7.tar.gz |
Added dealy.
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
-rw-r--r-- | sys/pc98/cbus/sio.c | 4 | ||||
-rw-r--r-- | sys/pc98/pc98/sio.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 8c2d032..9e10528 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.47 1998/01/08 10:50:06 kato Exp $ + * $Id: sio.c,v 1.48 1998/01/16 11:20:22 kato Exp $ */ #include "opt_comconsole.h" @@ -852,6 +852,7 @@ sioprobe(dev) } #ifdef PC98 + DELAY(10); /* * If the port is i8251 UART (internal, B98_01) */ @@ -880,6 +881,7 @@ sioprobe(dev) COM_INT_DISABLE tmp = ( inb( iod.ctrl ) & ~(IEN_Rx|IEN_TxEMP|IEN_Tx)); outb( iod.ctrl, tmp|IEN_TxEMP ); + DELAY(10); ret = isa_irq_pending(dev) ? 4 : 0; outb( iod.ctrl, tmp ); COM_INT_ENABLE diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 8c2d032..9e10528 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.47 1998/01/08 10:50:06 kato Exp $ + * $Id: sio.c,v 1.48 1998/01/16 11:20:22 kato Exp $ */ #include "opt_comconsole.h" @@ -852,6 +852,7 @@ sioprobe(dev) } #ifdef PC98 + DELAY(10); /* * If the port is i8251 UART (internal, B98_01) */ @@ -880,6 +881,7 @@ sioprobe(dev) COM_INT_DISABLE tmp = ( inb( iod.ctrl ) & ~(IEN_Rx|IEN_TxEMP|IEN_Tx)); outb( iod.ctrl, tmp|IEN_TxEMP ); + DELAY(10); ret = isa_irq_pending(dev) ? 4 : 0; outb( iod.ctrl, tmp ); COM_INT_ENABLE |