aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.h
diff options
context:
space:
mode:
authorJames Chapman <jchapman@katalix.com>2006-01-27 03:13:15 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-27 11:11:16 -0500
commitc28a4f8947f1b08996502967e348dc88363749a7 (patch)
treea0afa38353ebb02f2cef528d1b84e2e8e89443c2 /drivers/net/mv643xx_eth.h
parent9f8dd319459bb5ab9efcc1c345bed7895cc41768 (diff)
[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 345f970d122c..f2e5da79dde8 100644
--- a/drivers/net/mv643xx_eth.h
+++ b/drivers/net/mv643xx_eth.h
@@ -5,6 +5,7 @@
5#include <linux/kernel.h> 5#include <linux/kernel.h>
6#include <linux/spinlock.h> 6#include <linux/spinlock.h>
7#include <linux/workqueue.h> 7#include <linux/workqueue.h>
8#include <linux/mii.h>
8 9
9#include <linux/mv643xx.h> 10#include <linux/mv643xx.h>
10 11
@@ -393,6 +394,7 @@ struct mv643xx_private {
393 394
394 u32 rx_int_coal; 395 u32 rx_int_coal;
395 u32 tx_int_coal; 396 u32 tx_int_coal;
397 struct mii_if_info mii;
396}; 398};
397 399
398/* ethernet.h API list */ 400/* ethernet.h API list */