cvmx-pko-defs.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134
  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-2008 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_PKO_DEFS_H__
  28. #define __CVMX_PKO_DEFS_H__
  29. #define CVMX_PKO_MEM_COUNT0 \
  30. CVMX_ADD_IO_SEG(0x0001180050001080ull)
  31. #define CVMX_PKO_MEM_COUNT1 \
  32. CVMX_ADD_IO_SEG(0x0001180050001088ull)
  33. #define CVMX_PKO_MEM_DEBUG0 \
  34. CVMX_ADD_IO_SEG(0x0001180050001100ull)
  35. #define CVMX_PKO_MEM_DEBUG1 \
  36. CVMX_ADD_IO_SEG(0x0001180050001108ull)
  37. #define CVMX_PKO_MEM_DEBUG10 \
  38. CVMX_ADD_IO_SEG(0x0001180050001150ull)
  39. #define CVMX_PKO_MEM_DEBUG11 \
  40. CVMX_ADD_IO_SEG(0x0001180050001158ull)
  41. #define CVMX_PKO_MEM_DEBUG12 \
  42. CVMX_ADD_IO_SEG(0x0001180050001160ull)
  43. #define CVMX_PKO_MEM_DEBUG13 \
  44. CVMX_ADD_IO_SEG(0x0001180050001168ull)
  45. #define CVMX_PKO_MEM_DEBUG14 \
  46. CVMX_ADD_IO_SEG(0x0001180050001170ull)
  47. #define CVMX_PKO_MEM_DEBUG2 \
  48. CVMX_ADD_IO_SEG(0x0001180050001110ull)
  49. #define CVMX_PKO_MEM_DEBUG3 \
  50. CVMX_ADD_IO_SEG(0x0001180050001118ull)
  51. #define CVMX_PKO_MEM_DEBUG4 \
  52. CVMX_ADD_IO_SEG(0x0001180050001120ull)
  53. #define CVMX_PKO_MEM_DEBUG5 \
  54. CVMX_ADD_IO_SEG(0x0001180050001128ull)
  55. #define CVMX_PKO_MEM_DEBUG6 \
  56. CVMX_ADD_IO_SEG(0x0001180050001130ull)
  57. #define CVMX_PKO_MEM_DEBUG7 \
  58. CVMX_ADD_IO_SEG(0x0001180050001138ull)
  59. #define CVMX_PKO_MEM_DEBUG8 \
  60. CVMX_ADD_IO_SEG(0x0001180050001140ull)
  61. #define CVMX_PKO_MEM_DEBUG9 \
  62. CVMX_ADD_IO_SEG(0x0001180050001148ull)
  63. #define CVMX_PKO_MEM_PORT_PTRS \
  64. CVMX_ADD_IO_SEG(0x0001180050001010ull)
  65. #define CVMX_PKO_MEM_PORT_QOS \
  66. CVMX_ADD_IO_SEG(0x0001180050001018ull)
  67. #define CVMX_PKO_MEM_PORT_RATE0 \
  68. CVMX_ADD_IO_SEG(0x0001180050001020ull)
  69. #define CVMX_PKO_MEM_PORT_RATE1 \
  70. CVMX_ADD_IO_SEG(0x0001180050001028ull)
  71. #define CVMX_PKO_MEM_QUEUE_PTRS \
  72. CVMX_ADD_IO_SEG(0x0001180050001000ull)
  73. #define CVMX_PKO_MEM_QUEUE_QOS \
  74. CVMX_ADD_IO_SEG(0x0001180050001008ull)
  75. #define CVMX_PKO_REG_BIST_RESULT \
  76. CVMX_ADD_IO_SEG(0x0001180050000080ull)
  77. #define CVMX_PKO_REG_CMD_BUF \
  78. CVMX_ADD_IO_SEG(0x0001180050000010ull)
  79. #define CVMX_PKO_REG_CRC_CTLX(offset) \
  80. CVMX_ADD_IO_SEG(0x0001180050000028ull + (((offset) & 1) * 8))
  81. #define CVMX_PKO_REG_CRC_ENABLE \
  82. CVMX_ADD_IO_SEG(0x0001180050000020ull)
  83. #define CVMX_PKO_REG_CRC_IVX(offset) \
  84. CVMX_ADD_IO_SEG(0x0001180050000038ull + (((offset) & 1) * 8))
  85. #define CVMX_PKO_REG_DEBUG0 \
  86. CVMX_ADD_IO_SEG(0x0001180050000098ull)
  87. #define CVMX_PKO_REG_DEBUG1 \
  88. CVMX_ADD_IO_SEG(0x00011800500000A0ull)
  89. #define CVMX_PKO_REG_DEBUG2 \
  90. CVMX_ADD_IO_SEG(0x00011800500000A8ull)
  91. #define CVMX_PKO_REG_DEBUG3 \
  92. CVMX_ADD_IO_SEG(0x00011800500000B0ull)
  93. #define CVMX_PKO_REG_ENGINE_INFLIGHT \
  94. CVMX_ADD_IO_SEG(0x0001180050000050ull)
  95. #define CVMX_PKO_REG_ENGINE_THRESH \
  96. CVMX_ADD_IO_SEG(0x0001180050000058ull)
  97. #define CVMX_PKO_REG_ERROR \
  98. CVMX_ADD_IO_SEG(0x0001180050000088ull)
  99. #define CVMX_PKO_REG_FLAGS \
  100. CVMX_ADD_IO_SEG(0x0001180050000000ull)
  101. #define CVMX_PKO_REG_GMX_PORT_MODE \
  102. CVMX_ADD_IO_SEG(0x0001180050000018ull)
  103. #define CVMX_PKO_REG_INT_MASK \
  104. CVMX_ADD_IO_SEG(0x0001180050000090ull)
  105. #define CVMX_PKO_REG_QUEUE_MODE \
  106. CVMX_ADD_IO_SEG(0x0001180050000048ull)
  107. #define CVMX_PKO_REG_QUEUE_PTRS1 \
  108. CVMX_ADD_IO_SEG(0x0001180050000100ull)
  109. #define CVMX_PKO_REG_READ_IDX \
  110. CVMX_ADD_IO_SEG(0x0001180050000008ull)
  111. union cvmx_pko_mem_count0 {
  112. uint64_t u64;
  113. struct cvmx_pko_mem_count0_s {
  114. uint64_t reserved_32_63:32;
  115. uint64_t count:32;
  116. } s;
  117. struct cvmx_pko_mem_count0_s cn30xx;
  118. struct cvmx_pko_mem_count0_s cn31xx;
  119. struct cvmx_pko_mem_count0_s cn38xx;
  120. struct cvmx_pko_mem_count0_s cn38xxp2;
  121. struct cvmx_pko_mem_count0_s cn50xx;
  122. struct cvmx_pko_mem_count0_s cn52xx;
  123. struct cvmx_pko_mem_count0_s cn52xxp1;
  124. struct cvmx_pko_mem_count0_s cn56xx;
  125. struct cvmx_pko_mem_count0_s cn56xxp1;
  126. struct cvmx_pko_mem_count0_s cn58xx;
  127. struct cvmx_pko_mem_count0_s cn58xxp1;
  128. };
  129. union cvmx_pko_mem_count1 {
  130. uint64_t u64;
  131. struct cvmx_pko_mem_count1_s {
  132. uint64_t reserved_48_63:16;
  133. uint64_t count:48;
  134. } s;
  135. struct cvmx_pko_mem_count1_s cn30xx;
  136. struct cvmx_pko_mem_count1_s cn31xx;
  137. struct cvmx_pko_mem_count1_s cn38xx;
  138. struct cvmx_pko_mem_count1_s cn38xxp2;
  139. struct cvmx_pko_mem_count1_s cn50xx;
  140. struct cvmx_pko_mem_count1_s cn52xx;
  141. struct cvmx_pko_mem_count1_s cn52xxp1;
  142. struct cvmx_pko_mem_count1_s cn56xx;
  143. struct cvmx_pko_mem_count1_s cn56xxp1;
  144. struct cvmx_pko_mem_count1_s cn58xx;
  145. struct cvmx_pko_mem_count1_s cn58xxp1;
  146. };
  147. union cvmx_pko_mem_debug0 {
  148. uint64_t u64;
  149. struct cvmx_pko_mem_debug0_s {
  150. uint64_t fau:28;
  151. uint64_t cmd:14;
  152. uint64_t segs:6;
  153. uint64_t size:16;
  154. } s;
  155. struct cvmx_pko_mem_debug0_s cn30xx;
  156. struct cvmx_pko_mem_debug0_s cn31xx;
  157. struct cvmx_pko_mem_debug0_s cn38xx;
  158. struct cvmx_pko_mem_debug0_s cn38xxp2;
  159. struct cvmx_pko_mem_debug0_s cn50xx;
  160. struct cvmx_pko_mem_debug0_s cn52xx;
  161. struct cvmx_pko_mem_debug0_s cn52xxp1;
  162. struct cvmx_pko_mem_debug0_s cn56xx;
  163. struct cvmx_pko_mem_debug0_s cn56xxp1;
  164. struct cvmx_pko_mem_debug0_s cn58xx;
  165. struct cvmx_pko_mem_debug0_s cn58xxp1;
  166. };
  167. union cvmx_pko_mem_debug1 {
  168. uint64_t u64;
  169. struct cvmx_pko_mem_debug1_s {
  170. uint64_t i:1;
  171. uint64_t back:4;
  172. uint64_t pool:3;
  173. uint64_t size:16;
  174. uint64_t ptr:40;
  175. } s;
  176. struct cvmx_pko_mem_debug1_s cn30xx;
  177. struct cvmx_pko_mem_debug1_s cn31xx;
  178. struct cvmx_pko_mem_debug1_s cn38xx;
  179. struct cvmx_pko_mem_debug1_s cn38xxp2;
  180. struct cvmx_pko_mem_debug1_s cn50xx;
  181. struct cvmx_pko_mem_debug1_s cn52xx;
  182. struct cvmx_pko_mem_debug1_s cn52xxp1;
  183. struct cvmx_pko_mem_debug1_s cn56xx;
  184. struct cvmx_pko_mem_debug1_s cn56xxp1;
  185. struct cvmx_pko_mem_debug1_s cn58xx;
  186. struct cvmx_pko_mem_debug1_s cn58xxp1;
  187. };
  188. union cvmx_pko_mem_debug10 {
  189. uint64_t u64;
  190. struct cvmx_pko_mem_debug10_s {
  191. uint64_t reserved_0_63:64;
  192. } s;
  193. struct cvmx_pko_mem_debug10_cn30xx {
  194. uint64_t fau:28;
  195. uint64_t cmd:14;
  196. uint64_t segs:6;
  197. uint64_t size:16;
  198. } cn30xx;
  199. struct cvmx_pko_mem_debug10_cn30xx cn31xx;
  200. struct cvmx_pko_mem_debug10_cn30xx cn38xx;
  201. struct cvmx_pko_mem_debug10_cn30xx cn38xxp2;
  202. struct cvmx_pko_mem_debug10_cn50xx {
  203. uint64_t reserved_49_63:15;
  204. uint64_t ptrs1:17;
  205. uint64_t reserved_17_31:15;
  206. uint64_t ptrs2:17;
  207. } cn50xx;
  208. struct cvmx_pko_mem_debug10_cn50xx cn52xx;
  209. struct cvmx_pko_mem_debug10_cn50xx cn52xxp1;
  210. struct cvmx_pko_mem_debug10_cn50xx cn56xx;
  211. struct cvmx_pko_mem_debug10_cn50xx cn56xxp1;
  212. struct cvmx_pko_mem_debug10_cn50xx cn58xx;
  213. struct cvmx_pko_mem_debug10_cn50xx cn58xxp1;
  214. };
  215. union cvmx_pko_mem_debug11 {
  216. uint64_t u64;
  217. struct cvmx_pko_mem_debug11_s {
  218. uint64_t i:1;
  219. uint64_t back:4;
  220. uint64_t pool:3;
  221. uint64_t size:16;
  222. uint64_t reserved_0_39:40;
  223. } s;
  224. struct cvmx_pko_mem_debug11_cn30xx {
  225. uint64_t i:1;
  226. uint64_t back:4;
  227. uint64_t pool:3;
  228. uint64_t size:16;
  229. uint64_t ptr:40;
  230. } cn30xx;
  231. struct cvmx_pko_mem_debug11_cn30xx cn31xx;
  232. struct cvmx_pko_mem_debug11_cn30xx cn38xx;
  233. struct cvmx_pko_mem_debug11_cn30xx cn38xxp2;
  234. struct cvmx_pko_mem_debug11_cn50xx {
  235. uint64_t reserved_23_63:41;
  236. uint64_t maj:1;
  237. uint64_t uid:3;
  238. uint64_t sop:1;
  239. uint64_t len:1;
  240. uint64_t chk:1;
  241. uint64_t cnt:13;
  242. uint64_t mod:3;
  243. } cn50xx;
  244. struct cvmx_pko_mem_debug11_cn50xx cn52xx;
  245. struct cvmx_pko_mem_debug11_cn50xx cn52xxp1;
  246. struct cvmx_pko_mem_debug11_cn50xx cn56xx;
  247. struct cvmx_pko_mem_debug11_cn50xx cn56xxp1;
  248. struct cvmx_pko_mem_debug11_cn50xx cn58xx;
  249. struct cvmx_pko_mem_debug11_cn50xx cn58xxp1;
  250. };
  251. union cvmx_pko_mem_debug12 {
  252. uint64_t u64;
  253. struct cvmx_pko_mem_debug12_s {
  254. uint64_t reserved_0_63:64;
  255. } s;
  256. struct cvmx_pko_mem_debug12_cn30xx {
  257. uint64_t data:64;
  258. } cn30xx;
  259. struct cvmx_pko_mem_debug12_cn30xx cn31xx;
  260. struct cvmx_pko_mem_debug12_cn30xx cn38xx;
  261. struct cvmx_pko_mem_debug12_cn30xx cn38xxp2;
  262. struct cvmx_pko_mem_debug12_cn50xx {
  263. uint64_t fau:28;
  264. uint64_t cmd:14;
  265. uint64_t segs:6;
  266. uint64_t size:16;
  267. } cn50xx;
  268. struct cvmx_pko_mem_debug12_cn50xx cn52xx;
  269. struct cvmx_pko_mem_debug12_cn50xx cn52xxp1;
  270. struct cvmx_pko_mem_debug12_cn50xx cn56xx;
  271. struct cvmx_pko_mem_debug12_cn50xx cn56xxp1;
  272. struct cvmx_pko_mem_debug12_cn50xx cn58xx;
  273. struct cvmx_pko_mem_debug12_cn50xx cn58xxp1;
  274. };
  275. union cvmx_pko_mem_debug13 {
  276. uint64_t u64;
  277. struct cvmx_pko_mem_debug13_s {
  278. uint64_t i:1;
  279. uint64_t back:4;
  280. uint64_t pool:3;
  281. uint64_t reserved_0_55:56;
  282. } s;
  283. struct cvmx_pko_mem_debug13_cn30xx {
  284. uint64_t reserved_51_63:13;
  285. uint64_t widx:17;
  286. uint64_t ridx2:17;
  287. uint64_t widx2:17;
  288. } cn30xx;
  289. struct cvmx_pko_mem_debug13_cn30xx cn31xx;
  290. struct cvmx_pko_mem_debug13_cn30xx cn38xx;
  291. struct cvmx_pko_mem_debug13_cn30xx cn38xxp2;
  292. struct cvmx_pko_mem_debug13_cn50xx {
  293. uint64_t i:1;
  294. uint64_t back:4;
  295. uint64_t pool:3;
  296. uint64_t size:16;
  297. uint64_t ptr:40;
  298. } cn50xx;
  299. struct cvmx_pko_mem_debug13_cn50xx cn52xx;
  300. struct cvmx_pko_mem_debug13_cn50xx cn52xxp1;
  301. struct cvmx_pko_mem_debug13_cn50xx cn56xx;
  302. struct cvmx_pko_mem_debug13_cn50xx cn56xxp1;
  303. struct cvmx_pko_mem_debug13_cn50xx cn58xx;
  304. struct cvmx_pko_mem_debug13_cn50xx cn58xxp1;
  305. };
  306. union cvmx_pko_mem_debug14 {
  307. uint64_t u64;
  308. struct cvmx_pko_mem_debug14_s {
  309. uint64_t reserved_0_63:64;
  310. } s;
  311. struct cvmx_pko_mem_debug14_cn30xx {
  312. uint64_t reserved_17_63:47;
  313. uint64_t ridx:17;
  314. } cn30xx;
  315. struct cvmx_pko_mem_debug14_cn30xx cn31xx;
  316. struct cvmx_pko_mem_debug14_cn30xx cn38xx;
  317. struct cvmx_pko_mem_debug14_cn30xx cn38xxp2;
  318. struct cvmx_pko_mem_debug14_cn52xx {
  319. uint64_t data:64;
  320. } cn52xx;
  321. struct cvmx_pko_mem_debug14_cn52xx cn52xxp1;
  322. struct cvmx_pko_mem_debug14_cn52xx cn56xx;
  323. struct cvmx_pko_mem_debug14_cn52xx cn56xxp1;
  324. };
  325. union cvmx_pko_mem_debug2 {
  326. uint64_t u64;
  327. struct cvmx_pko_mem_debug2_s {
  328. uint64_t i:1;
  329. uint64_t back:4;
  330. uint64_t pool:3;
  331. uint64_t size:16;
  332. uint64_t ptr:40;
  333. } s;
  334. struct cvmx_pko_mem_debug2_s cn30xx;
  335. struct cvmx_pko_mem_debug2_s cn31xx;
  336. struct cvmx_pko_mem_debug2_s cn38xx;
  337. struct cvmx_pko_mem_debug2_s cn38xxp2;
  338. struct cvmx_pko_mem_debug2_s cn50xx;
  339. struct cvmx_pko_mem_debug2_s cn52xx;
  340. struct cvmx_pko_mem_debug2_s cn52xxp1;
  341. struct cvmx_pko_mem_debug2_s cn56xx;
  342. struct cvmx_pko_mem_debug2_s cn56xxp1;
  343. struct cvmx_pko_mem_debug2_s cn58xx;
  344. struct cvmx_pko_mem_debug2_s cn58xxp1;
  345. };
  346. union cvmx_pko_mem_debug3 {
  347. uint64_t u64;
  348. struct cvmx_pko_mem_debug3_s {
  349. uint64_t reserved_0_63:64;
  350. } s;
  351. struct cvmx_pko_mem_debug3_cn30xx {
  352. uint64_t i:1;
  353. uint64_t back:4;
  354. uint64_t pool:3;
  355. uint64_t size:16;
  356. uint64_t ptr:40;
  357. } cn30xx;
  358. struct cvmx_pko_mem_debug3_cn30xx cn31xx;
  359. struct cvmx_pko_mem_debug3_cn30xx cn38xx;
  360. struct cvmx_pko_mem_debug3_cn30xx cn38xxp2;
  361. struct cvmx_pko_mem_debug3_cn50xx {
  362. uint64_t data:64;
  363. } cn50xx;
  364. struct cvmx_pko_mem_debug3_cn50xx cn52xx;
  365. struct cvmx_pko_mem_debug3_cn50xx cn52xxp1;
  366. struct cvmx_pko_mem_debug3_cn50xx cn56xx;
  367. struct cvmx_pko_mem_debug3_cn50xx cn56xxp1;
  368. struct cvmx_pko_mem_debug3_cn50xx cn58xx;
  369. struct cvmx_pko_mem_debug3_cn50xx cn58xxp1;
  370. };
  371. union cvmx_pko_mem_debug4 {
  372. uint64_t u64;
  373. struct cvmx_pko_mem_debug4_s {
  374. uint64_t reserved_0_63:64;
  375. } s;
  376. struct cvmx_pko_mem_debug4_cn30xx {
  377. uint64_t data:64;
  378. } cn30xx;
  379. struct cvmx_pko_mem_debug4_cn30xx cn31xx;
  380. struct cvmx_pko_mem_debug4_cn30xx cn38xx;
  381. struct cvmx_pko_mem_debug4_cn30xx cn38xxp2;
  382. struct cvmx_pko_mem_debug4_cn50xx {
  383. uint64_t cmnd_segs:3;
  384. uint64_t cmnd_siz:16;
  385. uint64_t cmnd_off:6;
  386. uint64_t uid:3;
  387. uint64_t dread_sop:1;
  388. uint64_t init_dwrite:1;
  389. uint64_t chk_once:1;
  390. uint64_t chk_mode:1;
  391. uint64_t active:1;
  392. uint64_t static_p:1;
  393. uint64_t qos:3;
  394. uint64_t qcb_ridx:5;
  395. uint64_t qid_off_max:4;
  396. uint64_t qid_off:4;
  397. uint64_t qid_base:8;
  398. uint64_t wait:1;
  399. uint64_t minor:2;
  400. uint64_t major:3;
  401. } cn50xx;
  402. struct cvmx_pko_mem_debug4_cn52xx {
  403. uint64_t curr_siz:8;
  404. uint64_t curr_off:16;
  405. uint64_t cmnd_segs:6;
  406. uint64_t cmnd_siz:16;
  407. uint64_t cmnd_off:6;
  408. uint64_t uid:2;
  409. uint64_t dread_sop:1;
  410. uint64_t init_dwrite:1;
  411. uint64_t chk_once:1;
  412. uint64_t chk_mode:1;
  413. uint64_t wait:1;
  414. uint64_t minor:2;
  415. uint64_t major:3;
  416. } cn52xx;
  417. struct cvmx_pko_mem_debug4_cn52xx cn52xxp1;
  418. struct cvmx_pko_mem_debug4_cn52xx cn56xx;
  419. struct cvmx_pko_mem_debug4_cn52xx cn56xxp1;
  420. struct cvmx_pko_mem_debug4_cn50xx cn58xx;
  421. struct cvmx_pko_mem_debug4_cn50xx cn58xxp1;
  422. };
  423. union cvmx_pko_mem_debug5 {
  424. uint64_t u64;
  425. struct cvmx_pko_mem_debug5_s {
  426. uint64_t reserved_0_63:64;
  427. } s;
  428. struct cvmx_pko_mem_debug5_cn30xx {
  429. uint64_t dwri_mod:1;
  430. uint64_t dwri_sop:1;
  431. uint64_t dwri_len:1;
  432. uint64_t dwri_cnt:13;
  433. uint64_t cmnd_siz:16;
  434. uint64_t uid:1;
  435. uint64_t xfer_wor:1;
  436. uint64_t xfer_dwr:1;
  437. uint64_t cbuf_fre:1;
  438. uint64_t reserved_27_27:1;
  439. uint64_t chk_mode:1;
  440. uint64_t active:1;
  441. uint64_t qos:3;
  442. uint64_t qcb_ridx:5;
  443. uint64_t qid_off:3;
  444. uint64_t qid_base:7;
  445. uint64_t wait:1;
  446. uint64_t minor:2;
  447. uint64_t major:4;
  448. } cn30xx;
  449. struct cvmx_pko_mem_debug5_cn30xx cn31xx;
  450. struct cvmx_pko_mem_debug5_cn30xx cn38xx;
  451. struct cvmx_pko_mem_debug5_cn30xx cn38xxp2;
  452. struct cvmx_pko_mem_debug5_cn50xx {
  453. uint64_t curr_ptr:29;
  454. uint64_t curr_siz:16;
  455. uint64_t curr_off:16;
  456. uint64_t cmnd_segs:3;
  457. } cn50xx;
  458. struct cvmx_pko_mem_debug5_cn52xx {
  459. uint64_t reserved_54_63:10;
  460. uint64_t nxt_inflt:6;
  461. uint64_t curr_ptr:40;
  462. uint64_t curr_siz:8;
  463. } cn52xx;
  464. struct cvmx_pko_mem_debug5_cn52xx cn52xxp1;
  465. struct cvmx_pko_mem_debug5_cn52xx cn56xx;
  466. struct cvmx_pko_mem_debug5_cn52xx cn56xxp1;
  467. struct cvmx_pko_mem_debug5_cn50xx cn58xx;
  468. struct cvmx_pko_mem_debug5_cn50xx cn58xxp1;
  469. };
  470. union cvmx_pko_mem_debug6 {
  471. uint64_t u64;
  472. struct cvmx_pko_mem_debug6_s {
  473. uint64_t reserved_37_63:27;
  474. uint64_t qid_offres:4;
  475. uint64_t qid_offths:4;
  476. uint64_t preempter:1;
  477. uint64_t preemptee:1;
  478. uint64_t preempted:1;
  479. uint64_t active:1;
  480. uint64_t statc:1;
  481. uint64_t qos:3;
  482. uint64_t qcb_ridx:5;
  483. uint64_t qid_offmax:4;
  484. uint64_t reserved_0_11:12;
  485. } s;
  486. struct cvmx_pko_mem_debug6_cn30xx {
  487. uint64_t reserved_11_63:53;
  488. uint64_t qid_offm:3;
  489. uint64_t static_p:1;
  490. uint64_t work_min:3;
  491. uint64_t dwri_chk:1;
  492. uint64_t dwri_uid:1;
  493. uint64_t dwri_mod:2;
  494. } cn30xx;
  495. struct cvmx_pko_mem_debug6_cn30xx cn31xx;
  496. struct cvmx_pko_mem_debug6_cn30xx cn38xx;
  497. struct cvmx_pko_mem_debug6_cn30xx cn38xxp2;
  498. struct cvmx_pko_mem_debug6_cn50xx {
  499. uint64_t reserved_11_63:53;
  500. uint64_t curr_ptr:11;
  501. } cn50xx;
  502. struct cvmx_pko_mem_debug6_cn52xx {
  503. uint64_t reserved_37_63:27;
  504. uint64_t qid_offres:4;
  505. uint64_t qid_offths:4;
  506. uint64_t preempter:1;
  507. uint64_t preemptee:1;
  508. uint64_t preempted:1;
  509. uint64_t active:1;
  510. uint64_t statc:1;
  511. uint64_t qos:3;
  512. uint64_t qcb_ridx:5;
  513. uint64_t qid_offmax:4;
  514. uint64_t qid_off:4;
  515. uint64_t qid_base:8;
  516. } cn52xx;
  517. struct cvmx_pko_mem_debug6_cn52xx cn52xxp1;
  518. struct cvmx_pko_mem_debug6_cn52xx cn56xx;
  519. struct cvmx_pko_mem_debug6_cn52xx cn56xxp1;
  520. struct cvmx_pko_mem_debug6_cn50xx cn58xx;
  521. struct cvmx_pko_mem_debug6_cn50xx cn58xxp1;
  522. };
  523. union cvmx_pko_mem_debug7 {
  524. uint64_t u64;
  525. struct cvmx_pko_mem_debug7_s {
  526. uint64_t qos:5;
  527. uint64_t tail:1;
  528. uint64_t reserved_0_57:58;
  529. } s;
  530. struct cvmx_pko_mem_debug7_cn30xx {
  531. uint64_t reserved_58_63:6;
  532. uint64_t dwb:9;
  533. uint64_t start:33;
  534. uint64_t size:16;
  535. } cn30xx;
  536. struct cvmx_pko_mem_debug7_cn30xx cn31xx;
  537. struct cvmx_pko_mem_debug7_cn30xx cn38xx;
  538. struct cvmx_pko_mem_debug7_cn30xx cn38xxp2;
  539. struct cvmx_pko_mem_debug7_cn50xx {
  540. uint64_t qos:5;
  541. uint64_t tail:1;
  542. uint64_t buf_siz:13;
  543. uint64_t buf_ptr:33;
  544. uint64_t qcb_widx:6;
  545. uint64_t qcb_ridx:6;
  546. } cn50xx;
  547. struct cvmx_pko_mem_debug7_cn50xx cn52xx;
  548. struct cvmx_pko_mem_debug7_cn50xx cn52xxp1;
  549. struct cvmx_pko_mem_debug7_cn50xx cn56xx;
  550. struct cvmx_pko_mem_debug7_cn50xx cn56xxp1;
  551. struct cvmx_pko_mem_debug7_cn50xx cn58xx;
  552. struct cvmx_pko_mem_debug7_cn50xx cn58xxp1;
  553. };
  554. union cvmx_pko_mem_debug8 {
  555. uint64_t u64;
  556. struct cvmx_pko_mem_debug8_s {
  557. uint64_t reserved_59_63:5;
  558. uint64_t tail:1;
  559. uint64_t buf_siz:13;
  560. uint64_t reserved_0_44:45;
  561. } s;
  562. struct cvmx_pko_mem_debug8_cn30xx {
  563. uint64_t qos:5;
  564. uint64_t tail:1;
  565. uint64_t buf_siz:13;
  566. uint64_t buf_ptr:33;
  567. uint64_t qcb_widx:6;
  568. uint64_t qcb_ridx:6;
  569. } cn30xx;
  570. struct cvmx_pko_mem_debug8_cn30xx cn31xx;
  571. struct cvmx_pko_mem_debug8_cn30xx cn38xx;
  572. struct cvmx_pko_mem_debug8_cn30xx cn38xxp2;
  573. struct cvmx_pko_mem_debug8_cn50xx {
  574. uint64_t reserved_28_63:36;
  575. uint64_t doorbell:20;
  576. uint64_t reserved_6_7:2;
  577. uint64_t static_p:1;
  578. uint64_t s_tail:1;
  579. uint64_t static_q:1;
  580. uint64_t qos:3;
  581. } cn50xx;
  582. struct cvmx_pko_mem_debug8_cn52xx {
  583. uint64_t reserved_29_63:35;
  584. uint64_t preempter:1;
  585. uint64_t doorbell:20;
  586. uint64_t reserved_7_7:1;
  587. uint64_t preemptee:1;
  588. uint64_t static_p:1;
  589. uint64_t s_tail:1;
  590. uint64_t static_q:1;
  591. uint64_t qos:3;
  592. } cn52xx;
  593. struct cvmx_pko_mem_debug8_cn52xx cn52xxp1;
  594. struct cvmx_pko_mem_debug8_cn52xx cn56xx;
  595. struct cvmx_pko_mem_debug8_cn52xx cn56xxp1;
  596. struct cvmx_pko_mem_debug8_cn50xx cn58xx;
  597. struct cvmx_pko_mem_debug8_cn50xx cn58xxp1;
  598. };
  599. union cvmx_pko_mem_debug9 {
  600. uint64_t u64;
  601. struct cvmx_pko_mem_debug9_s {
  602. uint64_t reserved_49_63:15;
  603. uint64_t ptrs0:17;
  604. uint64_t reserved_0_31:32;
  605. } s;
  606. struct cvmx_pko_mem_debug9_cn30xx {
  607. uint64_t reserved_28_63:36;
  608. uint64_t doorbell:20;
  609. uint64_t reserved_5_7:3;
  610. uint64_t s_tail:1;
  611. uint64_t static_q:1;
  612. uint64_t qos:3;
  613. } cn30xx;
  614. struct cvmx_pko_mem_debug9_cn30xx cn31xx;
  615. struct cvmx_pko_mem_debug9_cn38xx {
  616. uint64_t reserved_28_63:36;
  617. uint64_t doorbell:20;
  618. uint64_t reserved_6_7:2;
  619. uint64_t static_p:1;
  620. uint64_t s_tail:1;
  621. uint64_t static_q:1;
  622. uint64_t qos:3;
  623. } cn38xx;
  624. struct cvmx_pko_mem_debug9_cn38xx cn38xxp2;
  625. struct cvmx_pko_mem_debug9_cn50xx {
  626. uint64_t reserved_49_63:15;
  627. uint64_t ptrs0:17;
  628. uint64_t reserved_17_31:15;
  629. uint64_t ptrs3:17;
  630. } cn50xx;
  631. struct cvmx_pko_mem_debug9_cn50xx cn52xx;
  632. struct cvmx_pko_mem_debug9_cn50xx cn52xxp1;
  633. struct cvmx_pko_mem_debug9_cn50xx cn56xx;
  634. struct cvmx_pko_mem_debug9_cn50xx cn56xxp1;
  635. struct cvmx_pko_mem_debug9_cn50xx cn58xx;
  636. struct cvmx_pko_mem_debug9_cn50xx cn58xxp1;
  637. };
  638. union cvmx_pko_mem_port_ptrs {
  639. uint64_t u64;
  640. struct cvmx_pko_mem_port_ptrs_s {
  641. uint64_t reserved_62_63:2;
  642. uint64_t static_p:1;
  643. uint64_t qos_mask:8;
  644. uint64_t reserved_16_52:37;
  645. uint64_t bp_port:6;
  646. uint64_t eid:4;
  647. uint64_t pid:6;
  648. } s;
  649. struct cvmx_pko_mem_port_ptrs_s cn52xx;
  650. struct cvmx_pko_mem_port_ptrs_s cn52xxp1;
  651. struct cvmx_pko_mem_port_ptrs_s cn56xx;
  652. struct cvmx_pko_mem_port_ptrs_s cn56xxp1;
  653. };
  654. union cvmx_pko_mem_port_qos {
  655. uint64_t u64;
  656. struct cvmx_pko_mem_port_qos_s {
  657. uint64_t reserved_61_63:3;
  658. uint64_t qos_mask:8;
  659. uint64_t reserved_10_52:43;
  660. uint64_t eid:4;
  661. uint64_t pid:6;
  662. } s;
  663. struct cvmx_pko_mem_port_qos_s cn52xx;
  664. struct cvmx_pko_mem_port_qos_s cn52xxp1;
  665. struct cvmx_pko_mem_port_qos_s cn56xx;
  666. struct cvmx_pko_mem_port_qos_s cn56xxp1;
  667. };
  668. union cvmx_pko_mem_port_rate0 {
  669. uint64_t u64;
  670. struct cvmx_pko_mem_port_rate0_s {
  671. uint64_t reserved_51_63:13;
  672. uint64_t rate_word:19;
  673. uint64_t rate_pkt:24;
  674. uint64_t reserved_6_7:2;
  675. uint64_t pid:6;
  676. } s;
  677. struct cvmx_pko_mem_port_rate0_s cn52xx;
  678. struct cvmx_pko_mem_port_rate0_s cn52xxp1;
  679. struct cvmx_pko_mem_port_rate0_s cn56xx;
  680. struct cvmx_pko_mem_port_rate0_s cn56xxp1;
  681. };
  682. union cvmx_pko_mem_port_rate1 {
  683. uint64_t u64;
  684. struct cvmx_pko_mem_port_rate1_s {
  685. uint64_t reserved_32_63:32;
  686. uint64_t rate_lim:24;
  687. uint64_t reserved_6_7:2;
  688. uint64_t pid:6;
  689. } s;
  690. struct cvmx_pko_mem_port_rate1_s cn52xx;
  691. struct cvmx_pko_mem_port_rate1_s cn52xxp1;
  692. struct cvmx_pko_mem_port_rate1_s cn56xx;
  693. struct cvmx_pko_mem_port_rate1_s cn56xxp1;
  694. };
  695. union cvmx_pko_mem_queue_ptrs {
  696. uint64_t u64;
  697. struct cvmx_pko_mem_queue_ptrs_s {
  698. uint64_t s_tail:1;
  699. uint64_t static_p:1;
  700. uint64_t static_q:1;
  701. uint64_t qos_mask:8;
  702. uint64_t buf_ptr:36;
  703. uint64_t tail:1;
  704. uint64_t index:3;
  705. uint64_t port:6;
  706. uint64_t queue:7;
  707. } s;
  708. struct cvmx_pko_mem_queue_ptrs_s cn30xx;
  709. struct cvmx_pko_mem_queue_ptrs_s cn31xx;
  710. struct cvmx_pko_mem_queue_ptrs_s cn38xx;
  711. struct cvmx_pko_mem_queue_ptrs_s cn38xxp2;
  712. struct cvmx_pko_mem_queue_ptrs_s cn50xx;
  713. struct cvmx_pko_mem_queue_ptrs_s cn52xx;
  714. struct cvmx_pko_mem_queue_ptrs_s cn52xxp1;
  715. struct cvmx_pko_mem_queue_ptrs_s cn56xx;
  716. struct cvmx_pko_mem_queue_ptrs_s cn56xxp1;
  717. struct cvmx_pko_mem_queue_ptrs_s cn58xx;
  718. struct cvmx_pko_mem_queue_ptrs_s cn58xxp1;
  719. };
  720. union cvmx_pko_mem_queue_qos {
  721. uint64_t u64;
  722. struct cvmx_pko_mem_queue_qos_s {
  723. uint64_t reserved_61_63:3;
  724. uint64_t qos_mask:8;
  725. uint64_t reserved_13_52:40;
  726. uint64_t pid:6;
  727. uint64_t qid:7;
  728. } s;
  729. struct cvmx_pko_mem_queue_qos_s cn30xx;
  730. struct cvmx_pko_mem_queue_qos_s cn31xx;
  731. struct cvmx_pko_mem_queue_qos_s cn38xx;
  732. struct cvmx_pko_mem_queue_qos_s cn38xxp2;
  733. struct cvmx_pko_mem_queue_qos_s cn50xx;
  734. struct cvmx_pko_mem_queue_qos_s cn52xx;
  735. struct cvmx_pko_mem_queue_qos_s cn52xxp1;
  736. struct cvmx_pko_mem_queue_qos_s cn56xx;
  737. struct cvmx_pko_mem_queue_qos_s cn56xxp1;
  738. struct cvmx_pko_mem_queue_qos_s cn58xx;
  739. struct cvmx_pko_mem_queue_qos_s cn58xxp1;
  740. };
  741. union cvmx_pko_reg_bist_result {
  742. uint64_t u64;
  743. struct cvmx_pko_reg_bist_result_s {
  744. uint64_t reserved_0_63:64;
  745. } s;
  746. struct cvmx_pko_reg_bist_result_cn30xx {
  747. uint64_t reserved_27_63:37;
  748. uint64_t psb2:5;
  749. uint64_t count:1;
  750. uint64_t rif:1;
  751. uint64_t wif:1;
  752. uint64_t ncb:1;
  753. uint64_t out:1;
  754. uint64_t crc:1;
  755. uint64_t chk:1;
  756. uint64_t qsb:2;
  757. uint64_t qcb:2;
  758. uint64_t pdb:4;
  759. uint64_t psb:7;
  760. } cn30xx;
  761. struct cvmx_pko_reg_bist_result_cn30xx cn31xx;
  762. struct cvmx_pko_reg_bist_result_cn30xx cn38xx;
  763. struct cvmx_pko_reg_bist_result_cn30xx cn38xxp2;
  764. struct cvmx_pko_reg_bist_result_cn50xx {
  765. uint64_t reserved_33_63:31;
  766. uint64_t csr:1;
  767. uint64_t iob:1;
  768. uint64_t out_crc:1;
  769. uint64_t out_ctl:3;
  770. uint64_t out_sta:1;
  771. uint64_t out_wif:1;
  772. uint64_t prt_chk:3;
  773. uint64_t prt_nxt:1;
  774. uint64_t prt_psb:6;
  775. uint64_t ncb_inb:2;
  776. uint64_t prt_qcb:2;
  777. uint64_t prt_qsb:3;
  778. uint64_t dat_dat:4;
  779. uint64_t dat_ptr:4;
  780. } cn50xx;
  781. struct cvmx_pko_reg_bist_result_cn52xx {
  782. uint64_t reserved_35_63:29;
  783. uint64_t csr:1;
  784. uint64_t iob:1;
  785. uint64_t out_dat:1;
  786. uint64_t out_ctl:3;
  787. uint64_t out_sta:1;
  788. uint64_t out_wif:1;
  789. uint64_t prt_chk:3;
  790. uint64_t prt_nxt:1;
  791. uint64_t prt_psb:8;
  792. uint64_t ncb_inb:2;
  793. uint64_t prt_qcb:2;
  794. uint64_t prt_qsb:3;
  795. uint64_t prt_ctl:2;
  796. uint64_t dat_dat:2;
  797. uint64_t dat_ptr:4;
  798. } cn52xx;
  799. struct cvmx_pko_reg_bist_result_cn52xx cn52xxp1;
  800. struct cvmx_pko_reg_bist_result_cn52xx cn56xx;
  801. struct cvmx_pko_reg_bist_result_cn52xx cn56xxp1;
  802. struct cvmx_pko_reg_bist_result_cn50xx cn58xx;
  803. struct cvmx_pko_reg_bist_result_cn50xx cn58xxp1;
  804. };
  805. union cvmx_pko_reg_cmd_buf {
  806. uint64_t u64;
  807. struct cvmx_pko_reg_cmd_buf_s {
  808. uint64_t reserved_23_63:41;
  809. uint64_t pool:3;
  810. uint64_t reserved_13_19:7;
  811. uint64_t size:13;
  812. } s;
  813. struct cvmx_pko_reg_cmd_buf_s cn30xx;
  814. struct cvmx_pko_reg_cmd_buf_s cn31xx;
  815. struct cvmx_pko_reg_cmd_buf_s cn38xx;
  816. struct cvmx_pko_reg_cmd_buf_s cn38xxp2;
  817. struct cvmx_pko_reg_cmd_buf_s cn50xx;
  818. struct cvmx_pko_reg_cmd_buf_s cn52xx;
  819. struct cvmx_pko_reg_cmd_buf_s cn52xxp1;
  820. struct cvmx_pko_reg_cmd_buf_s cn56xx;
  821. struct cvmx_pko_reg_cmd_buf_s cn56xxp1;
  822. struct cvmx_pko_reg_cmd_buf_s cn58xx;
  823. struct cvmx_pko_reg_cmd_buf_s cn58xxp1;
  824. };
  825. union cvmx_pko_reg_crc_ctlx {
  826. uint64_t u64;
  827. struct cvmx_pko_reg_crc_ctlx_s {
  828. uint64_t reserved_2_63:62;
  829. uint64_t invres:1;
  830. uint64_t refin:1;
  831. } s;
  832. struct cvmx_pko_reg_crc_ctlx_s cn38xx;
  833. struct cvmx_pko_reg_crc_ctlx_s cn38xxp2;
  834. struct cvmx_pko_reg_crc_ctlx_s cn58xx;
  835. struct cvmx_pko_reg_crc_ctlx_s cn58xxp1;
  836. };
  837. union cvmx_pko_reg_crc_enable {
  838. uint64_t u64;
  839. struct cvmx_pko_reg_crc_enable_s {
  840. uint64_t reserved_32_63:32;
  841. uint64_t enable:32;
  842. } s;
  843. struct cvmx_pko_reg_crc_enable_s cn38xx;
  844. struct cvmx_pko_reg_crc_enable_s cn38xxp2;
  845. struct cvmx_pko_reg_crc_enable_s cn58xx;
  846. struct cvmx_pko_reg_crc_enable_s cn58xxp1;
  847. };
  848. union cvmx_pko_reg_crc_ivx {
  849. uint64_t u64;
  850. struct cvmx_pko_reg_crc_ivx_s {
  851. uint64_t reserved_32_63:32;
  852. uint64_t iv:32;
  853. } s;
  854. struct cvmx_pko_reg_crc_ivx_s cn38xx;
  855. struct cvmx_pko_reg_crc_ivx_s cn38xxp2;
  856. struct cvmx_pko_reg_crc_ivx_s cn58xx;
  857. struct cvmx_pko_reg_crc_ivx_s cn58xxp1;
  858. };
  859. union cvmx_pko_reg_debug0 {
  860. uint64_t u64;
  861. struct cvmx_pko_reg_debug0_s {
  862. uint64_t asserts:64;
  863. } s;
  864. struct cvmx_pko_reg_debug0_cn30xx {
  865. uint64_t reserved_17_63:47;
  866. uint64_t asserts:17;
  867. } cn30xx;
  868. struct cvmx_pko_reg_debug0_cn30xx cn31xx;
  869. struct cvmx_pko_reg_debug0_cn30xx cn38xx;
  870. struct cvmx_pko_reg_debug0_cn30xx cn38xxp2;
  871. struct cvmx_pko_reg_debug0_s cn50xx;
  872. struct cvmx_pko_reg_debug0_s cn52xx;
  873. struct cvmx_pko_reg_debug0_s cn52xxp1;
  874. struct cvmx_pko_reg_debug0_s cn56xx;
  875. struct cvmx_pko_reg_debug0_s cn56xxp1;
  876. struct cvmx_pko_reg_debug0_s cn58xx;
  877. struct cvmx_pko_reg_debug0_s cn58xxp1;
  878. };
  879. union cvmx_pko_reg_debug1 {
  880. uint64_t u64;
  881. struct cvmx_pko_reg_debug1_s {
  882. uint64_t asserts:64;
  883. } s;
  884. struct cvmx_pko_reg_debug1_s cn50xx;
  885. struct cvmx_pko_reg_debug1_s cn52xx;
  886. struct cvmx_pko_reg_debug1_s cn52xxp1;
  887. struct cvmx_pko_reg_debug1_s cn56xx;
  888. struct cvmx_pko_reg_debug1_s cn56xxp1;
  889. struct cvmx_pko_reg_debug1_s cn58xx;
  890. struct cvmx_pko_reg_debug1_s cn58xxp1;
  891. };
  892. union cvmx_pko_reg_debug2 {
  893. uint64_t u64;
  894. struct cvmx_pko_reg_debug2_s {
  895. uint64_t asserts:64;
  896. } s;
  897. struct cvmx_pko_reg_debug2_s cn50xx;
  898. struct cvmx_pko_reg_debug2_s cn52xx;
  899. struct cvmx_pko_reg_debug2_s cn52xxp1;
  900. struct cvmx_pko_reg_debug2_s cn56xx;
  901. struct cvmx_pko_reg_debug2_s cn56xxp1;
  902. struct cvmx_pko_reg_debug2_s cn58xx;
  903. struct cvmx_pko_reg_debug2_s cn58xxp1;
  904. };
  905. union cvmx_pko_reg_debug3 {
  906. uint64_t u64;
  907. struct cvmx_pko_reg_debug3_s {
  908. uint64_t asserts:64;
  909. } s;
  910. struct cvmx_pko_reg_debug3_s cn50xx;
  911. struct cvmx_pko_reg_debug3_s cn52xx;
  912. struct cvmx_pko_reg_debug3_s cn52xxp1;
  913. struct cvmx_pko_reg_debug3_s cn56xx;
  914. struct cvmx_pko_reg_debug3_s cn56xxp1;
  915. struct cvmx_pko_reg_debug3_s cn58xx;
  916. struct cvmx_pko_reg_debug3_s cn58xxp1;
  917. };
  918. union cvmx_pko_reg_engine_inflight {
  919. uint64_t u64;
  920. struct cvmx_pko_reg_engine_inflight_s {
  921. uint64_t reserved_40_63:24;
  922. uint64_t engine9:4;
  923. uint64_t engine8:4;
  924. uint64_t engine7:4;
  925. uint64_t engine6:4;
  926. uint64_t engine5:4;
  927. uint64_t engine4:4;
  928. uint64_t engine3:4;
  929. uint64_t engine2:4;
  930. uint64_t engine1:4;
  931. uint64_t engine0:4;
  932. } s;
  933. struct cvmx_pko_reg_engine_inflight_s cn52xx;
  934. struct cvmx_pko_reg_engine_inflight_s cn52xxp1;
  935. struct cvmx_pko_reg_engine_inflight_s cn56xx;
  936. struct cvmx_pko_reg_engine_inflight_s cn56xxp1;
  937. };
  938. union cvmx_pko_reg_engine_thresh {
  939. uint64_t u64;
  940. struct cvmx_pko_reg_engine_thresh_s {
  941. uint64_t reserved_10_63:54;
  942. uint64_t mask:10;
  943. } s;
  944. struct cvmx_pko_reg_engine_thresh_s cn52xx;
  945. struct cvmx_pko_reg_engine_thresh_s cn52xxp1;
  946. struct cvmx_pko_reg_engine_thresh_s cn56xx;
  947. struct cvmx_pko_reg_engine_thresh_s cn56xxp1;
  948. };
  949. union cvmx_pko_reg_error {
  950. uint64_t u64;
  951. struct cvmx_pko_reg_error_s {
  952. uint64_t reserved_3_63:61;
  953. uint64_t currzero:1;
  954. uint64_t doorbell:1;
  955. uint64_t parity:1;
  956. } s;
  957. struct cvmx_pko_reg_error_cn30xx {
  958. uint64_t reserved_2_63:62;
  959. uint64_t doorbell:1;
  960. uint64_t parity:1;
  961. } cn30xx;
  962. struct cvmx_pko_reg_error_cn30xx cn31xx;
  963. struct cvmx_pko_reg_error_cn30xx cn38xx;
  964. struct cvmx_pko_reg_error_cn30xx cn38xxp2;
  965. struct cvmx_pko_reg_error_s cn50xx;
  966. struct cvmx_pko_reg_error_s cn52xx;
  967. struct cvmx_pko_reg_error_s cn52xxp1;
  968. struct cvmx_pko_reg_error_s cn56xx;
  969. struct cvmx_pko_reg_error_s cn56xxp1;
  970. struct cvmx_pko_reg_error_s cn58xx;
  971. struct cvmx_pko_reg_error_s cn58xxp1;
  972. };
  973. union cvmx_pko_reg_flags {
  974. uint64_t u64;
  975. struct cvmx_pko_reg_flags_s {
  976. uint64_t reserved_4_63:60;
  977. uint64_t reset:1;
  978. uint64_t store_be:1;
  979. uint64_t ena_dwb:1;
  980. uint64_t ena_pko:1;
  981. } s;
  982. struct cvmx_pko_reg_flags_s cn30xx;
  983. struct cvmx_pko_reg_flags_s cn31xx;
  984. struct cvmx_pko_reg_flags_s cn38xx;
  985. struct cvmx_pko_reg_flags_s cn38xxp2;
  986. struct cvmx_pko_reg_flags_s cn50xx;
  987. struct cvmx_pko_reg_flags_s cn52xx;
  988. struct cvmx_pko_reg_flags_s cn52xxp1;
  989. struct cvmx_pko_reg_flags_s cn56xx;
  990. struct cvmx_pko_reg_flags_s cn56xxp1;
  991. struct cvmx_pko_reg_flags_s cn58xx;
  992. struct cvmx_pko_reg_flags_s cn58xxp1;
  993. };
  994. union cvmx_pko_reg_gmx_port_mode {
  995. uint64_t u64;
  996. struct cvmx_pko_reg_gmx_port_mode_s {
  997. uint64_t reserved_6_63:58;
  998. uint64_t mode1:3;
  999. uint64_t mode0:3;
  1000. } s;
  1001. struct cvmx_pko_reg_gmx_port_mode_s cn30xx;
  1002. struct cvmx_pko_reg_gmx_port_mode_s cn31xx;
  1003. struct cvmx_pko_reg_gmx_port_mode_s cn38xx;
  1004. struct cvmx_pko_reg_gmx_port_mode_s cn38xxp2;
  1005. struct cvmx_pko_reg_gmx_port_mode_s cn50xx;
  1006. struct cvmx_pko_reg_gmx_port_mode_s cn52xx;
  1007. struct cvmx_pko_reg_gmx_port_mode_s cn52xxp1;
  1008. struct cvmx_pko_reg_gmx_port_mode_s cn56xx;
  1009. struct cvmx_pko_reg_gmx_port_mode_s cn56xxp1;
  1010. struct cvmx_pko_reg_gmx_port_mode_s cn58xx;
  1011. struct cvmx_pko_reg_gmx_port_mode_s cn58xxp1;
  1012. };
  1013. union cvmx_pko_reg_int_mask {
  1014. uint64_t u64;
  1015. struct cvmx_pko_reg_int_mask_s {
  1016. uint64_t reserved_3_63:61;
  1017. uint64_t currzero:1;
  1018. uint64_t doorbell:1;
  1019. uint64_t parity:1;
  1020. } s;
  1021. struct cvmx_pko_reg_int_mask_cn30xx {
  1022. uint64_t reserved_2_63:62;
  1023. uint64_t doorbell:1;
  1024. uint64_t parity:1;
  1025. } cn30xx;
  1026. struct cvmx_pko_reg_int_mask_cn30xx cn31xx;
  1027. struct cvmx_pko_reg_int_mask_cn30xx cn38xx;
  1028. struct cvmx_pko_reg_int_mask_cn30xx cn38xxp2;
  1029. struct cvmx_pko_reg_int_mask_s cn50xx;
  1030. struct cvmx_pko_reg_int_mask_s cn52xx;
  1031. struct cvmx_pko_reg_int_mask_s cn52xxp1;
  1032. struct cvmx_pko_reg_int_mask_s cn56xx;
  1033. struct cvmx_pko_reg_int_mask_s cn56xxp1;
  1034. struct cvmx_pko_reg_int_mask_s cn58xx;
  1035. struct cvmx_pko_reg_int_mask_s cn58xxp1;
  1036. };
  1037. union cvmx_pko_reg_queue_mode {
  1038. uint64_t u64;
  1039. struct cvmx_pko_reg_queue_mode_s {
  1040. uint64_t reserved_2_63:62;
  1041. uint64_t mode:2;
  1042. } s;
  1043. struct cvmx_pko_reg_queue_mode_s cn30xx;
  1044. struct cvmx_pko_reg_queue_mode_s cn31xx;
  1045. struct cvmx_pko_reg_queue_mode_s cn38xx;
  1046. struct cvmx_pko_reg_queue_mode_s cn38xxp2;
  1047. struct cvmx_pko_reg_queue_mode_s cn50xx;
  1048. struct cvmx_pko_reg_queue_mode_s cn52xx;
  1049. struct cvmx_pko_reg_queue_mode_s cn52xxp1;
  1050. struct cvmx_pko_reg_queue_mode_s cn56xx;
  1051. struct cvmx_pko_reg_queue_mode_s cn56xxp1;
  1052. struct cvmx_pko_reg_queue_mode_s cn58xx;
  1053. struct cvmx_pko_reg_queue_mode_s cn58xxp1;
  1054. };
  1055. union cvmx_pko_reg_queue_ptrs1 {
  1056. uint64_t u64;
  1057. struct cvmx_pko_reg_queue_ptrs1_s {
  1058. uint64_t reserved_2_63:62;
  1059. uint64_t idx3:1;
  1060. uint64_t qid7:1;
  1061. } s;
  1062. struct cvmx_pko_reg_queue_ptrs1_s cn50xx;
  1063. struct cvmx_pko_reg_queue_ptrs1_s cn52xx;
  1064. struct cvmx_pko_reg_queue_ptrs1_s cn52xxp1;
  1065. struct cvmx_pko_reg_queue_ptrs1_s cn56xx;
  1066. struct cvmx_pko_reg_queue_ptrs1_s cn56xxp1;
  1067. struct cvmx_pko_reg_queue_ptrs1_s cn58xx;
  1068. struct cvmx_pko_reg_queue_ptrs1_s cn58xxp1;
  1069. };
  1070. union cvmx_pko_reg_read_idx {
  1071. uint64_t u64;
  1072. struct cvmx_pko_reg_read_idx_s {
  1073. uint64_t reserved_16_63:48;
  1074. uint64_t inc:8;
  1075. uint64_t index:8;
  1076. } s;
  1077. struct cvmx_pko_reg_read_idx_s cn30xx;
  1078. struct cvmx_pko_reg_read_idx_s cn31xx;
  1079. struct cvmx_pko_reg_read_idx_s cn38xx;
  1080. struct cvmx_pko_reg_read_idx_s cn38xxp2;
  1081. struct cvmx_pko_reg_read_idx_s cn50xx;
  1082. struct cvmx_pko_reg_read_idx_s cn52xx;
  1083. struct cvmx_pko_reg_read_idx_s cn52xxp1;
  1084. struct cvmx_pko_reg_read_idx_s cn56xx;
  1085. struct cvmx_pko_reg_read_idx_s cn56xxp1;
  1086. struct cvmx_pko_reg_read_idx_s cn58xx;
  1087. struct cvmx_pko_reg_read_idx_s cn58xxp1;
  1088. };
  1089. #endif