diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-29 10:08:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 20:23:53 -0500 |
commit | e58f69f4082f60076885798fae8f3a17ea713bf6 (patch) | |
tree | afd86e4023e266747c8f63d5369c268e1269ff22 /drivers/net/sfc/efx.c | |
parent | 5784946068f81c5f1cce2906a7655652e34f44f3 (diff) |
sfc: Extend loopback mode enumeration
New NICs and PHYs support a wider variety of loopback modes.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index e5c33c66eda3..75dcaaedc3e8 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -36,15 +36,32 @@ | |||
36 | const unsigned int efx_loopback_mode_max = LOOPBACK_MAX; | 36 | const unsigned int efx_loopback_mode_max = LOOPBACK_MAX; |
37 | const char *efx_loopback_mode_names[] = { | 37 | const char *efx_loopback_mode_names[] = { |
38 | [LOOPBACK_NONE] = "NONE", | 38 | [LOOPBACK_NONE] = "NONE", |
39 | [LOOPBACK_DATA] = "DATAPATH", | ||
39 | [LOOPBACK_GMAC] = "GMAC", | 40 | [LOOPBACK_GMAC] = "GMAC", |
40 | [LOOPBACK_XGMII] = "XGMII", | 41 | [LOOPBACK_XGMII] = "XGMII", |
41 | [LOOPBACK_XGXS] = "XGXS", | 42 | [LOOPBACK_XGXS] = "XGXS", |
42 | [LOOPBACK_XAUI] = "XAUI", | 43 | [LOOPBACK_XAUI] = "XAUI", |
44 | [LOOPBACK_GMII] = "GMII", | ||
45 | [LOOPBACK_SGMII] = "SGMII", | ||
46 | [LOOPBACK_XGBR] = "XGBR", | ||
47 | [LOOPBACK_XFI] = "XFI", | ||
48 | [LOOPBACK_XAUI_FAR] = "XAUI_FAR", | ||
49 | [LOOPBACK_GMII_FAR] = "GMII_FAR", | ||
50 | [LOOPBACK_SGMII_FAR] = "SGMII_FAR", | ||
51 | [LOOPBACK_XFI_FAR] = "XFI_FAR", | ||
43 | [LOOPBACK_GPHY] = "GPHY", | 52 | [LOOPBACK_GPHY] = "GPHY", |
44 | [LOOPBACK_PHYXS] = "PHYXS", | 53 | [LOOPBACK_PHYXS] = "PHYXS", |
45 | [LOOPBACK_PCS] = "PCS", | 54 | [LOOPBACK_PCS] = "PCS", |
46 | [LOOPBACK_PMAPMD] = "PMA/PMD", | 55 | [LOOPBACK_PMAPMD] = "PMA/PMD", |
47 | [LOOPBACK_NETWORK] = "NETWORK", | 56 | [LOOPBACK_XPORT] = "XPORT", |
57 | [LOOPBACK_XGMII_WS] = "XGMII_WS", | ||
58 | [LOOPBACK_XAUI_WS] = "XAUI_WS", | ||
59 | [LOOPBACK_XAUI_WS_FAR] = "XAUI_WS_FAR", | ||
60 | [LOOPBACK_XAUI_WS_NEAR] = "XAUI_WS_NEAR", | ||
61 | [LOOPBACK_GMII_WS] = "GMII_WS", | ||
62 | [LOOPBACK_XFI_WS] = "XFI_WS", | ||
63 | [LOOPBACK_XFI_WS_FAR] = "XFI_WS_FAR", | ||
64 | [LOOPBACK_PHYXS_WS] = "PHYXS_WS", | ||
48 | }; | 65 | }; |
49 | 66 | ||
50 | /* Interrupt mode names (see INT_MODE())) */ | 67 | /* Interrupt mode names (see INT_MODE())) */ |