aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2007-05-03 16:23:41 -0400
committerDavid S. Miller <davem@davemloft.net>2007-05-03 16:23:41 -0400
commit27a005b883984ef3a3cf24e7ddd78eb78902f494 (patch)
treec2fbdb130239e7f7ad718cea0cd8cb1a78528da4 /drivers/net/bnx2.h
parent605a9e20aaea23f31a5403e969bd4ab4d0405dab (diff)
[BNX2]: Add support for 5709 Serdes.
Add PCI ID and code to support the 5709 Serdes PHY. 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.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index d4a85d7b5ebe..124bd03cff3e 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6296,6 +6296,41 @@ struct l2_fhdr {
6296#define MII_BNX2_DSP_ADDRESS 0x17 6296#define MII_BNX2_DSP_ADDRESS 0x17
6297#define MII_BNX2_DSP_EXPAND_REG 0x0f00 6297#define MII_BNX2_DSP_EXPAND_REG 0x0f00
6298 6298
6299#define MII_BNX2_BLK_ADDR 0x1f
6300#define MII_BNX2_BLK_ADDR_IEEE0 0x0000
6301#define MII_BNX2_BLK_ADDR_GP_STATUS 0x8120
6302#define MII_BNX2_GP_TOP_AN_STATUS1 0x1b
6303#define MII_BNX2_GP_TOP_AN_SPEED_MSK 0x3f00
6304#define MII_BNX2_GP_TOP_AN_SPEED_10 0x0000
6305#define MII_BNX2_GP_TOP_AN_SPEED_100 0x0100
6306#define MII_BNX2_GP_TOP_AN_SPEED_1G 0x0200
6307#define MII_BNX2_GP_TOP_AN_SPEED_2_5G 0x0300
6308#define MII_BNX2_GP_TOP_AN_SPEED_1GKV 0x0d00
6309#define MII_BNX2_GP_TOP_AN_FD 0x8
6310#define MII_BNX2_BLK_ADDR_SERDES_DIG 0x8300
6311#define MII_BNX2_SERDES_DIG_1000XCTL1 0x10
6312#define MII_BNX2_SD_1000XCTL1_FIBER 0x01
6313#define MII_BNX2_SD_1000XCTL1_AUTODET 0x10
6314#define MII_BNX2_SERDES_DIG_MISC1 0x18
6315#define MII_BNX2_SD_MISC1_FORCE_MSK 0xf
6316#define MII_BNX2_SD_MISC1_FORCE_2_5G 0x0
6317#define MII_BNX2_SD_MISC1_FORCE 0x10
6318#define MII_BNX2_BLK_ADDR_OVER1G 0x8320
6319#define MII_BNX2_OVER1G_UP1 0x19
6320#define MII_BNX2_BLK_ADDR_BAM_NXTPG 0x8350
6321#define MII_BNX2_BAM_NXTPG_CTL 0x10
6322#define MII_BNX2_NXTPG_CTL_BAM 0x1
6323#define MII_BNX2_NXTPG_CTL_T2 0x2
6324#define MII_BNX2_BLK_ADDR_CL73_USERB0 0x8370
6325#define MII_BNX2_CL73_BAM_CTL1 0x12
6326#define MII_BNX2_CL73_BAM_EN 0x8000
6327#define MII_BNX2_CL73_BAM_STA_MGR_EN 0x4000
6328#define MII_BNX2_CL73_BAM_NP_AFT_BP_EN 0x2000
6329#define MII_BNX2_BLK_ADDR_AER 0xffd0
6330#define MII_BNX2_AER_AER 0x1e
6331#define MII_BNX2_AER_AER_AN_MMD 0x3800
6332#define MII_BNX2_BLK_ADDR_COMBO_IEEEB0 0xffe0
6333
6299#define MIN_ETHERNET_PACKET_SIZE 60 6334#define MIN_ETHERNET_PACKET_SIZE 60
6300#define MAX_ETHERNET_PACKET_SIZE 1514 6335#define MAX_ETHERNET_PACKET_SIZE 1514
6301#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9014 6336#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9014
@@ -6500,6 +6535,7 @@ struct bnx2 {
6500 6535
6501 u32 mii_bmcr; 6536 u32 mii_bmcr;
6502 u32 mii_bmsr; 6537 u32 mii_bmsr;
6538 u32 mii_bmsr1;
6503 u32 mii_adv; 6539 u32 mii_adv;
6504 u32 mii_lpa; 6540 u32 mii_lpa;
6505 u32 mii_up1; 6541 u32 mii_up1;