aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ramips_eth.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-11 15:12:01 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-11 15:12:01 +0000
commit647af823d9db74d069f4433ba2ccb0456bc81a14 (patch)
treeb3467baf505ac10703071d8be0c3e4ca0b393540 /target/linux/ramips/files/drivers/net/ramips_eth.h
parentdf5892d1f1909ea347d8c6b2a74f28b4757656e1 (diff)
downloadupstream-647af823d9db74d069f4433ba2ccb0456bc81a14.tar.gz
upstream-647af823d9db74d069f4433ba2ccb0456bc81a14.tar.bz2
upstream-647af823d9db74d069f4433ba2ccb0456bc81a14.zip
ramips: raeth: use dma_addr_t for the descriptors
SVN-Revision: 30444
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ramips_eth.h')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips_eth.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips_eth.h b/target/linux/ramips/files/drivers/net/ramips_eth.h
index 9ad6046421..a69754b77a 100644
--- a/target/linux/ramips/files/drivers/net/ramips_eth.h
+++ b/target/linux/ramips/files/drivers/net/ramips_eth.h
@@ -22,6 +22,7 @@
#include <linux/mii.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
+#include <linux/dma-mapping.h>
#define NUM_RX_DESC 256
#define NUM_TX_DESC 256
@@ -214,12 +215,12 @@ struct ramips_tx_dma {
struct raeth_priv
{
- unsigned int phy_rx;
+ dma_addr_t rx_desc_dma;
struct tasklet_struct rx_tasklet;
struct ramips_rx_dma *rx;
struct sk_buff *rx_skb[NUM_RX_DESC];
- unsigned int phy_tx;
+ dma_addr_t tx_desc_dma;
struct tasklet_struct tx_housekeeping_tasklet;
struct ramips_tx_dma *tx;
struct sk_buff *tx_skb[NUM_TX_DESC];