diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-01-27 03:17:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-27 03:15:02 -0500 |
commit | b58b667687b71e1f07190ba5faa66e80013eaac6 (patch) | |
tree | 942f6246951b450195861964c2b7bdfe4a71db8d /drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |
parent | b3bbe36a26d056cc0b64bb2ee72c9e34c4e8683a (diff) |
cxgb4: Added support in debugfs to dump different timer and clock values of the adapter
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 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h index 7aa0db137df6..940b56cd5caa 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |||
@@ -1203,12 +1203,35 @@ | |||
1203 | #define TIMERRESOLUTION_M 0xffU | 1203 | #define TIMERRESOLUTION_M 0xffU |
1204 | #define TIMERRESOLUTION_G(x) (((x) >> TIMERRESOLUTION_S) & TIMERRESOLUTION_M) | 1204 | #define TIMERRESOLUTION_G(x) (((x) >> TIMERRESOLUTION_S) & TIMERRESOLUTION_M) |
1205 | 1205 | ||
1206 | #define TIMESTAMPRESOLUTION_S 8 | ||
1207 | #define TIMESTAMPRESOLUTION_M 0xffU | ||
1208 | #define TIMESTAMPRESOLUTION_G(x) \ | ||
1209 | (((x) >> TIMESTAMPRESOLUTION_S) & TIMESTAMPRESOLUTION_M) | ||
1210 | |||
1206 | #define DELAYEDACKRESOLUTION_S 0 | 1211 | #define DELAYEDACKRESOLUTION_S 0 |
1207 | #define DELAYEDACKRESOLUTION_M 0xffU | 1212 | #define DELAYEDACKRESOLUTION_M 0xffU |
1208 | #define DELAYEDACKRESOLUTION_G(x) \ | 1213 | #define DELAYEDACKRESOLUTION_G(x) \ |
1209 | (((x) >> DELAYEDACKRESOLUTION_S) & DELAYEDACKRESOLUTION_M) | 1214 | (((x) >> DELAYEDACKRESOLUTION_S) & DELAYEDACKRESOLUTION_M) |
1210 | 1215 | ||
1211 | #define TP_SHIFT_CNT_A 0x7dc0 | 1216 | #define TP_SHIFT_CNT_A 0x7dc0 |
1217 | #define TP_RXT_MIN_A 0x7d98 | ||
1218 | #define TP_RXT_MAX_A 0x7d9c | ||
1219 | #define TP_PERS_MIN_A 0x7da0 | ||
1220 | #define TP_PERS_MAX_A 0x7da4 | ||
1221 | #define TP_KEEP_IDLE_A 0x7da8 | ||
1222 | #define TP_KEEP_INTVL_A 0x7dac | ||
1223 | #define TP_INIT_SRTT_A 0x7db0 | ||
1224 | #define TP_DACK_TIMER_A 0x7db4 | ||
1225 | #define TP_FINWAIT2_TIMER_A 0x7db8 | ||
1226 | |||
1227 | #define INITSRTT_S 0 | ||
1228 | #define INITSRTT_M 0xffffU | ||
1229 | #define INITSRTT_G(x) (((x) >> INITSRTT_S) & INITSRTT_M) | ||
1230 | |||
1231 | #define PERSMAX_S 0 | ||
1232 | #define PERSMAX_M 0x3fffffffU | ||
1233 | #define PERSMAX_V(x) ((x) << PERSMAX_S) | ||
1234 | #define PERSMAX_G(x) (((x) >> PERSMAX_S) & PERSMAX_M) | ||
1212 | 1235 | ||
1213 | #define SYNSHIFTMAX_S 24 | 1236 | #define SYNSHIFTMAX_S 24 |
1214 | #define SYNSHIFTMAX_M 0xffU | 1237 | #define SYNSHIFTMAX_M 0xffU |