diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 03:38:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:31:50 -0500 |
commit | b5bf9068ebb1b4012e4c0fef58490f97e6b6a0db (patch) | |
tree | 75c15b5ca4456238cdc6296d34fc7336c0664a64 /drivers/net/bnx2x.h | |
parent | 26e029752c8f8671b1de83fe86906fc29f9eda92 (diff) |
bnx2x: Loopback in diag mode
When loading in diag mode, set the device to loopback instead of normal link and
then changing it to loopback mode
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index 891a58ed7591..88eeee9197c8 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h | |||
@@ -1062,10 +1062,10 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms, | |||
1062 | 1062 | ||
1063 | #define BNX2X_NUM_TESTS 7 | 1063 | #define BNX2X_NUM_TESTS 7 |
1064 | 1064 | ||
1065 | #define BNX2X_MAC_LOOPBACK 0 | 1065 | #define BNX2X_PHY_LOOPBACK 0 |
1066 | #define BNX2X_PHY_LOOPBACK 1 | 1066 | #define BNX2X_MAC_LOOPBACK 1 |
1067 | #define BNX2X_MAC_LOOPBACK_FAILED 1 | 1067 | #define BNX2X_PHY_LOOPBACK_FAILED 1 |
1068 | #define BNX2X_PHY_LOOPBACK_FAILED 2 | 1068 | #define BNX2X_MAC_LOOPBACK_FAILED 2 |
1069 | #define BNX2X_LOOPBACK_FAILED (BNX2X_MAC_LOOPBACK_FAILED | \ | 1069 | #define BNX2X_LOOPBACK_FAILED (BNX2X_MAC_LOOPBACK_FAILED | \ |
1070 | BNX2X_PHY_LOOPBACK_FAILED) | 1070 | BNX2X_PHY_LOOPBACK_FAILED) |
1071 | 1071 | ||