cvmx-mixx-defs.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: support@caviumnetworks.com
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2012 Cavium Networks
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_MIXX_DEFS_H__
  28. #define __CVMX_MIXX_DEFS_H__
  29. #define CVMX_MIXX_BIST(offset) (CVMX_ADD_IO_SEG(0x0001070000100078ull) + ((offset) & 1) * 2048)
  30. #define CVMX_MIXX_CTL(offset) (CVMX_ADD_IO_SEG(0x0001070000100020ull) + ((offset) & 1) * 2048)
  31. #define CVMX_MIXX_INTENA(offset) (CVMX_ADD_IO_SEG(0x0001070000100050ull) + ((offset) & 1) * 2048)
  32. #define CVMX_MIXX_IRCNT(offset) (CVMX_ADD_IO_SEG(0x0001070000100030ull) + ((offset) & 1) * 2048)
  33. #define CVMX_MIXX_IRHWM(offset) (CVMX_ADD_IO_SEG(0x0001070000100028ull) + ((offset) & 1) * 2048)
  34. #define CVMX_MIXX_IRING1(offset) (CVMX_ADD_IO_SEG(0x0001070000100010ull) + ((offset) & 1) * 2048)
  35. #define CVMX_MIXX_IRING2(offset) (CVMX_ADD_IO_SEG(0x0001070000100018ull) + ((offset) & 1) * 2048)
  36. #define CVMX_MIXX_ISR(offset) (CVMX_ADD_IO_SEG(0x0001070000100048ull) + ((offset) & 1) * 2048)
  37. #define CVMX_MIXX_ORCNT(offset) (CVMX_ADD_IO_SEG(0x0001070000100040ull) + ((offset) & 1) * 2048)
  38. #define CVMX_MIXX_ORHWM(offset) (CVMX_ADD_IO_SEG(0x0001070000100038ull) + ((offset) & 1) * 2048)
  39. #define CVMX_MIXX_ORING1(offset) (CVMX_ADD_IO_SEG(0x0001070000100000ull) + ((offset) & 1) * 2048)
  40. #define CVMX_MIXX_ORING2(offset) (CVMX_ADD_IO_SEG(0x0001070000100008ull) + ((offset) & 1) * 2048)
  41. #define CVMX_MIXX_REMCNT(offset) (CVMX_ADD_IO_SEG(0x0001070000100058ull) + ((offset) & 1) * 2048)
  42. #define CVMX_MIXX_TSCTL(offset) (CVMX_ADD_IO_SEG(0x0001070000100068ull) + ((offset) & 1) * 2048)
  43. #define CVMX_MIXX_TSTAMP(offset) (CVMX_ADD_IO_SEG(0x0001070000100060ull) + ((offset) & 1) * 2048)
  44. union cvmx_mixx_bist {
  45. uint64_t u64;
  46. struct cvmx_mixx_bist_s {
  47. #ifdef __BIG_ENDIAN_BITFIELD
  48. uint64_t reserved_6_63:58;
  49. uint64_t opfdat:1;
  50. uint64_t mrgdat:1;
  51. uint64_t mrqdat:1;
  52. uint64_t ipfdat:1;
  53. uint64_t irfdat:1;
  54. uint64_t orfdat:1;
  55. #else
  56. uint64_t orfdat:1;
  57. uint64_t irfdat:1;
  58. uint64_t ipfdat:1;
  59. uint64_t mrqdat:1;
  60. uint64_t mrgdat:1;
  61. uint64_t opfdat:1;
  62. uint64_t reserved_6_63:58;
  63. #endif
  64. } s;
  65. struct cvmx_mixx_bist_cn52xx {
  66. #ifdef __BIG_ENDIAN_BITFIELD
  67. uint64_t reserved_4_63:60;
  68. uint64_t mrqdat:1;
  69. uint64_t ipfdat:1;
  70. uint64_t irfdat:1;
  71. uint64_t orfdat:1;
  72. #else
  73. uint64_t orfdat:1;
  74. uint64_t irfdat:1;
  75. uint64_t ipfdat:1;
  76. uint64_t mrqdat:1;
  77. uint64_t reserved_4_63:60;
  78. #endif
  79. } cn52xx;
  80. struct cvmx_mixx_bist_cn52xx cn52xxp1;
  81. struct cvmx_mixx_bist_cn52xx cn56xx;
  82. struct cvmx_mixx_bist_cn52xx cn56xxp1;
  83. struct cvmx_mixx_bist_s cn61xx;
  84. struct cvmx_mixx_bist_s cn63xx;
  85. struct cvmx_mixx_bist_s cn63xxp1;
  86. struct cvmx_mixx_bist_s cn66xx;
  87. struct cvmx_mixx_bist_s cn68xx;
  88. struct cvmx_mixx_bist_s cn68xxp1;
  89. };
  90. union cvmx_mixx_ctl {
  91. uint64_t u64;
  92. struct cvmx_mixx_ctl_s {
  93. #ifdef __BIG_ENDIAN_BITFIELD
  94. uint64_t reserved_12_63:52;
  95. uint64_t ts_thresh:4;
  96. uint64_t crc_strip:1;
  97. uint64_t busy:1;
  98. uint64_t en:1;
  99. uint64_t reset:1;
  100. uint64_t lendian:1;
  101. uint64_t nbtarb:1;
  102. uint64_t mrq_hwm:2;
  103. #else
  104. uint64_t mrq_hwm:2;
  105. uint64_t nbtarb:1;
  106. uint64_t lendian:1;
  107. uint64_t reset:1;
  108. uint64_t en:1;
  109. uint64_t busy:1;
  110. uint64_t crc_strip:1;
  111. uint64_t ts_thresh:4;
  112. uint64_t reserved_12_63:52;
  113. #endif
  114. } s;
  115. struct cvmx_mixx_ctl_cn52xx {
  116. #ifdef __BIG_ENDIAN_BITFIELD
  117. uint64_t reserved_8_63:56;
  118. uint64_t crc_strip:1;
  119. uint64_t busy:1;
  120. uint64_t en:1;
  121. uint64_t reset:1;
  122. uint64_t lendian:1;
  123. uint64_t nbtarb:1;
  124. uint64_t mrq_hwm:2;
  125. #else
  126. uint64_t mrq_hwm:2;
  127. uint64_t nbtarb:1;
  128. uint64_t lendian:1;
  129. uint64_t reset:1;
  130. uint64_t en:1;
  131. uint64_t busy:1;
  132. uint64_t crc_strip:1;
  133. uint64_t reserved_8_63:56;
  134. #endif
  135. } cn52xx;
  136. struct cvmx_mixx_ctl_cn52xx cn52xxp1;
  137. struct cvmx_mixx_ctl_cn52xx cn56xx;
  138. struct cvmx_mixx_ctl_cn52xx cn56xxp1;
  139. struct cvmx_mixx_ctl_s cn61xx;
  140. struct cvmx_mixx_ctl_s cn63xx;
  141. struct cvmx_mixx_ctl_s cn63xxp1;
  142. struct cvmx_mixx_ctl_s cn66xx;
  143. struct cvmx_mixx_ctl_s cn68xx;
  144. struct cvmx_mixx_ctl_s cn68xxp1;
  145. };
  146. union cvmx_mixx_intena {
  147. uint64_t u64;
  148. struct cvmx_mixx_intena_s {
  149. #ifdef __BIG_ENDIAN_BITFIELD
  150. uint64_t reserved_8_63:56;
  151. uint64_t tsena:1;
  152. uint64_t orunena:1;
  153. uint64_t irunena:1;
  154. uint64_t data_drpena:1;
  155. uint64_t ithena:1;
  156. uint64_t othena:1;
  157. uint64_t ivfena:1;
  158. uint64_t ovfena:1;
  159. #else
  160. uint64_t ovfena:1;
  161. uint64_t ivfena:1;
  162. uint64_t othena:1;
  163. uint64_t ithena:1;
  164. uint64_t data_drpena:1;
  165. uint64_t irunena:1;
  166. uint64_t orunena:1;
  167. uint64_t tsena:1;
  168. uint64_t reserved_8_63:56;
  169. #endif
  170. } s;
  171. struct cvmx_mixx_intena_cn52xx {
  172. #ifdef __BIG_ENDIAN_BITFIELD
  173. uint64_t reserved_7_63:57;
  174. uint64_t orunena:1;
  175. uint64_t irunena:1;
  176. uint64_t data_drpena:1;
  177. uint64_t ithena:1;
  178. uint64_t othena:1;
  179. uint64_t ivfena:1;
  180. uint64_t ovfena:1;
  181. #else
  182. uint64_t ovfena:1;
  183. uint64_t ivfena:1;
  184. uint64_t othena:1;
  185. uint64_t ithena:1;
  186. uint64_t data_drpena:1;
  187. uint64_t irunena:1;
  188. uint64_t orunena:1;
  189. uint64_t reserved_7_63:57;
  190. #endif
  191. } cn52xx;
  192. struct cvmx_mixx_intena_cn52xx cn52xxp1;
  193. struct cvmx_mixx_intena_cn52xx cn56xx;
  194. struct cvmx_mixx_intena_cn52xx cn56xxp1;
  195. struct cvmx_mixx_intena_s cn61xx;
  196. struct cvmx_mixx_intena_s cn63xx;
  197. struct cvmx_mixx_intena_s cn63xxp1;
  198. struct cvmx_mixx_intena_s cn66xx;
  199. struct cvmx_mixx_intena_s cn68xx;
  200. struct cvmx_mixx_intena_s cn68xxp1;
  201. };
  202. union cvmx_mixx_ircnt {
  203. uint64_t u64;
  204. struct cvmx_mixx_ircnt_s {
  205. #ifdef __BIG_ENDIAN_BITFIELD
  206. uint64_t reserved_20_63:44;
  207. uint64_t ircnt:20;
  208. #else
  209. uint64_t ircnt:20;
  210. uint64_t reserved_20_63:44;
  211. #endif
  212. } s;
  213. struct cvmx_mixx_ircnt_s cn52xx;
  214. struct cvmx_mixx_ircnt_s cn52xxp1;
  215. struct cvmx_mixx_ircnt_s cn56xx;
  216. struct cvmx_mixx_ircnt_s cn56xxp1;
  217. struct cvmx_mixx_ircnt_s cn61xx;
  218. struct cvmx_mixx_ircnt_s cn63xx;
  219. struct cvmx_mixx_ircnt_s cn63xxp1;
  220. struct cvmx_mixx_ircnt_s cn66xx;
  221. struct cvmx_mixx_ircnt_s cn68xx;
  222. struct cvmx_mixx_ircnt_s cn68xxp1;
  223. };
  224. union cvmx_mixx_irhwm {
  225. uint64_t u64;
  226. struct cvmx_mixx_irhwm_s {
  227. #ifdef __BIG_ENDIAN_BITFIELD
  228. uint64_t reserved_40_63:24;
  229. uint64_t ibplwm:20;
  230. uint64_t irhwm:20;
  231. #else
  232. uint64_t irhwm:20;
  233. uint64_t ibplwm:20;
  234. uint64_t reserved_40_63:24;
  235. #endif
  236. } s;
  237. struct cvmx_mixx_irhwm_s cn52xx;
  238. struct cvmx_mixx_irhwm_s cn52xxp1;
  239. struct cvmx_mixx_irhwm_s cn56xx;
  240. struct cvmx_mixx_irhwm_s cn56xxp1;
  241. struct cvmx_mixx_irhwm_s cn61xx;
  242. struct cvmx_mixx_irhwm_s cn63xx;
  243. struct cvmx_mixx_irhwm_s cn63xxp1;
  244. struct cvmx_mixx_irhwm_s cn66xx;
  245. struct cvmx_mixx_irhwm_s cn68xx;
  246. struct cvmx_mixx_irhwm_s cn68xxp1;
  247. };
  248. union cvmx_mixx_iring1 {
  249. uint64_t u64;
  250. struct cvmx_mixx_iring1_s {
  251. #ifdef __BIG_ENDIAN_BITFIELD
  252. uint64_t reserved_60_63:4;
  253. uint64_t isize:20;
  254. uint64_t ibase:37;
  255. uint64_t reserved_0_2:3;
  256. #else
  257. uint64_t reserved_0_2:3;
  258. uint64_t ibase:37;
  259. uint64_t isize:20;
  260. uint64_t reserved_60_63:4;
  261. #endif
  262. } s;
  263. struct cvmx_mixx_iring1_cn52xx {
  264. #ifdef __BIG_ENDIAN_BITFIELD
  265. uint64_t reserved_60_63:4;
  266. uint64_t isize:20;
  267. uint64_t reserved_36_39:4;
  268. uint64_t ibase:33;
  269. uint64_t reserved_0_2:3;
  270. #else
  271. uint64_t reserved_0_2:3;
  272. uint64_t ibase:33;
  273. uint64_t reserved_36_39:4;
  274. uint64_t isize:20;
  275. uint64_t reserved_60_63:4;
  276. #endif
  277. } cn52xx;
  278. struct cvmx_mixx_iring1_cn52xx cn52xxp1;
  279. struct cvmx_mixx_iring1_cn52xx cn56xx;
  280. struct cvmx_mixx_iring1_cn52xx cn56xxp1;
  281. struct cvmx_mixx_iring1_s cn61xx;
  282. struct cvmx_mixx_iring1_s cn63xx;
  283. struct cvmx_mixx_iring1_s cn63xxp1;
  284. struct cvmx_mixx_iring1_s cn66xx;
  285. struct cvmx_mixx_iring1_s cn68xx;
  286. struct cvmx_mixx_iring1_s cn68xxp1;
  287. };
  288. union cvmx_mixx_iring2 {
  289. uint64_t u64;
  290. struct cvmx_mixx_iring2_s {
  291. #ifdef __BIG_ENDIAN_BITFIELD
  292. uint64_t reserved_52_63:12;
  293. uint64_t itlptr:20;
  294. uint64_t reserved_20_31:12;
  295. uint64_t idbell:20;
  296. #else
  297. uint64_t idbell:20;
  298. uint64_t reserved_20_31:12;
  299. uint64_t itlptr:20;
  300. uint64_t reserved_52_63:12;
  301. #endif
  302. } s;
  303. struct cvmx_mixx_iring2_s cn52xx;
  304. struct cvmx_mixx_iring2_s cn52xxp1;
  305. struct cvmx_mixx_iring2_s cn56xx;
  306. struct cvmx_mixx_iring2_s cn56xxp1;
  307. struct cvmx_mixx_iring2_s cn61xx;
  308. struct cvmx_mixx_iring2_s cn63xx;
  309. struct cvmx_mixx_iring2_s cn63xxp1;
  310. struct cvmx_mixx_iring2_s cn66xx;
  311. struct cvmx_mixx_iring2_s cn68xx;
  312. struct cvmx_mixx_iring2_s cn68xxp1;
  313. };
  314. union cvmx_mixx_isr {
  315. uint64_t u64;
  316. struct cvmx_mixx_isr_s {
  317. #ifdef __BIG_ENDIAN_BITFIELD
  318. uint64_t reserved_8_63:56;
  319. uint64_t ts:1;
  320. uint64_t orun:1;
  321. uint64_t irun:1;
  322. uint64_t data_drp:1;
  323. uint64_t irthresh:1;
  324. uint64_t orthresh:1;
  325. uint64_t idblovf:1;
  326. uint64_t odblovf:1;
  327. #else
  328. uint64_t odblovf:1;
  329. uint64_t idblovf:1;
  330. uint64_t orthresh:1;
  331. uint64_t irthresh:1;
  332. uint64_t data_drp:1;
  333. uint64_t irun:1;
  334. uint64_t orun:1;
  335. uint64_t ts:1;
  336. uint64_t reserved_8_63:56;
  337. #endif
  338. } s;
  339. struct cvmx_mixx_isr_cn52xx {
  340. #ifdef __BIG_ENDIAN_BITFIELD
  341. uint64_t reserved_7_63:57;
  342. uint64_t orun:1;
  343. uint64_t irun:1;
  344. uint64_t data_drp:1;
  345. uint64_t irthresh:1;
  346. uint64_t orthresh:1;
  347. uint64_t idblovf:1;
  348. uint64_t odblovf:1;
  349. #else
  350. uint64_t odblovf:1;
  351. uint64_t idblovf:1;
  352. uint64_t orthresh:1;
  353. uint64_t irthresh:1;
  354. uint64_t data_drp:1;
  355. uint64_t irun:1;
  356. uint64_t orun:1;
  357. uint64_t reserved_7_63:57;
  358. #endif
  359. } cn52xx;
  360. struct cvmx_mixx_isr_cn52xx cn52xxp1;
  361. struct cvmx_mixx_isr_cn52xx cn56xx;
  362. struct cvmx_mixx_isr_cn52xx cn56xxp1;
  363. struct cvmx_mixx_isr_s cn61xx;
  364. struct cvmx_mixx_isr_s cn63xx;
  365. struct cvmx_mixx_isr_s cn63xxp1;
  366. struct cvmx_mixx_isr_s cn66xx;
  367. struct cvmx_mixx_isr_s cn68xx;
  368. struct cvmx_mixx_isr_s cn68xxp1;
  369. };
  370. union cvmx_mixx_orcnt {
  371. uint64_t u64;
  372. struct cvmx_mixx_orcnt_s {
  373. #ifdef __BIG_ENDIAN_BITFIELD
  374. uint64_t reserved_20_63:44;
  375. uint64_t orcnt:20;
  376. #else
  377. uint64_t orcnt:20;
  378. uint64_t reserved_20_63:44;
  379. #endif
  380. } s;
  381. struct cvmx_mixx_orcnt_s cn52xx;
  382. struct cvmx_mixx_orcnt_s cn52xxp1;
  383. struct cvmx_mixx_orcnt_s cn56xx;
  384. struct cvmx_mixx_orcnt_s cn56xxp1;
  385. struct cvmx_mixx_orcnt_s cn61xx;
  386. struct cvmx_mixx_orcnt_s cn63xx;
  387. struct cvmx_mixx_orcnt_s cn63xxp1;
  388. struct cvmx_mixx_orcnt_s cn66xx;
  389. struct cvmx_mixx_orcnt_s cn68xx;
  390. struct cvmx_mixx_orcnt_s cn68xxp1;
  391. };
  392. union cvmx_mixx_orhwm {
  393. uint64_t u64;
  394. struct cvmx_mixx_orhwm_s {
  395. #ifdef __BIG_ENDIAN_BITFIELD
  396. uint64_t reserved_20_63:44;
  397. uint64_t orhwm:20;
  398. #else
  399. uint64_t orhwm:20;
  400. uint64_t reserved_20_63:44;
  401. #endif
  402. } s;
  403. struct cvmx_mixx_orhwm_s cn52xx;
  404. struct cvmx_mixx_orhwm_s cn52xxp1;
  405. struct cvmx_mixx_orhwm_s cn56xx;
  406. struct cvmx_mixx_orhwm_s cn56xxp1;
  407. struct cvmx_mixx_orhwm_s cn61xx;
  408. struct cvmx_mixx_orhwm_s cn63xx;
  409. struct cvmx_mixx_orhwm_s cn63xxp1;
  410. struct cvmx_mixx_orhwm_s cn66xx;
  411. struct cvmx_mixx_orhwm_s cn68xx;
  412. struct cvmx_mixx_orhwm_s cn68xxp1;
  413. };
  414. union cvmx_mixx_oring1 {
  415. uint64_t u64;
  416. struct cvmx_mixx_oring1_s {
  417. #ifdef __BIG_ENDIAN_BITFIELD
  418. uint64_t reserved_60_63:4;
  419. uint64_t osize:20;
  420. uint64_t obase:37;
  421. uint64_t reserved_0_2:3;
  422. #else
  423. uint64_t reserved_0_2:3;
  424. uint64_t obase:37;
  425. uint64_t osize:20;
  426. uint64_t reserved_60_63:4;
  427. #endif
  428. } s;
  429. struct cvmx_mixx_oring1_cn52xx {
  430. #ifdef __BIG_ENDIAN_BITFIELD
  431. uint64_t reserved_60_63:4;
  432. uint64_t osize:20;
  433. uint64_t reserved_36_39:4;
  434. uint64_t obase:33;
  435. uint64_t reserved_0_2:3;
  436. #else
  437. uint64_t reserved_0_2:3;
  438. uint64_t obase:33;
  439. uint64_t reserved_36_39:4;
  440. uint64_t osize:20;
  441. uint64_t reserved_60_63:4;
  442. #endif
  443. } cn52xx;
  444. struct cvmx_mixx_oring1_cn52xx cn52xxp1;
  445. struct cvmx_mixx_oring1_cn52xx cn56xx;
  446. struct cvmx_mixx_oring1_cn52xx cn56xxp1;
  447. struct cvmx_mixx_oring1_s cn61xx;
  448. struct cvmx_mixx_oring1_s cn63xx;
  449. struct cvmx_mixx_oring1_s cn63xxp1;
  450. struct cvmx_mixx_oring1_s cn66xx;
  451. struct cvmx_mixx_oring1_s cn68xx;
  452. struct cvmx_mixx_oring1_s cn68xxp1;
  453. };
  454. union cvmx_mixx_oring2 {
  455. uint64_t u64;
  456. struct cvmx_mixx_oring2_s {
  457. #ifdef __BIG_ENDIAN_BITFIELD
  458. uint64_t reserved_52_63:12;
  459. uint64_t otlptr:20;
  460. uint64_t reserved_20_31:12;
  461. uint64_t odbell:20;
  462. #else
  463. uint64_t odbell:20;
  464. uint64_t reserved_20_31:12;
  465. uint64_t otlptr:20;
  466. uint64_t reserved_52_63:12;
  467. #endif
  468. } s;
  469. struct cvmx_mixx_oring2_s cn52xx;
  470. struct cvmx_mixx_oring2_s cn52xxp1;
  471. struct cvmx_mixx_oring2_s cn56xx;
  472. struct cvmx_mixx_oring2_s cn56xxp1;
  473. struct cvmx_mixx_oring2_s cn61xx;
  474. struct cvmx_mixx_oring2_s cn63xx;
  475. struct cvmx_mixx_oring2_s cn63xxp1;
  476. struct cvmx_mixx_oring2_s cn66xx;
  477. struct cvmx_mixx_oring2_s cn68xx;
  478. struct cvmx_mixx_oring2_s cn68xxp1;
  479. };
  480. union cvmx_mixx_remcnt {
  481. uint64_t u64;
  482. struct cvmx_mixx_remcnt_s {
  483. #ifdef __BIG_ENDIAN_BITFIELD
  484. uint64_t reserved_52_63:12;
  485. uint64_t iremcnt:20;
  486. uint64_t reserved_20_31:12;
  487. uint64_t oremcnt:20;
  488. #else
  489. uint64_t oremcnt:20;
  490. uint64_t reserved_20_31:12;
  491. uint64_t iremcnt:20;
  492. uint64_t reserved_52_63:12;
  493. #endif
  494. } s;
  495. struct cvmx_mixx_remcnt_s cn52xx;
  496. struct cvmx_mixx_remcnt_s cn52xxp1;
  497. struct cvmx_mixx_remcnt_s cn56xx;
  498. struct cvmx_mixx_remcnt_s cn56xxp1;
  499. struct cvmx_mixx_remcnt_s cn61xx;
  500. struct cvmx_mixx_remcnt_s cn63xx;
  501. struct cvmx_mixx_remcnt_s cn63xxp1;
  502. struct cvmx_mixx_remcnt_s cn66xx;
  503. struct cvmx_mixx_remcnt_s cn68xx;
  504. struct cvmx_mixx_remcnt_s cn68xxp1;
  505. };
  506. union cvmx_mixx_tsctl {
  507. uint64_t u64;
  508. struct cvmx_mixx_tsctl_s {
  509. #ifdef __BIG_ENDIAN_BITFIELD
  510. uint64_t reserved_21_63:43;
  511. uint64_t tsavl:5;
  512. uint64_t reserved_13_15:3;
  513. uint64_t tstot:5;
  514. uint64_t reserved_5_7:3;
  515. uint64_t tscnt:5;
  516. #else
  517. uint64_t tscnt:5;
  518. uint64_t reserved_5_7:3;
  519. uint64_t tstot:5;
  520. uint64_t reserved_13_15:3;
  521. uint64_t tsavl:5;
  522. uint64_t reserved_21_63:43;
  523. #endif
  524. } s;
  525. struct cvmx_mixx_tsctl_s cn61xx;
  526. struct cvmx_mixx_tsctl_s cn63xx;
  527. struct cvmx_mixx_tsctl_s cn63xxp1;
  528. struct cvmx_mixx_tsctl_s cn66xx;
  529. struct cvmx_mixx_tsctl_s cn68xx;
  530. struct cvmx_mixx_tsctl_s cn68xxp1;
  531. };
  532. union cvmx_mixx_tstamp {
  533. uint64_t u64;
  534. struct cvmx_mixx_tstamp_s {
  535. #ifdef __BIG_ENDIAN_BITFIELD
  536. uint64_t tstamp:64;
  537. #else
  538. uint64_t tstamp:64;
  539. #endif
  540. } s;
  541. struct cvmx_mixx_tstamp_s cn61xx;
  542. struct cvmx_mixx_tstamp_s cn63xx;
  543. struct cvmx_mixx_tstamp_s cn63xxp1;
  544. struct cvmx_mixx_tstamp_s cn66xx;
  545. struct cvmx_mixx_tstamp_s cn68xx;
  546. struct cvmx_mixx_tstamp_s cn68xxp1;
  547. };
  548. #endif