diff options
author | tanimura <tanimura@FreeBSD.org> | 2000-08-21 13:18:56 +0000 |
---|---|---|
committer | tanimura <tanimura@FreeBSD.org> | 2000-08-21 13:18:56 +0000 |
commit | ae060674ea5baec3c4072a4081c265dc20332ff6 (patch) | |
tree | 6f47b3c26ace00124e5463b7b533e03e21329567 /sys/dev/rp/rp.c | |
parent | d542b794dfb9c1fef70b66fc7a49b7d18bcb6cf4 (diff) | |
download | FreeBSD-src-ae060674ea5baec3c4072a4081c265dc20332ff6.zip FreeBSD-src-ae060674ea5baec3c4072a4081c265dc20332ff6.tar.gz |
Fix a bug upon initialization. (_INDX_ADDR -> _INDX_DATA)
Diffstat (limited to 'sys/dev/rp/rp.c')
-rw-r--r-- | sys/dev/rp/rp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index 215ddf6..7014a5e 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -292,15 +292,15 @@ int sInitChan( CONTROLLER_T *CtlP, rp_writech1(ChP,_CMD_REG,(Byte_t)ChanNum | RESRXFCNT); /* apply reset Rx FIFO count */ rp_writech1(ChP,_CMD_REG,(Byte_t)ChanNum); /* remove reset Rx FIFO count */ rp_writech2(ChP,_INDX_ADDR,ChP->RxFIFOPtrs); /* clear Rx out ptr */ - rp_writech2(ChP,_INDX_ADDR,0); + rp_writech2(ChP,_INDX_DATA,0); rp_writech2(ChP,_INDX_ADDR,ChP->RxFIFOPtrs + 2); /* clear Rx in ptr */ - rp_writech2(ChP,_INDX_ADDR,0); + rp_writech2(ChP,_INDX_DATA,0); ChP->TxPrioCnt = ChOff + _TXP_CNT; rp_writech2(ChP,_INDX_ADDR,ChP->TxPrioCnt); - rp_writech1(ChP,_INDX_ADDR,0); + rp_writech1(ChP,_INDX_DATA,0); ChP->TxPrioPtr = ChOff + _TXP_PNTR; rp_writech2(ChP,_INDX_ADDR,ChP->TxPrioPtr); - rp_writech1(ChP,_INDX_ADDR,0); + rp_writech1(ChP,_INDX_DATA,0); ChP->TxPrioBuf = ChOff + _TXP_BUF; sEnRxProcessor(ChP); /* start the Rx processor */ @@ -674,8 +674,9 @@ static _INLINE_ void rp_do_receive(struct rp_port *rp, struct tty *tp, After emtying FIFO in status mode, turn off status mode */ - if(sGetRxCnt(cp) == 0) + if(sGetRxCnt(cp) == 0) { sDisRxStatusMode(cp); + } } else { /* * Avoid the grotesquely inefficient lineswitch routine |