aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2008-05-29 01:37:54 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-29 01:37:54 -0700
commit158d7abdae85e9ac43d99780c372d79c119f7626 (patch)
tree8cca893ab0ab854217249ddeea49b1280ee0361a /drivers/net/tg3.h
parenttg3: Add TG3_FLG3_USE_PHYLIB (diff)
downloadlinux-dev-158d7abdae85e9ac43d99780c372d79c119f7626.tar.xz
linux-dev-158d7abdae85e9ac43d99780c372d79c119f7626.zip
tg3: Add mdio bus registration
This patch introduces code to register and unregister the tg3 mdio bus with the system. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index a3598ed9f5fc..e0914fdaf274 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2481,6 +2481,8 @@ struct tg3 {
#define TG3_FLG3_5761_5784_AX_FIXES 0x00000004
#define TG3_FLG3_5701_DMA_BUG 0x00000008
#define TG3_FLG3_USE_PHYLIB 0x00000010
+#define TG3_FLG3_MDIOBUS_INITED 0x00000020
+#define TG3_FLG3_MDIOBUS_PAUSED 0x00000040
struct timer_list timer;
u16 timer_counter;
@@ -2521,6 +2523,9 @@ struct tg3 {
int msi_cap;
int pcix_cap;
+ struct mii_bus mdio_bus;
+ int mdio_irq[PHY_MAX_ADDR];
+
/* PHY info */
u32 phy_id;
#define PHY_ID_MASK 0xfffffff0