diff options
author | Divy Le Ray <divy@chelsio.com> | 2009-03-12 17:14:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-13 14:30:47 -0400 |
commit | bf792094ef830117312b3990b63474320ec864c0 (patch) | |
tree | db47894a787ec8eee78b34c500661fd17231229f /drivers/net/cxgb3/regs.h | |
parent | cd40658a616050df0a50d0a3ded06e3ebcc0a04a (diff) |
cxgb3: detect mac link faults.
The driver currently ignores the local or remote link faults
raised at the mac layer. This patch fixes it.
Our mac however only advertizes link events, so wait for the
phy to stabilize the link, then enable mac link events interrupts.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/regs.h')
-rw-r--r-- | drivers/net/cxgb3/regs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/regs.h b/drivers/net/cxgb3/regs.h index aa08550ee998..1b5327b5a965 100644 --- a/drivers/net/cxgb3/regs.h +++ b/drivers/net/cxgb3/regs.h | |||
@@ -2215,6 +2215,15 @@ | |||
2215 | 2215 | ||
2216 | #define A_XGM_RX_EXACT_MATCH_LOW_8 0x854 | 2216 | #define A_XGM_RX_EXACT_MATCH_LOW_8 0x854 |
2217 | 2217 | ||
2218 | #define A_XGM_INT_STATUS 0x86c | ||
2219 | |||
2220 | #define S_LINKFAULTCHANGE 9 | ||
2221 | #define V_LINKFAULTCHANGE(x) ((x) << S_LINKFAULTCHANGE) | ||
2222 | #define F_LINKFAULTCHANGE V_LINKFAULTCHANGE(1U) | ||
2223 | |||
2224 | #define A_XGM_XGM_INT_ENABLE 0x874 | ||
2225 | #define A_XGM_XGM_INT_DISABLE 0x878 | ||
2226 | |||
2218 | #define A_XGM_STAT_CTRL 0x880 | 2227 | #define A_XGM_STAT_CTRL 0x880 |
2219 | 2228 | ||
2220 | #define S_CLRSTATS 2 | 2229 | #define S_CLRSTATS 2 |
@@ -2413,6 +2422,10 @@ | |||
2413 | #define V_XAUIPCSALIGNCHANGE(x) ((x) << S_XAUIPCSALIGNCHANGE) | 2422 | #define V_XAUIPCSALIGNCHANGE(x) ((x) << S_XAUIPCSALIGNCHANGE) |
2414 | #define F_XAUIPCSALIGNCHANGE V_XAUIPCSALIGNCHANGE(1U) | 2423 | #define F_XAUIPCSALIGNCHANGE V_XAUIPCSALIGNCHANGE(1U) |
2415 | 2424 | ||
2425 | #define S_XGM_INT 0 | ||
2426 | #define V_XGM_INT(x) ((x) << S_XGM_INT) | ||
2427 | #define F_XGM_INT V_XGM_INT(1U) | ||
2428 | |||
2416 | #define A_XGM_INT_CAUSE 0x8d8 | 2429 | #define A_XGM_INT_CAUSE 0x8d8 |
2417 | 2430 | ||
2418 | #define A_XGM_XAUI_ACT_CTRL 0x8dc | 2431 | #define A_XGM_XAUI_ACT_CTRL 0x8dc |