aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_reg.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-07-21 01:47:47 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-21 14:18:30 -0400
commit4d295db0efd2ccf06edb7a45ad885b40c56b7161 (patch)
treefb545833c5c3618d58754d50ba899b62dd37abef /drivers/net/bnx2x_reg.h
parent5316bc0b9adbefe24f149b12caeddc30df6f04e1 (diff)
bnx2x: Supporting BCM8727 PHY
Adding support for BCM8727 - a dual port SFP+ PHY. That includes verification of the optic module vendor and part number - the list of approved modules resides on the nvram and the module is verified by the FW. Since not all users would like to use this verification feature, it can be disabled. The default behavior is to issue a warning if the module is not approved, but still allow using it - but it is also possible to disable the link if the module is not approved. Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_reg.h')
-rw-r--r--drivers/net/bnx2x_reg.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/drivers/net/bnx2x_reg.h b/drivers/net/bnx2x_reg.h
index 6d77730b6b4d..d771168ec20a 100644
--- a/drivers/net/bnx2x_reg.h
+++ b/drivers/net/bnx2x_reg.h
@@ -5845,25 +5845,33 @@ Theotherbitsarereservedandshouldbezero*/
5845#define MDIO_PMA_REG_ROM_VER2 0xca1a 5845#define MDIO_PMA_REG_ROM_VER2 0xca1a
5846#define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b 5846#define MDIO_PMA_REG_EDC_FFE_MAIN 0xca1b
5847#define MDIO_PMA_REG_PLL_BANDWIDTH 0xca1d 5847#define MDIO_PMA_REG_PLL_BANDWIDTH 0xca1d
5848#define MDIO_PMA_REG_GEN_CTRL2 0xca1e 5848#define MDIO_PMA_REG_PLL_CTRL 0xca1e
5849#define MDIO_PMA_REG_MISC_CTRL0 0xca23 5849#define MDIO_PMA_REG_MISC_CTRL0 0xca23
5850#define MDIO_PMA_REG_LRM_MODE 0xca3f 5850#define MDIO_PMA_REG_LRM_MODE 0xca3f
5851#define MDIO_PMA_REG_CDR_BANDWIDTH 0xca46 5851#define MDIO_PMA_REG_CDR_BANDWIDTH 0xca46
5852#define MDIO_PMA_REG_MISC_CTRL1 0xca85 5852#define MDIO_PMA_REG_MISC_CTRL1 0xca85
5853 5853
5854#define MDIO_PMA_REG_8726_TWO_WIRE_CTRL 0x8000 5854#define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL 0x8000
5855#define MDIO_PMA_REG_8726_TWO_WIRE_CTRL_STATUS_MASK 0x000c 5855#define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK 0x000c
5856#define MDIO_PMA_REG_8726_TWO_WIRE_STATUS_IDLE 0x0000 5856#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IDLE 0x0000
5857#define MDIO_PMA_REG_8726_TWO_WIRE_STATUS_COMPLETE 0x0004 5857#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_COMPLETE 0x0004
5858#define MDIO_PMA_REG_8726_TWO_WIRE_STATUS_IN_PROGRESS 0x0008 5858#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IN_PROGRESS 0x0008
5859#define MDIO_PMA_REG_8726_TWO_WIRE_STATUS_FAILED 0x000c 5859#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_FAILED 0x000c
5860#define MDIO_PMA_REG_8726_TWO_WIRE_BYTE_CNT 0x8002 5860#define MDIO_PMA_REG_SFP_TWO_WIRE_BYTE_CNT 0x8002
5861#define MDIO_PMA_REG_8726_TWO_WIRE_MEM_ADDR 0x8003 5861#define MDIO_PMA_REG_SFP_TWO_WIRE_MEM_ADDR 0x8003
5862#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_BUF 0xc820 5862#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_BUF 0xc820
5863#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_MASK 0xff 5863#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_MASK 0xff
5864#define MDIO_PMA_REG_8726_TX_CTRL1 0xca01 5864#define MDIO_PMA_REG_8726_TX_CTRL1 0xca01
5865#define MDIO_PMA_REG_8726_TX_CTRL2 0xca05 5865#define MDIO_PMA_REG_8726_TX_CTRL2 0xca05
5866 5866
5867#define MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR 0x8005
5868#define MDIO_PMA_REG_8727_TWO_WIRE_DATA_BUF 0x8007
5869#define MDIO_PMA_REG_8727_TWO_WIRE_DATA_MASK 0xff
5870#define MDIO_PMA_REG_8727_MISC_CTRL 0x8309
5871#define MDIO_PMA_REG_8727_TX_CTRL1 0xca02
5872#define MDIO_PMA_REG_8727_TX_CTRL2 0xca05
5873#define MDIO_PMA_REG_8727_PCS_OPT_CTRL 0xc808
5874#define MDIO_PMA_REG_8727_GPIO_CTRL 0xc80e
5867 5875
5868#define MDIO_PMA_REG_8073_CHIP_REV 0xc801 5876#define MDIO_PMA_REG_8073_CHIP_REV 0xc801
5869#define MDIO_PMA_REG_8073_SPEED_LINK_STATUS 0xc820 5877#define MDIO_PMA_REG_8073_SPEED_LINK_STATUS 0xc820