aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2011-04-13 07:05:05 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-13 20:10:06 -0400
commite64de4e6c660dae6d6370b3acb59d5d5cc9ecf20 (patch)
treebbe7e74f51c2085ce0a3c9e8536a48061647d3b8 /drivers/net/tg3.h
parent97bd8e491d1786f0020372a5a470bb8b3184856f (diff)
tg3: Dump registers when status block shows errors
This patch monitors the error bit of the status word within the status block. If it is set, the driver will dump the driver state after validating the error and then reset the chip. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 99120100bf6a..b3ccfcc9ffea 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -1201,6 +1201,7 @@
1201#define HOSTCC_STATS_BLK_NIC_ADDR 0x00003c40 1201#define HOSTCC_STATS_BLK_NIC_ADDR 0x00003c40
1202#define HOSTCC_STATUS_BLK_NIC_ADDR 0x00003c44 1202#define HOSTCC_STATUS_BLK_NIC_ADDR 0x00003c44
1203#define HOSTCC_FLOW_ATTN 0x00003c48 1203#define HOSTCC_FLOW_ATTN 0x00003c48
1204#define HOSTCC_FLOW_ATTN_MBUF_LWM 0x00000040
1204/* 0x3c4c --> 0x3c50 unused */ 1205/* 0x3c4c --> 0x3c50 unused */
1205#define HOSTCC_JUMBO_CON_IDX 0x00003c50 1206#define HOSTCC_JUMBO_CON_IDX 0x00003c50
1206#define HOSTCC_STD_CON_IDX 0x00003c54 1207#define HOSTCC_STD_CON_IDX 0x00003c54
@@ -1611,6 +1612,7 @@
1611#define MSGINT_MODE_ONE_SHOT_DISABLE 0x00000020 1612#define MSGINT_MODE_ONE_SHOT_DISABLE 0x00000020
1612#define MSGINT_MODE_MULTIVEC_EN 0x00000080 1613#define MSGINT_MODE_MULTIVEC_EN 0x00000080
1613#define MSGINT_STATUS 0x00006004 1614#define MSGINT_STATUS 0x00006004
1615#define MSGINT_STATUS_MSI_REQ 0x00000001
1614#define MSGINT_FIFO 0x00006008 1616#define MSGINT_FIFO 0x00006008
1615/* 0x600c --> 0x6400 unused */ 1617/* 0x600c --> 0x6400 unused */
1616 1618
@@ -2886,6 +2888,7 @@ struct tg3 {
2886#define TG3_FLAG_TAGGED_STATUS 0x00000001 2888#define TG3_FLAG_TAGGED_STATUS 0x00000001
2887#define TG3_FLAG_TXD_MBOX_HWBUG 0x00000002 2889#define TG3_FLAG_TXD_MBOX_HWBUG 0x00000002
2888#define TG3_FLAG_USE_LINKCHG_REG 0x00000008 2890#define TG3_FLAG_USE_LINKCHG_REG 0x00000008
2891#define TG3_FLAG_ERROR_PROCESSED 0x00000010
2889#define TG3_FLAG_ENABLE_ASF 0x00000020 2892#define TG3_FLAG_ENABLE_ASF 0x00000020
2890#define TG3_FLAG_ASPM_WORKAROUND 0x00000040 2893#define TG3_FLAG_ASPM_WORKAROUND 0x00000040
2891#define TG3_FLAG_POLL_SERDES 0x00000080 2894#define TG3_FLAG_POLL_SERDES 0x00000080