diff options
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4_regs.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h index 2767ca6dbe99..779b23f8f591 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |||
@@ -115,6 +115,35 @@ | |||
115 | #define GLOBALENABLE 0x00000001U | 115 | #define GLOBALENABLE 0x00000001U |
116 | 116 | ||
117 | #define SGE_HOST_PAGE_SIZE 0x100c | 117 | #define SGE_HOST_PAGE_SIZE 0x100c |
118 | |||
119 | #define HOSTPAGESIZEPF7_MASK 0x0000000fU | ||
120 | #define HOSTPAGESIZEPF7_SHIFT 28 | ||
121 | #define HOSTPAGESIZEPF7(x) ((x) << HOSTPAGESIZEPF7_SHIFT) | ||
122 | |||
123 | #define HOSTPAGESIZEPF6_MASK 0x0000000fU | ||
124 | #define HOSTPAGESIZEPF6_SHIFT 24 | ||
125 | #define HOSTPAGESIZEPF6(x) ((x) << HOSTPAGESIZEPF6_SHIFT) | ||
126 | |||
127 | #define HOSTPAGESIZEPF5_MASK 0x0000000fU | ||
128 | #define HOSTPAGESIZEPF5_SHIFT 20 | ||
129 | #define HOSTPAGESIZEPF5(x) ((x) << HOSTPAGESIZEPF5_SHIFT) | ||
130 | |||
131 | #define HOSTPAGESIZEPF4_MASK 0x0000000fU | ||
132 | #define HOSTPAGESIZEPF4_SHIFT 16 | ||
133 | #define HOSTPAGESIZEPF4(x) ((x) << HOSTPAGESIZEPF4_SHIFT) | ||
134 | |||
135 | #define HOSTPAGESIZEPF3_MASK 0x0000000fU | ||
136 | #define HOSTPAGESIZEPF3_SHIFT 12 | ||
137 | #define HOSTPAGESIZEPF3(x) ((x) << HOSTPAGESIZEPF3_SHIFT) | ||
138 | |||
139 | #define HOSTPAGESIZEPF2_MASK 0x0000000fU | ||
140 | #define HOSTPAGESIZEPF2_SHIFT 8 | ||
141 | #define HOSTPAGESIZEPF2(x) ((x) << HOSTPAGESIZEPF2_SHIFT) | ||
142 | |||
143 | #define HOSTPAGESIZEPF1_MASK 0x0000000fU | ||
144 | #define HOSTPAGESIZEPF1_SHIFT 4 | ||
145 | #define HOSTPAGESIZEPF1(x) ((x) << HOSTPAGESIZEPF1_SHIFT) | ||
146 | |||
118 | #define HOSTPAGESIZEPF0_MASK 0x0000000fU | 147 | #define HOSTPAGESIZEPF0_MASK 0x0000000fU |
119 | #define HOSTPAGESIZEPF0_SHIFT 0 | 148 | #define HOSTPAGESIZEPF0_SHIFT 0 |
120 | #define HOSTPAGESIZEPF0(x) ((x) << HOSTPAGESIZEPF0_SHIFT) | 149 | #define HOSTPAGESIZEPF0(x) ((x) << HOSTPAGESIZEPF0_SHIFT) |
@@ -162,6 +191,8 @@ | |||
162 | #define SGE_INT_ENABLE3 0x1040 | 191 | #define SGE_INT_ENABLE3 0x1040 |
163 | #define SGE_FL_BUFFER_SIZE0 0x1044 | 192 | #define SGE_FL_BUFFER_SIZE0 0x1044 |
164 | #define SGE_FL_BUFFER_SIZE1 0x1048 | 193 | #define SGE_FL_BUFFER_SIZE1 0x1048 |
194 | #define SGE_FL_BUFFER_SIZE2 0x104c | ||
195 | #define SGE_FL_BUFFER_SIZE3 0x1050 | ||
165 | #define SGE_INGRESS_RX_THRESHOLD 0x10a0 | 196 | #define SGE_INGRESS_RX_THRESHOLD 0x10a0 |
166 | #define THRESHOLD_0_MASK 0x3f000000U | 197 | #define THRESHOLD_0_MASK 0x3f000000U |
167 | #define THRESHOLD_0_SHIFT 24 | 198 | #define THRESHOLD_0_SHIFT 24 |
@@ -367,7 +398,7 @@ | |||
367 | #define MEM_WRAP_CLIENT_NUM_MASK 0x0000000fU | 398 | #define MEM_WRAP_CLIENT_NUM_MASK 0x0000000fU |
368 | #define MEM_WRAP_CLIENT_NUM_SHIFT 0 | 399 | #define MEM_WRAP_CLIENT_NUM_SHIFT 0 |
369 | #define MEM_WRAP_CLIENT_NUM_GET(x) (((x) & MEM_WRAP_CLIENT_NUM_MASK) >> MEM_WRAP_CLIENT_NUM_SHIFT) | 400 | #define MEM_WRAP_CLIENT_NUM_GET(x) (((x) & MEM_WRAP_CLIENT_NUM_MASK) >> MEM_WRAP_CLIENT_NUM_SHIFT) |
370 | 401 | #define MA_PCIE_FW 0x30b8 | |
371 | #define MA_PARITY_ERROR_STATUS 0x77f4 | 402 | #define MA_PARITY_ERROR_STATUS 0x77f4 |
372 | 403 | ||
373 | #define EDC_0_BASE_ADDR 0x7900 | 404 | #define EDC_0_BASE_ADDR 0x7900 |
@@ -469,6 +500,10 @@ | |||
469 | #define TIMERRESOLUTION_MASK 0x00ff0000U | 500 | #define TIMERRESOLUTION_MASK 0x00ff0000U |
470 | #define TIMERRESOLUTION_SHIFT 16 | 501 | #define TIMERRESOLUTION_SHIFT 16 |
471 | #define TIMERRESOLUTION_GET(x) (((x) & TIMERRESOLUTION_MASK) >> TIMERRESOLUTION_SHIFT) | 502 | #define TIMERRESOLUTION_GET(x) (((x) & TIMERRESOLUTION_MASK) >> TIMERRESOLUTION_SHIFT) |
503 | #define DELAYEDACKRESOLUTION_MASK 0x000000ffU | ||
504 | #define DELAYEDACKRESOLUTION_SHIFT 0 | ||
505 | #define DELAYEDACKRESOLUTION_GET(x) \ | ||
506 | (((x) & DELAYEDACKRESOLUTION_MASK) >> DELAYEDACKRESOLUTION_SHIFT) | ||
472 | 507 | ||
473 | #define TP_SHIFT_CNT 0x7dc0 | 508 | #define TP_SHIFT_CNT 0x7dc0 |
474 | 509 | ||