diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-08-19 09:58:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-20 13:34:27 -0400 |
commit | 941ec90f35603f35466988efd01395377fd00475 (patch) | |
tree | 4ebf6850d3ce27967cf382d594c54b435c051080 /drivers/net/ethernet/broadcom/tg3.h | |
parent | 28a4595786a64fb51d41c0bad819256198525e49 (diff) |
tg3: Add external loopback support to selftest
This patch adds external loopback support to tg3's ethtool selftest.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h index 2ea456dd5880..d2976f39b2fc 100644 --- a/drivers/net/ethernet/broadcom/tg3.h +++ b/drivers/net/ethernet/broadcom/tg3.h | |||
@@ -2197,6 +2197,7 @@ | |||
2197 | #define MII_TG3_AUXCTL_ACTL_TX_6DB 0x0400 | 2197 | #define MII_TG3_AUXCTL_ACTL_TX_6DB 0x0400 |
2198 | #define MII_TG3_AUXCTL_ACTL_SMDSP_ENA 0x0800 | 2198 | #define MII_TG3_AUXCTL_ACTL_SMDSP_ENA 0x0800 |
2199 | #define MII_TG3_AUXCTL_ACTL_EXTPKTLEN 0x4000 | 2199 | #define MII_TG3_AUXCTL_ACTL_EXTPKTLEN 0x4000 |
2200 | #define MII_TG3_AUXCTL_ACTL_EXTLOOPBK 0x8000 | ||
2200 | 2201 | ||
2201 | #define MII_TG3_AUXCTL_SHDWSEL_PWRCTL 0x0002 | 2202 | #define MII_TG3_AUXCTL_SHDWSEL_PWRCTL 0x0002 |
2202 | #define MII_TG3_AUXCTL_PCTL_WOL_EN 0x0008 | 2203 | #define MII_TG3_AUXCTL_PCTL_WOL_EN 0x0008 |
@@ -2262,6 +2263,8 @@ | |||
2262 | 2263 | ||
2263 | /* Fast Ethernet Tranceiver definitions */ | 2264 | /* Fast Ethernet Tranceiver definitions */ |
2264 | #define MII_TG3_FET_PTEST 0x17 | 2265 | #define MII_TG3_FET_PTEST 0x17 |
2266 | #define MII_TG3_FET_PTEST_TRIM_SEL 0x0010 | ||
2267 | #define MII_TG3_FET_PTEST_TRIM_2 0x0002 | ||
2265 | #define MII_TG3_FET_PTEST_FRC_TX_LINK 0x1000 | 2268 | #define MII_TG3_FET_PTEST_FRC_TX_LINK 0x1000 |
2266 | #define MII_TG3_FET_PTEST_FRC_TX_LOCK 0x0800 | 2269 | #define MII_TG3_FET_PTEST_FRC_TX_LOCK 0x0800 |
2267 | 2270 | ||