1 /* QLogic qed NIC Driver
2 * Copyright (c) 2015 QLogic Corporation
4 * This software is available under the terms of the GNU General Public License
5 * (GPL) Version 2, available from the file COPYING in the main directory of
12 #define CDU_REG_CID_ADDR_PARAMS_CONTEXT_SIZE_SHIFT \
15 #define CDU_REG_CID_ADDR_PARAMS_CONTEXT_SIZE ( \
18 #define CDU_REG_CID_ADDR_PARAMS_BLOCK_WASTE_SHIFT \
21 #define CDU_REG_CID_ADDR_PARAMS_BLOCK_WASTE ( \
24 #define CDU_REG_CID_ADDR_PARAMS_NCIB_SHIFT \
27 #define CDU_REG_CID_ADDR_PARAMS_NCIB ( \
30 #define XSDM_REG_OPERATION_GEN \
32 #define NIG_REG_RX_BRB_OUT_EN \
34 #define NIG_REG_STORM_OUT_EN \
36 #define PSWRQ2_REG_L2P_VALIDATE_VFID \
38 #define PGLUE_B_REG_USE_CLIENTID_IN_TAG \
40 #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER \
42 #define BAR0_MAP_REG_MSDM_RAM \
44 #define BAR0_MAP_REG_USDM_RAM \
46 #define BAR0_MAP_REG_PSDM_RAM \
48 #define BAR0_MAP_REG_TSDM_RAM \
50 #define NIG_REG_RX_LLH_BRB_GATE_DNTFWD_PERPF \
52 #define PRS_REG_SEARCH_TCP \
54 #define PRS_REG_SEARCH_UDP \
56 #define PRS_REG_SEARCH_FCOE \
58 #define PRS_REG_SEARCH_ROCE \
60 #define PRS_REG_SEARCH_OPENFLOW \
62 #define TM_REG_PF_ENABLE_CONN \
64 #define TM_REG_PF_ENABLE_TASK \
66 #define TM_REG_PF_SCAN_ACTIVE_CONN \
68 #define TM_REG_PF_SCAN_ACTIVE_TASK \
70 #define IGU_REG_LEADING_EDGE_LATCH \
72 #define IGU_REG_TRAILING_EDGE_LATCH \
74 #define QM_REG_USG_CNT_PF_TX \
76 #define QM_REG_USG_CNT_PF_OTHER \
78 #define DORQ_REG_PF_DB_ENABLE \
80 #define QM_REG_PF_EN \
82 #define TCFC_REG_STRONG_ENABLE_PF \
84 #define CCFC_REG_STRONG_ENABLE_PF \
86 #define PGLUE_B_REG_PGL_ADDR_88_F0 \
88 #define PGLUE_B_REG_PGL_ADDR_8C_F0 \
90 #define PGLUE_B_REG_PGL_ADDR_90_F0 \
92 #define PGLUE_B_REG_PGL_ADDR_94_F0 \
94 #define PGLUE_B_REG_WAS_ERROR_PF_31_0_CLR \
96 #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ \
98 #define MISC_REG_GEN_PURP_CR0 \
100 #define MCP_REG_SCRATCH \
102 #define CNIG_REG_NW_PORT_MODE_BB_B0 \
104 #define MISCS_REG_CHIP_NUM \
106 #define MISCS_REG_CHIP_REV \
108 #define MISCS_REG_CMT_ENABLED_FOR_PAIR \
110 #define MISCS_REG_CHIP_TEST_REG \
112 #define MISCS_REG_CHIP_METAL \
114 #define BRB_REG_HEADER_SIZE \
116 #define BTB_REG_HEADER_SIZE \
118 #define CAU_REG_LONG_TIMEOUT_THRESHOLD \
120 #define CCFC_REG_ACTIVITY_COUNTER \
122 #define CDU_REG_CID_ADDR_PARAMS \
124 #define DBG_REG_CLIENT_ENABLE \
126 #define DMAE_REG_INIT \
128 #define DORQ_REG_IFEN \
130 #define DORQ_REG_DB_DROP_REASON \
132 #define DORQ_REG_DB_DROP_DETAILS \
134 #define DORQ_REG_DB_DROP_DETAILS_ADDRESS \
136 #define GRC_REG_TIMEOUT_EN \
138 #define GRC_REG_TIMEOUT_ATTN_ACCESS_VALID \
140 #define GRC_REG_TIMEOUT_ATTN_ACCESS_DATA_0 \
142 #define GRC_REG_TIMEOUT_ATTN_ACCESS_DATA_1 \
144 #define IGU_REG_BLOCK_CONFIGURATION \
146 #define MCM_REG_INIT \
148 #define MCP2_REG_DBG_DWORD_ENABLE \
150 #define MISC_REG_PORT_MODE \
152 #define MISCS_REG_CLK_100G_MODE \
154 #define MSDM_REG_ENABLE_IN1 \
156 #define MSEM_REG_ENABLE_IN \
158 #define NIG_REG_CM_HDR \
160 #define NCSI_REG_CONFIG \
162 #define PBF_REG_INIT \
164 #define PTU_REG_ATC_INIT_ARRAY \
166 #define PCM_REG_INIT \
168 #define PGLUE_B_REG_ADMIN_PER_PF_REGION \
170 #define PGLUE_B_REG_TX_ERR_WR_DETAILS2 \
172 #define PGLUE_B_REG_TX_ERR_WR_ADD_31_0 \
174 #define PGLUE_B_REG_TX_ERR_WR_ADD_63_32 \
176 #define PGLUE_B_REG_TX_ERR_WR_DETAILS \
178 #define PGLUE_B_REG_TX_ERR_RD_ADD_31_0 \
180 #define PGLUE_B_REG_TX_ERR_RD_ADD_63_32 \
182 #define PGLUE_B_REG_TX_ERR_RD_DETAILS \
184 #define PGLUE_B_REG_TX_ERR_RD_DETAILS2 \
186 #define PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL \
188 #define PGLUE_B_REG_MASTER_ZLR_ERR_DETAILS \
190 #define PGLUE_B_REG_MASTER_ZLR_ERR_ADD_31_0 \
192 #define PGLUE_B_REG_MASTER_ZLR_ERR_ADD_63_32 \
194 #define PGLUE_B_REG_VF_ILT_ERR_ADD_31_0 \
196 #define PGLUE_B_REG_VF_ILT_ERR_ADD_63_32 \
198 #define PGLUE_B_REG_VF_ILT_ERR_DETAILS \
200 #define PGLUE_B_REG_VF_ILT_ERR_DETAILS2 \
202 #define PGLUE_B_REG_LATCHED_ERRORS_CLR \
204 #define PRM_REG_DISABLE_PRM \
206 #define PRS_REG_SOFT_RST \
208 #define PSDM_REG_ENABLE_IN1 \
210 #define PSEM_REG_ENABLE_IN \
212 #define PSWRQ_REG_DBG_SELECT \
214 #define PSWRQ2_REG_CDUT_P_SIZE \
216 #define PSWHST_REG_DISCARD_INTERNAL_WRITES \
218 #define PSWHST2_REG_DBGSYN_ALMOST_FULL_THR \
220 #define PSWHST_REG_INCORRECT_ACCESS_VALID \
222 #define PSWHST_REG_INCORRECT_ACCESS_ADDRESS \
224 #define PSWHST_REG_INCORRECT_ACCESS_DATA \
226 #define PSWHST_REG_INCORRECT_ACCESS_LENGTH \
228 #define PSWRD_REG_DBG_SELECT \
230 #define PSWRD2_REG_CONF11 \
232 #define PSWWR_REG_USDM_FULL_TH \
234 #define PSWWR2_REG_CDU_FULL_TH2 \
236 #define QM_REG_MAXPQSIZE_0 \
238 #define RSS_REG_RSS_INIT_EN \
240 #define RDIF_REG_STOP_ON_ERROR \
242 #define SRC_REG_SOFT_RST \
244 #define TCFC_REG_ACTIVITY_COUNTER \
246 #define TCM_REG_INIT \
248 #define TM_REG_PXP_READ_DATA_FIFO_INIT \
250 #define TSDM_REG_ENABLE_IN1 \
252 #define TSEM_REG_ENABLE_IN \
254 #define TDIF_REG_STOP_ON_ERROR \
256 #define UCM_REG_INIT \
258 #define UMAC_REG_IPG_HD_BKP_CNTL_BB_B0 \
260 #define USDM_REG_ENABLE_IN1 \
262 #define USEM_REG_ENABLE_IN \
264 #define XCM_REG_INIT \
266 #define XSDM_REG_ENABLE_IN1 \
268 #define XSEM_REG_ENABLE_IN \
270 #define YCM_REG_INIT \
272 #define YSDM_REG_ENABLE_IN1 \
274 #define YSEM_REG_ENABLE_IN \
276 #define XYLD_REG_SCBD_STRICT_PRIO \
278 #define TMLD_REG_SCBD_STRICT_PRIO \
280 #define MULD_REG_SCBD_STRICT_PRIO \
282 #define YULD_REG_SCBD_STRICT_PRIO \
284 #define MISC_REG_SHARED_MEM_ADDR \
286 #define DMAE_REG_GO_C0 \
288 #define DMAE_REG_GO_C1 \
290 #define DMAE_REG_GO_C2 \
292 #define DMAE_REG_GO_C3 \
294 #define DMAE_REG_GO_C4 \
296 #define DMAE_REG_GO_C5 \
298 #define DMAE_REG_GO_C6 \
300 #define DMAE_REG_GO_C7 \
302 #define DMAE_REG_GO_C8 \
304 #define DMAE_REG_GO_C9 \
306 #define DMAE_REG_GO_C10 \
308 #define DMAE_REG_GO_C11 \
310 #define DMAE_REG_GO_C12 \
312 #define DMAE_REG_GO_C13 \
314 #define DMAE_REG_GO_C14 \
316 #define DMAE_REG_GO_C15 \
318 #define DMAE_REG_GO_C16 \
320 #define DMAE_REG_GO_C17 \
322 #define DMAE_REG_GO_C18 \
324 #define DMAE_REG_GO_C19 \
326 #define DMAE_REG_GO_C20 \
328 #define DMAE_REG_GO_C21 \
330 #define DMAE_REG_GO_C22 \
332 #define DMAE_REG_GO_C23 \
334 #define DMAE_REG_GO_C24 \
336 #define DMAE_REG_GO_C25 \
338 #define DMAE_REG_GO_C26 \
340 #define DMAE_REG_GO_C27 \
342 #define DMAE_REG_GO_C28 \
344 #define DMAE_REG_GO_C29 \
346 #define DMAE_REG_GO_C30 \
348 #define DMAE_REG_GO_C31 \
350 #define DMAE_REG_CMD_MEM \
352 #define QM_REG_MAXPQSIZETXSEL_0 \
354 #define QM_REG_SDMCMDREADY \
356 #define QM_REG_SDMCMDADDR \
358 #define QM_REG_SDMCMDDATALSB \
360 #define QM_REG_SDMCMDDATAMSB \
362 #define QM_REG_SDMCMDGO \
364 #define QM_REG_RLPFCRD \
366 #define QM_REG_RLPFINCVAL \
368 #define QM_REG_RLGLBLCRD \
370 #define QM_REG_RLGLBLINCVAL \
372 #define IGU_REG_ATTENTION_ENABLE \
374 #define IGU_REG_ATTN_MSG_ADDR_L \
376 #define IGU_REG_ATTN_MSG_ADDR_H \
378 #define MISC_REG_AEU_GENERAL_ATTN_0 \
380 #define CAU_REG_SB_ADDR_MEMORY \
382 #define CAU_REG_SB_VAR_MEMORY \
384 #define CAU_REG_PI_MEMORY \
386 #define IGU_REG_PF_CONFIGURATION \
388 #define MISC_REG_AEU_ENABLE1_IGU_OUT_0 \
390 #define MISC_REG_AEU_AFTER_INVERT_1_IGU \
392 #define MISC_REG_AEU_MASK_ATTN_IGU \
394 #define IGU_REG_CLEANUP_STATUS_0 \
396 #define IGU_REG_CLEANUP_STATUS_1 \
398 #define IGU_REG_CLEANUP_STATUS_2 \
400 #define IGU_REG_CLEANUP_STATUS_3 \
402 #define IGU_REG_CLEANUP_STATUS_4 \
404 #define IGU_REG_COMMAND_REG_32LSB_DATA \
406 #define IGU_REG_COMMAND_REG_CTRL \
408 #define IGU_REG_BLOCK_CONFIGURATION_VF_CLEANUP_EN ( \
410 #define IGU_REG_BLOCK_CONFIGURATION_PXP_TPH_INTERFACE_EN ( \
412 #define IGU_REG_MAPPING_MEMORY \
414 #define MISCS_REG_GENERIC_POR_0 \
416 #define MCP_REG_NVM_CFG4 \
418 #define MCP_REG_NVM_CFG4_FLASH_SIZE ( \
420 #define MCP_REG_NVM_CFG4_FLASH_SIZE_SHIFT \
422 #define MCP_REG_CPU_STATE \
424 #define MCP_REG_CPU_EVENT_MASK \
426 #define PGLUE_B_REG_PF_BAR0_SIZE \
428 #define PGLUE_B_REG_PF_BAR1_SIZE \