diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-02-06 09:02:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-08 01:52:39 -0500 |
commit | 2d277b3b44ede5c1812f5e49d2c8bdb7869f1661 (patch) | |
tree | b56b9111d4593fe10a39ca1389d79835356c2145 /drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |
parent | 70a5f3bb5f80d9bc7aa746816b32ab17e3c56029 (diff) |
cxgb4: Added support in debugfs to display TP logic analyzer output
Dump Transport Processor event trace.
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4_regs.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h index 940b56cd5caa..15d0eccfa6ec 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |||
@@ -1183,9 +1183,31 @@ | |||
1183 | #define RSVDSPACEINT_F RSVDSPACEINT_V(1U) | 1183 | #define RSVDSPACEINT_F RSVDSPACEINT_V(1U) |
1184 | 1184 | ||
1185 | /* registers for module TP */ | 1185 | /* registers for module TP */ |
1186 | #define DBGLAWHLF_S 23 | ||
1187 | #define DBGLAWHLF_V(x) ((x) << DBGLAWHLF_S) | ||
1188 | #define DBGLAWHLF_F DBGLAWHLF_V(1U) | ||
1189 | |||
1190 | #define DBGLAWPTR_S 16 | ||
1191 | #define DBGLAWPTR_M 0x7fU | ||
1192 | #define DBGLAWPTR_G(x) (((x) >> DBGLAWPTR_S) & DBGLAWPTR_M) | ||
1193 | |||
1194 | #define DBGLAENABLE_S 12 | ||
1195 | #define DBGLAENABLE_V(x) ((x) << DBGLAENABLE_S) | ||
1196 | #define DBGLAENABLE_F DBGLAENABLE_V(1U) | ||
1197 | |||
1198 | #define DBGLARPTR_S 0 | ||
1199 | #define DBGLARPTR_M 0x7fU | ||
1200 | #define DBGLARPTR_V(x) ((x) << DBGLARPTR_S) | ||
1201 | |||
1202 | #define TP_DBG_LA_DATAL_A 0x7ed8 | ||
1203 | #define TP_DBG_LA_CONFIG_A 0x7ed4 | ||
1186 | #define TP_OUT_CONFIG_A 0x7d04 | 1204 | #define TP_OUT_CONFIG_A 0x7d04 |
1187 | #define TP_GLOBAL_CONFIG_A 0x7d08 | 1205 | #define TP_GLOBAL_CONFIG_A 0x7d08 |
1188 | 1206 | ||
1207 | #define DBGLAMODE_S 14 | ||
1208 | #define DBGLAMODE_M 0x3U | ||
1209 | #define DBGLAMODE_G(x) (((x) >> DBGLAMODE_S) & DBGLAMODE_M) | ||
1210 | |||
1189 | #define FIVETUPLELOOKUP_S 17 | 1211 | #define FIVETUPLELOOKUP_S 17 |
1190 | #define FIVETUPLELOOKUP_M 0x3U | 1212 | #define FIVETUPLELOOKUP_M 0x3U |
1191 | #define FIVETUPLELOOKUP_V(x) ((x) << FIVETUPLELOOKUP_S) | 1213 | #define FIVETUPLELOOKUP_V(x) ((x) << FIVETUPLELOOKUP_S) |