diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2001-11-05 12:57:46 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2001-11-05 12:57:46 +0000 |
| commit | 16676bcded7bb328c0ddfb958850dd8a23866163 (patch) | |
| tree | 257a4a4308900a44144fe0dce9c1713adc2e63de /sys/dev/rp | |
| parent | e07dd8f70b8f7ab9e7e7b26afb325af8113a2c2c (diff) | |
Notes
Diffstat (limited to 'sys/dev/rp')
| -rw-r--r-- | sys/dev/rp/rp.c | 2 | ||||
| -rw-r--r-- | sys/dev/rp/rpvar.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index 9c49f208fc20..b1a488e5457f 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -1632,7 +1632,7 @@ rpstart(tp) qp = &tp->t_outq; if(xmit_fifo_room > 0 && qp->c_cc > 0) { tp->t_state |= TS_BUSY; - count = q_to_b( qp, rp->TxBuf, xmit_fifo_room ); + count = q_to_b( qp, (char *)rp->TxBuf, xmit_fifo_room ); wcount = count >> 1; if ( wcount ) { rp_writemultich2(cp, sGetTxRxDataIO(cp), (u_int16_t *)rp->TxBuf, wcount); diff --git a/sys/dev/rp/rpvar.h b/sys/dev/rp/rpvar.h index ae22a4e38775..41aee029b19b 100644 --- a/sys/dev/rp/rpvar.h +++ b/sys/dev/rp/rpvar.h @@ -77,8 +77,8 @@ struct rp_port { int rp_xmit_stopped:1; CONTROLLER_t * rp_ctlp; CHANNEL_t rp_channel; - unsigned char TxBuf[TXFIFO_SIZE]; - unsigned char RxBuf[RXFIFO_SIZE]; + unsigned short TxBuf[TXFIFO_SIZE/2 +1]; + unsigned short RxBuf[RXFIFO_SIZE/2 +1]; }; /* Actually not used */ |
