cvmx-pemx-defs.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: [email protected]
  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. };
  69. union cvmx_pemx_bar2_mask {
  70. uint64_t u64;
  71. struct cvmx_pemx_bar2_mask_s {
  72. #ifdef __BIG_ENDIAN_BITFIELD
  73. uint64_t reserved_38_63:26;
  74. uint64_t mask:35;
  75. uint64_t reserved_0_2:3;
  76. #else
  77. uint64_t reserved_0_2:3;
  78. uint64_t mask:35;
  79. uint64_t reserved_38_63:26;
  80. #endif
  81. } s;
  82. };
  83. union cvmx_pemx_bar_ctl {
  84. uint64_t u64;
  85. struct cvmx_pemx_bar_ctl_s {
  86. #ifdef __BIG_ENDIAN_BITFIELD
  87. uint64_t reserved_7_63:57;
  88. uint64_t bar1_siz:3;
  89. uint64_t bar2_enb:1;
  90. uint64_t bar2_esx:2;
  91. uint64_t bar2_cax:1;
  92. #else
  93. uint64_t bar2_cax:1;
  94. uint64_t bar2_esx:2;
  95. uint64_t bar2_enb:1;
  96. uint64_t bar1_siz:3;
  97. uint64_t reserved_7_63:57;
  98. #endif
  99. } s;
  100. };
  101. union cvmx_pemx_bist_status {
  102. uint64_t u64;
  103. struct cvmx_pemx_bist_status_s {
  104. #ifdef __BIG_ENDIAN_BITFIELD
  105. uint64_t reserved_8_63:56;
  106. uint64_t retry:1;
  107. uint64_t rqdata0:1;
  108. uint64_t rqdata1:1;
  109. uint64_t rqdata2:1;
  110. uint64_t rqdata3:1;
  111. uint64_t rqhdr1:1;
  112. uint64_t rqhdr0:1;
  113. uint64_t sot:1;
  114. #else
  115. uint64_t sot:1;
  116. uint64_t rqhdr0:1;
  117. uint64_t rqhdr1:1;
  118. uint64_t rqdata3:1;
  119. uint64_t rqdata2:1;
  120. uint64_t rqdata1:1;
  121. uint64_t rqdata0:1;
  122. uint64_t retry:1;
  123. uint64_t reserved_8_63:56;
  124. #endif
  125. } s;
  126. };
  127. union cvmx_pemx_bist_status2 {
  128. uint64_t u64;
  129. struct cvmx_pemx_bist_status2_s {
  130. #ifdef __BIG_ENDIAN_BITFIELD
  131. uint64_t reserved_10_63:54;
  132. uint64_t e2p_cpl:1;
  133. uint64_t e2p_n:1;
  134. uint64_t e2p_p:1;
  135. uint64_t peai_p2e:1;
  136. uint64_t pef_tpf1:1;
  137. uint64_t pef_tpf0:1;
  138. uint64_t pef_tnf:1;
  139. uint64_t pef_tcf1:1;
  140. uint64_t pef_tc0:1;
  141. uint64_t ppf:1;
  142. #else
  143. uint64_t ppf:1;
  144. uint64_t pef_tc0:1;
  145. uint64_t pef_tcf1:1;
  146. uint64_t pef_tnf:1;
  147. uint64_t pef_tpf0:1;
  148. uint64_t pef_tpf1:1;
  149. uint64_t peai_p2e:1;
  150. uint64_t e2p_p:1;
  151. uint64_t e2p_n:1;
  152. uint64_t e2p_cpl:1;
  153. uint64_t reserved_10_63:54;
  154. #endif
  155. } s;
  156. };
  157. union cvmx_pemx_cfg_rd {
  158. uint64_t u64;
  159. struct cvmx_pemx_cfg_rd_s {
  160. #ifdef __BIG_ENDIAN_BITFIELD
  161. uint64_t data:32;
  162. uint64_t addr:32;
  163. #else
  164. uint64_t addr:32;
  165. uint64_t data:32;
  166. #endif
  167. } s;
  168. };
  169. union cvmx_pemx_cfg_wr {
  170. uint64_t u64;
  171. struct cvmx_pemx_cfg_wr_s {
  172. #ifdef __BIG_ENDIAN_BITFIELD
  173. uint64_t data:32;
  174. uint64_t addr:32;
  175. #else
  176. uint64_t addr:32;
  177. uint64_t data:32;
  178. #endif
  179. } s;
  180. };
  181. union cvmx_pemx_cpl_lut_valid {
  182. uint64_t u64;
  183. struct cvmx_pemx_cpl_lut_valid_s {
  184. #ifdef __BIG_ENDIAN_BITFIELD
  185. uint64_t reserved_32_63:32;
  186. uint64_t tag:32;
  187. #else
  188. uint64_t tag:32;
  189. uint64_t reserved_32_63:32;
  190. #endif
  191. } s;
  192. };
  193. union cvmx_pemx_ctl_status {
  194. uint64_t u64;
  195. struct cvmx_pemx_ctl_status_s {
  196. #ifdef __BIG_ENDIAN_BITFIELD
  197. uint64_t reserved_48_63:16;
  198. uint64_t auto_sd:1;
  199. uint64_t dnum:5;
  200. uint64_t pbus:8;
  201. uint64_t reserved_32_33:2;
  202. uint64_t cfg_rtry:16;
  203. uint64_t reserved_12_15:4;
  204. uint64_t pm_xtoff:1;
  205. uint64_t pm_xpme:1;
  206. uint64_t ob_p_cmd:1;
  207. uint64_t reserved_7_8:2;
  208. uint64_t nf_ecrc:1;
  209. uint64_t dly_one:1;
  210. uint64_t lnk_enb:1;
  211. uint64_t ro_ctlp:1;
  212. uint64_t fast_lm:1;
  213. uint64_t inv_ecrc:1;
  214. uint64_t inv_lcrc:1;
  215. #else
  216. uint64_t inv_lcrc:1;
  217. uint64_t inv_ecrc:1;
  218. uint64_t fast_lm:1;
  219. uint64_t ro_ctlp:1;
  220. uint64_t lnk_enb:1;
  221. uint64_t dly_one:1;
  222. uint64_t nf_ecrc:1;
  223. uint64_t reserved_7_8:2;
  224. uint64_t ob_p_cmd:1;
  225. uint64_t pm_xpme:1;
  226. uint64_t pm_xtoff:1;
  227. uint64_t reserved_12_15:4;
  228. uint64_t cfg_rtry:16;
  229. uint64_t reserved_32_33:2;
  230. uint64_t pbus:8;
  231. uint64_t dnum:5;
  232. uint64_t auto_sd:1;
  233. uint64_t reserved_48_63:16;
  234. #endif
  235. } s;
  236. };
  237. union cvmx_pemx_dbg_info {
  238. uint64_t u64;
  239. struct cvmx_pemx_dbg_info_s {
  240. #ifdef __BIG_ENDIAN_BITFIELD
  241. uint64_t reserved_31_63:33;
  242. uint64_t ecrc_e:1;
  243. uint64_t rawwpp:1;
  244. uint64_t racpp:1;
  245. uint64_t ramtlp:1;
  246. uint64_t rarwdns:1;
  247. uint64_t caar:1;
  248. uint64_t racca:1;
  249. uint64_t racur:1;
  250. uint64_t rauc:1;
  251. uint64_t rqo:1;
  252. uint64_t fcuv:1;
  253. uint64_t rpe:1;
  254. uint64_t fcpvwt:1;
  255. uint64_t dpeoosd:1;
  256. uint64_t rtwdle:1;
  257. uint64_t rdwdle:1;
  258. uint64_t mre:1;
  259. uint64_t rte:1;
  260. uint64_t acto:1;
  261. uint64_t rvdm:1;
  262. uint64_t rumep:1;
  263. uint64_t rptamrc:1;
  264. uint64_t rpmerc:1;
  265. uint64_t rfemrc:1;
  266. uint64_t rnfemrc:1;
  267. uint64_t rcemrc:1;
  268. uint64_t rpoison:1;
  269. uint64_t recrce:1;
  270. uint64_t rtlplle:1;
  271. uint64_t rtlpmal:1;
  272. uint64_t spoison:1;
  273. #else
  274. uint64_t spoison:1;
  275. uint64_t rtlpmal:1;
  276. uint64_t rtlplle:1;
  277. uint64_t recrce:1;
  278. uint64_t rpoison:1;
  279. uint64_t rcemrc:1;
  280. uint64_t rnfemrc:1;
  281. uint64_t rfemrc:1;
  282. uint64_t rpmerc:1;
  283. uint64_t rptamrc:1;
  284. uint64_t rumep:1;
  285. uint64_t rvdm:1;
  286. uint64_t acto:1;
  287. uint64_t rte:1;
  288. uint64_t mre:1;
  289. uint64_t rdwdle:1;
  290. uint64_t rtwdle:1;
  291. uint64_t dpeoosd:1;
  292. uint64_t fcpvwt:1;
  293. uint64_t rpe:1;
  294. uint64_t fcuv:1;
  295. uint64_t rqo:1;
  296. uint64_t rauc:1;
  297. uint64_t racur:1;
  298. uint64_t racca:1;
  299. uint64_t caar:1;
  300. uint64_t rarwdns:1;
  301. uint64_t ramtlp:1;
  302. uint64_t racpp:1;
  303. uint64_t rawwpp:1;
  304. uint64_t ecrc_e:1;
  305. uint64_t reserved_31_63:33;
  306. #endif
  307. } s;
  308. };
  309. union cvmx_pemx_dbg_info_en {
  310. uint64_t u64;
  311. struct cvmx_pemx_dbg_info_en_s {
  312. #ifdef __BIG_ENDIAN_BITFIELD
  313. uint64_t reserved_31_63:33;
  314. uint64_t ecrc_e:1;
  315. uint64_t rawwpp:1;
  316. uint64_t racpp:1;
  317. uint64_t ramtlp:1;
  318. uint64_t rarwdns:1;
  319. uint64_t caar:1;
  320. uint64_t racca:1;
  321. uint64_t racur:1;
  322. uint64_t rauc:1;
  323. uint64_t rqo:1;
  324. uint64_t fcuv:1;
  325. uint64_t rpe:1;
  326. uint64_t fcpvwt:1;
  327. uint64_t dpeoosd:1;
  328. uint64_t rtwdle:1;
  329. uint64_t rdwdle:1;
  330. uint64_t mre:1;
  331. uint64_t rte:1;
  332. uint64_t acto:1;
  333. uint64_t rvdm:1;
  334. uint64_t rumep:1;
  335. uint64_t rptamrc:1;
  336. uint64_t rpmerc:1;
  337. uint64_t rfemrc:1;
  338. uint64_t rnfemrc:1;
  339. uint64_t rcemrc:1;
  340. uint64_t rpoison:1;
  341. uint64_t recrce:1;
  342. uint64_t rtlplle:1;
  343. uint64_t rtlpmal:1;
  344. uint64_t spoison:1;
  345. #else
  346. uint64_t spoison:1;
  347. uint64_t rtlpmal:1;
  348. uint64_t rtlplle:1;
  349. uint64_t recrce:1;
  350. uint64_t rpoison:1;
  351. uint64_t rcemrc:1;
  352. uint64_t rnfemrc:1;
  353. uint64_t rfemrc:1;
  354. uint64_t rpmerc:1;
  355. uint64_t rptamrc:1;
  356. uint64_t rumep:1;
  357. uint64_t rvdm:1;
  358. uint64_t acto:1;
  359. uint64_t rte:1;
  360. uint64_t mre:1;
  361. uint64_t rdwdle:1;
  362. uint64_t rtwdle:1;
  363. uint64_t dpeoosd:1;
  364. uint64_t fcpvwt:1;
  365. uint64_t rpe:1;
  366. uint64_t fcuv:1;
  367. uint64_t rqo:1;
  368. uint64_t rauc:1;
  369. uint64_t racur:1;
  370. uint64_t racca:1;
  371. uint64_t caar:1;
  372. uint64_t rarwdns:1;
  373. uint64_t ramtlp:1;
  374. uint64_t racpp:1;
  375. uint64_t rawwpp:1;
  376. uint64_t ecrc_e:1;
  377. uint64_t reserved_31_63:33;
  378. #endif
  379. } s;
  380. };
  381. union cvmx_pemx_diag_status {
  382. uint64_t u64;
  383. struct cvmx_pemx_diag_status_s {
  384. #ifdef __BIG_ENDIAN_BITFIELD
  385. uint64_t reserved_4_63:60;
  386. uint64_t pm_dst:1;
  387. uint64_t pm_stat:1;
  388. uint64_t pm_en:1;
  389. uint64_t aux_en:1;
  390. #else
  391. uint64_t aux_en:1;
  392. uint64_t pm_en:1;
  393. uint64_t pm_stat:1;
  394. uint64_t pm_dst:1;
  395. uint64_t reserved_4_63:60;
  396. #endif
  397. } s;
  398. };
  399. union cvmx_pemx_inb_read_credits {
  400. uint64_t u64;
  401. struct cvmx_pemx_inb_read_credits_s {
  402. #ifdef __BIG_ENDIAN_BITFIELD
  403. uint64_t reserved_6_63:58;
  404. uint64_t num:6;
  405. #else
  406. uint64_t num:6;
  407. uint64_t reserved_6_63:58;
  408. #endif
  409. } s;
  410. };
  411. union cvmx_pemx_int_enb {
  412. uint64_t u64;
  413. struct cvmx_pemx_int_enb_s {
  414. #ifdef __BIG_ENDIAN_BITFIELD
  415. uint64_t reserved_14_63:50;
  416. uint64_t crs_dr:1;
  417. uint64_t crs_er:1;
  418. uint64_t rdlk:1;
  419. uint64_t exc:1;
  420. uint64_t un_bx:1;
  421. uint64_t un_b2:1;
  422. uint64_t un_b1:1;
  423. uint64_t up_bx:1;
  424. uint64_t up_b2:1;
  425. uint64_t up_b1:1;
  426. uint64_t pmem:1;
  427. uint64_t pmei:1;
  428. uint64_t se:1;
  429. uint64_t aeri:1;
  430. #else
  431. uint64_t aeri:1;
  432. uint64_t se:1;
  433. uint64_t pmei:1;
  434. uint64_t pmem:1;
  435. uint64_t up_b1:1;
  436. uint64_t up_b2:1;
  437. uint64_t up_bx:1;
  438. uint64_t un_b1:1;
  439. uint64_t un_b2:1;
  440. uint64_t un_bx:1;
  441. uint64_t exc:1;
  442. uint64_t rdlk:1;
  443. uint64_t crs_er:1;
  444. uint64_t crs_dr:1;
  445. uint64_t reserved_14_63:50;
  446. #endif
  447. } s;
  448. };
  449. union cvmx_pemx_int_enb_int {
  450. uint64_t u64;
  451. struct cvmx_pemx_int_enb_int_s {
  452. #ifdef __BIG_ENDIAN_BITFIELD
  453. uint64_t reserved_14_63:50;
  454. uint64_t crs_dr:1;
  455. uint64_t crs_er:1;
  456. uint64_t rdlk:1;
  457. uint64_t exc:1;
  458. uint64_t un_bx:1;
  459. uint64_t un_b2:1;
  460. uint64_t un_b1:1;
  461. uint64_t up_bx:1;
  462. uint64_t up_b2:1;
  463. uint64_t up_b1:1;
  464. uint64_t pmem:1;
  465. uint64_t pmei:1;
  466. uint64_t se:1;
  467. uint64_t aeri:1;
  468. #else
  469. uint64_t aeri:1;
  470. uint64_t se:1;
  471. uint64_t pmei:1;
  472. uint64_t pmem:1;
  473. uint64_t up_b1:1;
  474. uint64_t up_b2:1;
  475. uint64_t up_bx:1;
  476. uint64_t un_b1:1;
  477. uint64_t un_b2:1;
  478. uint64_t un_bx:1;
  479. uint64_t exc:1;
  480. uint64_t rdlk:1;
  481. uint64_t crs_er:1;
  482. uint64_t crs_dr:1;
  483. uint64_t reserved_14_63:50;
  484. #endif
  485. } s;
  486. };
  487. union cvmx_pemx_int_sum {
  488. uint64_t u64;
  489. struct cvmx_pemx_int_sum_s {
  490. #ifdef __BIG_ENDIAN_BITFIELD
  491. uint64_t reserved_14_63:50;
  492. uint64_t crs_dr:1;
  493. uint64_t crs_er:1;
  494. uint64_t rdlk:1;
  495. uint64_t exc:1;
  496. uint64_t un_bx:1;
  497. uint64_t un_b2:1;
  498. uint64_t un_b1:1;
  499. uint64_t up_bx:1;
  500. uint64_t up_b2:1;
  501. uint64_t up_b1:1;
  502. uint64_t pmem:1;
  503. uint64_t pmei:1;
  504. uint64_t se:1;
  505. uint64_t aeri:1;
  506. #else
  507. uint64_t aeri:1;
  508. uint64_t se:1;
  509. uint64_t pmei:1;
  510. uint64_t pmem:1;
  511. uint64_t up_b1:1;
  512. uint64_t up_b2:1;
  513. uint64_t up_bx:1;
  514. uint64_t un_b1:1;
  515. uint64_t un_b2:1;
  516. uint64_t un_bx:1;
  517. uint64_t exc:1;
  518. uint64_t rdlk:1;
  519. uint64_t crs_er:1;
  520. uint64_t crs_dr:1;
  521. uint64_t reserved_14_63:50;
  522. #endif
  523. } s;
  524. };
  525. union cvmx_pemx_p2n_bar0_start {
  526. uint64_t u64;
  527. struct cvmx_pemx_p2n_bar0_start_s {
  528. #ifdef __BIG_ENDIAN_BITFIELD
  529. uint64_t addr:50;
  530. uint64_t reserved_0_13:14;
  531. #else
  532. uint64_t reserved_0_13:14;
  533. uint64_t addr:50;
  534. #endif
  535. } s;
  536. };
  537. union cvmx_pemx_p2n_bar1_start {
  538. uint64_t u64;
  539. struct cvmx_pemx_p2n_bar1_start_s {
  540. #ifdef __BIG_ENDIAN_BITFIELD
  541. uint64_t addr:38;
  542. uint64_t reserved_0_25:26;
  543. #else
  544. uint64_t reserved_0_25:26;
  545. uint64_t addr:38;
  546. #endif
  547. } s;
  548. };
  549. union cvmx_pemx_p2n_bar2_start {
  550. uint64_t u64;
  551. struct cvmx_pemx_p2n_bar2_start_s {
  552. #ifdef __BIG_ENDIAN_BITFIELD
  553. uint64_t addr:23;
  554. uint64_t reserved_0_40:41;
  555. #else
  556. uint64_t reserved_0_40:41;
  557. uint64_t addr:23;
  558. #endif
  559. } s;
  560. };
  561. union cvmx_pemx_p2p_barx_end {
  562. uint64_t u64;
  563. struct cvmx_pemx_p2p_barx_end_s {
  564. #ifdef __BIG_ENDIAN_BITFIELD
  565. uint64_t addr:52;
  566. uint64_t reserved_0_11:12;
  567. #else
  568. uint64_t reserved_0_11:12;
  569. uint64_t addr:52;
  570. #endif
  571. } s;
  572. };
  573. union cvmx_pemx_p2p_barx_start {
  574. uint64_t u64;
  575. struct cvmx_pemx_p2p_barx_start_s {
  576. #ifdef __BIG_ENDIAN_BITFIELD
  577. uint64_t addr:52;
  578. uint64_t reserved_0_11:12;
  579. #else
  580. uint64_t reserved_0_11:12;
  581. uint64_t addr:52;
  582. #endif
  583. } s;
  584. };
  585. union cvmx_pemx_tlp_credits {
  586. uint64_t u64;
  587. struct cvmx_pemx_tlp_credits_s {
  588. #ifdef __BIG_ENDIAN_BITFIELD
  589. uint64_t reserved_56_63:8;
  590. uint64_t peai_ppf:8;
  591. uint64_t pem_cpl:8;
  592. uint64_t pem_np:8;
  593. uint64_t pem_p:8;
  594. uint64_t sli_cpl:8;
  595. uint64_t sli_np:8;
  596. uint64_t sli_p:8;
  597. #else
  598. uint64_t sli_p:8;
  599. uint64_t sli_np:8;
  600. uint64_t sli_cpl:8;
  601. uint64_t pem_p:8;
  602. uint64_t pem_np:8;
  603. uint64_t pem_cpl:8;
  604. uint64_t peai_ppf:8;
  605. uint64_t reserved_56_63:8;
  606. #endif
  607. } s;
  608. struct cvmx_pemx_tlp_credits_cn61xx {
  609. #ifdef __BIG_ENDIAN_BITFIELD
  610. uint64_t reserved_56_63:8;
  611. uint64_t peai_ppf:8;
  612. uint64_t reserved_24_47:24;
  613. uint64_t sli_cpl:8;
  614. uint64_t sli_np:8;
  615. uint64_t sli_p:8;
  616. #else
  617. uint64_t sli_p:8;
  618. uint64_t sli_np:8;
  619. uint64_t sli_cpl:8;
  620. uint64_t reserved_24_47:24;
  621. uint64_t peai_ppf:8;
  622. uint64_t reserved_56_63:8;
  623. #endif
  624. } cn61xx;
  625. };
  626. #endif