Force the RxBuf and TxBuf arrays to be aligned on 16-bit boundaries to

make the driver work on alpha

approved by: tanimura
This commit is contained in:
Andrew Gallatin 2001-11-05 12:57:46 +00:00
parent e07dd8f70b
commit 16676bcded
2 changed files with 3 additions and 3 deletions

View File

@ -1632,7 +1632,7 @@ rpstart(tp)
qp = &tp->t_outq; qp = &tp->t_outq;
if(xmit_fifo_room > 0 && qp->c_cc > 0) { if(xmit_fifo_room > 0 && qp->c_cc > 0) {
tp->t_state |= TS_BUSY; 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; wcount = count >> 1;
if ( wcount ) { if ( wcount ) {
rp_writemultich2(cp, sGetTxRxDataIO(cp), (u_int16_t *)rp->TxBuf, wcount); rp_writemultich2(cp, sGetTxRxDataIO(cp), (u_int16_t *)rp->TxBuf, wcount);

View File

@ -77,8 +77,8 @@ struct rp_port {
int rp_xmit_stopped:1; int rp_xmit_stopped:1;
CONTROLLER_t * rp_ctlp; CONTROLLER_t * rp_ctlp;
CHANNEL_t rp_channel; CHANNEL_t rp_channel;
unsigned char TxBuf[TXFIFO_SIZE]; unsigned short TxBuf[TXFIFO_SIZE/2 +1];
unsigned char RxBuf[RXFIFO_SIZE]; unsigned short RxBuf[RXFIFO_SIZE/2 +1];
}; };
/* Actually not used */ /* Actually not used */