diff options
author | Yaniv Rosner <yanivr@broadcom.com> | 2009-11-05 12:18:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-05 23:00:29 -0500 |
commit | 7846e471b5b5cac5e09c8e6ebeb67e18279db8e3 (patch) | |
tree | cf80dc2865c0d00997643ad35771820d8759d9b3 /drivers/net/bnx2x_reg.h | |
parent | 18afb0a6fa69efb76b7a67a151c0530d63789141 (diff) |
bnx2x: Fix CL73 autoneg issues
- Advertise 1G KX4 in CL73 when 1G speed capability is enabled
- Add flow-control negotiation over CL73
- External loopback test on Serdes should be done in FORCE mode, since in
CL73 it is unable to link up with the same core using AUTONEG
- Fix bnx2x_set_led function to support CL73 link leds
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.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/net/bnx2x_reg.h b/drivers/net/bnx2x_reg.h index aa76cbada5e2..b80fde44c85d 100644 --- a/drivers/net/bnx2x_reg.h +++ b/drivers/net/bnx2x_reg.h | |||
@@ -4772,18 +4772,28 @@ | |||
4772 | #define PCI_ID_VAL2 0x438 | 4772 | #define PCI_ID_VAL2 0x438 |
4773 | 4773 | ||
4774 | 4774 | ||
4775 | #define MDIO_REG_BANK_CL73_IEEEB0 0x0 | 4775 | #define MDIO_REG_BANK_CL73_IEEEB0 0x0 |
4776 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 | 4776 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 |
4777 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200 | 4777 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200 |
4778 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN 0x1000 | 4778 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN 0x1000 |
4779 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST 0x8000 | 4779 | #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST 0x8000 |
4780 | 4780 | ||
4781 | #define MDIO_REG_BANK_CL73_IEEEB1 0x10 | 4781 | #define MDIO_REG_BANK_CL73_IEEEB1 0x10 |
4782 | #define MDIO_CL73_IEEEB1_AN_ADV2 0x01 | 4782 | #define MDIO_CL73_IEEEB1_AN_ADV1 0x00 |
4783 | #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE 0x0400 | ||
4784 | #define MDIO_CL73_IEEEB1_AN_ADV1_ASYMMETRIC 0x0800 | ||
4785 | #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_BOTH 0x0C00 | ||
4786 | #define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_MASK 0x0C00 | ||
4787 | #define MDIO_CL73_IEEEB1_AN_ADV2 0x01 | ||
4783 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M 0x0000 | 4788 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M 0x0000 |
4784 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX 0x0020 | 4789 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX 0x0020 |
4785 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4 0x0040 | 4790 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4 0x0040 |
4786 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR 0x0080 | 4791 | #define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR 0x0080 |
4792 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1 0x03 | ||
4793 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE 0x0400 | ||
4794 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_ASYMMETRIC 0x0800 | ||
4795 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_BOTH 0x0C00 | ||
4796 | #define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_MASK 0x0C00 | ||
4787 | 4797 | ||
4788 | #define MDIO_REG_BANK_RX0 0x80b0 | 4798 | #define MDIO_REG_BANK_RX0 0x80b0 |
4789 | #define MDIO_RX0_RX_STATUS 0x10 | 4799 | #define MDIO_RX0_RX_STATUS 0x10 |