mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-16 11:54:48 +00:00
ramips_eth: simplify tx descriptor initialization
SVN-Revision: 19443
This commit is contained in:
parent
d0fb66e3a4
commit
21b06bd2c0
@ -88,9 +88,8 @@ ramips_alloc_dma(struct raeth_priv *re)
|
|||||||
|
|
||||||
memset(re->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma));
|
memset(re->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma));
|
||||||
for (i = 0; i < NUM_TX_DESC; i++) {
|
for (i = 0; i < NUM_TX_DESC; i++) {
|
||||||
re->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE;
|
re->tx[i].txd2 = TX_DMA_LSO | TX_DMA_DONE;
|
||||||
re->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK);
|
re->tx[i].txd4 = TX_DMA_QN(3) | TX_DMA_PN(1);
|
||||||
re->tx[i].txd4 |= TX_DMA_QN(3) | TX_DMA_PN(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* setup rx ring */
|
/* setup rx ring */
|
||||||
|
Loading…
Reference in New Issue
Block a user