diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-29 10:08:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 20:23:53 -0500 |
commit | c1c4f453b61463df4df16f7aa5782fc0cfe05b9e (patch) | |
tree | a72b533294500e7f19ab1f67142b732471df53cb /drivers/net/sfc/falcon.h | |
parent | e58f69f4082f60076885798fae8f3a17ea713bf6 (diff) |
sfc: Remove static PHY data and enumerations
New NICs have firmware managing the PHY, and we will discover the PHY
capabilities at run-time. Replace the static data with probe() and
test_name() operations.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon.h')
-rw-r--r-- | drivers/net/sfc/falcon.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h index 875b58e94e8e..3085ecfaceed 100644 --- a/drivers/net/sfc/falcon.h +++ b/drivers/net/sfc/falcon.h | |||
@@ -38,6 +38,26 @@ static inline bool efx_nic_is_dual_func(struct efx_nic *efx) | |||
38 | return efx_nic_rev(efx) < EFX_REV_FALCON_B0; | 38 | return efx_nic_rev(efx) < EFX_REV_FALCON_B0; |
39 | } | 39 | } |
40 | 40 | ||
41 | enum { | ||
42 | PHY_TYPE_NONE = 0, | ||
43 | PHY_TYPE_TXC43128 = 1, | ||
44 | PHY_TYPE_88E1111 = 2, | ||
45 | PHY_TYPE_SFX7101 = 3, | ||
46 | PHY_TYPE_QT2022C2 = 4, | ||
47 | PHY_TYPE_PM8358 = 6, | ||
48 | PHY_TYPE_SFT9001A = 8, | ||
49 | PHY_TYPE_QT2025C = 9, | ||
50 | PHY_TYPE_SFT9001B = 10, | ||
51 | }; | ||
52 | |||
53 | #define FALCON_XMAC_LOOPBACKS \ | ||
54 | ((1 << LOOPBACK_XGMII) | \ | ||
55 | (1 << LOOPBACK_XGXS) | \ | ||
56 | (1 << LOOPBACK_XAUI)) | ||
57 | |||
58 | #define FALCON_GMAC_LOOPBACKS \ | ||
59 | (1 << LOOPBACK_GMAC) | ||
60 | |||
41 | /** | 61 | /** |
42 | * struct falcon_board_type - board operations and type information | 62 | * struct falcon_board_type - board operations and type information |
43 | * @id: Board type id, as found in NVRAM | 63 | * @id: Board type id, as found in NVRAM |