mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Added dealy.
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
This commit is contained in:
parent
f5d7bf3c0b
commit
774f324f38
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32691
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user