Changeset 19443


Ignore:
Timestamp:
2010-01-31T13:48:46+01:00 (6 years ago)
Author:
juhosg
Message:

ramips_eth: simplify tx descriptor initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/drivers/net/ramips.c

    r19442 r19443  
    8989        memset(re->tx, 0, NUM_TX_DESC * sizeof(struct ramips_tx_dma)); 
    9090        for (i = 0; i < NUM_TX_DESC; i++) { 
    91                 re->tx[i].txd2 |= TX_DMA_LSO | TX_DMA_DONE; 
    92                 re->tx[i].txd4 &= (TX_DMA_QN_MASK | TX_DMA_PN_MASK); 
    93                 re->tx[i].txd4 |= TX_DMA_QN(3) | TX_DMA_PN(1); 
     91                re->tx[i].txd2 = TX_DMA_LSO | TX_DMA_DONE; 
     92                re->tx[i].txd4 = TX_DMA_QN(3) | TX_DMA_PN(1); 
    9493        } 
    9594 
Note: See TracChangeset for help on using the changeset viewer.