aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ramips_eth.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-15 06:47:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-15 06:47:12 +0000
commitdcb13d40980be316858dcb1a8f1bf5b196019e82 (patch)
treec8016d4ff730717031f10789f7c6cb5ca7edb000 /target/linux/ramips/files/drivers/net/ramips_eth.h
parent214c2e57fd3248e978a538a8c05d977cf90debe5 (diff)
downloadupstream-dcb13d40980be316858dcb1a8f1bf5b196019e82.tar.gz
upstream-dcb13d40980be316858dcb1a8f1bf5b196019e82.tar.bz2
upstream-dcb13d40980be316858dcb1a8f1bf5b196019e82.zip
ramips: raeth: add PHYLIB support
SVN-Revision: 30547
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, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips_eth.h b/target/linux/ramips/files/drivers/net/ramips_eth.h
index 4927f2a211..a74732d841 100644
--- a/target/linux/ramips/files/drivers/net/ramips_eth.h
+++ b/target/linux/ramips/files/drivers/net/ramips_eth.h
@@ -229,10 +229,11 @@ struct raeth_priv
unsigned int skb_free_idx;
spinlock_t page_lock;
- struct net_device *netdev;
+ struct net_device *netdev;
struct device *parent;
struct ramips_eth_platform_data *plat;
+ int link;
int speed;
int duplex;
int tx_fc;
@@ -240,6 +241,8 @@ struct raeth_priv
struct mii_bus *mii_bus;
int mii_irq[PHY_MAX_ADDR];
+ struct phy_device *phy_dev;
+ spinlock_t phy_lock;
};
#endif /* RAMIPS_ETH_H */