qed_reg_addr.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. /* QLogic qed NIC Driver
  2. * Copyright (c) 2015 QLogic Corporation
  3. *
  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
  6. * this source tree.
  7. */
  8. #ifndef REG_ADDR_H
  9. #define REG_ADDR_H
  10. #define CDU_REG_CID_ADDR_PARAMS_CONTEXT_SIZE_SHIFT \
  11. 0
  12. #define CDU_REG_CID_ADDR_PARAMS_CONTEXT_SIZE ( \
  13. 0xfff << 0)
  14. #define CDU_REG_CID_ADDR_PARAMS_BLOCK_WASTE_SHIFT \
  15. 12
  16. #define CDU_REG_CID_ADDR_PARAMS_BLOCK_WASTE ( \
  17. 0xfff << 12)
  18. #define CDU_REG_CID_ADDR_PARAMS_NCIB_SHIFT \
  19. 24
  20. #define CDU_REG_CID_ADDR_PARAMS_NCIB ( \
  21. 0xff << 24)
  22. #define XSDM_REG_OPERATION_GEN \
  23. 0xf80408UL
  24. #define NIG_REG_RX_BRB_OUT_EN \
  25. 0x500e18UL
  26. #define NIG_REG_STORM_OUT_EN \
  27. 0x500e08UL
  28. #define PSWRQ2_REG_L2P_VALIDATE_VFID \
  29. 0x240c50UL
  30. #define PGLUE_B_REG_USE_CLIENTID_IN_TAG \
  31. 0x2aae04UL
  32. #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER \
  33. 0x2aa16cUL
  34. #define BAR0_MAP_REG_MSDM_RAM \
  35. 0x1d00000UL
  36. #define BAR0_MAP_REG_USDM_RAM \
  37. 0x1d80000UL
  38. #define BAR0_MAP_REG_PSDM_RAM \
  39. 0x1f00000UL
  40. #define BAR0_MAP_REG_TSDM_RAM \
  41. 0x1c80000UL
  42. #define NIG_REG_RX_LLH_BRB_GATE_DNTFWD_PERPF \
  43. 0x5011f4UL
  44. #define PRS_REG_SEARCH_TCP \
  45. 0x1f0400UL
  46. #define PRS_REG_SEARCH_UDP \
  47. 0x1f0404UL
  48. #define PRS_REG_SEARCH_FCOE \
  49. 0x1f0408UL
  50. #define PRS_REG_SEARCH_ROCE \
  51. 0x1f040cUL
  52. #define PRS_REG_SEARCH_OPENFLOW \
  53. 0x1f0434UL
  54. #define TM_REG_PF_ENABLE_CONN \
  55. 0x2c043cUL
  56. #define TM_REG_PF_ENABLE_TASK \
  57. 0x2c0444UL
  58. #define TM_REG_PF_SCAN_ACTIVE_CONN \
  59. 0x2c04fcUL
  60. #define TM_REG_PF_SCAN_ACTIVE_TASK \
  61. 0x2c0500UL
  62. #define IGU_REG_LEADING_EDGE_LATCH \
  63. 0x18082cUL
  64. #define IGU_REG_TRAILING_EDGE_LATCH \
  65. 0x180830UL
  66. #define QM_REG_USG_CNT_PF_TX \
  67. 0x2f2eacUL
  68. #define QM_REG_USG_CNT_PF_OTHER \
  69. 0x2f2eb0UL
  70. #define DORQ_REG_PF_DB_ENABLE \
  71. 0x100508UL
  72. #define QM_REG_PF_EN \
  73. 0x2f2ea4UL
  74. #define TCFC_REG_STRONG_ENABLE_PF \
  75. 0x2d0708UL
  76. #define CCFC_REG_STRONG_ENABLE_PF \
  77. 0x2e0708UL
  78. #define PGLUE_B_REG_PGL_ADDR_88_F0 \
  79. 0x2aa404UL
  80. #define PGLUE_B_REG_PGL_ADDR_8C_F0 \
  81. 0x2aa408UL
  82. #define PGLUE_B_REG_PGL_ADDR_90_F0 \
  83. 0x2aa40cUL
  84. #define PGLUE_B_REG_PGL_ADDR_94_F0 \
  85. 0x2aa410UL
  86. #define PGLUE_B_REG_WAS_ERROR_PF_31_0_CLR \
  87. 0x2aa138UL
  88. #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ \
  89. 0x2aa174UL
  90. #define MISC_REG_GEN_PURP_CR0 \
  91. 0x008c80UL
  92. #define MCP_REG_SCRATCH \
  93. 0xe20000UL
  94. #define CNIG_REG_NW_PORT_MODE_BB_B0 \
  95. 0x218200UL
  96. #define MISCS_REG_CHIP_NUM \
  97. 0x00976cUL
  98. #define MISCS_REG_CHIP_REV \
  99. 0x009770UL
  100. #define MISCS_REG_CMT_ENABLED_FOR_PAIR \
  101. 0x00971cUL
  102. #define MISCS_REG_CHIP_TEST_REG \
  103. 0x009778UL
  104. #define MISCS_REG_CHIP_METAL \
  105. 0x009774UL
  106. #define BRB_REG_HEADER_SIZE \
  107. 0x340804UL
  108. #define BTB_REG_HEADER_SIZE \
  109. 0xdb0804UL
  110. #define CAU_REG_LONG_TIMEOUT_THRESHOLD \
  111. 0x1c0708UL
  112. #define CCFC_REG_ACTIVITY_COUNTER \
  113. 0x2e8800UL
  114. #define CDU_REG_CID_ADDR_PARAMS \
  115. 0x580900UL
  116. #define DBG_REG_CLIENT_ENABLE \
  117. 0x010004UL
  118. #define DMAE_REG_INIT \
  119. 0x00c000UL
  120. #define DORQ_REG_IFEN \
  121. 0x100040UL
  122. #define GRC_REG_TIMEOUT_EN \
  123. 0x050404UL
  124. #define IGU_REG_BLOCK_CONFIGURATION \
  125. 0x180040UL
  126. #define MCM_REG_INIT \
  127. 0x1200000UL
  128. #define MCP2_REG_DBG_DWORD_ENABLE \
  129. 0x052404UL
  130. #define MISC_REG_PORT_MODE \
  131. 0x008c00UL
  132. #define MISCS_REG_CLK_100G_MODE \
  133. 0x009070UL
  134. #define MSDM_REG_ENABLE_IN1 \
  135. 0xfc0004UL
  136. #define MSEM_REG_ENABLE_IN \
  137. 0x1800004UL
  138. #define NIG_REG_CM_HDR \
  139. 0x500840UL
  140. #define NCSI_REG_CONFIG \
  141. 0x040200UL
  142. #define PBF_REG_INIT \
  143. 0xd80000UL
  144. #define PTU_REG_ATC_INIT_ARRAY \
  145. 0x560000UL
  146. #define PCM_REG_INIT \
  147. 0x1100000UL
  148. #define PGLUE_B_REG_ADMIN_PER_PF_REGION \
  149. 0x2a9000UL
  150. #define PRM_REG_DISABLE_PRM \
  151. 0x230000UL
  152. #define PRS_REG_SOFT_RST \
  153. 0x1f0000UL
  154. #define PSDM_REG_ENABLE_IN1 \
  155. 0xfa0004UL
  156. #define PSEM_REG_ENABLE_IN \
  157. 0x1600004UL
  158. #define PSWRQ_REG_DBG_SELECT \
  159. 0x280020UL
  160. #define PSWRQ2_REG_CDUT_P_SIZE \
  161. 0x24000cUL
  162. #define PSWHST_REG_DISCARD_INTERNAL_WRITES \
  163. 0x2a0040UL
  164. #define PSWHST2_REG_DBGSYN_ALMOST_FULL_THR \
  165. 0x29e050UL
  166. #define PSWRD_REG_DBG_SELECT \
  167. 0x29c040UL
  168. #define PSWRD2_REG_CONF11 \
  169. 0x29d064UL
  170. #define PSWWR_REG_USDM_FULL_TH \
  171. 0x29a040UL
  172. #define PSWWR2_REG_CDU_FULL_TH2 \
  173. 0x29b040UL
  174. #define QM_REG_MAXPQSIZE_0 \
  175. 0x2f0434UL
  176. #define RSS_REG_RSS_INIT_EN \
  177. 0x238804UL
  178. #define RDIF_REG_STOP_ON_ERROR \
  179. 0x300040UL
  180. #define SRC_REG_SOFT_RST \
  181. 0x23874cUL
  182. #define TCFC_REG_ACTIVITY_COUNTER \
  183. 0x2d8800UL
  184. #define TCM_REG_INIT \
  185. 0x1180000UL
  186. #define TM_REG_PXP_READ_DATA_FIFO_INIT \
  187. 0x2c0014UL
  188. #define TSDM_REG_ENABLE_IN1 \
  189. 0xfb0004UL
  190. #define TSEM_REG_ENABLE_IN \
  191. 0x1700004UL
  192. #define TDIF_REG_STOP_ON_ERROR \
  193. 0x310040UL
  194. #define UCM_REG_INIT \
  195. 0x1280000UL
  196. #define UMAC_REG_IPG_HD_BKP_CNTL_BB_B0 \
  197. 0x051004UL
  198. #define USDM_REG_ENABLE_IN1 \
  199. 0xfd0004UL
  200. #define USEM_REG_ENABLE_IN \
  201. 0x1900004UL
  202. #define XCM_REG_INIT \
  203. 0x1000000UL
  204. #define XSDM_REG_ENABLE_IN1 \
  205. 0xf80004UL
  206. #define XSEM_REG_ENABLE_IN \
  207. 0x1400004UL
  208. #define YCM_REG_INIT \
  209. 0x1080000UL
  210. #define YSDM_REG_ENABLE_IN1 \
  211. 0xf90004UL
  212. #define YSEM_REG_ENABLE_IN \
  213. 0x1500004UL
  214. #define XYLD_REG_SCBD_STRICT_PRIO \
  215. 0x4c0000UL
  216. #define TMLD_REG_SCBD_STRICT_PRIO \
  217. 0x4d0000UL
  218. #define MULD_REG_SCBD_STRICT_PRIO \
  219. 0x4e0000UL
  220. #define YULD_REG_SCBD_STRICT_PRIO \
  221. 0x4c8000UL
  222. #define MISC_REG_SHARED_MEM_ADDR \
  223. 0x008c20UL
  224. #define DMAE_REG_GO_C0 \
  225. 0x00c048UL
  226. #define DMAE_REG_GO_C1 \
  227. 0x00c04cUL
  228. #define DMAE_REG_GO_C2 \
  229. 0x00c050UL
  230. #define DMAE_REG_GO_C3 \
  231. 0x00c054UL
  232. #define DMAE_REG_GO_C4 \
  233. 0x00c058UL
  234. #define DMAE_REG_GO_C5 \
  235. 0x00c05cUL
  236. #define DMAE_REG_GO_C6 \
  237. 0x00c060UL
  238. #define DMAE_REG_GO_C7 \
  239. 0x00c064UL
  240. #define DMAE_REG_GO_C8 \
  241. 0x00c068UL
  242. #define DMAE_REG_GO_C9 \
  243. 0x00c06cUL
  244. #define DMAE_REG_GO_C10 \
  245. 0x00c070UL
  246. #define DMAE_REG_GO_C11 \
  247. 0x00c074UL
  248. #define DMAE_REG_GO_C12 \
  249. 0x00c078UL
  250. #define DMAE_REG_GO_C13 \
  251. 0x00c07cUL
  252. #define DMAE_REG_GO_C14 \
  253. 0x00c080UL
  254. #define DMAE_REG_GO_C15 \
  255. 0x00c084UL
  256. #define DMAE_REG_GO_C16 \
  257. 0x00c088UL
  258. #define DMAE_REG_GO_C17 \
  259. 0x00c08cUL
  260. #define DMAE_REG_GO_C18 \
  261. 0x00c090UL
  262. #define DMAE_REG_GO_C19 \
  263. 0x00c094UL
  264. #define DMAE_REG_GO_C20 \
  265. 0x00c098UL
  266. #define DMAE_REG_GO_C21 \
  267. 0x00c09cUL
  268. #define DMAE_REG_GO_C22 \
  269. 0x00c0a0UL
  270. #define DMAE_REG_GO_C23 \
  271. 0x00c0a4UL
  272. #define DMAE_REG_GO_C24 \
  273. 0x00c0a8UL
  274. #define DMAE_REG_GO_C25 \
  275. 0x00c0acUL
  276. #define DMAE_REG_GO_C26 \
  277. 0x00c0b0UL
  278. #define DMAE_REG_GO_C27 \
  279. 0x00c0b4UL
  280. #define DMAE_REG_GO_C28 \
  281. 0x00c0b8UL
  282. #define DMAE_REG_GO_C29 \
  283. 0x00c0bcUL
  284. #define DMAE_REG_GO_C30 \
  285. 0x00c0c0UL
  286. #define DMAE_REG_GO_C31 \
  287. 0x00c0c4UL
  288. #define DMAE_REG_CMD_MEM \
  289. 0x00c800UL
  290. #define QM_REG_MAXPQSIZETXSEL_0 \
  291. 0x2f0440UL
  292. #define QM_REG_SDMCMDREADY \
  293. 0x2f1e10UL
  294. #define QM_REG_SDMCMDADDR \
  295. 0x2f1e04UL
  296. #define QM_REG_SDMCMDDATALSB \
  297. 0x2f1e08UL
  298. #define QM_REG_SDMCMDDATAMSB \
  299. 0x2f1e0cUL
  300. #define QM_REG_SDMCMDGO \
  301. 0x2f1e14UL
  302. #define QM_REG_RLPFCRD \
  303. 0x2f4d80UL
  304. #define QM_REG_RLPFINCVAL \
  305. 0x2f4c80UL
  306. #define QM_REG_RLGLBLCRD \
  307. 0x2f4400UL
  308. #define QM_REG_RLGLBLINCVAL \
  309. 0x2f3400UL
  310. #define IGU_REG_ATTENTION_ENABLE \
  311. 0x18083cUL
  312. #define IGU_REG_ATTN_MSG_ADDR_L \
  313. 0x180820UL
  314. #define IGU_REG_ATTN_MSG_ADDR_H \
  315. 0x180824UL
  316. #define MISC_REG_AEU_GENERAL_ATTN_0 \
  317. 0x008400UL
  318. #define CAU_REG_SB_ADDR_MEMORY \
  319. 0x1c8000UL
  320. #define CAU_REG_SB_VAR_MEMORY \
  321. 0x1c6000UL
  322. #define CAU_REG_PI_MEMORY \
  323. 0x1d0000UL
  324. #define IGU_REG_PF_CONFIGURATION \
  325. 0x180800UL
  326. #define MISC_REG_AEU_ENABLE1_IGU_OUT_0 \
  327. 0x00849cUL
  328. #define MISC_REG_AEU_MASK_ATTN_IGU \
  329. 0x008494UL
  330. #define IGU_REG_CLEANUP_STATUS_0 \
  331. 0x180980UL
  332. #define IGU_REG_CLEANUP_STATUS_1 \
  333. 0x180a00UL
  334. #define IGU_REG_CLEANUP_STATUS_2 \
  335. 0x180a80UL
  336. #define IGU_REG_CLEANUP_STATUS_3 \
  337. 0x180b00UL
  338. #define IGU_REG_CLEANUP_STATUS_4 \
  339. 0x180b80UL
  340. #define IGU_REG_COMMAND_REG_32LSB_DATA \
  341. 0x180840UL
  342. #define IGU_REG_COMMAND_REG_CTRL \
  343. 0x180848UL
  344. #define IGU_REG_BLOCK_CONFIGURATION_VF_CLEANUP_EN ( \
  345. 0x1 << 1)
  346. #define IGU_REG_BLOCK_CONFIGURATION_PXP_TPH_INTERFACE_EN ( \
  347. 0x1 << 0)
  348. #define IGU_REG_MAPPING_MEMORY \
  349. 0x184000UL
  350. #define MISCS_REG_GENERIC_POR_0 \
  351. 0x0096d4UL
  352. #define MCP_REG_NVM_CFG4 \
  353. 0xe0642cUL
  354. #define MCP_REG_NVM_CFG4_FLASH_SIZE ( \
  355. 0x7 << 0)
  356. #define MCP_REG_NVM_CFG4_FLASH_SIZE_SHIFT \
  357. 0
  358. #define PGLUE_B_REG_PF_BAR0_SIZE \
  359. 0x2aae60UL
  360. #define PGLUE_B_REG_PF_BAR1_SIZE \
  361. 0x2aae64UL
  362. #endif