Go to the documentation of this file.
38 #define MYPF_BASE 0x1b000
39 #define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr))
41 #define PF0_BASE 0x1e000
42 #define PF0_REG(reg_addr) (PF0_BASE + (reg_addr))
44 #define PF_STRIDE 0x400
45 #define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE)
46 #define PF_REG(idx, reg) (PF_BASE(idx) + (reg))
48 #define MYPORT_BASE 0x1c000
49 #define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr))
51 #define PORT0_BASE 0x20000
52 #define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr))
54 #define PORT_STRIDE 0x2000
55 #define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE)
56 #define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
58 #define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR)
59 #define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx)
61 #define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
62 #define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
63 #define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
64 #define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
66 #define SGE_PF_KDOORBELL 0x0
67 #define QID_MASK 0xffff8000U
69 #define QID(x) ((x) << QID_SHIFT)
70 #define DBPRIO 0x00004000U
71 #define PIDX_MASK 0x00003fffU
73 #define PIDX(x) ((x) << PIDX_SHIFT)
75 #define SGE_PF_GTS 0x4
76 #define INGRESSQID_MASK 0xffff0000U
77 #define INGRESSQID_SHIFT 16
78 #define INGRESSQID(x) ((x) << INGRESSQID_SHIFT)
79 #define TIMERREG_MASK 0x0000e000U
80 #define TIMERREG_SHIFT 13
81 #define TIMERREG(x) ((x) << TIMERREG_SHIFT)
82 #define SEINTARM_MASK 0x00001000U
83 #define SEINTARM_SHIFT 12
84 #define SEINTARM(x) ((x) << SEINTARM_SHIFT)
85 #define CIDXINC_MASK 0x00000fffU
86 #define CIDXINC_SHIFT 0
87 #define CIDXINC(x) ((x) << CIDXINC_SHIFT)
89 #define X_RXPKTCPLMODE_SPLIT 1
90 #define X_INGPADBOUNDARY_SHIFT 5
92 #define SGE_CONTROL 0x1008
93 #define DCASYSTYPE 0x00080000U
94 #define RXPKTCPLMODE_MASK 0x00040000U
95 #define RXPKTCPLMODE_SHIFT 18
96 #define RXPKTCPLMODE(x) ((x) << RXPKTCPLMODE_SHIFT)
97 #define EGRSTATUSPAGESIZE_MASK 0x00020000U
98 #define EGRSTATUSPAGESIZE_SHIFT 17
99 #define EGRSTATUSPAGESIZE(x) ((x) << EGRSTATUSPAGESIZE_SHIFT)
100 #define PKTSHIFT_MASK 0x00001c00U
101 #define PKTSHIFT_SHIFT 10
102 #define PKTSHIFT(x) ((x) << PKTSHIFT_SHIFT)
103 #define PKTSHIFT_GET(x) (((x) & PKTSHIFT_MASK) >> PKTSHIFT_SHIFT)
104 #define INGPCIEBOUNDARY_MASK 0x00000380U
105 #define INGPCIEBOUNDARY_SHIFT 7
106 #define INGPCIEBOUNDARY(x) ((x) << INGPCIEBOUNDARY_SHIFT)
107 #define INGPADBOUNDARY_MASK 0x00000070U
108 #define INGPADBOUNDARY_SHIFT 4
109 #define INGPADBOUNDARY(x) ((x) << INGPADBOUNDARY_SHIFT)
110 #define INGPADBOUNDARY_GET(x) (((x) & INGPADBOUNDARY_MASK) \
111 >> INGPADBOUNDARY_SHIFT)
112 #define EGRPCIEBOUNDARY_MASK 0x0000000eU
113 #define EGRPCIEBOUNDARY_SHIFT 1
114 #define EGRPCIEBOUNDARY(x) ((x) << EGRPCIEBOUNDARY_SHIFT)
115 #define GLOBALENABLE 0x00000001U
117 #define SGE_HOST_PAGE_SIZE 0x100c
119 #define HOSTPAGESIZEPF7_MASK 0x0000000fU
120 #define HOSTPAGESIZEPF7_SHIFT 28
121 #define HOSTPAGESIZEPF7(x) ((x) << HOSTPAGESIZEPF7_SHIFT)
123 #define HOSTPAGESIZEPF6_MASK 0x0000000fU
124 #define HOSTPAGESIZEPF6_SHIFT 24
125 #define HOSTPAGESIZEPF6(x) ((x) << HOSTPAGESIZEPF6_SHIFT)
127 #define HOSTPAGESIZEPF5_MASK 0x0000000fU
128 #define HOSTPAGESIZEPF5_SHIFT 20
129 #define HOSTPAGESIZEPF5(x) ((x) << HOSTPAGESIZEPF5_SHIFT)
131 #define HOSTPAGESIZEPF4_MASK 0x0000000fU
132 #define HOSTPAGESIZEPF4_SHIFT 16
133 #define HOSTPAGESIZEPF4(x) ((x) << HOSTPAGESIZEPF4_SHIFT)
135 #define HOSTPAGESIZEPF3_MASK 0x0000000fU
136 #define HOSTPAGESIZEPF3_SHIFT 12
137 #define HOSTPAGESIZEPF3(x) ((x) << HOSTPAGESIZEPF3_SHIFT)
139 #define HOSTPAGESIZEPF2_MASK 0x0000000fU
140 #define HOSTPAGESIZEPF2_SHIFT 8
141 #define HOSTPAGESIZEPF2(x) ((x) << HOSTPAGESIZEPF2_SHIFT)
143 #define HOSTPAGESIZEPF1_MASK 0x0000000fU
144 #define HOSTPAGESIZEPF1_SHIFT 4
145 #define HOSTPAGESIZEPF1(x) ((x) << HOSTPAGESIZEPF1_SHIFT)
147 #define HOSTPAGESIZEPF0_MASK 0x0000000fU
148 #define HOSTPAGESIZEPF0_SHIFT 0
149 #define HOSTPAGESIZEPF0(x) ((x) << HOSTPAGESIZEPF0_SHIFT)
151 #define SGE_EGRESS_QUEUES_PER_PAGE_PF 0x1010
152 #define QUEUESPERPAGEPF0_MASK 0x0000000fU
153 #define QUEUESPERPAGEPF0_GET(x) ((x) & QUEUESPERPAGEPF0_MASK)
155 #define SGE_INT_CAUSE1 0x1024
156 #define SGE_INT_CAUSE2 0x1030
157 #define SGE_INT_CAUSE3 0x103c
158 #define ERR_FLM_DBP 0x80000000U
159 #define ERR_FLM_IDMA1 0x40000000U
160 #define ERR_FLM_IDMA0 0x20000000U
161 #define ERR_FLM_HINT 0x10000000U
162 #define ERR_PCIE_ERROR3 0x08000000U
163 #define ERR_PCIE_ERROR2 0x04000000U
164 #define ERR_PCIE_ERROR1 0x02000000U
165 #define ERR_PCIE_ERROR0 0x01000000U
166 #define ERR_TIMER_ABOVE_MAX_QID 0x00800000U
167 #define ERR_CPL_EXCEED_IQE_SIZE 0x00400000U
168 #define ERR_INVALID_CIDX_INC 0x00200000U
169 #define ERR_ITP_TIME_PAUSED 0x00100000U
170 #define ERR_CPL_OPCODE_0 0x00080000U
171 #define ERR_DROPPED_DB 0x00040000U
172 #define ERR_DATA_CPL_ON_HIGH_QID1 0x00020000U
173 #define ERR_DATA_CPL_ON_HIGH_QID0 0x00010000U
174 #define ERR_BAD_DB_PIDX3 0x00008000U
175 #define ERR_BAD_DB_PIDX2 0x00004000U
176 #define ERR_BAD_DB_PIDX1 0x00002000U
177 #define ERR_BAD_DB_PIDX0 0x00001000U
178 #define ERR_ING_PCIE_CHAN 0x00000800U
179 #define ERR_ING_CTXT_PRIO 0x00000400U
180 #define ERR_EGR_CTXT_PRIO 0x00000200U
181 #define DBFIFO_HP_INT 0x00000100U
182 #define DBFIFO_LP_INT 0x00000080U
183 #define REG_ADDRESS_ERR 0x00000040U
184 #define INGRESS_SIZE_ERR 0x00000020U
185 #define EGRESS_SIZE_ERR 0x00000010U
186 #define ERR_INV_CTXT3 0x00000008U
187 #define ERR_INV_CTXT2 0x00000004U
188 #define ERR_INV_CTXT1 0x00000002U
189 #define ERR_INV_CTXT0 0x00000001U
191 #define SGE_INT_ENABLE3 0x1040
192 #define SGE_FL_BUFFER_SIZE0 0x1044
193 #define SGE_FL_BUFFER_SIZE1 0x1048
194 #define SGE_FL_BUFFER_SIZE2 0x104c
195 #define SGE_FL_BUFFER_SIZE3 0x1050
196 #define SGE_INGRESS_RX_THRESHOLD 0x10a0
197 #define THRESHOLD_0_MASK 0x3f000000U
198 #define THRESHOLD_0_SHIFT 24
199 #define THRESHOLD_0(x) ((x) << THRESHOLD_0_SHIFT)
200 #define THRESHOLD_0_GET(x) (((x) & THRESHOLD_0_MASK) >> THRESHOLD_0_SHIFT)
201 #define THRESHOLD_1_MASK 0x003f0000U
202 #define THRESHOLD_1_SHIFT 16
203 #define THRESHOLD_1(x) ((x) << THRESHOLD_1_SHIFT)
204 #define THRESHOLD_1_GET(x) (((x) & THRESHOLD_1_MASK) >> THRESHOLD_1_SHIFT)
205 #define THRESHOLD_2_MASK 0x00003f00U
206 #define THRESHOLD_2_SHIFT 8
207 #define THRESHOLD_2(x) ((x) << THRESHOLD_2_SHIFT)
208 #define THRESHOLD_2_GET(x) (((x) & THRESHOLD_2_MASK) >> THRESHOLD_2_SHIFT)
209 #define THRESHOLD_3_MASK 0x0000003fU
210 #define THRESHOLD_3_SHIFT 0
211 #define THRESHOLD_3(x) ((x) << THRESHOLD_3_SHIFT)
212 #define THRESHOLD_3_GET(x) (((x) & THRESHOLD_3_MASK) >> THRESHOLD_3_SHIFT)
214 #define SGE_CONM_CTRL 0x1094
215 #define EGRTHRESHOLD_MASK 0x00003f00U
216 #define EGRTHRESHOLDshift 8
217 #define EGRTHRESHOLD(x) ((x) << EGRTHRESHOLDshift)
218 #define EGRTHRESHOLD_GET(x) (((x) & EGRTHRESHOLD_MASK) >> EGRTHRESHOLDshift)
220 #define SGE_TIMER_VALUE_0_AND_1 0x10b8
221 #define TIMERVALUE0_MASK 0xffff0000U
222 #define TIMERVALUE0_SHIFT 16
223 #define TIMERVALUE0(x) ((x) << TIMERVALUE0_SHIFT)
224 #define TIMERVALUE0_GET(x) (((x) & TIMERVALUE0_MASK) >> TIMERVALUE0_SHIFT)
225 #define TIMERVALUE1_MASK 0x0000ffffU
226 #define TIMERVALUE1_SHIFT 0
227 #define TIMERVALUE1(x) ((x) << TIMERVALUE1_SHIFT)
228 #define TIMERVALUE1_GET(x) (((x) & TIMERVALUE1_MASK) >> TIMERVALUE1_SHIFT)
230 #define SGE_TIMER_VALUE_2_AND_3 0x10bc
231 #define TIMERVALUE2_MASK 0xffff0000U
232 #define TIMERVALUE2_SHIFT 16
233 #define TIMERVALUE2(x) ((x) << TIMERVALUE2_SHIFT)
234 #define TIMERVALUE2_GET(x) (((x) & TIMERVALUE2_MASK) >> TIMERVALUE2_SHIFT)
235 #define TIMERVALUE3_MASK 0x0000ffffU
236 #define TIMERVALUE3_SHIFT 0
237 #define TIMERVALUE3(x) ((x) << TIMERVALUE3_SHIFT)
238 #define TIMERVALUE3_GET(x) (((x) & TIMERVALUE3_MASK) >> TIMERVALUE3_SHIFT)
240 #define SGE_TIMER_VALUE_4_AND_5 0x10c0
241 #define TIMERVALUE4_MASK 0xffff0000U
242 #define TIMERVALUE4_SHIFT 16
243 #define TIMERVALUE4(x) ((x) << TIMERVALUE4_SHIFT)
244 #define TIMERVALUE4_GET(x) (((x) & TIMERVALUE4_MASK) >> TIMERVALUE4_SHIFT)
245 #define TIMERVALUE5_MASK 0x0000ffffU
246 #define TIMERVALUE5_SHIFT 0
247 #define TIMERVALUE5(x) ((x) << TIMERVALUE5_SHIFT)
248 #define TIMERVALUE5_GET(x) (((x) & TIMERVALUE5_MASK) >> TIMERVALUE5_SHIFT)
250 #define SGE_DEBUG_INDEX 0x10cc
251 #define SGE_DEBUG_DATA_HIGH 0x10d0
252 #define SGE_DEBUG_DATA_LOW 0x10d4
253 #define SGE_INGRESS_QUEUES_PER_PAGE_PF 0x10f4
255 #define S_HP_INT_THRESH 28
256 #define M_HP_INT_THRESH 0xfU
257 #define V_HP_INT_THRESH(x) ((x) << S_HP_INT_THRESH)
258 #define M_HP_COUNT 0x7ffU
259 #define S_HP_COUNT 16
260 #define G_HP_COUNT(x) (((x) >> S_HP_COUNT) & M_HP_COUNT)
261 #define S_LP_INT_THRESH 12
262 #define M_LP_INT_THRESH 0xfU
263 #define V_LP_INT_THRESH(x) ((x) << S_LP_INT_THRESH)
264 #define M_LP_COUNT 0x7ffU
266 #define G_LP_COUNT(x) (((x) >> S_LP_COUNT) & M_LP_COUNT)
267 #define A_SGE_DBFIFO_STATUS 0x10a4
269 #define S_ENABLE_DROP 13
270 #define V_ENABLE_DROP(x) ((x) << S_ENABLE_DROP)
271 #define F_ENABLE_DROP V_ENABLE_DROP(1U)
272 #define S_DROPPED_DB 0
273 #define V_DROPPED_DB(x) ((x) << S_DROPPED_DB)
274 #define F_DROPPED_DB V_DROPPED_DB(1U)
275 #define A_SGE_DOORBELL_CONTROL 0x10a8
277 #define A_SGE_CTXT_CMD 0x11fc
278 #define A_SGE_DBQ_CTXT_BADDR 0x1084
280 #define PCIE_PF_CLI 0x44
281 #define PCIE_INT_CAUSE 0x3004
282 #define UNXSPLCPLERR 0x20000000U
283 #define PCIEPINT 0x10000000U
284 #define PCIESINT 0x08000000U
285 #define RPLPERR 0x04000000U
286 #define RXWRPERR 0x02000000U
287 #define RXCPLPERR 0x01000000U
288 #define PIOTAGPERR 0x00800000U
289 #define MATAGPERR 0x00400000U
290 #define INTXCLRPERR 0x00200000U
291 #define FIDPERR 0x00100000U
292 #define CFGSNPPERR 0x00080000U
293 #define HRSPPERR 0x00040000U
294 #define HREQPERR 0x00020000U
295 #define HCNTPERR 0x00010000U
296 #define DRSPPERR 0x00008000U
297 #define DREQPERR 0x00004000U
298 #define DCNTPERR 0x00002000U
299 #define CRSPPERR 0x00001000U
300 #define CREQPERR 0x00000800U
301 #define CCNTPERR 0x00000400U
302 #define TARTAGPERR 0x00000200U
303 #define PIOREQPERR 0x00000100U
304 #define PIOCPLPERR 0x00000080U
305 #define MSIXDIPERR 0x00000040U
306 #define MSIXDATAPERR 0x00000020U
307 #define MSIXADDRHPERR 0x00000010U
308 #define MSIXADDRLPERR 0x00000008U
309 #define MSIDATAPERR 0x00000004U
310 #define MSIADDRHPERR 0x00000002U
311 #define MSIADDRLPERR 0x00000001U
313 #define PCIE_NONFAT_ERR 0x3010
314 #define PCIE_MEM_ACCESS_BASE_WIN 0x3068
315 #define PCIEOFST_MASK 0xfffffc00U
316 #define BIR_MASK 0x00000300U
318 #define BIR(x) ((x) << BIR_SHIFT)
319 #define WINDOW_MASK 0x000000ffU
320 #define WINDOW_SHIFT 0
321 #define WINDOW(x) ((x) << WINDOW_SHIFT)
322 #define PCIE_MEM_ACCESS_OFFSET 0x306c
324 #define PCIE_FW 0x30b8
326 #define PCIE_CORE_UTL_SYSTEM_BUS_AGENT_STATUS 0x5908
327 #define RNPP 0x80000000U
328 #define RPCP 0x20000000U
329 #define RCIP 0x08000000U
330 #define RCCP 0x04000000U
331 #define RFTP 0x00800000U
332 #define PTRP 0x00100000U
334 #define PCIE_CORE_UTL_PCI_EXPRESS_PORT_STATUS 0x59a4
335 #define TPCP 0x40000000U
336 #define TNPP 0x20000000U
337 #define TFTP 0x10000000U
338 #define TCAP 0x08000000U
339 #define TCIP 0x04000000U
340 #define RCAP 0x02000000U
341 #define PLUP 0x00800000U
342 #define PLDN 0x00400000U
343 #define OTDD 0x00200000U
344 #define GTRP 0x00100000U
345 #define RDPE 0x00040000U
346 #define TDCE 0x00020000U
347 #define TDUE 0x00010000U
349 #define MC_INT_CAUSE 0x7518
350 #define ECC_UE_INT_CAUSE 0x00000004U
351 #define ECC_CE_INT_CAUSE 0x00000002U
352 #define PERR_INT_CAUSE 0x00000001U
354 #define MC_ECC_STATUS 0x751c
355 #define ECC_CECNT_MASK 0xffff0000U
356 #define ECC_CECNT_SHIFT 16
357 #define ECC_CECNT(x) ((x) << ECC_CECNT_SHIFT)
358 #define ECC_CECNT_GET(x) (((x) & ECC_CECNT_MASK) >> ECC_CECNT_SHIFT)
359 #define ECC_UECNT_MASK 0x0000ffffU
360 #define ECC_UECNT_SHIFT 0
361 #define ECC_UECNT(x) ((x) << ECC_UECNT_SHIFT)
362 #define ECC_UECNT_GET(x) (((x) & ECC_UECNT_MASK) >> ECC_UECNT_SHIFT)
364 #define MC_BIST_CMD 0x7600
365 #define START_BIST 0x80000000U
366 #define BIST_CMD_GAP_MASK 0x0000ff00U
367 #define BIST_CMD_GAP_SHIFT 8
368 #define BIST_CMD_GAP(x) ((x) << BIST_CMD_GAP_SHIFT)
369 #define BIST_OPCODE_MASK 0x00000003U
370 #define BIST_OPCODE_SHIFT 0
371 #define BIST_OPCODE(x) ((x) << BIST_OPCODE_SHIFT)
373 #define MC_BIST_CMD_ADDR 0x7604
374 #define MC_BIST_CMD_LEN 0x7608
375 #define MC_BIST_DATA_PATTERN 0x760c
376 #define BIST_DATA_TYPE_MASK 0x0000000fU
377 #define BIST_DATA_TYPE_SHIFT 0
378 #define BIST_DATA_TYPE(x) ((x) << BIST_DATA_TYPE_SHIFT)
380 #define MC_BIST_STATUS_RDATA 0x7688
382 #define MA_EXT_MEMORY_BAR 0x77c8
383 #define EXT_MEM_SIZE_MASK 0x00000fffU
384 #define EXT_MEM_SIZE_SHIFT 0
385 #define EXT_MEM_SIZE_GET(x) (((x) & EXT_MEM_SIZE_MASK) >> EXT_MEM_SIZE_SHIFT)
387 #define MA_TARGET_MEM_ENABLE 0x77d8
388 #define EXT_MEM_ENABLE 0x00000004U
389 #define EDRAM1_ENABLE 0x00000002U
390 #define EDRAM0_ENABLE 0x00000001U
392 #define MA_INT_CAUSE 0x77e0
393 #define MEM_PERR_INT_CAUSE 0x00000002U
394 #define MEM_WRAP_INT_CAUSE 0x00000001U
396 #define MA_INT_WRAP_STATUS 0x77e4
397 #define MEM_WRAP_ADDRESS_MASK 0xfffffff0U
398 #define MEM_WRAP_ADDRESS_SHIFT 4
399 #define MEM_WRAP_ADDRESS_GET(x) (((x) & MEM_WRAP_ADDRESS_MASK) >> MEM_WRAP_ADDRESS_SHIFT)
400 #define MEM_WRAP_CLIENT_NUM_MASK 0x0000000fU
401 #define MEM_WRAP_CLIENT_NUM_SHIFT 0
402 #define MEM_WRAP_CLIENT_NUM_GET(x) (((x) & MEM_WRAP_CLIENT_NUM_MASK) >> MEM_WRAP_CLIENT_NUM_SHIFT)
403 #define MA_PCIE_FW 0x30b8
404 #define MA_PARITY_ERROR_STATUS 0x77f4
406 #define EDC_0_BASE_ADDR 0x7900
408 #define EDC_BIST_CMD 0x7904
409 #define EDC_BIST_CMD_ADDR 0x7908
410 #define EDC_BIST_CMD_LEN 0x790c
411 #define EDC_BIST_DATA_PATTERN 0x7910
412 #define EDC_BIST_STATUS_RDATA 0x7928
413 #define EDC_INT_CAUSE 0x7978
414 #define ECC_UE_PAR 0x00000020U
415 #define ECC_CE_PAR 0x00000010U
416 #define PERR_PAR_CAUSE 0x00000008U
418 #define EDC_ECC_STATUS 0x797c
420 #define EDC_1_BASE_ADDR 0x7980
422 #define CIM_BOOT_CFG 0x7b00
423 #define BOOTADDR_MASK 0xffffff00U
426 #define CIM_PF_MAILBOX_DATA 0x240
427 #define CIM_PF_MAILBOX_CTRL 0x280
428 #define MBMSGVALID 0x00000008U
429 #define MBINTREQ 0x00000004U
430 #define MBOWNER_MASK 0x00000003U
431 #define MBOWNER_SHIFT 0
432 #define MBOWNER(x) ((x) << MBOWNER_SHIFT)
433 #define MBOWNER_GET(x) (((x) & MBOWNER_MASK) >> MBOWNER_SHIFT)
435 #define CIM_PF_HOST_INT_CAUSE 0x28c
436 #define MBMSGRDYINT 0x00080000U
438 #define CIM_HOST_INT_CAUSE 0x7b2c
439 #define TIEQOUTPARERRINT 0x00100000U
440 #define TIEQINPARERRINT 0x00080000U
441 #define MBHOSTPARERR 0x00040000U
442 #define MBUPPARERR 0x00020000U
443 #define IBQPARERR 0x0001f800U
444 #define IBQTP0PARERR 0x00010000U
445 #define IBQTP1PARERR 0x00008000U
446 #define IBQULPPARERR 0x00004000U
447 #define IBQSGELOPARERR 0x00002000U
448 #define IBQSGEHIPARERR 0x00001000U
449 #define IBQNCSIPARERR 0x00000800U
450 #define OBQPARERR 0x000007e0U
451 #define OBQULP0PARERR 0x00000400U
452 #define OBQULP1PARERR 0x00000200U
453 #define OBQULP2PARERR 0x00000100U
454 #define OBQULP3PARERR 0x00000080U
455 #define OBQSGEPARERR 0x00000040U
456 #define OBQNCSIPARERR 0x00000020U
457 #define PREFDROPINT 0x00000002U
458 #define UPACCNONZERO 0x00000001U
460 #define CIM_HOST_UPACC_INT_CAUSE 0x7b34
461 #define EEPROMWRINT 0x40000000U
462 #define TIMEOUTMAINT 0x20000000U
463 #define TIMEOUTINT 0x10000000U
464 #define RSPOVRLOOKUPINT 0x08000000U
465 #define REQOVRLOOKUPINT 0x04000000U
466 #define BLKWRPLINT 0x02000000U
467 #define BLKRDPLINT 0x01000000U
468 #define SGLWRPLINT 0x00800000U
469 #define SGLRDPLINT 0x00400000U
470 #define BLKWRCTLINT 0x00200000U
471 #define BLKRDCTLINT 0x00100000U
472 #define SGLWRCTLINT 0x00080000U
473 #define SGLRDCTLINT 0x00040000U
474 #define BLKWREEPROMINT 0x00020000U
475 #define BLKRDEEPROMINT 0x00010000U
476 #define SGLWREEPROMINT 0x00008000U
477 #define SGLRDEEPROMINT 0x00004000U
478 #define BLKWRFLASHINT 0x00002000U
479 #define BLKRDFLASHINT 0x00001000U
480 #define SGLWRFLASHINT 0x00000800U
481 #define SGLRDFLASHINT 0x00000400U
482 #define BLKWRBOOTINT 0x00000200U
483 #define BLKRDBOOTINT 0x00000100U
484 #define SGLWRBOOTINT 0x00000080U
485 #define SGLRDBOOTINT 0x00000040U
486 #define ILLWRBEINT 0x00000020U
487 #define ILLRDBEINT 0x00000010U
488 #define ILLRDINT 0x00000008U
489 #define ILLWRINT 0x00000004U
490 #define ILLTRANSINT 0x00000002U
491 #define RSVDSPACEINT 0x00000001U
493 #define TP_OUT_CONFIG 0x7d04
494 #define VLANEXTENABLE_MASK 0x0000f000U
495 #define VLANEXTENABLE_SHIFT 12
497 #define TP_GLOBAL_CONFIG 0x7d08
498 #define FIVETUPLELOOKUP_SHIFT 17
499 #define FIVETUPLELOOKUP_MASK 0x00060000U
500 #define FIVETUPLELOOKUP(x) ((x) << FIVETUPLELOOKUP_SHIFT)
501 #define FIVETUPLELOOKUP_GET(x) (((x) & FIVETUPLELOOKUP_MASK) >> \
502 FIVETUPLELOOKUP_SHIFT)
504 #define TP_PARA_REG2 0x7d68
505 #define MAXRXDATA_MASK 0xffff0000U
506 #define MAXRXDATA_SHIFT 16
507 #define MAXRXDATA_GET(x) (((x) & MAXRXDATA_MASK) >> MAXRXDATA_SHIFT)
509 #define TP_TIMER_RESOLUTION 0x7d90
510 #define TIMERRESOLUTION_MASK 0x00ff0000U
511 #define TIMERRESOLUTION_SHIFT 16
512 #define TIMERRESOLUTION_GET(x) (((x) & TIMERRESOLUTION_MASK) >> TIMERRESOLUTION_SHIFT)
513 #define DELAYEDACKRESOLUTION_MASK 0x000000ffU
514 #define DELAYEDACKRESOLUTION_SHIFT 0
515 #define DELAYEDACKRESOLUTION_GET(x) \
516 (((x) & DELAYEDACKRESOLUTION_MASK) >> DELAYEDACKRESOLUTION_SHIFT)
518 #define TP_SHIFT_CNT 0x7dc0
519 #define SYNSHIFTMAX_SHIFT 24
520 #define SYNSHIFTMAX_MASK 0xff000000U
521 #define SYNSHIFTMAX(x) ((x) << SYNSHIFTMAX_SHIFT)
522 #define SYNSHIFTMAX_GET(x) (((x) & SYNSHIFTMAX_MASK) >> \
524 #define RXTSHIFTMAXR1_SHIFT 20
525 #define RXTSHIFTMAXR1_MASK 0x00f00000U
526 #define RXTSHIFTMAXR1(x) ((x) << RXTSHIFTMAXR1_SHIFT)
527 #define RXTSHIFTMAXR1_GET(x) (((x) & RXTSHIFTMAXR1_MASK) >> \
529 #define RXTSHIFTMAXR2_SHIFT 16
530 #define RXTSHIFTMAXR2_MASK 0x000f0000U
531 #define RXTSHIFTMAXR2(x) ((x) << RXTSHIFTMAXR2_SHIFT)
532 #define RXTSHIFTMAXR2_GET(x) (((x) & RXTSHIFTMAXR2_MASK) >> \
534 #define PERSHIFTBACKOFFMAX_SHIFT 12
535 #define PERSHIFTBACKOFFMAX_MASK 0x0000f000U
536 #define PERSHIFTBACKOFFMAX(x) ((x) << PERSHIFTBACKOFFMAX_SHIFT)
537 #define PERSHIFTBACKOFFMAX_GET(x) (((x) & PERSHIFTBACKOFFMAX_MASK) >> \
538 PERSHIFTBACKOFFMAX_SHIFT)
539 #define PERSHIFTMAX_SHIFT 8
540 #define PERSHIFTMAX_MASK 0x00000f00U
541 #define PERSHIFTMAX(x) ((x) << PERSHIFTMAX_SHIFT)
542 #define PERSHIFTMAX_GET(x) (((x) & PERSHIFTMAX_MASK) >> \
544 #define KEEPALIVEMAXR1_SHIFT 4
545 #define KEEPALIVEMAXR1_MASK 0x000000f0U
546 #define KEEPALIVEMAXR1(x) ((x) << KEEPALIVEMAXR1_SHIFT)
547 #define KEEPALIVEMAXR1_GET(x) (((x) & KEEPALIVEMAXR1_MASK) >> \
548 KEEPALIVEMAXR1_SHIFT)
549 #define KEEPALIVEMAXR2_SHIFT 0
550 #define KEEPALIVEMAXR2_MASK 0x0000000fU
551 #define KEEPALIVEMAXR2(x) ((x) << KEEPALIVEMAXR2_SHIFT)
552 #define KEEPALIVEMAXR2_GET(x) (((x) & KEEPALIVEMAXR2_MASK) >> \
553 KEEPALIVEMAXR2_SHIFT)
555 #define TP_CCTRL_TABLE 0x7ddc
556 #define TP_MTU_TABLE 0x7de4
557 #define MTUINDEX_MASK 0xff000000U
558 #define MTUINDEX_SHIFT 24
559 #define MTUINDEX(x) ((x) << MTUINDEX_SHIFT)
560 #define MTUWIDTH_MASK 0x000f0000U
561 #define MTUWIDTH_SHIFT 16
562 #define MTUWIDTH(x) ((x) << MTUWIDTH_SHIFT)
563 #define MTUWIDTH_GET(x) (((x) & MTUWIDTH_MASK) >> MTUWIDTH_SHIFT)
564 #define MTUVALUE_MASK 0x00003fffU
565 #define MTUVALUE_SHIFT 0
566 #define MTUVALUE(x) ((x) << MTUVALUE_SHIFT)
567 #define MTUVALUE_GET(x) (((x) & MTUVALUE_MASK) >> MTUVALUE_SHIFT)
569 #define TP_RSS_LKP_TABLE 0x7dec
570 #define LKPTBLROWVLD 0x80000000U
571 #define LKPTBLQUEUE1_MASK 0x000ffc00U
572 #define LKPTBLQUEUE1_SHIFT 10
573 #define LKPTBLQUEUE1(x) ((x) << LKPTBLQUEUE1_SHIFT)
574 #define LKPTBLQUEUE1_GET(x) (((x) & LKPTBLQUEUE1_MASK) >> LKPTBLQUEUE1_SHIFT)
575 #define LKPTBLQUEUE0_MASK 0x000003ffU
576 #define LKPTBLQUEUE0_SHIFT 0
577 #define LKPTBLQUEUE0(x) ((x) << LKPTBLQUEUE0_SHIFT)
578 #define LKPTBLQUEUE0_GET(x) (((x) & LKPTBLQUEUE0_MASK) >> LKPTBLQUEUE0_SHIFT)
580 #define TP_PIO_ADDR 0x7e40
581 #define TP_PIO_DATA 0x7e44
582 #define TP_MIB_INDEX 0x7e50
583 #define TP_MIB_DATA 0x7e54
584 #define TP_INT_CAUSE 0x7e74
585 #define FLMTXFLSTEMPTY 0x40000000U
587 #define TP_VLAN_PRI_MAP 0x140
588 #define FRAGMENTATION_SHIFT 9
589 #define FRAGMENTATION_MASK 0x00000200U
590 #define MPSHITTYPE_MASK 0x00000100U
591 #define MACMATCH_MASK 0x00000080U
592 #define ETHERTYPE_MASK 0x00000040U
593 #define PROTOCOL_MASK 0x00000020U
594 #define TOS_MASK 0x00000010U
595 #define VLAN_MASK 0x00000008U
596 #define VNIC_ID_MASK 0x00000004U
597 #define PORT_MASK 0x00000002U
599 #define FCOE_MASK 0x00000001U
601 #define TP_INGRESS_CONFIG 0x141
602 #define VNIC 0x00000800U
603 #define CSUM_HAS_PSEUDO_HDR 0x00000400U
604 #define RM_OVLAN 0x00000200U
605 #define LOOKUPEVERYPKT 0x00000100U
607 #define TP_MIB_MAC_IN_ERR_0 0x0
608 #define TP_MIB_TCP_OUT_RST 0xc
609 #define TP_MIB_TCP_IN_SEG_HI 0x10
610 #define TP_MIB_TCP_IN_SEG_LO 0x11
611 #define TP_MIB_TCP_OUT_SEG_HI 0x12
612 #define TP_MIB_TCP_OUT_SEG_LO 0x13
613 #define TP_MIB_TCP_RXT_SEG_HI 0x14
614 #define TP_MIB_TCP_RXT_SEG_LO 0x15
615 #define TP_MIB_TNL_CNG_DROP_0 0x18
616 #define TP_MIB_TCP_V6IN_ERR_0 0x28
617 #define TP_MIB_TCP_V6OUT_RST 0x2c
618 #define TP_MIB_OFD_ARP_DROP 0x36
619 #define TP_MIB_TNL_DROP_0 0x44
620 #define TP_MIB_OFD_VLN_DROP_0 0x58
622 #define ULP_TX_INT_CAUSE 0x8dcc
623 #define PBL_BOUND_ERR_CH3 0x80000000U
624 #define PBL_BOUND_ERR_CH2 0x40000000U
625 #define PBL_BOUND_ERR_CH1 0x20000000U
626 #define PBL_BOUND_ERR_CH0 0x10000000U
628 #define PM_RX_INT_CAUSE 0x8fdc
629 #define ZERO_E_CMD_ERROR 0x00400000U
630 #define PMRX_FRAMING_ERROR 0x003ffff0U
631 #define OCSPI_PAR_ERROR 0x00000008U
632 #define DB_OPTIONS_PAR_ERROR 0x00000004U
633 #define IESPI_PAR_ERROR 0x00000002U
634 #define E_PCMD_PAR_ERROR 0x00000001U
636 #define PM_TX_INT_CAUSE 0x8ffc
637 #define PCMD_LEN_OVFL0 0x80000000U
638 #define PCMD_LEN_OVFL1 0x40000000U
639 #define PCMD_LEN_OVFL2 0x20000000U
640 #define ZERO_C_CMD_ERROR 0x10000000U
641 #define PMTX_FRAMING_ERROR 0x0ffffff0U
642 #define OESPI_PAR_ERROR 0x00000008U
643 #define ICSPI_PAR_ERROR 0x00000002U
644 #define C_PCMD_PAR_ERROR 0x00000001U
646 #define MPS_PORT_STAT_TX_PORT_BYTES_L 0x400
647 #define MPS_PORT_STAT_TX_PORT_BYTES_H 0x404
648 #define MPS_PORT_STAT_TX_PORT_FRAMES_L 0x408
649 #define MPS_PORT_STAT_TX_PORT_FRAMES_H 0x40c
650 #define MPS_PORT_STAT_TX_PORT_BCAST_L 0x410
651 #define MPS_PORT_STAT_TX_PORT_BCAST_H 0x414
652 #define MPS_PORT_STAT_TX_PORT_MCAST_L 0x418
653 #define MPS_PORT_STAT_TX_PORT_MCAST_H 0x41c
654 #define MPS_PORT_STAT_TX_PORT_UCAST_L 0x420
655 #define MPS_PORT_STAT_TX_PORT_UCAST_H 0x424
656 #define MPS_PORT_STAT_TX_PORT_ERROR_L 0x428
657 #define MPS_PORT_STAT_TX_PORT_ERROR_H 0x42c
658 #define MPS_PORT_STAT_TX_PORT_64B_L 0x430
659 #define MPS_PORT_STAT_TX_PORT_64B_H 0x434
660 #define MPS_PORT_STAT_TX_PORT_65B_127B_L 0x438
661 #define MPS_PORT_STAT_TX_PORT_65B_127B_H 0x43c
662 #define MPS_PORT_STAT_TX_PORT_128B_255B_L 0x440
663 #define MPS_PORT_STAT_TX_PORT_128B_255B_H 0x444
664 #define MPS_PORT_STAT_TX_PORT_256B_511B_L 0x448
665 #define MPS_PORT_STAT_TX_PORT_256B_511B_H 0x44c
666 #define MPS_PORT_STAT_TX_PORT_512B_1023B_L 0x450
667 #define MPS_PORT_STAT_TX_PORT_512B_1023B_H 0x454
668 #define MPS_PORT_STAT_TX_PORT_1024B_1518B_L 0x458
669 #define MPS_PORT_STAT_TX_PORT_1024B_1518B_H 0x45c
670 #define MPS_PORT_STAT_TX_PORT_1519B_MAX_L 0x460
671 #define MPS_PORT_STAT_TX_PORT_1519B_MAX_H 0x464
672 #define MPS_PORT_STAT_TX_PORT_DROP_L 0x468
673 #define MPS_PORT_STAT_TX_PORT_DROP_H 0x46c
674 #define MPS_PORT_STAT_TX_PORT_PAUSE_L 0x470
675 #define MPS_PORT_STAT_TX_PORT_PAUSE_H 0x474
676 #define MPS_PORT_STAT_TX_PORT_PPP0_L 0x478
677 #define MPS_PORT_STAT_TX_PORT_PPP0_H 0x47c
678 #define MPS_PORT_STAT_TX_PORT_PPP1_L 0x480
679 #define MPS_PORT_STAT_TX_PORT_PPP1_H 0x484
680 #define MPS_PORT_STAT_TX_PORT_PPP2_L 0x488
681 #define MPS_PORT_STAT_TX_PORT_PPP2_H 0x48c
682 #define MPS_PORT_STAT_TX_PORT_PPP3_L 0x490
683 #define MPS_PORT_STAT_TX_PORT_PPP3_H 0x494
684 #define MPS_PORT_STAT_TX_PORT_PPP4_L 0x498
685 #define MPS_PORT_STAT_TX_PORT_PPP4_H 0x49c
686 #define MPS_PORT_STAT_TX_PORT_PPP5_L 0x4a0
687 #define MPS_PORT_STAT_TX_PORT_PPP5_H 0x4a4
688 #define MPS_PORT_STAT_TX_PORT_PPP6_L 0x4a8
689 #define MPS_PORT_STAT_TX_PORT_PPP6_H 0x4ac
690 #define MPS_PORT_STAT_TX_PORT_PPP7_L 0x4b0
691 #define MPS_PORT_STAT_TX_PORT_PPP7_H 0x4b4
692 #define MPS_PORT_STAT_LB_PORT_BYTES_L 0x4c0
693 #define MPS_PORT_STAT_LB_PORT_BYTES_H 0x4c4
694 #define MPS_PORT_STAT_LB_PORT_FRAMES_L 0x4c8
695 #define MPS_PORT_STAT_LB_PORT_FRAMES_H 0x4cc
696 #define MPS_PORT_STAT_LB_PORT_BCAST_L 0x4d0
697 #define MPS_PORT_STAT_LB_PORT_BCAST_H 0x4d4
698 #define MPS_PORT_STAT_LB_PORT_MCAST_L 0x4d8
699 #define MPS_PORT_STAT_LB_PORT_MCAST_H 0x4dc
700 #define MPS_PORT_STAT_LB_PORT_UCAST_L 0x4e0
701 #define MPS_PORT_STAT_LB_PORT_UCAST_H 0x4e4
702 #define MPS_PORT_STAT_LB_PORT_ERROR_L 0x4e8
703 #define MPS_PORT_STAT_LB_PORT_ERROR_H 0x4ec
704 #define MPS_PORT_STAT_LB_PORT_64B_L 0x4f0
705 #define MPS_PORT_STAT_LB_PORT_64B_H 0x4f4
706 #define MPS_PORT_STAT_LB_PORT_65B_127B_L 0x4f8
707 #define MPS_PORT_STAT_LB_PORT_65B_127B_H 0x4fc
708 #define MPS_PORT_STAT_LB_PORT_128B_255B_L 0x500
709 #define MPS_PORT_STAT_LB_PORT_128B_255B_H 0x504
710 #define MPS_PORT_STAT_LB_PORT_256B_511B_L 0x508
711 #define MPS_PORT_STAT_LB_PORT_256B_511B_H 0x50c
712 #define MPS_PORT_STAT_LB_PORT_512B_1023B_L 0x510
713 #define MPS_PORT_STAT_LB_PORT_512B_1023B_H 0x514
714 #define MPS_PORT_STAT_LB_PORT_1024B_1518B_L 0x518
715 #define MPS_PORT_STAT_LB_PORT_1024B_1518B_H 0x51c
716 #define MPS_PORT_STAT_LB_PORT_1519B_MAX_L 0x520
717 #define MPS_PORT_STAT_LB_PORT_1519B_MAX_H 0x524
718 #define MPS_PORT_STAT_LB_PORT_DROP_FRAMES 0x528
719 #define MPS_PORT_STAT_RX_PORT_BYTES_L 0x540
720 #define MPS_PORT_STAT_RX_PORT_BYTES_H 0x544
721 #define MPS_PORT_STAT_RX_PORT_FRAMES_L 0x548
722 #define MPS_PORT_STAT_RX_PORT_FRAMES_H 0x54c
723 #define MPS_PORT_STAT_RX_PORT_BCAST_L 0x550
724 #define MPS_PORT_STAT_RX_PORT_BCAST_H 0x554
725 #define MPS_PORT_STAT_RX_PORT_MCAST_L 0x558
726 #define MPS_PORT_STAT_RX_PORT_MCAST_H 0x55c
727 #define MPS_PORT_STAT_RX_PORT_UCAST_L 0x560
728 #define MPS_PORT_STAT_RX_PORT_UCAST_H 0x564
729 #define MPS_PORT_STAT_RX_PORT_MTU_ERROR_L 0x568
730 #define MPS_PORT_STAT_RX_PORT_MTU_ERROR_H 0x56c
731 #define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_L 0x570
732 #define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_H 0x574
733 #define MPS_PORT_STAT_RX_PORT_CRC_ERROR_L 0x578
734 #define MPS_PORT_STAT_RX_PORT_CRC_ERROR_H 0x57c
735 #define MPS_PORT_STAT_RX_PORT_LEN_ERROR_L 0x580
736 #define MPS_PORT_STAT_RX_PORT_LEN_ERROR_H 0x584
737 #define MPS_PORT_STAT_RX_PORT_SYM_ERROR_L 0x588
738 #define MPS_PORT_STAT_RX_PORT_SYM_ERROR_H 0x58c
739 #define MPS_PORT_STAT_RX_PORT_64B_L 0x590
740 #define MPS_PORT_STAT_RX_PORT_64B_H 0x594
741 #define MPS_PORT_STAT_RX_PORT_65B_127B_L 0x598
742 #define MPS_PORT_STAT_RX_PORT_65B_127B_H 0x59c
743 #define MPS_PORT_STAT_RX_PORT_128B_255B_L 0x5a0
744 #define MPS_PORT_STAT_RX_PORT_128B_255B_H 0x5a4
745 #define MPS_PORT_STAT_RX_PORT_256B_511B_L 0x5a8
746 #define MPS_PORT_STAT_RX_PORT_256B_511B_H 0x5ac
747 #define MPS_PORT_STAT_RX_PORT_512B_1023B_L 0x5b0
748 #define MPS_PORT_STAT_RX_PORT_512B_1023B_H 0x5b4
749 #define MPS_PORT_STAT_RX_PORT_1024B_1518B_L 0x5b8
750 #define MPS_PORT_STAT_RX_PORT_1024B_1518B_H 0x5bc
751 #define MPS_PORT_STAT_RX_PORT_1519B_MAX_L 0x5c0
752 #define MPS_PORT_STAT_RX_PORT_1519B_MAX_H 0x5c4
753 #define MPS_PORT_STAT_RX_PORT_PAUSE_L 0x5c8
754 #define MPS_PORT_STAT_RX_PORT_PAUSE_H 0x5cc
755 #define MPS_PORT_STAT_RX_PORT_PPP0_L 0x5d0
756 #define MPS_PORT_STAT_RX_PORT_PPP0_H 0x5d4
757 #define MPS_PORT_STAT_RX_PORT_PPP1_L 0x5d8
758 #define MPS_PORT_STAT_RX_PORT_PPP1_H 0x5dc
759 #define MPS_PORT_STAT_RX_PORT_PPP2_L 0x5e0
760 #define MPS_PORT_STAT_RX_PORT_PPP2_H 0x5e4
761 #define MPS_PORT_STAT_RX_PORT_PPP3_L 0x5e8
762 #define MPS_PORT_STAT_RX_PORT_PPP3_H 0x5ec
763 #define MPS_PORT_STAT_RX_PORT_PPP4_L 0x5f0
764 #define MPS_PORT_STAT_RX_PORT_PPP4_H 0x5f4
765 #define MPS_PORT_STAT_RX_PORT_PPP5_L 0x5f8
766 #define MPS_PORT_STAT_RX_PORT_PPP5_H 0x5fc
767 #define MPS_PORT_STAT_RX_PORT_PPP6_L 0x600
768 #define MPS_PORT_STAT_RX_PORT_PPP6_H 0x604
769 #define MPS_PORT_STAT_RX_PORT_PPP7_L 0x608
770 #define MPS_PORT_STAT_RX_PORT_PPP7_H 0x60c
771 #define MPS_PORT_STAT_RX_PORT_LESS_64B_L 0x610
772 #define MPS_PORT_STAT_RX_PORT_LESS_64B_H 0x614
773 #define MPS_CMN_CTL 0x9000
774 #define NUMPORTS_MASK 0x00000003U
775 #define NUMPORTS_SHIFT 0
776 #define NUMPORTS_GET(x) (((x) & NUMPORTS_MASK) >> NUMPORTS_SHIFT)
778 #define MPS_INT_CAUSE 0x9008
779 #define STATINT 0x00000020U
780 #define TXINT 0x00000010U
781 #define RXINT 0x00000008U
782 #define TRCINT 0x00000004U
783 #define CLSINT 0x00000002U
784 #define PLINT 0x00000001U
786 #define MPS_TX_INT_CAUSE 0x9408
787 #define PORTERR 0x00010000U
788 #define FRMERR 0x00008000U
789 #define SECNTERR 0x00004000U
790 #define BUBBLE 0x00002000U
791 #define TXDESCFIFO 0x00001e00U
792 #define TXDATAFIFO 0x000001e0U
793 #define NCSIFIFO 0x00000010U
794 #define TPFIFO 0x0000000fU
796 #define MPS_STAT_PERR_INT_CAUSE_SRAM 0x9614
797 #define MPS_STAT_PERR_INT_CAUSE_TX_FIFO 0x9620
798 #define MPS_STAT_PERR_INT_CAUSE_RX_FIFO 0x962c
800 #define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_L 0x9640
801 #define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_H 0x9644
802 #define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_L 0x9648
803 #define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_H 0x964c
804 #define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_L 0x9650
805 #define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_H 0x9654
806 #define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_L 0x9658
807 #define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_H 0x965c
808 #define MPS_STAT_RX_BG_0_LB_DROP_FRAME_L 0x9660
809 #define MPS_STAT_RX_BG_0_LB_DROP_FRAME_H 0x9664
810 #define MPS_STAT_RX_BG_1_LB_DROP_FRAME_L 0x9668
811 #define MPS_STAT_RX_BG_1_LB_DROP_FRAME_H 0x966c
812 #define MPS_STAT_RX_BG_2_LB_DROP_FRAME_L 0x9670
813 #define MPS_STAT_RX_BG_2_LB_DROP_FRAME_H 0x9674
814 #define MPS_STAT_RX_BG_3_LB_DROP_FRAME_L 0x9678
815 #define MPS_STAT_RX_BG_3_LB_DROP_FRAME_H 0x967c
816 #define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_L 0x9680
817 #define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_H 0x9684
818 #define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_L 0x9688
819 #define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_H 0x968c
820 #define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_L 0x9690
821 #define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_H 0x9694
822 #define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_L 0x9698
823 #define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_H 0x969c
824 #define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_L 0x96a0
825 #define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_H 0x96a4
826 #define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_L 0x96a8
827 #define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_H 0x96ac
828 #define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_L 0x96b0
829 #define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_H 0x96b4
830 #define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8
831 #define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc
832 #define MPS_TRC_CFG 0x9800
833 #define TRCFIFOEMPTY 0x00000010U
834 #define TRCIGNOREDROPINPUT 0x00000008U
835 #define TRCKEEPDUPLICATES 0x00000004U
836 #define TRCEN 0x00000002U
837 #define TRCMULTIFILTER 0x00000001U
839 #define MPS_TRC_RSS_CONTROL 0x9808
840 #define RSSCONTROL_MASK 0x00ff0000U
841 #define RSSCONTROL_SHIFT 16
842 #define RSSCONTROL(x) ((x) << RSSCONTROL_SHIFT)
843 #define QUEUENUMBER_MASK 0x0000ffffU
844 #define QUEUENUMBER_SHIFT 0
845 #define QUEUENUMBER(x) ((x) << QUEUENUMBER_SHIFT)
847 #define MPS_TRC_FILTER_MATCH_CTL_A 0x9810
848 #define TFINVERTMATCH 0x01000000U
849 #define TFPKTTOOLARGE 0x00800000U
850 #define TFEN 0x00400000U
851 #define TFPORT_MASK 0x003c0000U
852 #define TFPORT_SHIFT 18
853 #define TFPORT(x) ((x) << TFPORT_SHIFT)
854 #define TFPORT_GET(x) (((x) & TFPORT_MASK) >> TFPORT_SHIFT)
855 #define TFDROP 0x00020000U
856 #define TFSOPEOPERR 0x00010000U
857 #define TFLENGTH_MASK 0x00001f00U
858 #define TFLENGTH_SHIFT 8
859 #define TFLENGTH(x) ((x) << TFLENGTH_SHIFT)
860 #define TFLENGTH_GET(x) (((x) & TFLENGTH_MASK) >> TFLENGTH_SHIFT)
861 #define TFOFFSET_MASK 0x0000001fU
862 #define TFOFFSET_SHIFT 0
863 #define TFOFFSET(x) ((x) << TFOFFSET_SHIFT)
864 #define TFOFFSET_GET(x) (((x) & TFOFFSET_MASK) >> TFOFFSET_SHIFT)
866 #define MPS_TRC_FILTER_MATCH_CTL_B 0x9820
867 #define TFMINPKTSIZE_MASK 0x01ff0000U
868 #define TFMINPKTSIZE_SHIFT 16
869 #define TFMINPKTSIZE(x) ((x) << TFMINPKTSIZE_SHIFT)
870 #define TFMINPKTSIZE_GET(x) (((x) & TFMINPKTSIZE_MASK) >> TFMINPKTSIZE_SHIFT)
871 #define TFCAPTUREMAX_MASK 0x00003fffU
872 #define TFCAPTUREMAX_SHIFT 0
873 #define TFCAPTUREMAX(x) ((x) << TFCAPTUREMAX_SHIFT)
874 #define TFCAPTUREMAX_GET(x) (((x) & TFCAPTUREMAX_MASK) >> TFCAPTUREMAX_SHIFT)
876 #define MPS_TRC_INT_CAUSE 0x985c
877 #define MISCPERR 0x00000100U
878 #define PKTFIFO 0x000000f0U
879 #define FILTMEM 0x0000000fU
881 #define MPS_TRC_FILTER0_MATCH 0x9c00
882 #define MPS_TRC_FILTER0_DONT_CARE 0x9c80
883 #define MPS_TRC_FILTER1_MATCH 0x9d00
884 #define MPS_CLS_INT_CAUSE 0xd028
885 #define PLERRENB 0x00000008U
886 #define HASHSRAM 0x00000004U
887 #define MATCHTCAM 0x00000002U
888 #define MATCHSRAM 0x00000001U
890 #define MPS_RX_PERR_INT_CAUSE 0x11074
892 #define CPL_INTR_CAUSE 0x19054
893 #define CIM_OP_MAP_PERR 0x00000020U
894 #define CIM_OVFL_ERROR 0x00000010U
895 #define TP_FRAMING_ERROR 0x00000008U
896 #define SGE_FRAMING_ERROR 0x00000004U
897 #define CIM_FRAMING_ERROR 0x00000002U
898 #define ZERO_SWITCH_ERROR 0x00000001U
900 #define SMB_INT_CAUSE 0x19090
901 #define MSTTXFIFOPARINT 0x00200000U
902 #define MSTRXFIFOPARINT 0x00100000U
903 #define SLVFIFOPARINT 0x00080000U
905 #define ULP_RX_INT_CAUSE 0x19158
906 #define ULP_RX_ISCSI_TAGMASK 0x19164
907 #define ULP_RX_ISCSI_PSZ 0x19168
908 #define HPZ3_MASK 0x0f000000U
909 #define HPZ3_SHIFT 24
910 #define HPZ3(x) ((x) << HPZ3_SHIFT)
911 #define HPZ2_MASK 0x000f0000U
912 #define HPZ2_SHIFT 16
913 #define HPZ2(x) ((x) << HPZ2_SHIFT)
914 #define HPZ1_MASK 0x00000f00U
916 #define HPZ1(x) ((x) << HPZ1_SHIFT)
917 #define HPZ0_MASK 0x0000000fU
919 #define HPZ0(x) ((x) << HPZ0_SHIFT)
921 #define ULP_RX_TDDP_PSZ 0x19178
923 #define SF_DATA 0x193f8
924 #define SF_OP 0x193fc
925 #define BUSY 0x80000000U
926 #define SF_LOCK 0x00000010U
927 #define SF_CONT 0x00000008U
928 #define BYTECNT_MASK 0x00000006U
929 #define BYTECNT_SHIFT 1
930 #define BYTECNT(x) ((x) << BYTECNT_SHIFT)
931 #define OP_WR 0x00000001U
933 #define PL_PF_INT_CAUSE 0x3c0
934 #define PFSW 0x00000008U
935 #define PFSGE 0x00000004U
936 #define PFCIM 0x00000002U
937 #define PFMPS 0x00000001U
939 #define PL_PF_INT_ENABLE 0x3c4
940 #define PL_PF_CTL 0x3c8
941 #define SWINT 0x00000001U
943 #define PL_WHOAMI 0x19400
944 #define SOURCEPF_MASK 0x00000700U
945 #define SOURCEPF_SHIFT 8
946 #define SOURCEPF(x) ((x) << SOURCEPF_SHIFT)
947 #define SOURCEPF_GET(x) (((x) & SOURCEPF_MASK) >> SOURCEPF_SHIFT)
948 #define ISVF 0x00000080U
949 #define VFID_MASK 0x0000007fU
951 #define VFID(x) ((x) << VFID_SHIFT)
952 #define VFID_GET(x) (((x) & VFID_MASK) >> VFID_SHIFT)
954 #define PL_INT_CAUSE 0x1940c
955 #define ULP_TX 0x08000000U
956 #define SGE 0x04000000U
957 #define HMA 0x02000000U
958 #define CPL_SWITCH 0x01000000U
959 #define ULP_RX 0x00800000U
960 #define PM_RX 0x00400000U
961 #define PM_TX 0x00200000U
962 #define MA 0x00100000U
963 #define TP 0x00080000U
964 #define LE 0x00040000U
965 #define EDC1 0x00020000U
966 #define EDC0 0x00010000U
967 #define MC 0x00008000U
968 #define PCIE 0x00004000U
969 #define PMU 0x00002000U
970 #define XGMAC_KR1 0x00001000U
971 #define XGMAC_KR0 0x00000800U
972 #define XGMAC1 0x00000400U
973 #define XGMAC0 0x00000200U
974 #define SMB 0x00000100U
975 #define SF 0x00000080U
976 #define PL 0x00000040U
977 #define NCSI 0x00000020U
978 #define MPS 0x00000010U
979 #define MI 0x00000008U
980 #define DBG 0x00000004U
981 #define I2CM 0x00000002U
982 #define CIM 0x00000001U
984 #define PL_INT_MAP0 0x19414
985 #define PL_RST 0x19428
986 #define PIORST 0x00000002U
987 #define PIORSTMODE 0x00000001U
989 #define PL_PL_INT_CAUSE 0x19430
990 #define FATALPERR 0x00000010U
991 #define PERRVFID 0x00000001U
993 #define PL_REV 0x1943c
995 #define LE_DB_CONFIG 0x19c04
996 #define HASHEN 0x00100000U
998 #define LE_DB_SERVER_INDEX 0x19c18
999 #define LE_DB_ACT_CNT_IPV4 0x19c20
1000 #define LE_DB_ACT_CNT_IPV6 0x19c24
1002 #define LE_DB_INT_CAUSE 0x19c3c
1003 #define REQQPARERR 0x00010000U
1004 #define UNKNOWNCMD 0x00008000U
1005 #define PARITYERR 0x00000040U
1006 #define LIPMISS 0x00000020U
1007 #define LIP0 0x00000010U
1009 #define LE_DB_TID_HASHBASE 0x19df8
1011 #define NCSI_INT_CAUSE 0x1a0d8
1012 #define CIM_DM_PRTY_ERR 0x00000100U
1013 #define MPS_DM_PRTY_ERR 0x00000080U
1014 #define TXFIFO_PRTY_ERR 0x00000002U
1015 #define RXFIFO_PRTY_ERR 0x00000001U
1017 #define XGMAC_PORT_CFG2 0x1018
1018 #define PATEN 0x00040000U
1019 #define MAGICEN 0x00020000U
1021 #define XGMAC_PORT_MAGIC_MACID_LO 0x1024
1022 #define XGMAC_PORT_MAGIC_MACID_HI 0x1028
1024 #define XGMAC_PORT_EPIO_DATA0 0x10c0
1025 #define XGMAC_PORT_EPIO_DATA1 0x10c4
1026 #define XGMAC_PORT_EPIO_DATA2 0x10c8
1027 #define XGMAC_PORT_EPIO_DATA3 0x10cc
1028 #define XGMAC_PORT_EPIO_OP 0x10d0
1029 #define EPIOWR 0x00000100U
1030 #define ADDRESS_MASK 0x000000ffU
1031 #define ADDRESS_SHIFT 0
1032 #define ADDRESS(x) ((x) << ADDRESS_SHIFT)
1034 #define XGMAC_PORT_INT_CAUSE 0x10dc