diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2008-05-29 04:37:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-29 04:37:54 -0400 |
commit | 158d7abdae85e9ac43d99780c372d79c119f7626 (patch) | |
tree | 8cca893ab0ab854217249ddeea49b1280ee0361a /drivers/net/tg3.h | |
parent | dd47700310ff929b439223105364c9ee3db81511 (diff) |
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.h | 5 |
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 { | |||
2481 | #define TG3_FLG3_5761_5784_AX_FIXES 0x00000004 | 2481 | #define TG3_FLG3_5761_5784_AX_FIXES 0x00000004 |
2482 | #define TG3_FLG3_5701_DMA_BUG 0x00000008 | 2482 | #define TG3_FLG3_5701_DMA_BUG 0x00000008 |
2483 | #define TG3_FLG3_USE_PHYLIB 0x00000010 | 2483 | #define TG3_FLG3_USE_PHYLIB 0x00000010 |
2484 | #define TG3_FLG3_MDIOBUS_INITED 0x00000020 | ||
2485 | #define TG3_FLG3_MDIOBUS_PAUSED 0x00000040 | ||
2484 | 2486 | ||
2485 | struct timer_list timer; | 2487 | struct timer_list timer; |
2486 | u16 timer_counter; | 2488 | u16 timer_counter; |
@@ -2521,6 +2523,9 @@ struct tg3 { | |||
2521 | int msi_cap; | 2523 | int msi_cap; |
2522 | int pcix_cap; | 2524 | int pcix_cap; |
2523 | 2525 | ||
2526 | struct mii_bus mdio_bus; | ||
2527 | int mdio_irq[PHY_MAX_ADDR]; | ||
2528 | |||
2524 | /* PHY info */ | 2529 | /* PHY info */ |
2525 | u32 phy_id; | 2530 | u32 phy_id; |
2526 | #define PHY_ID_MASK 0xfffffff0 | 2531 | #define PHY_ID_MASK 0xfffffff0 |