cvmx-dpi-defs.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2012 Cavium Networks
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_DPI_DEFS_H__
  28. #define __CVMX_DPI_DEFS_H__
  29. #define CVMX_DPI_BIST_STATUS (CVMX_ADD_IO_SEG(0x0001DF0000000000ull))
  30. #define CVMX_DPI_CTL (CVMX_ADD_IO_SEG(0x0001DF0000000040ull))
  31. #define CVMX_DPI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000300ull) + ((offset) & 7) * 8)
  32. #define CVMX_DPI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000200ull) + ((offset) & 7) * 8)
  33. #define CVMX_DPI_DMAX_ERR_RSP_STATUS(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000A80ull) + ((offset) & 7) * 8)
  34. #define CVMX_DPI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000280ull) + ((offset) & 7) * 8)
  35. #define CVMX_DPI_DMAX_IFLIGHT(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000A00ull) + ((offset) & 7) * 8)
  36. #define CVMX_DPI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000380ull) + ((offset) & 7) * 8)
  37. #define CVMX_DPI_DMAX_REQBNK0(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000400ull) + ((offset) & 7) * 8)
  38. #define CVMX_DPI_DMAX_REQBNK1(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000480ull) + ((offset) & 7) * 8)
  39. #define CVMX_DPI_DMA_CONTROL (CVMX_ADD_IO_SEG(0x0001DF0000000048ull))
  40. #define CVMX_DPI_DMA_ENGX_EN(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000080ull) + ((offset) & 7) * 8)
  41. #define CVMX_DPI_DMA_PPX_CNT(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000B00ull) + ((offset) & 31) * 8)
  42. #define CVMX_DPI_ENGX_BUF(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000880ull) + ((offset) & 7) * 8)
  43. #define CVMX_DPI_INFO_REG (CVMX_ADD_IO_SEG(0x0001DF0000000980ull))
  44. #define CVMX_DPI_INT_EN (CVMX_ADD_IO_SEG(0x0001DF0000000010ull))
  45. #define CVMX_DPI_INT_REG (CVMX_ADD_IO_SEG(0x0001DF0000000008ull))
  46. #define CVMX_DPI_NCBX_CFG(block_id) (CVMX_ADD_IO_SEG(0x0001DF0000000800ull))
  47. #define CVMX_DPI_PINT_INFO (CVMX_ADD_IO_SEG(0x0001DF0000000830ull))
  48. #define CVMX_DPI_PKT_ERR_RSP (CVMX_ADD_IO_SEG(0x0001DF0000000078ull))
  49. #define CVMX_DPI_REQ_ERR_RSP (CVMX_ADD_IO_SEG(0x0001DF0000000058ull))
  50. #define CVMX_DPI_REQ_ERR_RSP_EN (CVMX_ADD_IO_SEG(0x0001DF0000000068ull))
  51. #define CVMX_DPI_REQ_ERR_RST (CVMX_ADD_IO_SEG(0x0001DF0000000060ull))
  52. #define CVMX_DPI_REQ_ERR_RST_EN (CVMX_ADD_IO_SEG(0x0001DF0000000070ull))
  53. #define CVMX_DPI_REQ_ERR_SKIP_COMP (CVMX_ADD_IO_SEG(0x0001DF0000000838ull))
  54. #define CVMX_DPI_REQ_GBL_EN (CVMX_ADD_IO_SEG(0x0001DF0000000050ull))
  55. #define CVMX_DPI_SLI_PRTX_CFG(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000900ull) + ((offset) & 3) * 8)
  56. static inline uint64_t CVMX_DPI_SLI_PRTX_ERR(unsigned long offset)
  57. {
  58. switch (cvmx_get_octeon_family()) {
  59. case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
  60. return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
  61. case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
  62. case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
  63. case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
  64. if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS1))
  65. return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + (offset) * 8;
  66. if (OCTEON_IS_MODEL(OCTEON_CN68XX_PASS2))
  67. return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
  68. return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
  69. case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
  70. return CVMX_ADD_IO_SEG(0x0001DF0000000928ull) + (offset) * 8;
  71. }
  72. return CVMX_ADD_IO_SEG(0x0001DF0000000920ull) + (offset) * 8;
  73. }
  74. #define CVMX_DPI_SLI_PRTX_ERR_INFO(offset) (CVMX_ADD_IO_SEG(0x0001DF0000000940ull) + ((offset) & 3) * 8)
  75. union cvmx_dpi_bist_status {
  76. uint64_t u64;
  77. struct cvmx_dpi_bist_status_s {
  78. #ifdef __BIG_ENDIAN_BITFIELD
  79. uint64_t reserved_47_63:17;
  80. uint64_t bist:47;
  81. #else
  82. uint64_t bist:47;
  83. uint64_t reserved_47_63:17;
  84. #endif
  85. } s;
  86. struct cvmx_dpi_bist_status_s cn61xx;
  87. struct cvmx_dpi_bist_status_cn63xx {
  88. #ifdef __BIG_ENDIAN_BITFIELD
  89. uint64_t reserved_45_63:19;
  90. uint64_t bist:45;
  91. #else
  92. uint64_t bist:45;
  93. uint64_t reserved_45_63:19;
  94. #endif
  95. } cn63xx;
  96. struct cvmx_dpi_bist_status_cn63xxp1 {
  97. #ifdef __BIG_ENDIAN_BITFIELD
  98. uint64_t reserved_37_63:27;
  99. uint64_t bist:37;
  100. #else
  101. uint64_t bist:37;
  102. uint64_t reserved_37_63:27;
  103. #endif
  104. } cn63xxp1;
  105. struct cvmx_dpi_bist_status_s cn66xx;
  106. struct cvmx_dpi_bist_status_cn63xx cn68xx;
  107. struct cvmx_dpi_bist_status_cn63xx cn68xxp1;
  108. struct cvmx_dpi_bist_status_s cnf71xx;
  109. };
  110. union cvmx_dpi_ctl {
  111. uint64_t u64;
  112. struct cvmx_dpi_ctl_s {
  113. #ifdef __BIG_ENDIAN_BITFIELD
  114. uint64_t reserved_2_63:62;
  115. uint64_t clk:1;
  116. uint64_t en:1;
  117. #else
  118. uint64_t en:1;
  119. uint64_t clk:1;
  120. uint64_t reserved_2_63:62;
  121. #endif
  122. } s;
  123. struct cvmx_dpi_ctl_cn61xx {
  124. #ifdef __BIG_ENDIAN_BITFIELD
  125. uint64_t reserved_1_63:63;
  126. uint64_t en:1;
  127. #else
  128. uint64_t en:1;
  129. uint64_t reserved_1_63:63;
  130. #endif
  131. } cn61xx;
  132. struct cvmx_dpi_ctl_s cn63xx;
  133. struct cvmx_dpi_ctl_s cn63xxp1;
  134. struct cvmx_dpi_ctl_s cn66xx;
  135. struct cvmx_dpi_ctl_s cn68xx;
  136. struct cvmx_dpi_ctl_s cn68xxp1;
  137. struct cvmx_dpi_ctl_cn61xx cnf71xx;
  138. };
  139. union cvmx_dpi_dmax_counts {
  140. uint64_t u64;
  141. struct cvmx_dpi_dmax_counts_s {
  142. #ifdef __BIG_ENDIAN_BITFIELD
  143. uint64_t reserved_39_63:25;
  144. uint64_t fcnt:7;
  145. uint64_t dbell:32;
  146. #else
  147. uint64_t dbell:32;
  148. uint64_t fcnt:7;
  149. uint64_t reserved_39_63:25;
  150. #endif
  151. } s;
  152. struct cvmx_dpi_dmax_counts_s cn61xx;
  153. struct cvmx_dpi_dmax_counts_s cn63xx;
  154. struct cvmx_dpi_dmax_counts_s cn63xxp1;
  155. struct cvmx_dpi_dmax_counts_s cn66xx;
  156. struct cvmx_dpi_dmax_counts_s cn68xx;
  157. struct cvmx_dpi_dmax_counts_s cn68xxp1;
  158. struct cvmx_dpi_dmax_counts_s cnf71xx;
  159. };
  160. union cvmx_dpi_dmax_dbell {
  161. uint64_t u64;
  162. struct cvmx_dpi_dmax_dbell_s {
  163. #ifdef __BIG_ENDIAN_BITFIELD
  164. uint64_t reserved_16_63:48;
  165. uint64_t dbell:16;
  166. #else
  167. uint64_t dbell:16;
  168. uint64_t reserved_16_63:48;
  169. #endif
  170. } s;
  171. struct cvmx_dpi_dmax_dbell_s cn61xx;
  172. struct cvmx_dpi_dmax_dbell_s cn63xx;
  173. struct cvmx_dpi_dmax_dbell_s cn63xxp1;
  174. struct cvmx_dpi_dmax_dbell_s cn66xx;
  175. struct cvmx_dpi_dmax_dbell_s cn68xx;
  176. struct cvmx_dpi_dmax_dbell_s cn68xxp1;
  177. struct cvmx_dpi_dmax_dbell_s cnf71xx;
  178. };
  179. union cvmx_dpi_dmax_err_rsp_status {
  180. uint64_t u64;
  181. struct cvmx_dpi_dmax_err_rsp_status_s {
  182. #ifdef __BIG_ENDIAN_BITFIELD
  183. uint64_t reserved_6_63:58;
  184. uint64_t status:6;
  185. #else
  186. uint64_t status:6;
  187. uint64_t reserved_6_63:58;
  188. #endif
  189. } s;
  190. struct cvmx_dpi_dmax_err_rsp_status_s cn61xx;
  191. struct cvmx_dpi_dmax_err_rsp_status_s cn66xx;
  192. struct cvmx_dpi_dmax_err_rsp_status_s cn68xx;
  193. struct cvmx_dpi_dmax_err_rsp_status_s cn68xxp1;
  194. struct cvmx_dpi_dmax_err_rsp_status_s cnf71xx;
  195. };
  196. union cvmx_dpi_dmax_ibuff_saddr {
  197. uint64_t u64;
  198. struct cvmx_dpi_dmax_ibuff_saddr_s {
  199. #ifdef __BIG_ENDIAN_BITFIELD
  200. uint64_t reserved_62_63:2;
  201. uint64_t csize:14;
  202. uint64_t reserved_41_47:7;
  203. uint64_t idle:1;
  204. uint64_t saddr:33;
  205. uint64_t reserved_0_6:7;
  206. #else
  207. uint64_t reserved_0_6:7;
  208. uint64_t saddr:33;
  209. uint64_t idle:1;
  210. uint64_t reserved_41_47:7;
  211. uint64_t csize:14;
  212. uint64_t reserved_62_63:2;
  213. #endif
  214. } s;
  215. struct cvmx_dpi_dmax_ibuff_saddr_cn61xx {
  216. #ifdef __BIG_ENDIAN_BITFIELD
  217. uint64_t reserved_62_63:2;
  218. uint64_t csize:14;
  219. uint64_t reserved_41_47:7;
  220. uint64_t idle:1;
  221. uint64_t reserved_36_39:4;
  222. uint64_t saddr:29;
  223. uint64_t reserved_0_6:7;
  224. #else
  225. uint64_t reserved_0_6:7;
  226. uint64_t saddr:29;
  227. uint64_t reserved_36_39:4;
  228. uint64_t idle:1;
  229. uint64_t reserved_41_47:7;
  230. uint64_t csize:14;
  231. uint64_t reserved_62_63:2;
  232. #endif
  233. } cn61xx;
  234. struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn63xx;
  235. struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn63xxp1;
  236. struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cn66xx;
  237. struct cvmx_dpi_dmax_ibuff_saddr_s cn68xx;
  238. struct cvmx_dpi_dmax_ibuff_saddr_s cn68xxp1;
  239. struct cvmx_dpi_dmax_ibuff_saddr_cn61xx cnf71xx;
  240. };
  241. union cvmx_dpi_dmax_iflight {
  242. uint64_t u64;
  243. struct cvmx_dpi_dmax_iflight_s {
  244. #ifdef __BIG_ENDIAN_BITFIELD
  245. uint64_t reserved_3_63:61;
  246. uint64_t cnt:3;
  247. #else
  248. uint64_t cnt:3;
  249. uint64_t reserved_3_63:61;
  250. #endif
  251. } s;
  252. struct cvmx_dpi_dmax_iflight_s cn61xx;
  253. struct cvmx_dpi_dmax_iflight_s cn66xx;
  254. struct cvmx_dpi_dmax_iflight_s cn68xx;
  255. struct cvmx_dpi_dmax_iflight_s cn68xxp1;
  256. struct cvmx_dpi_dmax_iflight_s cnf71xx;
  257. };
  258. union cvmx_dpi_dmax_naddr {
  259. uint64_t u64;
  260. struct cvmx_dpi_dmax_naddr_s {
  261. #ifdef __BIG_ENDIAN_BITFIELD
  262. uint64_t reserved_40_63:24;
  263. uint64_t addr:40;
  264. #else
  265. uint64_t addr:40;
  266. uint64_t reserved_40_63:24;
  267. #endif
  268. } s;
  269. struct cvmx_dpi_dmax_naddr_cn61xx {
  270. #ifdef __BIG_ENDIAN_BITFIELD
  271. uint64_t reserved_36_63:28;
  272. uint64_t addr:36;
  273. #else
  274. uint64_t addr:36;
  275. uint64_t reserved_36_63:28;
  276. #endif
  277. } cn61xx;
  278. struct cvmx_dpi_dmax_naddr_cn61xx cn63xx;
  279. struct cvmx_dpi_dmax_naddr_cn61xx cn63xxp1;
  280. struct cvmx_dpi_dmax_naddr_cn61xx cn66xx;
  281. struct cvmx_dpi_dmax_naddr_s cn68xx;
  282. struct cvmx_dpi_dmax_naddr_s cn68xxp1;
  283. struct cvmx_dpi_dmax_naddr_cn61xx cnf71xx;
  284. };
  285. union cvmx_dpi_dmax_reqbnk0 {
  286. uint64_t u64;
  287. struct cvmx_dpi_dmax_reqbnk0_s {
  288. #ifdef __BIG_ENDIAN_BITFIELD
  289. uint64_t state:64;
  290. #else
  291. uint64_t state:64;
  292. #endif
  293. } s;
  294. struct cvmx_dpi_dmax_reqbnk0_s cn61xx;
  295. struct cvmx_dpi_dmax_reqbnk0_s cn63xx;
  296. struct cvmx_dpi_dmax_reqbnk0_s cn63xxp1;
  297. struct cvmx_dpi_dmax_reqbnk0_s cn66xx;
  298. struct cvmx_dpi_dmax_reqbnk0_s cn68xx;
  299. struct cvmx_dpi_dmax_reqbnk0_s cn68xxp1;
  300. struct cvmx_dpi_dmax_reqbnk0_s cnf71xx;
  301. };
  302. union cvmx_dpi_dmax_reqbnk1 {
  303. uint64_t u64;
  304. struct cvmx_dpi_dmax_reqbnk1_s {
  305. #ifdef __BIG_ENDIAN_BITFIELD
  306. uint64_t state:64;
  307. #else
  308. uint64_t state:64;
  309. #endif
  310. } s;
  311. struct cvmx_dpi_dmax_reqbnk1_s cn61xx;
  312. struct cvmx_dpi_dmax_reqbnk1_s cn63xx;
  313. struct cvmx_dpi_dmax_reqbnk1_s cn63xxp1;
  314. struct cvmx_dpi_dmax_reqbnk1_s cn66xx;
  315. struct cvmx_dpi_dmax_reqbnk1_s cn68xx;
  316. struct cvmx_dpi_dmax_reqbnk1_s cn68xxp1;
  317. struct cvmx_dpi_dmax_reqbnk1_s cnf71xx;
  318. };
  319. union cvmx_dpi_dma_control {
  320. uint64_t u64;
  321. struct cvmx_dpi_dma_control_s {
  322. #ifdef __BIG_ENDIAN_BITFIELD
  323. uint64_t reserved_62_63:2;
  324. uint64_t dici_mode:1;
  325. uint64_t pkt_en1:1;
  326. uint64_t ffp_dis:1;
  327. uint64_t commit_mode:1;
  328. uint64_t pkt_hp:1;
  329. uint64_t pkt_en:1;
  330. uint64_t reserved_54_55:2;
  331. uint64_t dma_enb:6;
  332. uint64_t reserved_34_47:14;
  333. uint64_t b0_lend:1;
  334. uint64_t dwb_denb:1;
  335. uint64_t dwb_ichk:9;
  336. uint64_t fpa_que:3;
  337. uint64_t o_add1:1;
  338. uint64_t o_ro:1;
  339. uint64_t o_ns:1;
  340. uint64_t o_es:2;
  341. uint64_t o_mode:1;
  342. uint64_t reserved_0_13:14;
  343. #else
  344. uint64_t reserved_0_13:14;
  345. uint64_t o_mode:1;
  346. uint64_t o_es:2;
  347. uint64_t o_ns:1;
  348. uint64_t o_ro:1;
  349. uint64_t o_add1:1;
  350. uint64_t fpa_que:3;
  351. uint64_t dwb_ichk:9;
  352. uint64_t dwb_denb:1;
  353. uint64_t b0_lend:1;
  354. uint64_t reserved_34_47:14;
  355. uint64_t dma_enb:6;
  356. uint64_t reserved_54_55:2;
  357. uint64_t pkt_en:1;
  358. uint64_t pkt_hp:1;
  359. uint64_t commit_mode:1;
  360. uint64_t ffp_dis:1;
  361. uint64_t pkt_en1:1;
  362. uint64_t dici_mode:1;
  363. uint64_t reserved_62_63:2;
  364. #endif
  365. } s;
  366. struct cvmx_dpi_dma_control_s cn61xx;
  367. struct cvmx_dpi_dma_control_cn63xx {
  368. #ifdef __BIG_ENDIAN_BITFIELD
  369. uint64_t reserved_61_63:3;
  370. uint64_t pkt_en1:1;
  371. uint64_t ffp_dis:1;
  372. uint64_t commit_mode:1;
  373. uint64_t pkt_hp:1;
  374. uint64_t pkt_en:1;
  375. uint64_t reserved_54_55:2;
  376. uint64_t dma_enb:6;
  377. uint64_t reserved_34_47:14;
  378. uint64_t b0_lend:1;
  379. uint64_t dwb_denb:1;
  380. uint64_t dwb_ichk:9;
  381. uint64_t fpa_que:3;
  382. uint64_t o_add1:1;
  383. uint64_t o_ro:1;
  384. uint64_t o_ns:1;
  385. uint64_t o_es:2;
  386. uint64_t o_mode:1;
  387. uint64_t reserved_0_13:14;
  388. #else
  389. uint64_t reserved_0_13:14;
  390. uint64_t o_mode:1;
  391. uint64_t o_es:2;
  392. uint64_t o_ns:1;
  393. uint64_t o_ro:1;
  394. uint64_t o_add1:1;
  395. uint64_t fpa_que:3;
  396. uint64_t dwb_ichk:9;
  397. uint64_t dwb_denb:1;
  398. uint64_t b0_lend:1;
  399. uint64_t reserved_34_47:14;
  400. uint64_t dma_enb:6;
  401. uint64_t reserved_54_55:2;
  402. uint64_t pkt_en:1;
  403. uint64_t pkt_hp:1;
  404. uint64_t commit_mode:1;
  405. uint64_t ffp_dis:1;
  406. uint64_t pkt_en1:1;
  407. uint64_t reserved_61_63:3;
  408. #endif
  409. } cn63xx;
  410. struct cvmx_dpi_dma_control_cn63xxp1 {
  411. #ifdef __BIG_ENDIAN_BITFIELD
  412. uint64_t reserved_59_63:5;
  413. uint64_t commit_mode:1;
  414. uint64_t pkt_hp:1;
  415. uint64_t pkt_en:1;
  416. uint64_t reserved_54_55:2;
  417. uint64_t dma_enb:6;
  418. uint64_t reserved_34_47:14;
  419. uint64_t b0_lend:1;
  420. uint64_t dwb_denb:1;
  421. uint64_t dwb_ichk:9;
  422. uint64_t fpa_que:3;
  423. uint64_t o_add1:1;
  424. uint64_t o_ro:1;
  425. uint64_t o_ns:1;
  426. uint64_t o_es:2;
  427. uint64_t o_mode:1;
  428. uint64_t reserved_0_13:14;
  429. #else
  430. uint64_t reserved_0_13:14;
  431. uint64_t o_mode:1;
  432. uint64_t o_es:2;
  433. uint64_t o_ns:1;
  434. uint64_t o_ro:1;
  435. uint64_t o_add1:1;
  436. uint64_t fpa_que:3;
  437. uint64_t dwb_ichk:9;
  438. uint64_t dwb_denb:1;
  439. uint64_t b0_lend:1;
  440. uint64_t reserved_34_47:14;
  441. uint64_t dma_enb:6;
  442. uint64_t reserved_54_55:2;
  443. uint64_t pkt_en:1;
  444. uint64_t pkt_hp:1;
  445. uint64_t commit_mode:1;
  446. uint64_t reserved_59_63:5;
  447. #endif
  448. } cn63xxp1;
  449. struct cvmx_dpi_dma_control_cn63xx cn66xx;
  450. struct cvmx_dpi_dma_control_s cn68xx;
  451. struct cvmx_dpi_dma_control_cn63xx cn68xxp1;
  452. struct cvmx_dpi_dma_control_s cnf71xx;
  453. };
  454. union cvmx_dpi_dma_engx_en {
  455. uint64_t u64;
  456. struct cvmx_dpi_dma_engx_en_s {
  457. #ifdef __BIG_ENDIAN_BITFIELD
  458. uint64_t reserved_8_63:56;
  459. uint64_t qen:8;
  460. #else
  461. uint64_t qen:8;
  462. uint64_t reserved_8_63:56;
  463. #endif
  464. } s;
  465. struct cvmx_dpi_dma_engx_en_s cn61xx;
  466. struct cvmx_dpi_dma_engx_en_s cn63xx;
  467. struct cvmx_dpi_dma_engx_en_s cn63xxp1;
  468. struct cvmx_dpi_dma_engx_en_s cn66xx;
  469. struct cvmx_dpi_dma_engx_en_s cn68xx;
  470. struct cvmx_dpi_dma_engx_en_s cn68xxp1;
  471. struct cvmx_dpi_dma_engx_en_s cnf71xx;
  472. };
  473. union cvmx_dpi_dma_ppx_cnt {
  474. uint64_t u64;
  475. struct cvmx_dpi_dma_ppx_cnt_s {
  476. #ifdef __BIG_ENDIAN_BITFIELD
  477. uint64_t reserved_16_63:48;
  478. uint64_t cnt:16;
  479. #else
  480. uint64_t cnt:16;
  481. uint64_t reserved_16_63:48;
  482. #endif
  483. } s;
  484. struct cvmx_dpi_dma_ppx_cnt_s cn61xx;
  485. struct cvmx_dpi_dma_ppx_cnt_s cn68xx;
  486. struct cvmx_dpi_dma_ppx_cnt_s cnf71xx;
  487. };
  488. union cvmx_dpi_engx_buf {
  489. uint64_t u64;
  490. struct cvmx_dpi_engx_buf_s {
  491. #ifdef __BIG_ENDIAN_BITFIELD
  492. uint64_t reserved_37_63:27;
  493. uint64_t compblks:5;
  494. uint64_t reserved_9_31:23;
  495. uint64_t base:5;
  496. uint64_t blks:4;
  497. #else
  498. uint64_t blks:4;
  499. uint64_t base:5;
  500. uint64_t reserved_9_31:23;
  501. uint64_t compblks:5;
  502. uint64_t reserved_37_63:27;
  503. #endif
  504. } s;
  505. struct cvmx_dpi_engx_buf_s cn61xx;
  506. struct cvmx_dpi_engx_buf_cn63xx {
  507. #ifdef __BIG_ENDIAN_BITFIELD
  508. uint64_t reserved_8_63:56;
  509. uint64_t base:4;
  510. uint64_t blks:4;
  511. #else
  512. uint64_t blks:4;
  513. uint64_t base:4;
  514. uint64_t reserved_8_63:56;
  515. #endif
  516. } cn63xx;
  517. struct cvmx_dpi_engx_buf_cn63xx cn63xxp1;
  518. struct cvmx_dpi_engx_buf_s cn66xx;
  519. struct cvmx_dpi_engx_buf_s cn68xx;
  520. struct cvmx_dpi_engx_buf_s cn68xxp1;
  521. struct cvmx_dpi_engx_buf_s cnf71xx;
  522. };
  523. union cvmx_dpi_info_reg {
  524. uint64_t u64;
  525. struct cvmx_dpi_info_reg_s {
  526. #ifdef __BIG_ENDIAN_BITFIELD
  527. uint64_t reserved_8_63:56;
  528. uint64_t ffp:4;
  529. uint64_t reserved_2_3:2;
  530. uint64_t ncb:1;
  531. uint64_t rsl:1;
  532. #else
  533. uint64_t rsl:1;
  534. uint64_t ncb:1;
  535. uint64_t reserved_2_3:2;
  536. uint64_t ffp:4;
  537. uint64_t reserved_8_63:56;
  538. #endif
  539. } s;
  540. struct cvmx_dpi_info_reg_s cn61xx;
  541. struct cvmx_dpi_info_reg_s cn63xx;
  542. struct cvmx_dpi_info_reg_cn63xxp1 {
  543. #ifdef __BIG_ENDIAN_BITFIELD
  544. uint64_t reserved_2_63:62;
  545. uint64_t ncb:1;
  546. uint64_t rsl:1;
  547. #else
  548. uint64_t rsl:1;
  549. uint64_t ncb:1;
  550. uint64_t reserved_2_63:62;
  551. #endif
  552. } cn63xxp1;
  553. struct cvmx_dpi_info_reg_s cn66xx;
  554. struct cvmx_dpi_info_reg_s cn68xx;
  555. struct cvmx_dpi_info_reg_s cn68xxp1;
  556. struct cvmx_dpi_info_reg_s cnf71xx;
  557. };
  558. union cvmx_dpi_int_en {
  559. uint64_t u64;
  560. struct cvmx_dpi_int_en_s {
  561. #ifdef __BIG_ENDIAN_BITFIELD
  562. uint64_t reserved_28_63:36;
  563. uint64_t sprt3_rst:1;
  564. uint64_t sprt2_rst:1;
  565. uint64_t sprt1_rst:1;
  566. uint64_t sprt0_rst:1;
  567. uint64_t reserved_23_23:1;
  568. uint64_t req_badfil:1;
  569. uint64_t req_inull:1;
  570. uint64_t req_anull:1;
  571. uint64_t req_undflw:1;
  572. uint64_t req_ovrflw:1;
  573. uint64_t req_badlen:1;
  574. uint64_t req_badadr:1;
  575. uint64_t dmadbo:8;
  576. uint64_t reserved_2_7:6;
  577. uint64_t nfovr:1;
  578. uint64_t nderr:1;
  579. #else
  580. uint64_t nderr:1;
  581. uint64_t nfovr:1;
  582. uint64_t reserved_2_7:6;
  583. uint64_t dmadbo:8;
  584. uint64_t req_badadr:1;
  585. uint64_t req_badlen:1;
  586. uint64_t req_ovrflw:1;
  587. uint64_t req_undflw:1;
  588. uint64_t req_anull:1;
  589. uint64_t req_inull:1;
  590. uint64_t req_badfil:1;
  591. uint64_t reserved_23_23:1;
  592. uint64_t sprt0_rst:1;
  593. uint64_t sprt1_rst:1;
  594. uint64_t sprt2_rst:1;
  595. uint64_t sprt3_rst:1;
  596. uint64_t reserved_28_63:36;
  597. #endif
  598. } s;
  599. struct cvmx_dpi_int_en_s cn61xx;
  600. struct cvmx_dpi_int_en_cn63xx {
  601. #ifdef __BIG_ENDIAN_BITFIELD
  602. uint64_t reserved_26_63:38;
  603. uint64_t sprt1_rst:1;
  604. uint64_t sprt0_rst:1;
  605. uint64_t reserved_23_23:1;
  606. uint64_t req_badfil:1;
  607. uint64_t req_inull:1;
  608. uint64_t req_anull:1;
  609. uint64_t req_undflw:1;
  610. uint64_t req_ovrflw:1;
  611. uint64_t req_badlen:1;
  612. uint64_t req_badadr:1;
  613. uint64_t dmadbo:8;
  614. uint64_t reserved_2_7:6;
  615. uint64_t nfovr:1;
  616. uint64_t nderr:1;
  617. #else
  618. uint64_t nderr:1;
  619. uint64_t nfovr:1;
  620. uint64_t reserved_2_7:6;
  621. uint64_t dmadbo:8;
  622. uint64_t req_badadr:1;
  623. uint64_t req_badlen:1;
  624. uint64_t req_ovrflw:1;
  625. uint64_t req_undflw:1;
  626. uint64_t req_anull:1;
  627. uint64_t req_inull:1;
  628. uint64_t req_badfil:1;
  629. uint64_t reserved_23_23:1;
  630. uint64_t sprt0_rst:1;
  631. uint64_t sprt1_rst:1;
  632. uint64_t reserved_26_63:38;
  633. #endif
  634. } cn63xx;
  635. struct cvmx_dpi_int_en_cn63xx cn63xxp1;
  636. struct cvmx_dpi_int_en_s cn66xx;
  637. struct cvmx_dpi_int_en_cn63xx cn68xx;
  638. struct cvmx_dpi_int_en_cn63xx cn68xxp1;
  639. struct cvmx_dpi_int_en_s cnf71xx;
  640. };
  641. union cvmx_dpi_int_reg {
  642. uint64_t u64;
  643. struct cvmx_dpi_int_reg_s {
  644. #ifdef __BIG_ENDIAN_BITFIELD
  645. uint64_t reserved_28_63:36;
  646. uint64_t sprt3_rst:1;
  647. uint64_t sprt2_rst:1;
  648. uint64_t sprt1_rst:1;
  649. uint64_t sprt0_rst:1;
  650. uint64_t reserved_23_23:1;
  651. uint64_t req_badfil:1;
  652. uint64_t req_inull:1;
  653. uint64_t req_anull:1;
  654. uint64_t req_undflw:1;
  655. uint64_t req_ovrflw:1;
  656. uint64_t req_badlen:1;
  657. uint64_t req_badadr:1;
  658. uint64_t dmadbo:8;
  659. uint64_t reserved_2_7:6;
  660. uint64_t nfovr:1;
  661. uint64_t nderr:1;
  662. #else
  663. uint64_t nderr:1;
  664. uint64_t nfovr:1;
  665. uint64_t reserved_2_7:6;
  666. uint64_t dmadbo:8;
  667. uint64_t req_badadr:1;
  668. uint64_t req_badlen:1;
  669. uint64_t req_ovrflw:1;
  670. uint64_t req_undflw:1;
  671. uint64_t req_anull:1;
  672. uint64_t req_inull:1;
  673. uint64_t req_badfil:1;
  674. uint64_t reserved_23_23:1;
  675. uint64_t sprt0_rst:1;
  676. uint64_t sprt1_rst:1;
  677. uint64_t sprt2_rst:1;
  678. uint64_t sprt3_rst:1;
  679. uint64_t reserved_28_63:36;
  680. #endif
  681. } s;
  682. struct cvmx_dpi_int_reg_s cn61xx;
  683. struct cvmx_dpi_int_reg_cn63xx {
  684. #ifdef __BIG_ENDIAN_BITFIELD
  685. uint64_t reserved_26_63:38;
  686. uint64_t sprt1_rst:1;
  687. uint64_t sprt0_rst:1;
  688. uint64_t reserved_23_23:1;
  689. uint64_t req_badfil:1;
  690. uint64_t req_inull:1;
  691. uint64_t req_anull:1;
  692. uint64_t req_undflw:1;
  693. uint64_t req_ovrflw:1;
  694. uint64_t req_badlen:1;
  695. uint64_t req_badadr:1;
  696. uint64_t dmadbo:8;
  697. uint64_t reserved_2_7:6;
  698. uint64_t nfovr:1;
  699. uint64_t nderr:1;
  700. #else
  701. uint64_t nderr:1;
  702. uint64_t nfovr:1;
  703. uint64_t reserved_2_7:6;
  704. uint64_t dmadbo:8;
  705. uint64_t req_badadr:1;
  706. uint64_t req_badlen:1;
  707. uint64_t req_ovrflw:1;
  708. uint64_t req_undflw:1;
  709. uint64_t req_anull:1;
  710. uint64_t req_inull:1;
  711. uint64_t req_badfil:1;
  712. uint64_t reserved_23_23:1;
  713. uint64_t sprt0_rst:1;
  714. uint64_t sprt1_rst:1;
  715. uint64_t reserved_26_63:38;
  716. #endif
  717. } cn63xx;
  718. struct cvmx_dpi_int_reg_cn63xx cn63xxp1;
  719. struct cvmx_dpi_int_reg_s cn66xx;
  720. struct cvmx_dpi_int_reg_cn63xx cn68xx;
  721. struct cvmx_dpi_int_reg_cn63xx cn68xxp1;
  722. struct cvmx_dpi_int_reg_s cnf71xx;
  723. };
  724. union cvmx_dpi_ncbx_cfg {
  725. uint64_t u64;
  726. struct cvmx_dpi_ncbx_cfg_s {
  727. #ifdef __BIG_ENDIAN_BITFIELD
  728. uint64_t reserved_6_63:58;
  729. uint64_t molr:6;
  730. #else
  731. uint64_t molr:6;
  732. uint64_t reserved_6_63:58;
  733. #endif
  734. } s;
  735. struct cvmx_dpi_ncbx_cfg_s cn61xx;
  736. struct cvmx_dpi_ncbx_cfg_s cn66xx;
  737. struct cvmx_dpi_ncbx_cfg_s cn68xx;
  738. struct cvmx_dpi_ncbx_cfg_s cnf71xx;
  739. };
  740. union cvmx_dpi_pint_info {
  741. uint64_t u64;
  742. struct cvmx_dpi_pint_info_s {
  743. #ifdef __BIG_ENDIAN_BITFIELD
  744. uint64_t reserved_14_63:50;
  745. uint64_t iinfo:6;
  746. uint64_t reserved_6_7:2;
  747. uint64_t sinfo:6;
  748. #else
  749. uint64_t sinfo:6;
  750. uint64_t reserved_6_7:2;
  751. uint64_t iinfo:6;
  752. uint64_t reserved_14_63:50;
  753. #endif
  754. } s;
  755. struct cvmx_dpi_pint_info_s cn61xx;
  756. struct cvmx_dpi_pint_info_s cn63xx;
  757. struct cvmx_dpi_pint_info_s cn63xxp1;
  758. struct cvmx_dpi_pint_info_s cn66xx;
  759. struct cvmx_dpi_pint_info_s cn68xx;
  760. struct cvmx_dpi_pint_info_s cn68xxp1;
  761. struct cvmx_dpi_pint_info_s cnf71xx;
  762. };
  763. union cvmx_dpi_pkt_err_rsp {
  764. uint64_t u64;
  765. struct cvmx_dpi_pkt_err_rsp_s {
  766. #ifdef __BIG_ENDIAN_BITFIELD
  767. uint64_t reserved_1_63:63;
  768. uint64_t pkterr:1;
  769. #else
  770. uint64_t pkterr:1;
  771. uint64_t reserved_1_63:63;
  772. #endif
  773. } s;
  774. struct cvmx_dpi_pkt_err_rsp_s cn61xx;
  775. struct cvmx_dpi_pkt_err_rsp_s cn63xx;
  776. struct cvmx_dpi_pkt_err_rsp_s cn63xxp1;
  777. struct cvmx_dpi_pkt_err_rsp_s cn66xx;
  778. struct cvmx_dpi_pkt_err_rsp_s cn68xx;
  779. struct cvmx_dpi_pkt_err_rsp_s cn68xxp1;
  780. struct cvmx_dpi_pkt_err_rsp_s cnf71xx;
  781. };
  782. union cvmx_dpi_req_err_rsp {
  783. uint64_t u64;
  784. struct cvmx_dpi_req_err_rsp_s {
  785. #ifdef __BIG_ENDIAN_BITFIELD
  786. uint64_t reserved_8_63:56;
  787. uint64_t qerr:8;
  788. #else
  789. uint64_t qerr:8;
  790. uint64_t reserved_8_63:56;
  791. #endif
  792. } s;
  793. struct cvmx_dpi_req_err_rsp_s cn61xx;
  794. struct cvmx_dpi_req_err_rsp_s cn63xx;
  795. struct cvmx_dpi_req_err_rsp_s cn63xxp1;
  796. struct cvmx_dpi_req_err_rsp_s cn66xx;
  797. struct cvmx_dpi_req_err_rsp_s cn68xx;
  798. struct cvmx_dpi_req_err_rsp_s cn68xxp1;
  799. struct cvmx_dpi_req_err_rsp_s cnf71xx;
  800. };
  801. union cvmx_dpi_req_err_rsp_en {
  802. uint64_t u64;
  803. struct cvmx_dpi_req_err_rsp_en_s {
  804. #ifdef __BIG_ENDIAN_BITFIELD
  805. uint64_t reserved_8_63:56;
  806. uint64_t en:8;
  807. #else
  808. uint64_t en:8;
  809. uint64_t reserved_8_63:56;
  810. #endif
  811. } s;
  812. struct cvmx_dpi_req_err_rsp_en_s cn61xx;
  813. struct cvmx_dpi_req_err_rsp_en_s cn63xx;
  814. struct cvmx_dpi_req_err_rsp_en_s cn63xxp1;
  815. struct cvmx_dpi_req_err_rsp_en_s cn66xx;
  816. struct cvmx_dpi_req_err_rsp_en_s cn68xx;
  817. struct cvmx_dpi_req_err_rsp_en_s cn68xxp1;
  818. struct cvmx_dpi_req_err_rsp_en_s cnf71xx;
  819. };
  820. union cvmx_dpi_req_err_rst {
  821. uint64_t u64;
  822. struct cvmx_dpi_req_err_rst_s {
  823. #ifdef __BIG_ENDIAN_BITFIELD
  824. uint64_t reserved_8_63:56;
  825. uint64_t qerr:8;
  826. #else
  827. uint64_t qerr:8;
  828. uint64_t reserved_8_63:56;
  829. #endif
  830. } s;
  831. struct cvmx_dpi_req_err_rst_s cn61xx;
  832. struct cvmx_dpi_req_err_rst_s cn63xx;
  833. struct cvmx_dpi_req_err_rst_s cn63xxp1;
  834. struct cvmx_dpi_req_err_rst_s cn66xx;
  835. struct cvmx_dpi_req_err_rst_s cn68xx;
  836. struct cvmx_dpi_req_err_rst_s cn68xxp1;
  837. struct cvmx_dpi_req_err_rst_s cnf71xx;
  838. };
  839. union cvmx_dpi_req_err_rst_en {
  840. uint64_t u64;
  841. struct cvmx_dpi_req_err_rst_en_s {
  842. #ifdef __BIG_ENDIAN_BITFIELD
  843. uint64_t reserved_8_63:56;
  844. uint64_t en:8;
  845. #else
  846. uint64_t en:8;
  847. uint64_t reserved_8_63:56;
  848. #endif
  849. } s;
  850. struct cvmx_dpi_req_err_rst_en_s cn61xx;
  851. struct cvmx_dpi_req_err_rst_en_s cn63xx;
  852. struct cvmx_dpi_req_err_rst_en_s cn63xxp1;
  853. struct cvmx_dpi_req_err_rst_en_s cn66xx;
  854. struct cvmx_dpi_req_err_rst_en_s cn68xx;
  855. struct cvmx_dpi_req_err_rst_en_s cn68xxp1;
  856. struct cvmx_dpi_req_err_rst_en_s cnf71xx;
  857. };
  858. union cvmx_dpi_req_err_skip_comp {
  859. uint64_t u64;
  860. struct cvmx_dpi_req_err_skip_comp_s {
  861. #ifdef __BIG_ENDIAN_BITFIELD
  862. uint64_t reserved_24_63:40;
  863. uint64_t en_rst:8;
  864. uint64_t reserved_8_15:8;
  865. uint64_t en_rsp:8;
  866. #else
  867. uint64_t en_rsp:8;
  868. uint64_t reserved_8_15:8;
  869. uint64_t en_rst:8;
  870. uint64_t reserved_24_63:40;
  871. #endif
  872. } s;
  873. struct cvmx_dpi_req_err_skip_comp_s cn61xx;
  874. struct cvmx_dpi_req_err_skip_comp_s cn66xx;
  875. struct cvmx_dpi_req_err_skip_comp_s cn68xx;
  876. struct cvmx_dpi_req_err_skip_comp_s cn68xxp1;
  877. struct cvmx_dpi_req_err_skip_comp_s cnf71xx;
  878. };
  879. union cvmx_dpi_req_gbl_en {
  880. uint64_t u64;
  881. struct cvmx_dpi_req_gbl_en_s {
  882. #ifdef __BIG_ENDIAN_BITFIELD
  883. uint64_t reserved_8_63:56;
  884. uint64_t qen:8;
  885. #else
  886. uint64_t qen:8;
  887. uint64_t reserved_8_63:56;
  888. #endif
  889. } s;
  890. struct cvmx_dpi_req_gbl_en_s cn61xx;
  891. struct cvmx_dpi_req_gbl_en_s cn63xx;
  892. struct cvmx_dpi_req_gbl_en_s cn63xxp1;
  893. struct cvmx_dpi_req_gbl_en_s cn66xx;
  894. struct cvmx_dpi_req_gbl_en_s cn68xx;
  895. struct cvmx_dpi_req_gbl_en_s cn68xxp1;
  896. struct cvmx_dpi_req_gbl_en_s cnf71xx;
  897. };
  898. union cvmx_dpi_sli_prtx_cfg {
  899. uint64_t u64;
  900. struct cvmx_dpi_sli_prtx_cfg_s {
  901. #ifdef __BIG_ENDIAN_BITFIELD
  902. uint64_t reserved_25_63:39;
  903. uint64_t halt:1;
  904. uint64_t qlm_cfg:4;
  905. uint64_t reserved_17_19:3;
  906. uint64_t rd_mode:1;
  907. uint64_t reserved_14_15:2;
  908. uint64_t molr:6;
  909. uint64_t mps_lim:1;
  910. uint64_t reserved_5_6:2;
  911. uint64_t mps:1;
  912. uint64_t mrrs_lim:1;
  913. uint64_t reserved_2_2:1;
  914. uint64_t mrrs:2;
  915. #else
  916. uint64_t mrrs:2;
  917. uint64_t reserved_2_2:1;
  918. uint64_t mrrs_lim:1;
  919. uint64_t mps:1;
  920. uint64_t reserved_5_6:2;
  921. uint64_t mps_lim:1;
  922. uint64_t molr:6;
  923. uint64_t reserved_14_15:2;
  924. uint64_t rd_mode:1;
  925. uint64_t reserved_17_19:3;
  926. uint64_t qlm_cfg:4;
  927. uint64_t halt:1;
  928. uint64_t reserved_25_63:39;
  929. #endif
  930. } s;
  931. struct cvmx_dpi_sli_prtx_cfg_s cn61xx;
  932. struct cvmx_dpi_sli_prtx_cfg_cn63xx {
  933. #ifdef __BIG_ENDIAN_BITFIELD
  934. uint64_t reserved_25_63:39;
  935. uint64_t halt:1;
  936. uint64_t reserved_21_23:3;
  937. uint64_t qlm_cfg:1;
  938. uint64_t reserved_17_19:3;
  939. uint64_t rd_mode:1;
  940. uint64_t reserved_14_15:2;
  941. uint64_t molr:6;
  942. uint64_t mps_lim:1;
  943. uint64_t reserved_5_6:2;
  944. uint64_t mps:1;
  945. uint64_t mrrs_lim:1;
  946. uint64_t reserved_2_2:1;
  947. uint64_t mrrs:2;
  948. #else
  949. uint64_t mrrs:2;
  950. uint64_t reserved_2_2:1;
  951. uint64_t mrrs_lim:1;
  952. uint64_t mps:1;
  953. uint64_t reserved_5_6:2;
  954. uint64_t mps_lim:1;
  955. uint64_t molr:6;
  956. uint64_t reserved_14_15:2;
  957. uint64_t rd_mode:1;
  958. uint64_t reserved_17_19:3;
  959. uint64_t qlm_cfg:1;
  960. uint64_t reserved_21_23:3;
  961. uint64_t halt:1;
  962. uint64_t reserved_25_63:39;
  963. #endif
  964. } cn63xx;
  965. struct cvmx_dpi_sli_prtx_cfg_cn63xx cn63xxp1;
  966. struct cvmx_dpi_sli_prtx_cfg_s cn66xx;
  967. struct cvmx_dpi_sli_prtx_cfg_cn63xx cn68xx;
  968. struct cvmx_dpi_sli_prtx_cfg_cn63xx cn68xxp1;
  969. struct cvmx_dpi_sli_prtx_cfg_s cnf71xx;
  970. };
  971. union cvmx_dpi_sli_prtx_err {
  972. uint64_t u64;
  973. struct cvmx_dpi_sli_prtx_err_s {
  974. #ifdef __BIG_ENDIAN_BITFIELD
  975. uint64_t addr:61;
  976. uint64_t reserved_0_2:3;
  977. #else
  978. uint64_t reserved_0_2:3;
  979. uint64_t addr:61;
  980. #endif
  981. } s;
  982. struct cvmx_dpi_sli_prtx_err_s cn61xx;
  983. struct cvmx_dpi_sli_prtx_err_s cn63xx;
  984. struct cvmx_dpi_sli_prtx_err_s cn63xxp1;
  985. struct cvmx_dpi_sli_prtx_err_s cn66xx;
  986. struct cvmx_dpi_sli_prtx_err_s cn68xx;
  987. struct cvmx_dpi_sli_prtx_err_s cn68xxp1;
  988. struct cvmx_dpi_sli_prtx_err_s cnf71xx;
  989. };
  990. union cvmx_dpi_sli_prtx_err_info {
  991. uint64_t u64;
  992. struct cvmx_dpi_sli_prtx_err_info_s {
  993. #ifdef __BIG_ENDIAN_BITFIELD
  994. uint64_t reserved_9_63:55;
  995. uint64_t lock:1;
  996. uint64_t reserved_5_7:3;
  997. uint64_t type:1;
  998. uint64_t reserved_3_3:1;
  999. uint64_t reqq:3;
  1000. #else
  1001. uint64_t reqq:3;
  1002. uint64_t reserved_3_3:1;
  1003. uint64_t type:1;
  1004. uint64_t reserved_5_7:3;
  1005. uint64_t lock:1;
  1006. uint64_t reserved_9_63:55;
  1007. #endif
  1008. } s;
  1009. struct cvmx_dpi_sli_prtx_err_info_s cn61xx;
  1010. struct cvmx_dpi_sli_prtx_err_info_s cn63xx;
  1011. struct cvmx_dpi_sli_prtx_err_info_s cn63xxp1;
  1012. struct cvmx_dpi_sli_prtx_err_info_s cn66xx;
  1013. struct cvmx_dpi_sli_prtx_err_info_s cn68xx;
  1014. struct cvmx_dpi_sli_prtx_err_info_s cn68xxp1;
  1015. struct cvmx_dpi_sli_prtx_err_info_s cnf71xx;
  1016. };
  1017. #endif