aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2007-05-03 16:22:52 -0400
committerDavid S. Miller <davem@davemloft.net>2007-05-03 16:22:52 -0400
commitca58c3af99b15f729e56dffe9b74b8b2ce157e8d (patch)
tree7c368d0f68cfa0513b25ab32f3a61d7080d82f1c /drivers/net/bnx2.h
parent4666f87a82cf74b63737a7f55a8b3b057a7b83df (diff)
[BNX2]: Put MII register offsets in the bnx2 struct.
The 5709 Serdes device uses non-standard MII register offsets. This re-structuring will make it easier to support 5709 Serdes. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 70fb639b6f52..d4a85d7b5ebe 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6498,6 +6498,12 @@ struct bnx2 {
6498#define PHY_INT_MODE_LINK_READY_FLAG 0x200 6498#define PHY_INT_MODE_LINK_READY_FLAG 0x200
6499#define PHY_DIS_EARLY_DAC_FLAG 0x400 6499#define PHY_DIS_EARLY_DAC_FLAG 0x400
6500 6500
6501 u32 mii_bmcr;
6502 u32 mii_bmsr;
6503 u32 mii_adv;
6504 u32 mii_lpa;
6505 u32 mii_up1;
6506
6501 u32 chip_id; 6507 u32 chip_id;
6502 /* chip num:16-31, rev:12-15, metal:4-11, bond_id:0-3 */ 6508 /* chip num:16-31, rev:12-15, metal:4-11, bond_id:0-3 */
6503#define CHIP_NUM(bp) (((bp)->chip_id) & 0xffff0000) 6509#define CHIP_NUM(bp) (((bp)->chip_id) & 0xffff0000)