Added dealy.
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
This commit is contained in:
parent
f5d7bf3c0b
commit
774f324f38
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
* 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"
|
#include "opt_comconsole.h"
|
||||||
@ -852,6 +852,7 @@ sioprobe(dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PC98
|
#ifdef PC98
|
||||||
|
DELAY(10);
|
||||||
/*
|
/*
|
||||||
* If the port is i8251 UART (internal, B98_01)
|
* If the port is i8251 UART (internal, B98_01)
|
||||||
*/
|
*/
|
||||||
@ -880,6 +881,7 @@ sioprobe(dev)
|
|||||||
COM_INT_DISABLE
|
COM_INT_DISABLE
|
||||||
tmp = ( inb( iod.ctrl ) & ~(IEN_Rx|IEN_TxEMP|IEN_Tx));
|
tmp = ( inb( iod.ctrl ) & ~(IEN_Rx|IEN_TxEMP|IEN_Tx));
|
||||||
outb( iod.ctrl, tmp|IEN_TxEMP );
|
outb( iod.ctrl, tmp|IEN_TxEMP );
|
||||||
|
DELAY(10);
|
||||||
ret = isa_irq_pending(dev) ? 4 : 0;
|
ret = isa_irq_pending(dev) ? 4 : 0;
|
||||||
outb( iod.ctrl, tmp );
|
outb( iod.ctrl, tmp );
|
||||||
COM_INT_ENABLE
|
COM_INT_ENABLE
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
* 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"
|
#include "opt_comconsole.h"
|
||||||
@ -852,6 +852,7 @@ sioprobe(dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PC98
|
#ifdef PC98
|
||||||
|
DELAY(10);
|
||||||
/*
|
/*
|
||||||
* If the port is i8251 UART (internal, B98_01)
|
* If the port is i8251 UART (internal, B98_01)
|
||||||
*/
|
*/
|
||||||
@ -880,6 +881,7 @@ sioprobe(dev)
|
|||||||
COM_INT_DISABLE
|
COM_INT_DISABLE
|
||||||
tmp = ( inb( iod.ctrl ) & ~(IEN_Rx|IEN_TxEMP|IEN_Tx));
|
tmp = ( inb( iod.ctrl ) & ~(IEN_Rx|IEN_TxEMP|IEN_Tx));
|
||||||
outb( iod.ctrl, tmp|IEN_TxEMP );
|
outb( iod.ctrl, tmp|IEN_TxEMP );
|
||||||
|
DELAY(10);
|
||||||
ret = isa_irq_pending(dev) ? 4 : 0;
|
ret = isa_irq_pending(dev) ? 4 : 0;
|
||||||
outb( iod.ctrl, tmp );
|
outb( iod.ctrl, tmp );
|
||||||
COM_INT_ENABLE
|
COM_INT_ENABLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user