diff options
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4_regs.h')
| -rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h index 0adc5bcec7c4..111fc323f155 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | |||
| @@ -190,6 +190,59 @@ | |||
| 190 | #define SGE_DEBUG_DATA_LOW 0x10d4 | 190 | #define SGE_DEBUG_DATA_LOW 0x10d4 |
| 191 | #define SGE_INGRESS_QUEUES_PER_PAGE_PF 0x10f4 | 191 | #define SGE_INGRESS_QUEUES_PER_PAGE_PF 0x10f4 |
| 192 | 192 | ||
| 193 | #define S_LP_INT_THRESH 12 | ||
| 194 | #define V_LP_INT_THRESH(x) ((x) << S_LP_INT_THRESH) | ||
| 195 | #define S_HP_INT_THRESH 28 | ||
| 196 | #define V_HP_INT_THRESH(x) ((x) << S_HP_INT_THRESH) | ||
| 197 | #define A_SGE_DBFIFO_STATUS 0x10a4 | ||
| 198 | |||
| 199 | #define S_ENABLE_DROP 13 | ||
| 200 | #define V_ENABLE_DROP(x) ((x) << S_ENABLE_DROP) | ||
| 201 | #define F_ENABLE_DROP V_ENABLE_DROP(1U) | ||
| 202 | #define A_SGE_DOORBELL_CONTROL 0x10a8 | ||
| 203 | |||
| 204 | #define A_SGE_CTXT_CMD 0x11fc | ||
| 205 | #define A_SGE_DBQ_CTXT_BADDR 0x1084 | ||
| 206 | |||
| 207 | #define A_SGE_PF_KDOORBELL 0x0 | ||
| 208 | |||
| 209 | #define S_QID 15 | ||
| 210 | #define V_QID(x) ((x) << S_QID) | ||
| 211 | |||
| 212 | #define S_PIDX 0 | ||
| 213 | #define V_PIDX(x) ((x) << S_PIDX) | ||
| 214 | |||
| 215 | #define M_LP_COUNT 0x7ffU | ||
| 216 | #define S_LP_COUNT 0 | ||
| 217 | #define G_LP_COUNT(x) (((x) >> S_LP_COUNT) & M_LP_COUNT) | ||
| 218 | |||
| 219 | #define M_HP_COUNT 0x7ffU | ||
| 220 | #define S_HP_COUNT 16 | ||
| 221 | #define G_HP_COUNT(x) (((x) >> S_HP_COUNT) & M_HP_COUNT) | ||
| 222 | |||
| 223 | #define A_SGE_INT_ENABLE3 0x1040 | ||
| 224 | |||
| 225 | #define S_DBFIFO_HP_INT 8 | ||
| 226 | #define V_DBFIFO_HP_INT(x) ((x) << S_DBFIFO_HP_INT) | ||
| 227 | #define F_DBFIFO_HP_INT V_DBFIFO_HP_INT(1U) | ||
| 228 | |||
| 229 | #define S_DBFIFO_LP_INT 7 | ||
| 230 | #define V_DBFIFO_LP_INT(x) ((x) << S_DBFIFO_LP_INT) | ||
| 231 | #define F_DBFIFO_LP_INT V_DBFIFO_LP_INT(1U) | ||
| 232 | |||
| 233 | #define S_DROPPED_DB 0 | ||
| 234 | #define V_DROPPED_DB(x) ((x) << S_DROPPED_DB) | ||
| 235 | #define F_DROPPED_DB V_DROPPED_DB(1U) | ||
| 236 | |||
| 237 | #define S_ERR_DROPPED_DB 18 | ||
| 238 | #define V_ERR_DROPPED_DB(x) ((x) << S_ERR_DROPPED_DB) | ||
| 239 | #define F_ERR_DROPPED_DB V_ERR_DROPPED_DB(1U) | ||
| 240 | |||
| 241 | #define A_PCIE_MEM_ACCESS_OFFSET 0x306c | ||
| 242 | |||
| 243 | #define M_HP_INT_THRESH 0xfU | ||
| 244 | #define M_LP_INT_THRESH 0xfU | ||
| 245 | |||
| 193 | #define PCIE_PF_CLI 0x44 | 246 | #define PCIE_PF_CLI 0x44 |
| 194 | #define PCIE_INT_CAUSE 0x3004 | 247 | #define PCIE_INT_CAUSE 0x3004 |
| 195 | #define UNXSPLCPLERR 0x20000000U | 248 | #define UNXSPLCPLERR 0x20000000U |
