cvmx-fpa-defs.h 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252
  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_FPA_DEFS_H__
  28. #define __CVMX_FPA_DEFS_H__
  29. #define CVMX_FPA_ADDR_RANGE_ERROR (CVMX_ADD_IO_SEG(0x0001180028000458ull))
  30. #define CVMX_FPA_BIST_STATUS (CVMX_ADD_IO_SEG(0x00011800280000E8ull))
  31. #define CVMX_FPA_CTL_STATUS (CVMX_ADD_IO_SEG(0x0001180028000050ull))
  32. #define CVMX_FPA_FPF0_MARKS (CVMX_ADD_IO_SEG(0x0001180028000000ull))
  33. #define CVMX_FPA_FPF0_SIZE (CVMX_ADD_IO_SEG(0x0001180028000058ull))
  34. #define CVMX_FPA_FPF1_MARKS CVMX_FPA_FPFX_MARKS(1)
  35. #define CVMX_FPA_FPF2_MARKS CVMX_FPA_FPFX_MARKS(2)
  36. #define CVMX_FPA_FPF3_MARKS CVMX_FPA_FPFX_MARKS(3)
  37. #define CVMX_FPA_FPF4_MARKS CVMX_FPA_FPFX_MARKS(4)
  38. #define CVMX_FPA_FPF5_MARKS CVMX_FPA_FPFX_MARKS(5)
  39. #define CVMX_FPA_FPF6_MARKS CVMX_FPA_FPFX_MARKS(6)
  40. #define CVMX_FPA_FPF7_MARKS CVMX_FPA_FPFX_MARKS(7)
  41. #define CVMX_FPA_FPF8_MARKS (CVMX_ADD_IO_SEG(0x0001180028000240ull))
  42. #define CVMX_FPA_FPF8_SIZE (CVMX_ADD_IO_SEG(0x0001180028000248ull))
  43. #define CVMX_FPA_FPFX_MARKS(offset) (CVMX_ADD_IO_SEG(0x0001180028000008ull) + ((offset) & 7) * 8 - 8*1)
  44. #define CVMX_FPA_FPFX_SIZE(offset) (CVMX_ADD_IO_SEG(0x0001180028000060ull) + ((offset) & 7) * 8 - 8*1)
  45. #define CVMX_FPA_INT_ENB (CVMX_ADD_IO_SEG(0x0001180028000048ull))
  46. #define CVMX_FPA_INT_SUM (CVMX_ADD_IO_SEG(0x0001180028000040ull))
  47. #define CVMX_FPA_PACKET_THRESHOLD (CVMX_ADD_IO_SEG(0x0001180028000460ull))
  48. #define CVMX_FPA_POOLX_END_ADDR(offset) (CVMX_ADD_IO_SEG(0x0001180028000358ull) + ((offset) & 15) * 8)
  49. #define CVMX_FPA_POOLX_START_ADDR(offset) (CVMX_ADD_IO_SEG(0x0001180028000258ull) + ((offset) & 15) * 8)
  50. #define CVMX_FPA_POOLX_THRESHOLD(offset) (CVMX_ADD_IO_SEG(0x0001180028000140ull) + ((offset) & 15) * 8)
  51. #define CVMX_FPA_QUE0_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(0)
  52. #define CVMX_FPA_QUE1_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(1)
  53. #define CVMX_FPA_QUE2_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(2)
  54. #define CVMX_FPA_QUE3_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(3)
  55. #define CVMX_FPA_QUE4_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(4)
  56. #define CVMX_FPA_QUE5_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(5)
  57. #define CVMX_FPA_QUE6_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(6)
  58. #define CVMX_FPA_QUE7_PAGE_INDEX CVMX_FPA_QUEX_PAGE_INDEX(7)
  59. #define CVMX_FPA_QUE8_PAGE_INDEX (CVMX_ADD_IO_SEG(0x0001180028000250ull))
  60. #define CVMX_FPA_QUEX_AVAILABLE(offset) (CVMX_ADD_IO_SEG(0x0001180028000098ull) + ((offset) & 15) * 8)
  61. #define CVMX_FPA_QUEX_PAGE_INDEX(offset) (CVMX_ADD_IO_SEG(0x00011800280000F0ull) + ((offset) & 7) * 8)
  62. #define CVMX_FPA_QUE_ACT (CVMX_ADD_IO_SEG(0x0001180028000138ull))
  63. #define CVMX_FPA_QUE_EXP (CVMX_ADD_IO_SEG(0x0001180028000130ull))
  64. #define CVMX_FPA_WART_CTL (CVMX_ADD_IO_SEG(0x00011800280000D8ull))
  65. #define CVMX_FPA_WART_STATUS (CVMX_ADD_IO_SEG(0x00011800280000E0ull))
  66. #define CVMX_FPA_WQE_THRESHOLD (CVMX_ADD_IO_SEG(0x0001180028000468ull))
  67. #define CVMX_FPA_CLK_COUNT (CVMX_ADD_IO_SEG(0x00012800000000F0ull))
  68. union cvmx_fpa_addr_range_error {
  69. uint64_t u64;
  70. struct cvmx_fpa_addr_range_error_s {
  71. #ifdef __BIG_ENDIAN_BITFIELD
  72. uint64_t reserved_38_63:26;
  73. uint64_t pool:5;
  74. uint64_t addr:33;
  75. #else
  76. uint64_t addr:33;
  77. uint64_t pool:5;
  78. uint64_t reserved_38_63:26;
  79. #endif
  80. } s;
  81. };
  82. union cvmx_fpa_bist_status {
  83. uint64_t u64;
  84. struct cvmx_fpa_bist_status_s {
  85. #ifdef __BIG_ENDIAN_BITFIELD
  86. uint64_t reserved_5_63:59;
  87. uint64_t frd:1;
  88. uint64_t fpf0:1;
  89. uint64_t fpf1:1;
  90. uint64_t ffr:1;
  91. uint64_t fdr:1;
  92. #else
  93. uint64_t fdr:1;
  94. uint64_t ffr:1;
  95. uint64_t fpf1:1;
  96. uint64_t fpf0:1;
  97. uint64_t frd:1;
  98. uint64_t reserved_5_63:59;
  99. #endif
  100. } s;
  101. };
  102. union cvmx_fpa_ctl_status {
  103. uint64_t u64;
  104. struct cvmx_fpa_ctl_status_s {
  105. #ifdef __BIG_ENDIAN_BITFIELD
  106. uint64_t reserved_21_63:43;
  107. uint64_t free_en:1;
  108. uint64_t ret_off:1;
  109. uint64_t req_off:1;
  110. uint64_t reset:1;
  111. uint64_t use_ldt:1;
  112. uint64_t use_stt:1;
  113. uint64_t enb:1;
  114. uint64_t mem1_err:7;
  115. uint64_t mem0_err:7;
  116. #else
  117. uint64_t mem0_err:7;
  118. uint64_t mem1_err:7;
  119. uint64_t enb:1;
  120. uint64_t use_stt:1;
  121. uint64_t use_ldt:1;
  122. uint64_t reset:1;
  123. uint64_t req_off:1;
  124. uint64_t ret_off:1;
  125. uint64_t free_en:1;
  126. uint64_t reserved_21_63:43;
  127. #endif
  128. } s;
  129. struct cvmx_fpa_ctl_status_cn30xx {
  130. #ifdef __BIG_ENDIAN_BITFIELD
  131. uint64_t reserved_18_63:46;
  132. uint64_t reset:1;
  133. uint64_t use_ldt:1;
  134. uint64_t use_stt:1;
  135. uint64_t enb:1;
  136. uint64_t mem1_err:7;
  137. uint64_t mem0_err:7;
  138. #else
  139. uint64_t mem0_err:7;
  140. uint64_t mem1_err:7;
  141. uint64_t enb:1;
  142. uint64_t use_stt:1;
  143. uint64_t use_ldt:1;
  144. uint64_t reset:1;
  145. uint64_t reserved_18_63:46;
  146. #endif
  147. } cn30xx;
  148. };
  149. union cvmx_fpa_fpfx_marks {
  150. uint64_t u64;
  151. struct cvmx_fpa_fpfx_marks_s {
  152. #ifdef __BIG_ENDIAN_BITFIELD
  153. uint64_t reserved_22_63:42;
  154. uint64_t fpf_wr:11;
  155. uint64_t fpf_rd:11;
  156. #else
  157. uint64_t fpf_rd:11;
  158. uint64_t fpf_wr:11;
  159. uint64_t reserved_22_63:42;
  160. #endif
  161. } s;
  162. };
  163. union cvmx_fpa_fpfx_size {
  164. uint64_t u64;
  165. struct cvmx_fpa_fpfx_size_s {
  166. #ifdef __BIG_ENDIAN_BITFIELD
  167. uint64_t reserved_11_63:53;
  168. uint64_t fpf_siz:11;
  169. #else
  170. uint64_t fpf_siz:11;
  171. uint64_t reserved_11_63:53;
  172. #endif
  173. } s;
  174. };
  175. union cvmx_fpa_fpf0_marks {
  176. uint64_t u64;
  177. struct cvmx_fpa_fpf0_marks_s {
  178. #ifdef __BIG_ENDIAN_BITFIELD
  179. uint64_t reserved_24_63:40;
  180. uint64_t fpf_wr:12;
  181. uint64_t fpf_rd:12;
  182. #else
  183. uint64_t fpf_rd:12;
  184. uint64_t fpf_wr:12;
  185. uint64_t reserved_24_63:40;
  186. #endif
  187. } s;
  188. };
  189. union cvmx_fpa_fpf0_size {
  190. uint64_t u64;
  191. struct cvmx_fpa_fpf0_size_s {
  192. #ifdef __BIG_ENDIAN_BITFIELD
  193. uint64_t reserved_12_63:52;
  194. uint64_t fpf_siz:12;
  195. #else
  196. uint64_t fpf_siz:12;
  197. uint64_t reserved_12_63:52;
  198. #endif
  199. } s;
  200. };
  201. union cvmx_fpa_fpf8_marks {
  202. uint64_t u64;
  203. struct cvmx_fpa_fpf8_marks_s {
  204. #ifdef __BIG_ENDIAN_BITFIELD
  205. uint64_t reserved_22_63:42;
  206. uint64_t fpf_wr:11;
  207. uint64_t fpf_rd:11;
  208. #else
  209. uint64_t fpf_rd:11;
  210. uint64_t fpf_wr:11;
  211. uint64_t reserved_22_63:42;
  212. #endif
  213. } s;
  214. };
  215. union cvmx_fpa_fpf8_size {
  216. uint64_t u64;
  217. struct cvmx_fpa_fpf8_size_s {
  218. #ifdef __BIG_ENDIAN_BITFIELD
  219. uint64_t reserved_12_63:52;
  220. uint64_t fpf_siz:12;
  221. #else
  222. uint64_t fpf_siz:12;
  223. uint64_t reserved_12_63:52;
  224. #endif
  225. } s;
  226. };
  227. union cvmx_fpa_int_enb {
  228. uint64_t u64;
  229. struct cvmx_fpa_int_enb_s {
  230. #ifdef __BIG_ENDIAN_BITFIELD
  231. uint64_t reserved_50_63:14;
  232. uint64_t paddr_e:1;
  233. uint64_t reserved_44_48:5;
  234. uint64_t free7:1;
  235. uint64_t free6:1;
  236. uint64_t free5:1;
  237. uint64_t free4:1;
  238. uint64_t free3:1;
  239. uint64_t free2:1;
  240. uint64_t free1:1;
  241. uint64_t free0:1;
  242. uint64_t pool7th:1;
  243. uint64_t pool6th:1;
  244. uint64_t pool5th:1;
  245. uint64_t pool4th:1;
  246. uint64_t pool3th:1;
  247. uint64_t pool2th:1;
  248. uint64_t pool1th:1;
  249. uint64_t pool0th:1;
  250. uint64_t q7_perr:1;
  251. uint64_t q7_coff:1;
  252. uint64_t q7_und:1;
  253. uint64_t q6_perr:1;
  254. uint64_t q6_coff:1;
  255. uint64_t q6_und:1;
  256. uint64_t q5_perr:1;
  257. uint64_t q5_coff:1;
  258. uint64_t q5_und:1;
  259. uint64_t q4_perr:1;
  260. uint64_t q4_coff:1;
  261. uint64_t q4_und:1;
  262. uint64_t q3_perr:1;
  263. uint64_t q3_coff:1;
  264. uint64_t q3_und:1;
  265. uint64_t q2_perr:1;
  266. uint64_t q2_coff:1;
  267. uint64_t q2_und:1;
  268. uint64_t q1_perr:1;
  269. uint64_t q1_coff:1;
  270. uint64_t q1_und:1;
  271. uint64_t q0_perr:1;
  272. uint64_t q0_coff:1;
  273. uint64_t q0_und:1;
  274. uint64_t fed1_dbe:1;
  275. uint64_t fed1_sbe:1;
  276. uint64_t fed0_dbe:1;
  277. uint64_t fed0_sbe:1;
  278. #else
  279. uint64_t fed0_sbe:1;
  280. uint64_t fed0_dbe:1;
  281. uint64_t fed1_sbe:1;
  282. uint64_t fed1_dbe:1;
  283. uint64_t q0_und:1;
  284. uint64_t q0_coff:1;
  285. uint64_t q0_perr:1;
  286. uint64_t q1_und:1;
  287. uint64_t q1_coff:1;
  288. uint64_t q1_perr:1;
  289. uint64_t q2_und:1;
  290. uint64_t q2_coff:1;
  291. uint64_t q2_perr:1;
  292. uint64_t q3_und:1;
  293. uint64_t q3_coff:1;
  294. uint64_t q3_perr:1;
  295. uint64_t q4_und:1;
  296. uint64_t q4_coff:1;
  297. uint64_t q4_perr:1;
  298. uint64_t q5_und:1;
  299. uint64_t q5_coff:1;
  300. uint64_t q5_perr:1;
  301. uint64_t q6_und:1;
  302. uint64_t q6_coff:1;
  303. uint64_t q6_perr:1;
  304. uint64_t q7_und:1;
  305. uint64_t q7_coff:1;
  306. uint64_t q7_perr:1;
  307. uint64_t pool0th:1;
  308. uint64_t pool1th:1;
  309. uint64_t pool2th:1;
  310. uint64_t pool3th:1;
  311. uint64_t pool4th:1;
  312. uint64_t pool5th:1;
  313. uint64_t pool6th:1;
  314. uint64_t pool7th:1;
  315. uint64_t free0:1;
  316. uint64_t free1:1;
  317. uint64_t free2:1;
  318. uint64_t free3:1;
  319. uint64_t free4:1;
  320. uint64_t free5:1;
  321. uint64_t free6:1;
  322. uint64_t free7:1;
  323. uint64_t reserved_44_48:5;
  324. uint64_t paddr_e:1;
  325. uint64_t reserved_50_63:14;
  326. #endif
  327. } s;
  328. struct cvmx_fpa_int_enb_cn30xx {
  329. #ifdef __BIG_ENDIAN_BITFIELD
  330. uint64_t reserved_28_63:36;
  331. uint64_t q7_perr:1;
  332. uint64_t q7_coff:1;
  333. uint64_t q7_und:1;
  334. uint64_t q6_perr:1;
  335. uint64_t q6_coff:1;
  336. uint64_t q6_und:1;
  337. uint64_t q5_perr:1;
  338. uint64_t q5_coff:1;
  339. uint64_t q5_und:1;
  340. uint64_t q4_perr:1;
  341. uint64_t q4_coff:1;
  342. uint64_t q4_und:1;
  343. uint64_t q3_perr:1;
  344. uint64_t q3_coff:1;
  345. uint64_t q3_und:1;
  346. uint64_t q2_perr:1;
  347. uint64_t q2_coff:1;
  348. uint64_t q2_und:1;
  349. uint64_t q1_perr:1;
  350. uint64_t q1_coff:1;
  351. uint64_t q1_und:1;
  352. uint64_t q0_perr:1;
  353. uint64_t q0_coff:1;
  354. uint64_t q0_und:1;
  355. uint64_t fed1_dbe:1;
  356. uint64_t fed1_sbe:1;
  357. uint64_t fed0_dbe:1;
  358. uint64_t fed0_sbe:1;
  359. #else
  360. uint64_t fed0_sbe:1;
  361. uint64_t fed0_dbe:1;
  362. uint64_t fed1_sbe:1;
  363. uint64_t fed1_dbe:1;
  364. uint64_t q0_und:1;
  365. uint64_t q0_coff:1;
  366. uint64_t q0_perr:1;
  367. uint64_t q1_und:1;
  368. uint64_t q1_coff:1;
  369. uint64_t q1_perr:1;
  370. uint64_t q2_und:1;
  371. uint64_t q2_coff:1;
  372. uint64_t q2_perr:1;
  373. uint64_t q3_und:1;
  374. uint64_t q3_coff:1;
  375. uint64_t q3_perr:1;
  376. uint64_t q4_und:1;
  377. uint64_t q4_coff:1;
  378. uint64_t q4_perr:1;
  379. uint64_t q5_und:1;
  380. uint64_t q5_coff:1;
  381. uint64_t q5_perr:1;
  382. uint64_t q6_und:1;
  383. uint64_t q6_coff:1;
  384. uint64_t q6_perr:1;
  385. uint64_t q7_und:1;
  386. uint64_t q7_coff:1;
  387. uint64_t q7_perr:1;
  388. uint64_t reserved_28_63:36;
  389. #endif
  390. } cn30xx;
  391. struct cvmx_fpa_int_enb_cn61xx {
  392. #ifdef __BIG_ENDIAN_BITFIELD
  393. uint64_t reserved_50_63:14;
  394. uint64_t paddr_e:1;
  395. uint64_t res_44:5;
  396. uint64_t free7:1;
  397. uint64_t free6:1;
  398. uint64_t free5:1;
  399. uint64_t free4:1;
  400. uint64_t free3:1;
  401. uint64_t free2:1;
  402. uint64_t free1:1;
  403. uint64_t free0:1;
  404. uint64_t pool7th:1;
  405. uint64_t pool6th:1;
  406. uint64_t pool5th:1;
  407. uint64_t pool4th:1;
  408. uint64_t pool3th:1;
  409. uint64_t pool2th:1;
  410. uint64_t pool1th:1;
  411. uint64_t pool0th:1;
  412. uint64_t q7_perr:1;
  413. uint64_t q7_coff:1;
  414. uint64_t q7_und:1;
  415. uint64_t q6_perr:1;
  416. uint64_t q6_coff:1;
  417. uint64_t q6_und:1;
  418. uint64_t q5_perr:1;
  419. uint64_t q5_coff:1;
  420. uint64_t q5_und:1;
  421. uint64_t q4_perr:1;
  422. uint64_t q4_coff:1;
  423. uint64_t q4_und:1;
  424. uint64_t q3_perr:1;
  425. uint64_t q3_coff:1;
  426. uint64_t q3_und:1;
  427. uint64_t q2_perr:1;
  428. uint64_t q2_coff:1;
  429. uint64_t q2_und:1;
  430. uint64_t q1_perr:1;
  431. uint64_t q1_coff:1;
  432. uint64_t q1_und:1;
  433. uint64_t q0_perr:1;
  434. uint64_t q0_coff:1;
  435. uint64_t q0_und:1;
  436. uint64_t fed1_dbe:1;
  437. uint64_t fed1_sbe:1;
  438. uint64_t fed0_dbe:1;
  439. uint64_t fed0_sbe:1;
  440. #else
  441. uint64_t fed0_sbe:1;
  442. uint64_t fed0_dbe:1;
  443. uint64_t fed1_sbe:1;
  444. uint64_t fed1_dbe:1;
  445. uint64_t q0_und:1;
  446. uint64_t q0_coff:1;
  447. uint64_t q0_perr:1;
  448. uint64_t q1_und:1;
  449. uint64_t q1_coff:1;
  450. uint64_t q1_perr:1;
  451. uint64_t q2_und:1;
  452. uint64_t q2_coff:1;
  453. uint64_t q2_perr:1;
  454. uint64_t q3_und:1;
  455. uint64_t q3_coff:1;
  456. uint64_t q3_perr:1;
  457. uint64_t q4_und:1;
  458. uint64_t q4_coff:1;
  459. uint64_t q4_perr:1;
  460. uint64_t q5_und:1;
  461. uint64_t q5_coff:1;
  462. uint64_t q5_perr:1;
  463. uint64_t q6_und:1;
  464. uint64_t q6_coff:1;
  465. uint64_t q6_perr:1;
  466. uint64_t q7_und:1;
  467. uint64_t q7_coff:1;
  468. uint64_t q7_perr:1;
  469. uint64_t pool0th:1;
  470. uint64_t pool1th:1;
  471. uint64_t pool2th:1;
  472. uint64_t pool3th:1;
  473. uint64_t pool4th:1;
  474. uint64_t pool5th:1;
  475. uint64_t pool6th:1;
  476. uint64_t pool7th:1;
  477. uint64_t free0:1;
  478. uint64_t free1:1;
  479. uint64_t free2:1;
  480. uint64_t free3:1;
  481. uint64_t free4:1;
  482. uint64_t free5:1;
  483. uint64_t free6:1;
  484. uint64_t free7:1;
  485. uint64_t res_44:5;
  486. uint64_t paddr_e:1;
  487. uint64_t reserved_50_63:14;
  488. #endif
  489. } cn61xx;
  490. struct cvmx_fpa_int_enb_cn63xx {
  491. #ifdef __BIG_ENDIAN_BITFIELD
  492. uint64_t reserved_44_63:20;
  493. uint64_t free7:1;
  494. uint64_t free6:1;
  495. uint64_t free5:1;
  496. uint64_t free4:1;
  497. uint64_t free3:1;
  498. uint64_t free2:1;
  499. uint64_t free1:1;
  500. uint64_t free0:1;
  501. uint64_t pool7th:1;
  502. uint64_t pool6th:1;
  503. uint64_t pool5th:1;
  504. uint64_t pool4th:1;
  505. uint64_t pool3th:1;
  506. uint64_t pool2th:1;
  507. uint64_t pool1th:1;
  508. uint64_t pool0th:1;
  509. uint64_t q7_perr:1;
  510. uint64_t q7_coff:1;
  511. uint64_t q7_und:1;
  512. uint64_t q6_perr:1;
  513. uint64_t q6_coff:1;
  514. uint64_t q6_und:1;
  515. uint64_t q5_perr:1;
  516. uint64_t q5_coff:1;
  517. uint64_t q5_und:1;
  518. uint64_t q4_perr:1;
  519. uint64_t q4_coff:1;
  520. uint64_t q4_und:1;
  521. uint64_t q3_perr:1;
  522. uint64_t q3_coff:1;
  523. uint64_t q3_und:1;
  524. uint64_t q2_perr:1;
  525. uint64_t q2_coff:1;
  526. uint64_t q2_und:1;
  527. uint64_t q1_perr:1;
  528. uint64_t q1_coff:1;
  529. uint64_t q1_und:1;
  530. uint64_t q0_perr:1;
  531. uint64_t q0_coff:1;
  532. uint64_t q0_und:1;
  533. uint64_t fed1_dbe:1;
  534. uint64_t fed1_sbe:1;
  535. uint64_t fed0_dbe:1;
  536. uint64_t fed0_sbe:1;
  537. #else
  538. uint64_t fed0_sbe:1;
  539. uint64_t fed0_dbe:1;
  540. uint64_t fed1_sbe:1;
  541. uint64_t fed1_dbe:1;
  542. uint64_t q0_und:1;
  543. uint64_t q0_coff:1;
  544. uint64_t q0_perr:1;
  545. uint64_t q1_und:1;
  546. uint64_t q1_coff:1;
  547. uint64_t q1_perr:1;
  548. uint64_t q2_und:1;
  549. uint64_t q2_coff:1;
  550. uint64_t q2_perr:1;
  551. uint64_t q3_und:1;
  552. uint64_t q3_coff:1;
  553. uint64_t q3_perr:1;
  554. uint64_t q4_und:1;
  555. uint64_t q4_coff:1;
  556. uint64_t q4_perr:1;
  557. uint64_t q5_und:1;
  558. uint64_t q5_coff:1;
  559. uint64_t q5_perr:1;
  560. uint64_t q6_und:1;
  561. uint64_t q6_coff:1;
  562. uint64_t q6_perr:1;
  563. uint64_t q7_und:1;
  564. uint64_t q7_coff:1;
  565. uint64_t q7_perr:1;
  566. uint64_t pool0th:1;
  567. uint64_t pool1th:1;
  568. uint64_t pool2th:1;
  569. uint64_t pool3th:1;
  570. uint64_t pool4th:1;
  571. uint64_t pool5th:1;
  572. uint64_t pool6th:1;
  573. uint64_t pool7th:1;
  574. uint64_t free0:1;
  575. uint64_t free1:1;
  576. uint64_t free2:1;
  577. uint64_t free3:1;
  578. uint64_t free4:1;
  579. uint64_t free5:1;
  580. uint64_t free6:1;
  581. uint64_t free7:1;
  582. uint64_t reserved_44_63:20;
  583. #endif
  584. } cn63xx;
  585. struct cvmx_fpa_int_enb_cn68xx {
  586. #ifdef __BIG_ENDIAN_BITFIELD
  587. uint64_t reserved_50_63:14;
  588. uint64_t paddr_e:1;
  589. uint64_t pool8th:1;
  590. uint64_t q8_perr:1;
  591. uint64_t q8_coff:1;
  592. uint64_t q8_und:1;
  593. uint64_t free8:1;
  594. uint64_t free7:1;
  595. uint64_t free6:1;
  596. uint64_t free5:1;
  597. uint64_t free4:1;
  598. uint64_t free3:1;
  599. uint64_t free2:1;
  600. uint64_t free1:1;
  601. uint64_t free0:1;
  602. uint64_t pool7th:1;
  603. uint64_t pool6th:1;
  604. uint64_t pool5th:1;
  605. uint64_t pool4th:1;
  606. uint64_t pool3th:1;
  607. uint64_t pool2th:1;
  608. uint64_t pool1th:1;
  609. uint64_t pool0th:1;
  610. uint64_t q7_perr:1;
  611. uint64_t q7_coff:1;
  612. uint64_t q7_und:1;
  613. uint64_t q6_perr:1;
  614. uint64_t q6_coff:1;
  615. uint64_t q6_und:1;
  616. uint64_t q5_perr:1;
  617. uint64_t q5_coff:1;
  618. uint64_t q5_und:1;
  619. uint64_t q4_perr:1;
  620. uint64_t q4_coff:1;
  621. uint64_t q4_und:1;
  622. uint64_t q3_perr:1;
  623. uint64_t q3_coff:1;
  624. uint64_t q3_und:1;
  625. uint64_t q2_perr:1;
  626. uint64_t q2_coff:1;
  627. uint64_t q2_und:1;
  628. uint64_t q1_perr:1;
  629. uint64_t q1_coff:1;
  630. uint64_t q1_und:1;
  631. uint64_t q0_perr:1;
  632. uint64_t q0_coff:1;
  633. uint64_t q0_und:1;
  634. uint64_t fed1_dbe:1;
  635. uint64_t fed1_sbe:1;
  636. uint64_t fed0_dbe:1;
  637. uint64_t fed0_sbe:1;
  638. #else
  639. uint64_t fed0_sbe:1;
  640. uint64_t fed0_dbe:1;
  641. uint64_t fed1_sbe:1;
  642. uint64_t fed1_dbe:1;
  643. uint64_t q0_und:1;
  644. uint64_t q0_coff:1;
  645. uint64_t q0_perr:1;
  646. uint64_t q1_und:1;
  647. uint64_t q1_coff:1;
  648. uint64_t q1_perr:1;
  649. uint64_t q2_und:1;
  650. uint64_t q2_coff:1;
  651. uint64_t q2_perr:1;
  652. uint64_t q3_und:1;
  653. uint64_t q3_coff:1;
  654. uint64_t q3_perr:1;
  655. uint64_t q4_und:1;
  656. uint64_t q4_coff:1;
  657. uint64_t q4_perr:1;
  658. uint64_t q5_und:1;
  659. uint64_t q5_coff:1;
  660. uint64_t q5_perr:1;
  661. uint64_t q6_und:1;
  662. uint64_t q6_coff:1;
  663. uint64_t q6_perr:1;
  664. uint64_t q7_und:1;
  665. uint64_t q7_coff:1;
  666. uint64_t q7_perr:1;
  667. uint64_t pool0th:1;
  668. uint64_t pool1th:1;
  669. uint64_t pool2th:1;
  670. uint64_t pool3th:1;
  671. uint64_t pool4th:1;
  672. uint64_t pool5th:1;
  673. uint64_t pool6th:1;
  674. uint64_t pool7th:1;
  675. uint64_t free0:1;
  676. uint64_t free1:1;
  677. uint64_t free2:1;
  678. uint64_t free3:1;
  679. uint64_t free4:1;
  680. uint64_t free5:1;
  681. uint64_t free6:1;
  682. uint64_t free7:1;
  683. uint64_t free8:1;
  684. uint64_t q8_und:1;
  685. uint64_t q8_coff:1;
  686. uint64_t q8_perr:1;
  687. uint64_t pool8th:1;
  688. uint64_t paddr_e:1;
  689. uint64_t reserved_50_63:14;
  690. #endif
  691. } cn68xx;
  692. };
  693. union cvmx_fpa_int_sum {
  694. uint64_t u64;
  695. struct cvmx_fpa_int_sum_s {
  696. #ifdef __BIG_ENDIAN_BITFIELD
  697. uint64_t reserved_50_63:14;
  698. uint64_t paddr_e:1;
  699. uint64_t pool8th:1;
  700. uint64_t q8_perr:1;
  701. uint64_t q8_coff:1;
  702. uint64_t q8_und:1;
  703. uint64_t free8:1;
  704. uint64_t free7:1;
  705. uint64_t free6:1;
  706. uint64_t free5:1;
  707. uint64_t free4:1;
  708. uint64_t free3:1;
  709. uint64_t free2:1;
  710. uint64_t free1:1;
  711. uint64_t free0:1;
  712. uint64_t pool7th:1;
  713. uint64_t pool6th:1;
  714. uint64_t pool5th:1;
  715. uint64_t pool4th:1;
  716. uint64_t pool3th:1;
  717. uint64_t pool2th:1;
  718. uint64_t pool1th:1;
  719. uint64_t pool0th:1;
  720. uint64_t q7_perr:1;
  721. uint64_t q7_coff:1;
  722. uint64_t q7_und:1;
  723. uint64_t q6_perr:1;
  724. uint64_t q6_coff:1;
  725. uint64_t q6_und:1;
  726. uint64_t q5_perr:1;
  727. uint64_t q5_coff:1;
  728. uint64_t q5_und:1;
  729. uint64_t q4_perr:1;
  730. uint64_t q4_coff:1;
  731. uint64_t q4_und:1;
  732. uint64_t q3_perr:1;
  733. uint64_t q3_coff:1;
  734. uint64_t q3_und:1;
  735. uint64_t q2_perr:1;
  736. uint64_t q2_coff:1;
  737. uint64_t q2_und:1;
  738. uint64_t q1_perr:1;
  739. uint64_t q1_coff:1;
  740. uint64_t q1_und:1;
  741. uint64_t q0_perr:1;
  742. uint64_t q0_coff:1;
  743. uint64_t q0_und:1;
  744. uint64_t fed1_dbe:1;
  745. uint64_t fed1_sbe:1;
  746. uint64_t fed0_dbe:1;
  747. uint64_t fed0_sbe:1;
  748. #else
  749. uint64_t fed0_sbe:1;
  750. uint64_t fed0_dbe:1;
  751. uint64_t fed1_sbe:1;
  752. uint64_t fed1_dbe:1;
  753. uint64_t q0_und:1;
  754. uint64_t q0_coff:1;
  755. uint64_t q0_perr:1;
  756. uint64_t q1_und:1;
  757. uint64_t q1_coff:1;
  758. uint64_t q1_perr:1;
  759. uint64_t q2_und:1;
  760. uint64_t q2_coff:1;
  761. uint64_t q2_perr:1;
  762. uint64_t q3_und:1;
  763. uint64_t q3_coff:1;
  764. uint64_t q3_perr:1;
  765. uint64_t q4_und:1;
  766. uint64_t q4_coff:1;
  767. uint64_t q4_perr:1;
  768. uint64_t q5_und:1;
  769. uint64_t q5_coff:1;
  770. uint64_t q5_perr:1;
  771. uint64_t q6_und:1;
  772. uint64_t q6_coff:1;
  773. uint64_t q6_perr:1;
  774. uint64_t q7_und:1;
  775. uint64_t q7_coff:1;
  776. uint64_t q7_perr:1;
  777. uint64_t pool0th:1;
  778. uint64_t pool1th:1;
  779. uint64_t pool2th:1;
  780. uint64_t pool3th:1;
  781. uint64_t pool4th:1;
  782. uint64_t pool5th:1;
  783. uint64_t pool6th:1;
  784. uint64_t pool7th:1;
  785. uint64_t free0:1;
  786. uint64_t free1:1;
  787. uint64_t free2:1;
  788. uint64_t free3:1;
  789. uint64_t free4:1;
  790. uint64_t free5:1;
  791. uint64_t free6:1;
  792. uint64_t free7:1;
  793. uint64_t free8:1;
  794. uint64_t q8_und:1;
  795. uint64_t q8_coff:1;
  796. uint64_t q8_perr:1;
  797. uint64_t pool8th:1;
  798. uint64_t paddr_e:1;
  799. uint64_t reserved_50_63:14;
  800. #endif
  801. } s;
  802. struct cvmx_fpa_int_sum_cn30xx {
  803. #ifdef __BIG_ENDIAN_BITFIELD
  804. uint64_t reserved_28_63:36;
  805. uint64_t q7_perr:1;
  806. uint64_t q7_coff:1;
  807. uint64_t q7_und:1;
  808. uint64_t q6_perr:1;
  809. uint64_t q6_coff:1;
  810. uint64_t q6_und:1;
  811. uint64_t q5_perr:1;
  812. uint64_t q5_coff:1;
  813. uint64_t q5_und:1;
  814. uint64_t q4_perr:1;
  815. uint64_t q4_coff:1;
  816. uint64_t q4_und:1;
  817. uint64_t q3_perr:1;
  818. uint64_t q3_coff:1;
  819. uint64_t q3_und:1;
  820. uint64_t q2_perr:1;
  821. uint64_t q2_coff:1;
  822. uint64_t q2_und:1;
  823. uint64_t q1_perr:1;
  824. uint64_t q1_coff:1;
  825. uint64_t q1_und:1;
  826. uint64_t q0_perr:1;
  827. uint64_t q0_coff:1;
  828. uint64_t q0_und:1;
  829. uint64_t fed1_dbe:1;
  830. uint64_t fed1_sbe:1;
  831. uint64_t fed0_dbe:1;
  832. uint64_t fed0_sbe:1;
  833. #else
  834. uint64_t fed0_sbe:1;
  835. uint64_t fed0_dbe:1;
  836. uint64_t fed1_sbe:1;
  837. uint64_t fed1_dbe:1;
  838. uint64_t q0_und:1;
  839. uint64_t q0_coff:1;
  840. uint64_t q0_perr:1;
  841. uint64_t q1_und:1;
  842. uint64_t q1_coff:1;
  843. uint64_t q1_perr:1;
  844. uint64_t q2_und:1;
  845. uint64_t q2_coff:1;
  846. uint64_t q2_perr:1;
  847. uint64_t q3_und:1;
  848. uint64_t q3_coff:1;
  849. uint64_t q3_perr:1;
  850. uint64_t q4_und:1;
  851. uint64_t q4_coff:1;
  852. uint64_t q4_perr:1;
  853. uint64_t q5_und:1;
  854. uint64_t q5_coff:1;
  855. uint64_t q5_perr:1;
  856. uint64_t q6_und:1;
  857. uint64_t q6_coff:1;
  858. uint64_t q6_perr:1;
  859. uint64_t q7_und:1;
  860. uint64_t q7_coff:1;
  861. uint64_t q7_perr:1;
  862. uint64_t reserved_28_63:36;
  863. #endif
  864. } cn30xx;
  865. struct cvmx_fpa_int_sum_cn61xx {
  866. #ifdef __BIG_ENDIAN_BITFIELD
  867. uint64_t reserved_50_63:14;
  868. uint64_t paddr_e:1;
  869. uint64_t reserved_44_48:5;
  870. uint64_t free7:1;
  871. uint64_t free6:1;
  872. uint64_t free5:1;
  873. uint64_t free4:1;
  874. uint64_t free3:1;
  875. uint64_t free2:1;
  876. uint64_t free1:1;
  877. uint64_t free0:1;
  878. uint64_t pool7th:1;
  879. uint64_t pool6th:1;
  880. uint64_t pool5th:1;
  881. uint64_t pool4th:1;
  882. uint64_t pool3th:1;
  883. uint64_t pool2th:1;
  884. uint64_t pool1th:1;
  885. uint64_t pool0th:1;
  886. uint64_t q7_perr:1;
  887. uint64_t q7_coff:1;
  888. uint64_t q7_und:1;
  889. uint64_t q6_perr:1;
  890. uint64_t q6_coff:1;
  891. uint64_t q6_und:1;
  892. uint64_t q5_perr:1;
  893. uint64_t q5_coff:1;
  894. uint64_t q5_und:1;
  895. uint64_t q4_perr:1;
  896. uint64_t q4_coff:1;
  897. uint64_t q4_und:1;
  898. uint64_t q3_perr:1;
  899. uint64_t q3_coff:1;
  900. uint64_t q3_und:1;
  901. uint64_t q2_perr:1;
  902. uint64_t q2_coff:1;
  903. uint64_t q2_und:1;
  904. uint64_t q1_perr:1;
  905. uint64_t q1_coff:1;
  906. uint64_t q1_und:1;
  907. uint64_t q0_perr:1;
  908. uint64_t q0_coff:1;
  909. uint64_t q0_und:1;
  910. uint64_t fed1_dbe:1;
  911. uint64_t fed1_sbe:1;
  912. uint64_t fed0_dbe:1;
  913. uint64_t fed0_sbe:1;
  914. #else
  915. uint64_t fed0_sbe:1;
  916. uint64_t fed0_dbe:1;
  917. uint64_t fed1_sbe:1;
  918. uint64_t fed1_dbe:1;
  919. uint64_t q0_und:1;
  920. uint64_t q0_coff:1;
  921. uint64_t q0_perr:1;
  922. uint64_t q1_und:1;
  923. uint64_t q1_coff:1;
  924. uint64_t q1_perr:1;
  925. uint64_t q2_und:1;
  926. uint64_t q2_coff:1;
  927. uint64_t q2_perr:1;
  928. uint64_t q3_und:1;
  929. uint64_t q3_coff:1;
  930. uint64_t q3_perr:1;
  931. uint64_t q4_und:1;
  932. uint64_t q4_coff:1;
  933. uint64_t q4_perr:1;
  934. uint64_t q5_und:1;
  935. uint64_t q5_coff:1;
  936. uint64_t q5_perr:1;
  937. uint64_t q6_und:1;
  938. uint64_t q6_coff:1;
  939. uint64_t q6_perr:1;
  940. uint64_t q7_und:1;
  941. uint64_t q7_coff:1;
  942. uint64_t q7_perr:1;
  943. uint64_t pool0th:1;
  944. uint64_t pool1th:1;
  945. uint64_t pool2th:1;
  946. uint64_t pool3th:1;
  947. uint64_t pool4th:1;
  948. uint64_t pool5th:1;
  949. uint64_t pool6th:1;
  950. uint64_t pool7th:1;
  951. uint64_t free0:1;
  952. uint64_t free1:1;
  953. uint64_t free2:1;
  954. uint64_t free3:1;
  955. uint64_t free4:1;
  956. uint64_t free5:1;
  957. uint64_t free6:1;
  958. uint64_t free7:1;
  959. uint64_t reserved_44_48:5;
  960. uint64_t paddr_e:1;
  961. uint64_t reserved_50_63:14;
  962. #endif
  963. } cn61xx;
  964. struct cvmx_fpa_int_sum_cn63xx {
  965. #ifdef __BIG_ENDIAN_BITFIELD
  966. uint64_t reserved_44_63:20;
  967. uint64_t free7:1;
  968. uint64_t free6:1;
  969. uint64_t free5:1;
  970. uint64_t free4:1;
  971. uint64_t free3:1;
  972. uint64_t free2:1;
  973. uint64_t free1:1;
  974. uint64_t free0:1;
  975. uint64_t pool7th:1;
  976. uint64_t pool6th:1;
  977. uint64_t pool5th:1;
  978. uint64_t pool4th:1;
  979. uint64_t pool3th:1;
  980. uint64_t pool2th:1;
  981. uint64_t pool1th:1;
  982. uint64_t pool0th:1;
  983. uint64_t q7_perr:1;
  984. uint64_t q7_coff:1;
  985. uint64_t q7_und:1;
  986. uint64_t q6_perr:1;
  987. uint64_t q6_coff:1;
  988. uint64_t q6_und:1;
  989. uint64_t q5_perr:1;
  990. uint64_t q5_coff:1;
  991. uint64_t q5_und:1;
  992. uint64_t q4_perr:1;
  993. uint64_t q4_coff:1;
  994. uint64_t q4_und:1;
  995. uint64_t q3_perr:1;
  996. uint64_t q3_coff:1;
  997. uint64_t q3_und:1;
  998. uint64_t q2_perr:1;
  999. uint64_t q2_coff:1;
  1000. uint64_t q2_und:1;
  1001. uint64_t q1_perr:1;
  1002. uint64_t q1_coff:1;
  1003. uint64_t q1_und:1;
  1004. uint64_t q0_perr:1;
  1005. uint64_t q0_coff:1;
  1006. uint64_t q0_und:1;
  1007. uint64_t fed1_dbe:1;
  1008. uint64_t fed1_sbe:1;
  1009. uint64_t fed0_dbe:1;
  1010. uint64_t fed0_sbe:1;
  1011. #else
  1012. uint64_t fed0_sbe:1;
  1013. uint64_t fed0_dbe:1;
  1014. uint64_t fed1_sbe:1;
  1015. uint64_t fed1_dbe:1;
  1016. uint64_t q0_und:1;
  1017. uint64_t q0_coff:1;
  1018. uint64_t q0_perr:1;
  1019. uint64_t q1_und:1;
  1020. uint64_t q1_coff:1;
  1021. uint64_t q1_perr:1;
  1022. uint64_t q2_und:1;
  1023. uint64_t q2_coff:1;
  1024. uint64_t q2_perr:1;
  1025. uint64_t q3_und:1;
  1026. uint64_t q3_coff:1;
  1027. uint64_t q3_perr:1;
  1028. uint64_t q4_und:1;
  1029. uint64_t q4_coff:1;
  1030. uint64_t q4_perr:1;
  1031. uint64_t q5_und:1;
  1032. uint64_t q5_coff:1;
  1033. uint64_t q5_perr:1;
  1034. uint64_t q6_und:1;
  1035. uint64_t q6_coff:1;
  1036. uint64_t q6_perr:1;
  1037. uint64_t q7_und:1;
  1038. uint64_t q7_coff:1;
  1039. uint64_t q7_perr:1;
  1040. uint64_t pool0th:1;
  1041. uint64_t pool1th:1;
  1042. uint64_t pool2th:1;
  1043. uint64_t pool3th:1;
  1044. uint64_t pool4th:1;
  1045. uint64_t pool5th:1;
  1046. uint64_t pool6th:1;
  1047. uint64_t pool7th:1;
  1048. uint64_t free0:1;
  1049. uint64_t free1:1;
  1050. uint64_t free2:1;
  1051. uint64_t free3:1;
  1052. uint64_t free4:1;
  1053. uint64_t free5:1;
  1054. uint64_t free6:1;
  1055. uint64_t free7:1;
  1056. uint64_t reserved_44_63:20;
  1057. #endif
  1058. } cn63xx;
  1059. };
  1060. union cvmx_fpa_packet_threshold {
  1061. uint64_t u64;
  1062. struct cvmx_fpa_packet_threshold_s {
  1063. #ifdef __BIG_ENDIAN_BITFIELD
  1064. uint64_t reserved_32_63:32;
  1065. uint64_t thresh:32;
  1066. #else
  1067. uint64_t thresh:32;
  1068. uint64_t reserved_32_63:32;
  1069. #endif
  1070. } s;
  1071. };
  1072. union cvmx_fpa_poolx_end_addr {
  1073. uint64_t u64;
  1074. struct cvmx_fpa_poolx_end_addr_s {
  1075. #ifdef __BIG_ENDIAN_BITFIELD
  1076. uint64_t reserved_33_63:31;
  1077. uint64_t addr:33;
  1078. #else
  1079. uint64_t addr:33;
  1080. uint64_t reserved_33_63:31;
  1081. #endif
  1082. } s;
  1083. };
  1084. union cvmx_fpa_poolx_start_addr {
  1085. uint64_t u64;
  1086. struct cvmx_fpa_poolx_start_addr_s {
  1087. #ifdef __BIG_ENDIAN_BITFIELD
  1088. uint64_t reserved_33_63:31;
  1089. uint64_t addr:33;
  1090. #else
  1091. uint64_t addr:33;
  1092. uint64_t reserved_33_63:31;
  1093. #endif
  1094. } s;
  1095. };
  1096. union cvmx_fpa_poolx_threshold {
  1097. uint64_t u64;
  1098. struct cvmx_fpa_poolx_threshold_s {
  1099. #ifdef __BIG_ENDIAN_BITFIELD
  1100. uint64_t reserved_32_63:32;
  1101. uint64_t thresh:32;
  1102. #else
  1103. uint64_t thresh:32;
  1104. uint64_t reserved_32_63:32;
  1105. #endif
  1106. } s;
  1107. struct cvmx_fpa_poolx_threshold_cn61xx {
  1108. #ifdef __BIG_ENDIAN_BITFIELD
  1109. uint64_t reserved_29_63:35;
  1110. uint64_t thresh:29;
  1111. #else
  1112. uint64_t thresh:29;
  1113. uint64_t reserved_29_63:35;
  1114. #endif
  1115. } cn61xx;
  1116. };
  1117. union cvmx_fpa_quex_available {
  1118. uint64_t u64;
  1119. struct cvmx_fpa_quex_available_s {
  1120. #ifdef __BIG_ENDIAN_BITFIELD
  1121. uint64_t reserved_32_63:32;
  1122. uint64_t que_siz:32;
  1123. #else
  1124. uint64_t que_siz:32;
  1125. uint64_t reserved_32_63:32;
  1126. #endif
  1127. } s;
  1128. struct cvmx_fpa_quex_available_cn30xx {
  1129. #ifdef __BIG_ENDIAN_BITFIELD
  1130. uint64_t reserved_29_63:35;
  1131. uint64_t que_siz:29;
  1132. #else
  1133. uint64_t que_siz:29;
  1134. uint64_t reserved_29_63:35;
  1135. #endif
  1136. } cn30xx;
  1137. };
  1138. union cvmx_fpa_quex_page_index {
  1139. uint64_t u64;
  1140. struct cvmx_fpa_quex_page_index_s {
  1141. #ifdef __BIG_ENDIAN_BITFIELD
  1142. uint64_t reserved_25_63:39;
  1143. uint64_t pg_num:25;
  1144. #else
  1145. uint64_t pg_num:25;
  1146. uint64_t reserved_25_63:39;
  1147. #endif
  1148. } s;
  1149. };
  1150. union cvmx_fpa_que8_page_index {
  1151. uint64_t u64;
  1152. struct cvmx_fpa_que8_page_index_s {
  1153. #ifdef __BIG_ENDIAN_BITFIELD
  1154. uint64_t reserved_25_63:39;
  1155. uint64_t pg_num:25;
  1156. #else
  1157. uint64_t pg_num:25;
  1158. uint64_t reserved_25_63:39;
  1159. #endif
  1160. } s;
  1161. };
  1162. union cvmx_fpa_que_act {
  1163. uint64_t u64;
  1164. struct cvmx_fpa_que_act_s {
  1165. #ifdef __BIG_ENDIAN_BITFIELD
  1166. uint64_t reserved_29_63:35;
  1167. uint64_t act_que:3;
  1168. uint64_t act_indx:26;
  1169. #else
  1170. uint64_t act_indx:26;
  1171. uint64_t act_que:3;
  1172. uint64_t reserved_29_63:35;
  1173. #endif
  1174. } s;
  1175. };
  1176. union cvmx_fpa_que_exp {
  1177. uint64_t u64;
  1178. struct cvmx_fpa_que_exp_s {
  1179. #ifdef __BIG_ENDIAN_BITFIELD
  1180. uint64_t reserved_29_63:35;
  1181. uint64_t exp_que:3;
  1182. uint64_t exp_indx:26;
  1183. #else
  1184. uint64_t exp_indx:26;
  1185. uint64_t exp_que:3;
  1186. uint64_t reserved_29_63:35;
  1187. #endif
  1188. } s;
  1189. };
  1190. union cvmx_fpa_wart_ctl {
  1191. uint64_t u64;
  1192. struct cvmx_fpa_wart_ctl_s {
  1193. #ifdef __BIG_ENDIAN_BITFIELD
  1194. uint64_t reserved_16_63:48;
  1195. uint64_t ctl:16;
  1196. #else
  1197. uint64_t ctl:16;
  1198. uint64_t reserved_16_63:48;
  1199. #endif
  1200. } s;
  1201. };
  1202. union cvmx_fpa_wart_status {
  1203. uint64_t u64;
  1204. struct cvmx_fpa_wart_status_s {
  1205. #ifdef __BIG_ENDIAN_BITFIELD
  1206. uint64_t reserved_32_63:32;
  1207. uint64_t status:32;
  1208. #else
  1209. uint64_t status:32;
  1210. uint64_t reserved_32_63:32;
  1211. #endif
  1212. } s;
  1213. };
  1214. union cvmx_fpa_wqe_threshold {
  1215. uint64_t u64;
  1216. struct cvmx_fpa_wqe_threshold_s {
  1217. #ifdef __BIG_ENDIAN_BITFIELD
  1218. uint64_t reserved_32_63:32;
  1219. uint64_t thresh:32;
  1220. #else
  1221. uint64_t thresh:32;
  1222. uint64_t reserved_32_63:32;
  1223. #endif
  1224. } s;
  1225. };
  1226. #endif