summaryrefslogtreecommitdiff
path: root/drivers/net/mv643xx_eth.h
diff options
context:
space:
mode:
authorJames Chapman <jchapman@katalix.com>2006-01-27 08:13:15 (GMT)
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 16:11:16 (GMT)
commitc28a4f8947f1b08996502967e348dc88363749a7 (patch)
treea0afa38353ebb02f2cef528d1b84e2e8e89443c2 /drivers/net/mv643xx_eth.h
parent9f8dd319459bb5ab9efcc1c345bed7895cc41768 (diff)
downloadlinux-c28a4f8947f1b08996502967e348dc88363749a7.tar.xz
[PATCH] mv643xx_eth: use MII library for PHY management
Modify link up/down handling to use the functions from the MII library. Note that I track link state using the MII PHY registers rather than the mv643xx chip's link state registers because I think it's cleaner to use the MII library code rather than writing local driver support code. It is also useful to make the actual MII registers available to the user with maskable kernel printk messages so the MII registers are being read anyway Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: Dale Farnsworth <dale@farnsworth.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/mv643xx_eth.h')
-rw-r--r--drivers/net/mv643xx_eth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mv643xx_eth.h b/drivers/net/mv643xx_eth.h
index 345f970..f2e5da7 100644
--- a/drivers/net/mv643xx_eth.h
+++ b/drivers/net/mv643xx_eth.h
@@ -5,6 +5,7 @@
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>
+#include <linux/mii.h>
#include <linux/mv643xx.h>
@@ -393,6 +394,7 @@ struct mv643xx_private {
u32 rx_int_coal;
u32 tx_int_coal;
+ struct mii_if_info mii;
};
/* ethernet.h API list */