diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-12-13 01:00:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 01:00:17 -0500 |
commit | e6fa2eb789f49dc51a20d3db0d410bc8158abb43 (patch) | |
tree | 4b61712a720b2f90b47fe69127a76f258e3322f8 /drivers/net/sfc/workarounds.h | |
parent | 766ca0fa6bf1600bdf4bc7726c74f14c8455c6b8 (diff) |
sfc: Add support for Solarflare 10Xpress SFT9001
Add type codes for the new PHY and rename the SFX7101 type code.
Add definition of clause 22 extension MMD.
Adapt the 10Xpress SFX7101 code to support the SFT9001 as well.
Clean up register definitions.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/workarounds.h')
-rw-r--r-- | drivers/net/sfc/workarounds.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/sfc/workarounds.h b/drivers/net/sfc/workarounds.h index ec50b90f4285..ecebff211a74 100644 --- a/drivers/net/sfc/workarounds.h +++ b/drivers/net/sfc/workarounds.h | |||
@@ -17,6 +17,8 @@ | |||
17 | 17 | ||
18 | #define EFX_WORKAROUND_ALWAYS(efx) 1 | 18 | #define EFX_WORKAROUND_ALWAYS(efx) 1 |
19 | #define EFX_WORKAROUND_FALCON_A(efx) (falcon_rev(efx) <= FALCON_REV_A1) | 19 | #define EFX_WORKAROUND_FALCON_A(efx) (falcon_rev(efx) <= FALCON_REV_A1) |
20 | #define EFX_WORKAROUND_SFX7101(efx) ((efx)->phy_type == PHY_TYPE_SFX7101) | ||
21 | #define EFX_WORKAROUND_SFT9001A(efx) ((efx)->phy_type == PHY_TYPE_SFT9001A) | ||
20 | 22 | ||
21 | /* XAUI resets if link not detected */ | 23 | /* XAUI resets if link not detected */ |
22 | #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS | 24 | #define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS |
@@ -27,7 +29,7 @@ | |||
27 | /* TX pkt parser problem with <= 16 byte TXes */ | 29 | /* TX pkt parser problem with <= 16 byte TXes */ |
28 | #define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS | 30 | #define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS |
29 | /* Low rate CRC errors require XAUI reset */ | 31 | /* Low rate CRC errors require XAUI reset */ |
30 | #define EFX_WORKAROUND_10750 EFX_WORKAROUND_ALWAYS | 32 | #define EFX_WORKAROUND_10750 EFX_WORKAROUND_SFX7101 |
31 | /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor | 33 | /* TX_EV_PKT_ERR can be caused by a dangling TX descriptor |
32 | * or a PCIe error (bug 11028) */ | 34 | * or a PCIe error (bug 11028) */ |
33 | #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS | 35 | #define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS |
@@ -51,4 +53,9 @@ | |||
51 | /* Leak overlength packets rather than free */ | 53 | /* Leak overlength packets rather than free */ |
52 | #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A | 54 | #define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A |
53 | 55 | ||
56 | /* Need to send XNP pages for 100BaseT */ | ||
57 | #define EFX_WORKAROUND_13204 EFX_WORKAROUND_SFT9001A | ||
58 | /* Need to keep AN enabled */ | ||
59 | #define EFX_WORKAROUND_13963 EFX_WORKAROUND_SFT9001A | ||
60 | |||
54 | #endif /* EFX_WORKAROUNDS_H */ | 61 | #endif /* EFX_WORKAROUNDS_H */ |