cvmx-pemx-defs.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  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_PEMX_DEFS_H__
  28. #define __CVMX_PEMX_DEFS_H__
  29. #define CVMX_PEMX_BAR1_INDEXX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C00000A8ull) + (((offset) & 15) + ((block_id) & 1) * 0x200000ull) * 8)
  30. #define CVMX_PEMX_BAR2_MASK(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000130ull) + ((block_id) & 1) * 0x1000000ull)
  31. #define CVMX_PEMX_BAR_CTL(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000128ull) + ((block_id) & 1) * 0x1000000ull)
  32. #define CVMX_PEMX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000018ull) + ((block_id) & 1) * 0x1000000ull)
  33. #define CVMX_PEMX_BIST_STATUS2(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000420ull) + ((block_id) & 1) * 0x1000000ull)
  34. #define CVMX_PEMX_CFG_RD(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000030ull) + ((block_id) & 1) * 0x1000000ull)
  35. #define CVMX_PEMX_CFG_WR(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000028ull) + ((block_id) & 1) * 0x1000000ull)
  36. #define CVMX_PEMX_CPL_LUT_VALID(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000098ull) + ((block_id) & 1) * 0x1000000ull)
  37. #define CVMX_PEMX_CTL_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000000ull) + ((block_id) & 1) * 0x1000000ull)
  38. #define CVMX_PEMX_DBG_INFO(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000008ull) + ((block_id) & 1) * 0x1000000ull)
  39. #define CVMX_PEMX_DBG_INFO_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800C00000A0ull) + ((block_id) & 1) * 0x1000000ull)
  40. #define CVMX_PEMX_DIAG_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000020ull) + ((block_id) & 1) * 0x1000000ull)
  41. #define CVMX_PEMX_INB_READ_CREDITS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000138ull) + ((block_id) & 1) * 0x1000000ull)
  42. #define CVMX_PEMX_INT_ENB(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000410ull) + ((block_id) & 1) * 0x1000000ull)
  43. #define CVMX_PEMX_INT_ENB_INT(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000418ull) + ((block_id) & 1) * 0x1000000ull)
  44. #define CVMX_PEMX_INT_SUM(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000408ull) + ((block_id) & 1) * 0x1000000ull)
  45. #define CVMX_PEMX_P2N_BAR0_START(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000080ull) + ((block_id) & 1) * 0x1000000ull)
  46. #define CVMX_PEMX_P2N_BAR1_START(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000088ull) + ((block_id) & 1) * 0x1000000ull)
  47. #define CVMX_PEMX_P2N_BAR2_START(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000090ull) + ((block_id) & 1) * 0x1000000ull)
  48. #define CVMX_PEMX_P2P_BARX_END(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C0000048ull) + (((offset) & 3) + ((block_id) & 1) * 0x100000ull) * 16)
  49. #define CVMX_PEMX_P2P_BARX_START(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800C0000040ull) + (((offset) & 3) + ((block_id) & 1) * 0x100000ull) * 16)
  50. #define CVMX_PEMX_TLP_CREDITS(block_id) (CVMX_ADD_IO_SEG(0x00011800C0000038ull) + ((block_id) & 1) * 0x1000000ull)
  51. union cvmx_pemx_bar1_indexx {
  52. uint64_t u64;
  53. struct cvmx_pemx_bar1_indexx_s {
  54. #ifdef __BIG_ENDIAN_BITFIELD
  55. uint64_t reserved_20_63:44;
  56. uint64_t addr_idx:16;
  57. uint64_t ca:1;
  58. uint64_t end_swp:2;
  59. uint64_t addr_v:1;
  60. #else
  61. uint64_t addr_v:1;
  62. uint64_t end_swp:2;
  63. uint64_t ca:1;
  64. uint64_t addr_idx:16;
  65. uint64_t reserved_20_63:44;
  66. #endif
  67. } s;
  68. struct cvmx_pemx_bar1_indexx_s cn61xx;
  69. struct cvmx_pemx_bar1_indexx_s cn63xx;
  70. struct cvmx_pemx_bar1_indexx_s cn63xxp1;
  71. struct cvmx_pemx_bar1_indexx_s cn66xx;
  72. struct cvmx_pemx_bar1_indexx_s cn68xx;
  73. struct cvmx_pemx_bar1_indexx_s cn68xxp1;
  74. struct cvmx_pemx_bar1_indexx_s cnf71xx;
  75. };
  76. union cvmx_pemx_bar2_mask {
  77. uint64_t u64;
  78. struct cvmx_pemx_bar2_mask_s {
  79. #ifdef __BIG_ENDIAN_BITFIELD
  80. uint64_t reserved_38_63:26;
  81. uint64_t mask:35;
  82. uint64_t reserved_0_2:3;
  83. #else
  84. uint64_t reserved_0_2:3;
  85. uint64_t mask:35;
  86. uint64_t reserved_38_63:26;
  87. #endif
  88. } s;
  89. struct cvmx_pemx_bar2_mask_s cn61xx;
  90. struct cvmx_pemx_bar2_mask_s cn66xx;
  91. struct cvmx_pemx_bar2_mask_s cn68xx;
  92. struct cvmx_pemx_bar2_mask_s cn68xxp1;
  93. struct cvmx_pemx_bar2_mask_s cnf71xx;
  94. };
  95. union cvmx_pemx_bar_ctl {
  96. uint64_t u64;
  97. struct cvmx_pemx_bar_ctl_s {
  98. #ifdef __BIG_ENDIAN_BITFIELD
  99. uint64_t reserved_7_63:57;
  100. uint64_t bar1_siz:3;
  101. uint64_t bar2_enb:1;
  102. uint64_t bar2_esx:2;
  103. uint64_t bar2_cax:1;
  104. #else
  105. uint64_t bar2_cax:1;
  106. uint64_t bar2_esx:2;
  107. uint64_t bar2_enb:1;
  108. uint64_t bar1_siz:3;
  109. uint64_t reserved_7_63:57;
  110. #endif
  111. } s;
  112. struct cvmx_pemx_bar_ctl_s cn61xx;
  113. struct cvmx_pemx_bar_ctl_s cn63xx;
  114. struct cvmx_pemx_bar_ctl_s cn63xxp1;
  115. struct cvmx_pemx_bar_ctl_s cn66xx;
  116. struct cvmx_pemx_bar_ctl_s cn68xx;
  117. struct cvmx_pemx_bar_ctl_s cn68xxp1;
  118. struct cvmx_pemx_bar_ctl_s cnf71xx;
  119. };
  120. union cvmx_pemx_bist_status {
  121. uint64_t u64;
  122. struct cvmx_pemx_bist_status_s {
  123. #ifdef __BIG_ENDIAN_BITFIELD
  124. uint64_t reserved_8_63:56;
  125. uint64_t retry:1;
  126. uint64_t rqdata0:1;
  127. uint64_t rqdata1:1;
  128. uint64_t rqdata2:1;
  129. uint64_t rqdata3:1;
  130. uint64_t rqhdr1:1;
  131. uint64_t rqhdr0:1;
  132. uint64_t sot:1;
  133. #else
  134. uint64_t sot:1;
  135. uint64_t rqhdr0:1;
  136. uint64_t rqhdr1:1;
  137. uint64_t rqdata3:1;
  138. uint64_t rqdata2:1;
  139. uint64_t rqdata1:1;
  140. uint64_t rqdata0:1;
  141. uint64_t retry:1;
  142. uint64_t reserved_8_63:56;
  143. #endif
  144. } s;
  145. struct cvmx_pemx_bist_status_s cn61xx;
  146. struct cvmx_pemx_bist_status_s cn63xx;
  147. struct cvmx_pemx_bist_status_s cn63xxp1;
  148. struct cvmx_pemx_bist_status_s cn66xx;
  149. struct cvmx_pemx_bist_status_s cn68xx;
  150. struct cvmx_pemx_bist_status_s cn68xxp1;
  151. struct cvmx_pemx_bist_status_s cnf71xx;
  152. };
  153. union cvmx_pemx_bist_status2 {
  154. uint64_t u64;
  155. struct cvmx_pemx_bist_status2_s {
  156. #ifdef __BIG_ENDIAN_BITFIELD
  157. uint64_t reserved_10_63:54;
  158. uint64_t e2p_cpl:1;
  159. uint64_t e2p_n:1;
  160. uint64_t e2p_p:1;
  161. uint64_t peai_p2e:1;
  162. uint64_t pef_tpf1:1;
  163. uint64_t pef_tpf0:1;
  164. uint64_t pef_tnf:1;
  165. uint64_t pef_tcf1:1;
  166. uint64_t pef_tc0:1;
  167. uint64_t ppf:1;
  168. #else
  169. uint64_t ppf:1;
  170. uint64_t pef_tc0:1;
  171. uint64_t pef_tcf1:1;
  172. uint64_t pef_tnf:1;
  173. uint64_t pef_tpf0:1;
  174. uint64_t pef_tpf1:1;
  175. uint64_t peai_p2e:1;
  176. uint64_t e2p_p:1;
  177. uint64_t e2p_n:1;
  178. uint64_t e2p_cpl:1;
  179. uint64_t reserved_10_63:54;
  180. #endif
  181. } s;
  182. struct cvmx_pemx_bist_status2_s cn61xx;
  183. struct cvmx_pemx_bist_status2_s cn63xx;
  184. struct cvmx_pemx_bist_status2_s cn63xxp1;
  185. struct cvmx_pemx_bist_status2_s cn66xx;
  186. struct cvmx_pemx_bist_status2_s cn68xx;
  187. struct cvmx_pemx_bist_status2_s cn68xxp1;
  188. struct cvmx_pemx_bist_status2_s cnf71xx;
  189. };
  190. union cvmx_pemx_cfg_rd {
  191. uint64_t u64;
  192. struct cvmx_pemx_cfg_rd_s {
  193. #ifdef __BIG_ENDIAN_BITFIELD
  194. uint64_t data:32;
  195. uint64_t addr:32;
  196. #else
  197. uint64_t addr:32;
  198. uint64_t data:32;
  199. #endif
  200. } s;
  201. struct cvmx_pemx_cfg_rd_s cn61xx;
  202. struct cvmx_pemx_cfg_rd_s cn63xx;
  203. struct cvmx_pemx_cfg_rd_s cn63xxp1;
  204. struct cvmx_pemx_cfg_rd_s cn66xx;
  205. struct cvmx_pemx_cfg_rd_s cn68xx;
  206. struct cvmx_pemx_cfg_rd_s cn68xxp1;
  207. struct cvmx_pemx_cfg_rd_s cnf71xx;
  208. };
  209. union cvmx_pemx_cfg_wr {
  210. uint64_t u64;
  211. struct cvmx_pemx_cfg_wr_s {
  212. #ifdef __BIG_ENDIAN_BITFIELD
  213. uint64_t data:32;
  214. uint64_t addr:32;
  215. #else
  216. uint64_t addr:32;
  217. uint64_t data:32;
  218. #endif
  219. } s;
  220. struct cvmx_pemx_cfg_wr_s cn61xx;
  221. struct cvmx_pemx_cfg_wr_s cn63xx;
  222. struct cvmx_pemx_cfg_wr_s cn63xxp1;
  223. struct cvmx_pemx_cfg_wr_s cn66xx;
  224. struct cvmx_pemx_cfg_wr_s cn68xx;
  225. struct cvmx_pemx_cfg_wr_s cn68xxp1;
  226. struct cvmx_pemx_cfg_wr_s cnf71xx;
  227. };
  228. union cvmx_pemx_cpl_lut_valid {
  229. uint64_t u64;
  230. struct cvmx_pemx_cpl_lut_valid_s {
  231. #ifdef __BIG_ENDIAN_BITFIELD
  232. uint64_t reserved_32_63:32;
  233. uint64_t tag:32;
  234. #else
  235. uint64_t tag:32;
  236. uint64_t reserved_32_63:32;
  237. #endif
  238. } s;
  239. struct cvmx_pemx_cpl_lut_valid_s cn61xx;
  240. struct cvmx_pemx_cpl_lut_valid_s cn63xx;
  241. struct cvmx_pemx_cpl_lut_valid_s cn63xxp1;
  242. struct cvmx_pemx_cpl_lut_valid_s cn66xx;
  243. struct cvmx_pemx_cpl_lut_valid_s cn68xx;
  244. struct cvmx_pemx_cpl_lut_valid_s cn68xxp1;
  245. struct cvmx_pemx_cpl_lut_valid_s cnf71xx;
  246. };
  247. union cvmx_pemx_ctl_status {
  248. uint64_t u64;
  249. struct cvmx_pemx_ctl_status_s {
  250. #ifdef __BIG_ENDIAN_BITFIELD
  251. uint64_t reserved_48_63:16;
  252. uint64_t auto_sd:1;
  253. uint64_t dnum:5;
  254. uint64_t pbus:8;
  255. uint64_t reserved_32_33:2;
  256. uint64_t cfg_rtry:16;
  257. uint64_t reserved_12_15:4;
  258. uint64_t pm_xtoff:1;
  259. uint64_t pm_xpme:1;
  260. uint64_t ob_p_cmd:1;
  261. uint64_t reserved_7_8:2;
  262. uint64_t nf_ecrc:1;
  263. uint64_t dly_one:1;
  264. uint64_t lnk_enb:1;
  265. uint64_t ro_ctlp:1;
  266. uint64_t fast_lm:1;
  267. uint64_t inv_ecrc:1;
  268. uint64_t inv_lcrc:1;
  269. #else
  270. uint64_t inv_lcrc:1;
  271. uint64_t inv_ecrc:1;
  272. uint64_t fast_lm:1;
  273. uint64_t ro_ctlp:1;
  274. uint64_t lnk_enb:1;
  275. uint64_t dly_one:1;
  276. uint64_t nf_ecrc:1;
  277. uint64_t reserved_7_8:2;
  278. uint64_t ob_p_cmd:1;
  279. uint64_t pm_xpme:1;
  280. uint64_t pm_xtoff:1;
  281. uint64_t reserved_12_15:4;
  282. uint64_t cfg_rtry:16;
  283. uint64_t reserved_32_33:2;
  284. uint64_t pbus:8;
  285. uint64_t dnum:5;
  286. uint64_t auto_sd:1;
  287. uint64_t reserved_48_63:16;
  288. #endif
  289. } s;
  290. struct cvmx_pemx_ctl_status_s cn61xx;
  291. struct cvmx_pemx_ctl_status_s cn63xx;
  292. struct cvmx_pemx_ctl_status_s cn63xxp1;
  293. struct cvmx_pemx_ctl_status_s cn66xx;
  294. struct cvmx_pemx_ctl_status_s cn68xx;
  295. struct cvmx_pemx_ctl_status_s cn68xxp1;
  296. struct cvmx_pemx_ctl_status_s cnf71xx;
  297. };
  298. union cvmx_pemx_dbg_info {
  299. uint64_t u64;
  300. struct cvmx_pemx_dbg_info_s {
  301. #ifdef __BIG_ENDIAN_BITFIELD
  302. uint64_t reserved_31_63:33;
  303. uint64_t ecrc_e:1;
  304. uint64_t rawwpp:1;
  305. uint64_t racpp:1;
  306. uint64_t ramtlp:1;
  307. uint64_t rarwdns:1;
  308. uint64_t caar:1;
  309. uint64_t racca:1;
  310. uint64_t racur:1;
  311. uint64_t rauc:1;
  312. uint64_t rqo:1;
  313. uint64_t fcuv:1;
  314. uint64_t rpe:1;
  315. uint64_t fcpvwt:1;
  316. uint64_t dpeoosd:1;
  317. uint64_t rtwdle:1;
  318. uint64_t rdwdle:1;
  319. uint64_t mre:1;
  320. uint64_t rte:1;
  321. uint64_t acto:1;
  322. uint64_t rvdm:1;
  323. uint64_t rumep:1;
  324. uint64_t rptamrc:1;
  325. uint64_t rpmerc:1;
  326. uint64_t rfemrc:1;
  327. uint64_t rnfemrc:1;
  328. uint64_t rcemrc:1;
  329. uint64_t rpoison:1;
  330. uint64_t recrce:1;
  331. uint64_t rtlplle:1;
  332. uint64_t rtlpmal:1;
  333. uint64_t spoison:1;
  334. #else
  335. uint64_t spoison:1;
  336. uint64_t rtlpmal:1;
  337. uint64_t rtlplle:1;
  338. uint64_t recrce:1;
  339. uint64_t rpoison:1;
  340. uint64_t rcemrc:1;
  341. uint64_t rnfemrc:1;
  342. uint64_t rfemrc:1;
  343. uint64_t rpmerc:1;
  344. uint64_t rptamrc:1;
  345. uint64_t rumep:1;
  346. uint64_t rvdm:1;
  347. uint64_t acto:1;
  348. uint64_t rte:1;
  349. uint64_t mre:1;
  350. uint64_t rdwdle:1;
  351. uint64_t rtwdle:1;
  352. uint64_t dpeoosd:1;
  353. uint64_t fcpvwt:1;
  354. uint64_t rpe:1;
  355. uint64_t fcuv:1;
  356. uint64_t rqo:1;
  357. uint64_t rauc:1;
  358. uint64_t racur:1;
  359. uint64_t racca:1;
  360. uint64_t caar:1;
  361. uint64_t rarwdns:1;
  362. uint64_t ramtlp:1;
  363. uint64_t racpp:1;
  364. uint64_t rawwpp:1;
  365. uint64_t ecrc_e:1;
  366. uint64_t reserved_31_63:33;
  367. #endif
  368. } s;
  369. struct cvmx_pemx_dbg_info_s cn61xx;
  370. struct cvmx_pemx_dbg_info_s cn63xx;
  371. struct cvmx_pemx_dbg_info_s cn63xxp1;
  372. struct cvmx_pemx_dbg_info_s cn66xx;
  373. struct cvmx_pemx_dbg_info_s cn68xx;
  374. struct cvmx_pemx_dbg_info_s cn68xxp1;
  375. struct cvmx_pemx_dbg_info_s cnf71xx;
  376. };
  377. union cvmx_pemx_dbg_info_en {
  378. uint64_t u64;
  379. struct cvmx_pemx_dbg_info_en_s {
  380. #ifdef __BIG_ENDIAN_BITFIELD
  381. uint64_t reserved_31_63:33;
  382. uint64_t ecrc_e:1;
  383. uint64_t rawwpp:1;
  384. uint64_t racpp:1;
  385. uint64_t ramtlp:1;
  386. uint64_t rarwdns:1;
  387. uint64_t caar:1;
  388. uint64_t racca:1;
  389. uint64_t racur:1;
  390. uint64_t rauc:1;
  391. uint64_t rqo:1;
  392. uint64_t fcuv:1;
  393. uint64_t rpe:1;
  394. uint64_t fcpvwt:1;
  395. uint64_t dpeoosd:1;
  396. uint64_t rtwdle:1;
  397. uint64_t rdwdle:1;
  398. uint64_t mre:1;
  399. uint64_t rte:1;
  400. uint64_t acto:1;
  401. uint64_t rvdm:1;
  402. uint64_t rumep:1;
  403. uint64_t rptamrc:1;
  404. uint64_t rpmerc:1;
  405. uint64_t rfemrc:1;
  406. uint64_t rnfemrc:1;
  407. uint64_t rcemrc:1;
  408. uint64_t rpoison:1;
  409. uint64_t recrce:1;
  410. uint64_t rtlplle:1;
  411. uint64_t rtlpmal:1;
  412. uint64_t spoison:1;
  413. #else
  414. uint64_t spoison:1;
  415. uint64_t rtlpmal:1;
  416. uint64_t rtlplle:1;
  417. uint64_t recrce:1;
  418. uint64_t rpoison:1;
  419. uint64_t rcemrc:1;
  420. uint64_t rnfemrc:1;
  421. uint64_t rfemrc:1;
  422. uint64_t rpmerc:1;
  423. uint64_t rptamrc:1;
  424. uint64_t rumep:1;
  425. uint64_t rvdm:1;
  426. uint64_t acto:1;
  427. uint64_t rte:1;
  428. uint64_t mre:1;
  429. uint64_t rdwdle:1;
  430. uint64_t rtwdle:1;
  431. uint64_t dpeoosd:1;
  432. uint64_t fcpvwt:1;
  433. uint64_t rpe:1;
  434. uint64_t fcuv:1;
  435. uint64_t rqo:1;
  436. uint64_t rauc:1;
  437. uint64_t racur:1;
  438. uint64_t racca:1;
  439. uint64_t caar:1;
  440. uint64_t rarwdns:1;
  441. uint64_t ramtlp:1;
  442. uint64_t racpp:1;
  443. uint64_t rawwpp:1;
  444. uint64_t ecrc_e:1;
  445. uint64_t reserved_31_63:33;
  446. #endif
  447. } s;
  448. struct cvmx_pemx_dbg_info_en_s cn61xx;
  449. struct cvmx_pemx_dbg_info_en_s cn63xx;
  450. struct cvmx_pemx_dbg_info_en_s cn63xxp1;
  451. struct cvmx_pemx_dbg_info_en_s cn66xx;
  452. struct cvmx_pemx_dbg_info_en_s cn68xx;
  453. struct cvmx_pemx_dbg_info_en_s cn68xxp1;
  454. struct cvmx_pemx_dbg_info_en_s cnf71xx;
  455. };
  456. union cvmx_pemx_diag_status {
  457. uint64_t u64;
  458. struct cvmx_pemx_diag_status_s {
  459. #ifdef __BIG_ENDIAN_BITFIELD
  460. uint64_t reserved_4_63:60;
  461. uint64_t pm_dst:1;
  462. uint64_t pm_stat:1;
  463. uint64_t pm_en:1;
  464. uint64_t aux_en:1;
  465. #else
  466. uint64_t aux_en:1;
  467. uint64_t pm_en:1;
  468. uint64_t pm_stat:1;
  469. uint64_t pm_dst:1;
  470. uint64_t reserved_4_63:60;
  471. #endif
  472. } s;
  473. struct cvmx_pemx_diag_status_s cn61xx;
  474. struct cvmx_pemx_diag_status_s cn63xx;
  475. struct cvmx_pemx_diag_status_s cn63xxp1;
  476. struct cvmx_pemx_diag_status_s cn66xx;
  477. struct cvmx_pemx_diag_status_s cn68xx;
  478. struct cvmx_pemx_diag_status_s cn68xxp1;
  479. struct cvmx_pemx_diag_status_s cnf71xx;
  480. };
  481. union cvmx_pemx_inb_read_credits {
  482. uint64_t u64;
  483. struct cvmx_pemx_inb_read_credits_s {
  484. #ifdef __BIG_ENDIAN_BITFIELD
  485. uint64_t reserved_6_63:58;
  486. uint64_t num:6;
  487. #else
  488. uint64_t num:6;
  489. uint64_t reserved_6_63:58;
  490. #endif
  491. } s;
  492. struct cvmx_pemx_inb_read_credits_s cn61xx;
  493. struct cvmx_pemx_inb_read_credits_s cn66xx;
  494. struct cvmx_pemx_inb_read_credits_s cn68xx;
  495. struct cvmx_pemx_inb_read_credits_s cnf71xx;
  496. };
  497. union cvmx_pemx_int_enb {
  498. uint64_t u64;
  499. struct cvmx_pemx_int_enb_s {
  500. #ifdef __BIG_ENDIAN_BITFIELD
  501. uint64_t reserved_14_63:50;
  502. uint64_t crs_dr:1;
  503. uint64_t crs_er:1;
  504. uint64_t rdlk:1;
  505. uint64_t exc:1;
  506. uint64_t un_bx:1;
  507. uint64_t un_b2:1;
  508. uint64_t un_b1:1;
  509. uint64_t up_bx:1;
  510. uint64_t up_b2:1;
  511. uint64_t up_b1:1;
  512. uint64_t pmem:1;
  513. uint64_t pmei:1;
  514. uint64_t se:1;
  515. uint64_t aeri:1;
  516. #else
  517. uint64_t aeri:1;
  518. uint64_t se:1;
  519. uint64_t pmei:1;
  520. uint64_t pmem:1;
  521. uint64_t up_b1:1;
  522. uint64_t up_b2:1;
  523. uint64_t up_bx:1;
  524. uint64_t un_b1:1;
  525. uint64_t un_b2:1;
  526. uint64_t un_bx:1;
  527. uint64_t exc:1;
  528. uint64_t rdlk:1;
  529. uint64_t crs_er:1;
  530. uint64_t crs_dr:1;
  531. uint64_t reserved_14_63:50;
  532. #endif
  533. } s;
  534. struct cvmx_pemx_int_enb_s cn61xx;
  535. struct cvmx_pemx_int_enb_s cn63xx;
  536. struct cvmx_pemx_int_enb_s cn63xxp1;
  537. struct cvmx_pemx_int_enb_s cn66xx;
  538. struct cvmx_pemx_int_enb_s cn68xx;
  539. struct cvmx_pemx_int_enb_s cn68xxp1;
  540. struct cvmx_pemx_int_enb_s cnf71xx;
  541. };
  542. union cvmx_pemx_int_enb_int {
  543. uint64_t u64;
  544. struct cvmx_pemx_int_enb_int_s {
  545. #ifdef __BIG_ENDIAN_BITFIELD
  546. uint64_t reserved_14_63:50;
  547. uint64_t crs_dr:1;
  548. uint64_t crs_er:1;
  549. uint64_t rdlk:1;
  550. uint64_t exc:1;
  551. uint64_t un_bx:1;
  552. uint64_t un_b2:1;
  553. uint64_t un_b1:1;
  554. uint64_t up_bx:1;
  555. uint64_t up_b2:1;
  556. uint64_t up_b1:1;
  557. uint64_t pmem:1;
  558. uint64_t pmei:1;
  559. uint64_t se:1;
  560. uint64_t aeri:1;
  561. #else
  562. uint64_t aeri:1;
  563. uint64_t se:1;
  564. uint64_t pmei:1;
  565. uint64_t pmem:1;
  566. uint64_t up_b1:1;
  567. uint64_t up_b2:1;
  568. uint64_t up_bx:1;
  569. uint64_t un_b1:1;
  570. uint64_t un_b2:1;
  571. uint64_t un_bx:1;
  572. uint64_t exc:1;
  573. uint64_t rdlk:1;
  574. uint64_t crs_er:1;
  575. uint64_t crs_dr:1;
  576. uint64_t reserved_14_63:50;
  577. #endif
  578. } s;
  579. struct cvmx_pemx_int_enb_int_s cn61xx;
  580. struct cvmx_pemx_int_enb_int_s cn63xx;
  581. struct cvmx_pemx_int_enb_int_s cn63xxp1;
  582. struct cvmx_pemx_int_enb_int_s cn66xx;
  583. struct cvmx_pemx_int_enb_int_s cn68xx;
  584. struct cvmx_pemx_int_enb_int_s cn68xxp1;
  585. struct cvmx_pemx_int_enb_int_s cnf71xx;
  586. };
  587. union cvmx_pemx_int_sum {
  588. uint64_t u64;
  589. struct cvmx_pemx_int_sum_s {
  590. #ifdef __BIG_ENDIAN_BITFIELD
  591. uint64_t reserved_14_63:50;
  592. uint64_t crs_dr:1;
  593. uint64_t crs_er:1;
  594. uint64_t rdlk:1;
  595. uint64_t exc:1;
  596. uint64_t un_bx:1;
  597. uint64_t un_b2:1;
  598. uint64_t un_b1:1;
  599. uint64_t up_bx:1;
  600. uint64_t up_b2:1;
  601. uint64_t up_b1:1;
  602. uint64_t pmem:1;
  603. uint64_t pmei:1;
  604. uint64_t se:1;
  605. uint64_t aeri:1;
  606. #else
  607. uint64_t aeri:1;
  608. uint64_t se:1;
  609. uint64_t pmei:1;
  610. uint64_t pmem:1;
  611. uint64_t up_b1:1;
  612. uint64_t up_b2:1;
  613. uint64_t up_bx:1;
  614. uint64_t un_b1:1;
  615. uint64_t un_b2:1;
  616. uint64_t un_bx:1;
  617. uint64_t exc:1;
  618. uint64_t rdlk:1;
  619. uint64_t crs_er:1;
  620. uint64_t crs_dr:1;
  621. uint64_t reserved_14_63:50;
  622. #endif
  623. } s;
  624. struct cvmx_pemx_int_sum_s cn61xx;
  625. struct cvmx_pemx_int_sum_s cn63xx;
  626. struct cvmx_pemx_int_sum_s cn63xxp1;
  627. struct cvmx_pemx_int_sum_s cn66xx;
  628. struct cvmx_pemx_int_sum_s cn68xx;
  629. struct cvmx_pemx_int_sum_s cn68xxp1;
  630. struct cvmx_pemx_int_sum_s cnf71xx;
  631. };
  632. union cvmx_pemx_p2n_bar0_start {
  633. uint64_t u64;
  634. struct cvmx_pemx_p2n_bar0_start_s {
  635. #ifdef __BIG_ENDIAN_BITFIELD
  636. uint64_t addr:50;
  637. uint64_t reserved_0_13:14;
  638. #else
  639. uint64_t reserved_0_13:14;
  640. uint64_t addr:50;
  641. #endif
  642. } s;
  643. struct cvmx_pemx_p2n_bar0_start_s cn61xx;
  644. struct cvmx_pemx_p2n_bar0_start_s cn63xx;
  645. struct cvmx_pemx_p2n_bar0_start_s cn63xxp1;
  646. struct cvmx_pemx_p2n_bar0_start_s cn66xx;
  647. struct cvmx_pemx_p2n_bar0_start_s cn68xx;
  648. struct cvmx_pemx_p2n_bar0_start_s cn68xxp1;
  649. struct cvmx_pemx_p2n_bar0_start_s cnf71xx;
  650. };
  651. union cvmx_pemx_p2n_bar1_start {
  652. uint64_t u64;
  653. struct cvmx_pemx_p2n_bar1_start_s {
  654. #ifdef __BIG_ENDIAN_BITFIELD
  655. uint64_t addr:38;
  656. uint64_t reserved_0_25:26;
  657. #else
  658. uint64_t reserved_0_25:26;
  659. uint64_t addr:38;
  660. #endif
  661. } s;
  662. struct cvmx_pemx_p2n_bar1_start_s cn61xx;
  663. struct cvmx_pemx_p2n_bar1_start_s cn63xx;
  664. struct cvmx_pemx_p2n_bar1_start_s cn63xxp1;
  665. struct cvmx_pemx_p2n_bar1_start_s cn66xx;
  666. struct cvmx_pemx_p2n_bar1_start_s cn68xx;
  667. struct cvmx_pemx_p2n_bar1_start_s cn68xxp1;
  668. struct cvmx_pemx_p2n_bar1_start_s cnf71xx;
  669. };
  670. union cvmx_pemx_p2n_bar2_start {
  671. uint64_t u64;
  672. struct cvmx_pemx_p2n_bar2_start_s {
  673. #ifdef __BIG_ENDIAN_BITFIELD
  674. uint64_t addr:23;
  675. uint64_t reserved_0_40:41;
  676. #else
  677. uint64_t reserved_0_40:41;
  678. uint64_t addr:23;
  679. #endif
  680. } s;
  681. struct cvmx_pemx_p2n_bar2_start_s cn61xx;
  682. struct cvmx_pemx_p2n_bar2_start_s cn63xx;
  683. struct cvmx_pemx_p2n_bar2_start_s cn63xxp1;
  684. struct cvmx_pemx_p2n_bar2_start_s cn66xx;
  685. struct cvmx_pemx_p2n_bar2_start_s cn68xx;
  686. struct cvmx_pemx_p2n_bar2_start_s cn68xxp1;
  687. struct cvmx_pemx_p2n_bar2_start_s cnf71xx;
  688. };
  689. union cvmx_pemx_p2p_barx_end {
  690. uint64_t u64;
  691. struct cvmx_pemx_p2p_barx_end_s {
  692. #ifdef __BIG_ENDIAN_BITFIELD
  693. uint64_t addr:52;
  694. uint64_t reserved_0_11:12;
  695. #else
  696. uint64_t reserved_0_11:12;
  697. uint64_t addr:52;
  698. #endif
  699. } s;
  700. struct cvmx_pemx_p2p_barx_end_s cn63xx;
  701. struct cvmx_pemx_p2p_barx_end_s cn63xxp1;
  702. struct cvmx_pemx_p2p_barx_end_s cn66xx;
  703. struct cvmx_pemx_p2p_barx_end_s cn68xx;
  704. struct cvmx_pemx_p2p_barx_end_s cn68xxp1;
  705. };
  706. union cvmx_pemx_p2p_barx_start {
  707. uint64_t u64;
  708. struct cvmx_pemx_p2p_barx_start_s {
  709. #ifdef __BIG_ENDIAN_BITFIELD
  710. uint64_t addr:52;
  711. uint64_t reserved_0_11:12;
  712. #else
  713. uint64_t reserved_0_11:12;
  714. uint64_t addr:52;
  715. #endif
  716. } s;
  717. struct cvmx_pemx_p2p_barx_start_s cn63xx;
  718. struct cvmx_pemx_p2p_barx_start_s cn63xxp1;
  719. struct cvmx_pemx_p2p_barx_start_s cn66xx;
  720. struct cvmx_pemx_p2p_barx_start_s cn68xx;
  721. struct cvmx_pemx_p2p_barx_start_s cn68xxp1;
  722. };
  723. union cvmx_pemx_tlp_credits {
  724. uint64_t u64;
  725. struct cvmx_pemx_tlp_credits_s {
  726. #ifdef __BIG_ENDIAN_BITFIELD
  727. uint64_t reserved_56_63:8;
  728. uint64_t peai_ppf:8;
  729. uint64_t pem_cpl:8;
  730. uint64_t pem_np:8;
  731. uint64_t pem_p:8;
  732. uint64_t sli_cpl:8;
  733. uint64_t sli_np:8;
  734. uint64_t sli_p:8;
  735. #else
  736. uint64_t sli_p:8;
  737. uint64_t sli_np:8;
  738. uint64_t sli_cpl:8;
  739. uint64_t pem_p:8;
  740. uint64_t pem_np:8;
  741. uint64_t pem_cpl:8;
  742. uint64_t peai_ppf:8;
  743. uint64_t reserved_56_63:8;
  744. #endif
  745. } s;
  746. struct cvmx_pemx_tlp_credits_cn61xx {
  747. #ifdef __BIG_ENDIAN_BITFIELD
  748. uint64_t reserved_56_63:8;
  749. uint64_t peai_ppf:8;
  750. uint64_t reserved_24_47:24;
  751. uint64_t sli_cpl:8;
  752. uint64_t sli_np:8;
  753. uint64_t sli_p:8;
  754. #else
  755. uint64_t sli_p:8;
  756. uint64_t sli_np:8;
  757. uint64_t sli_cpl:8;
  758. uint64_t reserved_24_47:24;
  759. uint64_t peai_ppf:8;
  760. uint64_t reserved_56_63:8;
  761. #endif
  762. } cn61xx;
  763. struct cvmx_pemx_tlp_credits_s cn63xx;
  764. struct cvmx_pemx_tlp_credits_s cn63xxp1;
  765. struct cvmx_pemx_tlp_credits_s cn66xx;
  766. struct cvmx_pemx_tlp_credits_s cn68xx;
  767. struct cvmx_pemx_tlp_credits_s cn68xxp1;
  768. struct cvmx_pemx_tlp_credits_cn61xx cnf71xx;
  769. };
  770. #endif