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
commitd50d8e09a47e419dc28531493a75d95630740a64 (patch)
treee81cc6ac42f1aec2110d84be29eceb31354f6235 /target/linux/ramips/files/drivers/net/ramips_eth.h
parent711637949b4788a00a528504c7480cb0e29ad1c7 (diff)
downloadupstream-d50d8e09a47e419dc28531493a75d95630740a64.tar.gz
upstream-d50d8e09a47e419dc28531493a75d95630740a64.tar.bz2
upstream-d50d8e09a47e419dc28531493a75d95630740a64.zip
ramips: raeth: add PHYLIB support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30547 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 */