cvmx-asxx-defs.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  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-2018 Cavium, Inc.
  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_ASXX_DEFS_H__
  28. #define __CVMX_ASXX_DEFS_H__
  29. #define CVMX_ASXX_GMII_RX_CLK_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000180ull))
  30. #define CVMX_ASXX_GMII_RX_DAT_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000188ull))
  31. #define CVMX_ASXX_INT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000018ull) + ((block_id) & 1) * 0x8000000ull)
  32. #define CVMX_ASXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000010ull) + ((block_id) & 1) * 0x8000000ull)
  33. #define CVMX_ASXX_MII_RX_DAT_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000190ull))
  34. #define CVMX_ASXX_PRT_LOOP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000040ull) + ((block_id) & 1) * 0x8000000ull)
  35. #define CVMX_ASXX_RLD_BYPASS(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000248ull) + ((block_id) & 1) * 0x8000000ull)
  36. #define CVMX_ASXX_RLD_BYPASS_SETTING(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000250ull) + ((block_id) & 1) * 0x8000000ull)
  37. #define CVMX_ASXX_RLD_COMP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000220ull) + ((block_id) & 1) * 0x8000000ull)
  38. #define CVMX_ASXX_RLD_DATA_DRV(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000218ull) + ((block_id) & 1) * 0x8000000ull)
  39. #define CVMX_ASXX_RLD_FCRAM_MODE(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000210ull) + ((block_id) & 1) * 0x8000000ull)
  40. #define CVMX_ASXX_RLD_NCTL_STRONG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000230ull) + ((block_id) & 1) * 0x8000000ull)
  41. #define CVMX_ASXX_RLD_NCTL_WEAK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000240ull) + ((block_id) & 1) * 0x8000000ull)
  42. #define CVMX_ASXX_RLD_PCTL_STRONG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000228ull) + ((block_id) & 1) * 0x8000000ull)
  43. #define CVMX_ASXX_RLD_PCTL_WEAK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000238ull) + ((block_id) & 1) * 0x8000000ull)
  44. #define CVMX_ASXX_RLD_SETTING(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000258ull) + ((block_id) & 1) * 0x8000000ull)
  45. #define CVMX_ASXX_RX_CLK_SETX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000020ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
  46. #define CVMX_ASXX_RX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000000ull) + ((block_id) & 1) * 0x8000000ull)
  47. #define CVMX_ASXX_RX_WOL(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000100ull) + ((block_id) & 1) * 0x8000000ull)
  48. #define CVMX_ASXX_RX_WOL_MSK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000108ull) + ((block_id) & 1) * 0x8000000ull)
  49. #define CVMX_ASXX_RX_WOL_POWOK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000118ull) + ((block_id) & 1) * 0x8000000ull)
  50. #define CVMX_ASXX_RX_WOL_SIG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000110ull) + ((block_id) & 1) * 0x8000000ull)
  51. #define CVMX_ASXX_TX_CLK_SETX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000048ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
  52. #define CVMX_ASXX_TX_COMP_BYP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000068ull) + ((block_id) & 1) * 0x8000000ull)
  53. #define CVMX_ASXX_TX_HI_WATERX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000080ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
  54. #define CVMX_ASXX_TX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000008ull) + ((block_id) & 1) * 0x8000000ull)
  55. void __cvmx_interrupt_asxx_enable(int block);
  56. union cvmx_asxx_gmii_rx_clk_set {
  57. uint64_t u64;
  58. struct cvmx_asxx_gmii_rx_clk_set_s {
  59. #ifdef __BIG_ENDIAN_BITFIELD
  60. uint64_t reserved_5_63:59;
  61. uint64_t setting:5;
  62. #else
  63. uint64_t setting:5;
  64. uint64_t reserved_5_63:59;
  65. #endif
  66. } s;
  67. };
  68. union cvmx_asxx_gmii_rx_dat_set {
  69. uint64_t u64;
  70. struct cvmx_asxx_gmii_rx_dat_set_s {
  71. #ifdef __BIG_ENDIAN_BITFIELD
  72. uint64_t reserved_5_63:59;
  73. uint64_t setting:5;
  74. #else
  75. uint64_t setting:5;
  76. uint64_t reserved_5_63:59;
  77. #endif
  78. } s;
  79. };
  80. union cvmx_asxx_int_en {
  81. uint64_t u64;
  82. struct cvmx_asxx_int_en_s {
  83. #ifdef __BIG_ENDIAN_BITFIELD
  84. uint64_t reserved_12_63:52;
  85. uint64_t txpsh:4;
  86. uint64_t txpop:4;
  87. uint64_t ovrflw:4;
  88. #else
  89. uint64_t ovrflw:4;
  90. uint64_t txpop:4;
  91. uint64_t txpsh:4;
  92. uint64_t reserved_12_63:52;
  93. #endif
  94. } s;
  95. struct cvmx_asxx_int_en_cn30xx {
  96. #ifdef __BIG_ENDIAN_BITFIELD
  97. uint64_t reserved_11_63:53;
  98. uint64_t txpsh:3;
  99. uint64_t reserved_7_7:1;
  100. uint64_t txpop:3;
  101. uint64_t reserved_3_3:1;
  102. uint64_t ovrflw:3;
  103. #else
  104. uint64_t ovrflw:3;
  105. uint64_t reserved_3_3:1;
  106. uint64_t txpop:3;
  107. uint64_t reserved_7_7:1;
  108. uint64_t txpsh:3;
  109. uint64_t reserved_11_63:53;
  110. #endif
  111. } cn30xx;
  112. };
  113. union cvmx_asxx_int_reg {
  114. uint64_t u64;
  115. struct cvmx_asxx_int_reg_s {
  116. #ifdef __BIG_ENDIAN_BITFIELD
  117. uint64_t reserved_12_63:52;
  118. uint64_t txpsh:4;
  119. uint64_t txpop:4;
  120. uint64_t ovrflw:4;
  121. #else
  122. uint64_t ovrflw:4;
  123. uint64_t txpop:4;
  124. uint64_t txpsh:4;
  125. uint64_t reserved_12_63:52;
  126. #endif
  127. } s;
  128. struct cvmx_asxx_int_reg_cn30xx {
  129. #ifdef __BIG_ENDIAN_BITFIELD
  130. uint64_t reserved_11_63:53;
  131. uint64_t txpsh:3;
  132. uint64_t reserved_7_7:1;
  133. uint64_t txpop:3;
  134. uint64_t reserved_3_3:1;
  135. uint64_t ovrflw:3;
  136. #else
  137. uint64_t ovrflw:3;
  138. uint64_t reserved_3_3:1;
  139. uint64_t txpop:3;
  140. uint64_t reserved_7_7:1;
  141. uint64_t txpsh:3;
  142. uint64_t reserved_11_63:53;
  143. #endif
  144. } cn30xx;
  145. };
  146. union cvmx_asxx_mii_rx_dat_set {
  147. uint64_t u64;
  148. struct cvmx_asxx_mii_rx_dat_set_s {
  149. #ifdef __BIG_ENDIAN_BITFIELD
  150. uint64_t reserved_5_63:59;
  151. uint64_t setting:5;
  152. #else
  153. uint64_t setting:5;
  154. uint64_t reserved_5_63:59;
  155. #endif
  156. } s;
  157. };
  158. union cvmx_asxx_prt_loop {
  159. uint64_t u64;
  160. struct cvmx_asxx_prt_loop_s {
  161. #ifdef __BIG_ENDIAN_BITFIELD
  162. uint64_t reserved_8_63:56;
  163. uint64_t ext_loop:4;
  164. uint64_t int_loop:4;
  165. #else
  166. uint64_t int_loop:4;
  167. uint64_t ext_loop:4;
  168. uint64_t reserved_8_63:56;
  169. #endif
  170. } s;
  171. struct cvmx_asxx_prt_loop_cn30xx {
  172. #ifdef __BIG_ENDIAN_BITFIELD
  173. uint64_t reserved_7_63:57;
  174. uint64_t ext_loop:3;
  175. uint64_t reserved_3_3:1;
  176. uint64_t int_loop:3;
  177. #else
  178. uint64_t int_loop:3;
  179. uint64_t reserved_3_3:1;
  180. uint64_t ext_loop:3;
  181. uint64_t reserved_7_63:57;
  182. #endif
  183. } cn30xx;
  184. };
  185. union cvmx_asxx_rld_bypass {
  186. uint64_t u64;
  187. struct cvmx_asxx_rld_bypass_s {
  188. #ifdef __BIG_ENDIAN_BITFIELD
  189. uint64_t reserved_1_63:63;
  190. uint64_t bypass:1;
  191. #else
  192. uint64_t bypass:1;
  193. uint64_t reserved_1_63:63;
  194. #endif
  195. } s;
  196. };
  197. union cvmx_asxx_rld_bypass_setting {
  198. uint64_t u64;
  199. struct cvmx_asxx_rld_bypass_setting_s {
  200. #ifdef __BIG_ENDIAN_BITFIELD
  201. uint64_t reserved_5_63:59;
  202. uint64_t setting:5;
  203. #else
  204. uint64_t setting:5;
  205. uint64_t reserved_5_63:59;
  206. #endif
  207. } s;
  208. };
  209. union cvmx_asxx_rld_comp {
  210. uint64_t u64;
  211. struct cvmx_asxx_rld_comp_s {
  212. #ifdef __BIG_ENDIAN_BITFIELD
  213. uint64_t reserved_9_63:55;
  214. uint64_t pctl:5;
  215. uint64_t nctl:4;
  216. #else
  217. uint64_t nctl:4;
  218. uint64_t pctl:5;
  219. uint64_t reserved_9_63:55;
  220. #endif
  221. } s;
  222. struct cvmx_asxx_rld_comp_cn38xx {
  223. #ifdef __BIG_ENDIAN_BITFIELD
  224. uint64_t reserved_8_63:56;
  225. uint64_t pctl:4;
  226. uint64_t nctl:4;
  227. #else
  228. uint64_t nctl:4;
  229. uint64_t pctl:4;
  230. uint64_t reserved_8_63:56;
  231. #endif
  232. } cn38xx;
  233. };
  234. union cvmx_asxx_rld_data_drv {
  235. uint64_t u64;
  236. struct cvmx_asxx_rld_data_drv_s {
  237. #ifdef __BIG_ENDIAN_BITFIELD
  238. uint64_t reserved_8_63:56;
  239. uint64_t pctl:4;
  240. uint64_t nctl:4;
  241. #else
  242. uint64_t nctl:4;
  243. uint64_t pctl:4;
  244. uint64_t reserved_8_63:56;
  245. #endif
  246. } s;
  247. };
  248. union cvmx_asxx_rld_fcram_mode {
  249. uint64_t u64;
  250. struct cvmx_asxx_rld_fcram_mode_s {
  251. #ifdef __BIG_ENDIAN_BITFIELD
  252. uint64_t reserved_1_63:63;
  253. uint64_t mode:1;
  254. #else
  255. uint64_t mode:1;
  256. uint64_t reserved_1_63:63;
  257. #endif
  258. } s;
  259. };
  260. union cvmx_asxx_rld_nctl_strong {
  261. uint64_t u64;
  262. struct cvmx_asxx_rld_nctl_strong_s {
  263. #ifdef __BIG_ENDIAN_BITFIELD
  264. uint64_t reserved_5_63:59;
  265. uint64_t nctl:5;
  266. #else
  267. uint64_t nctl:5;
  268. uint64_t reserved_5_63:59;
  269. #endif
  270. } s;
  271. };
  272. union cvmx_asxx_rld_nctl_weak {
  273. uint64_t u64;
  274. struct cvmx_asxx_rld_nctl_weak_s {
  275. #ifdef __BIG_ENDIAN_BITFIELD
  276. uint64_t reserved_5_63:59;
  277. uint64_t nctl:5;
  278. #else
  279. uint64_t nctl:5;
  280. uint64_t reserved_5_63:59;
  281. #endif
  282. } s;
  283. };
  284. union cvmx_asxx_rld_pctl_strong {
  285. uint64_t u64;
  286. struct cvmx_asxx_rld_pctl_strong_s {
  287. #ifdef __BIG_ENDIAN_BITFIELD
  288. uint64_t reserved_5_63:59;
  289. uint64_t pctl:5;
  290. #else
  291. uint64_t pctl:5;
  292. uint64_t reserved_5_63:59;
  293. #endif
  294. } s;
  295. };
  296. union cvmx_asxx_rld_pctl_weak {
  297. uint64_t u64;
  298. struct cvmx_asxx_rld_pctl_weak_s {
  299. #ifdef __BIG_ENDIAN_BITFIELD
  300. uint64_t reserved_5_63:59;
  301. uint64_t pctl:5;
  302. #else
  303. uint64_t pctl:5;
  304. uint64_t reserved_5_63:59;
  305. #endif
  306. } s;
  307. };
  308. union cvmx_asxx_rld_setting {
  309. uint64_t u64;
  310. struct cvmx_asxx_rld_setting_s {
  311. #ifdef __BIG_ENDIAN_BITFIELD
  312. uint64_t reserved_13_63:51;
  313. uint64_t dfaset:5;
  314. uint64_t dfalag:1;
  315. uint64_t dfalead:1;
  316. uint64_t dfalock:1;
  317. uint64_t setting:5;
  318. #else
  319. uint64_t setting:5;
  320. uint64_t dfalock:1;
  321. uint64_t dfalead:1;
  322. uint64_t dfalag:1;
  323. uint64_t dfaset:5;
  324. uint64_t reserved_13_63:51;
  325. #endif
  326. } s;
  327. struct cvmx_asxx_rld_setting_cn38xx {
  328. #ifdef __BIG_ENDIAN_BITFIELD
  329. uint64_t reserved_5_63:59;
  330. uint64_t setting:5;
  331. #else
  332. uint64_t setting:5;
  333. uint64_t reserved_5_63:59;
  334. #endif
  335. } cn38xx;
  336. };
  337. union cvmx_asxx_rx_clk_setx {
  338. uint64_t u64;
  339. struct cvmx_asxx_rx_clk_setx_s {
  340. #ifdef __BIG_ENDIAN_BITFIELD
  341. uint64_t reserved_5_63:59;
  342. uint64_t setting:5;
  343. #else
  344. uint64_t setting:5;
  345. uint64_t reserved_5_63:59;
  346. #endif
  347. } s;
  348. };
  349. union cvmx_asxx_rx_prt_en {
  350. uint64_t u64;
  351. struct cvmx_asxx_rx_prt_en_s {
  352. #ifdef __BIG_ENDIAN_BITFIELD
  353. uint64_t reserved_4_63:60;
  354. uint64_t prt_en:4;
  355. #else
  356. uint64_t prt_en:4;
  357. uint64_t reserved_4_63:60;
  358. #endif
  359. } s;
  360. struct cvmx_asxx_rx_prt_en_cn30xx {
  361. #ifdef __BIG_ENDIAN_BITFIELD
  362. uint64_t reserved_3_63:61;
  363. uint64_t prt_en:3;
  364. #else
  365. uint64_t prt_en:3;
  366. uint64_t reserved_3_63:61;
  367. #endif
  368. } cn30xx;
  369. };
  370. union cvmx_asxx_rx_wol {
  371. uint64_t u64;
  372. struct cvmx_asxx_rx_wol_s {
  373. #ifdef __BIG_ENDIAN_BITFIELD
  374. uint64_t reserved_2_63:62;
  375. uint64_t status:1;
  376. uint64_t enable:1;
  377. #else
  378. uint64_t enable:1;
  379. uint64_t status:1;
  380. uint64_t reserved_2_63:62;
  381. #endif
  382. } s;
  383. };
  384. union cvmx_asxx_rx_wol_msk {
  385. uint64_t u64;
  386. struct cvmx_asxx_rx_wol_msk_s {
  387. #ifdef __BIG_ENDIAN_BITFIELD
  388. uint64_t msk:64;
  389. #else
  390. uint64_t msk:64;
  391. #endif
  392. } s;
  393. };
  394. union cvmx_asxx_rx_wol_powok {
  395. uint64_t u64;
  396. struct cvmx_asxx_rx_wol_powok_s {
  397. #ifdef __BIG_ENDIAN_BITFIELD
  398. uint64_t reserved_1_63:63;
  399. uint64_t powerok:1;
  400. #else
  401. uint64_t powerok:1;
  402. uint64_t reserved_1_63:63;
  403. #endif
  404. } s;
  405. };
  406. union cvmx_asxx_rx_wol_sig {
  407. uint64_t u64;
  408. struct cvmx_asxx_rx_wol_sig_s {
  409. #ifdef __BIG_ENDIAN_BITFIELD
  410. uint64_t reserved_32_63:32;
  411. uint64_t sig:32;
  412. #else
  413. uint64_t sig:32;
  414. uint64_t reserved_32_63:32;
  415. #endif
  416. } s;
  417. };
  418. union cvmx_asxx_tx_clk_setx {
  419. uint64_t u64;
  420. struct cvmx_asxx_tx_clk_setx_s {
  421. #ifdef __BIG_ENDIAN_BITFIELD
  422. uint64_t reserved_5_63:59;
  423. uint64_t setting:5;
  424. #else
  425. uint64_t setting:5;
  426. uint64_t reserved_5_63:59;
  427. #endif
  428. } s;
  429. };
  430. union cvmx_asxx_tx_comp_byp {
  431. uint64_t u64;
  432. struct cvmx_asxx_tx_comp_byp_s {
  433. #ifdef __BIG_ENDIAN_BITFIELD
  434. uint64_t reserved_0_63:64;
  435. #else
  436. uint64_t reserved_0_63:64;
  437. #endif
  438. } s;
  439. struct cvmx_asxx_tx_comp_byp_cn30xx {
  440. #ifdef __BIG_ENDIAN_BITFIELD
  441. uint64_t reserved_9_63:55;
  442. uint64_t bypass:1;
  443. uint64_t pctl:4;
  444. uint64_t nctl:4;
  445. #else
  446. uint64_t nctl:4;
  447. uint64_t pctl:4;
  448. uint64_t bypass:1;
  449. uint64_t reserved_9_63:55;
  450. #endif
  451. } cn30xx;
  452. struct cvmx_asxx_tx_comp_byp_cn38xx {
  453. #ifdef __BIG_ENDIAN_BITFIELD
  454. uint64_t reserved_8_63:56;
  455. uint64_t pctl:4;
  456. uint64_t nctl:4;
  457. #else
  458. uint64_t nctl:4;
  459. uint64_t pctl:4;
  460. uint64_t reserved_8_63:56;
  461. #endif
  462. } cn38xx;
  463. struct cvmx_asxx_tx_comp_byp_cn50xx {
  464. #ifdef __BIG_ENDIAN_BITFIELD
  465. uint64_t reserved_17_63:47;
  466. uint64_t bypass:1;
  467. uint64_t reserved_13_15:3;
  468. uint64_t pctl:5;
  469. uint64_t reserved_5_7:3;
  470. uint64_t nctl:5;
  471. #else
  472. uint64_t nctl:5;
  473. uint64_t reserved_5_7:3;
  474. uint64_t pctl:5;
  475. uint64_t reserved_13_15:3;
  476. uint64_t bypass:1;
  477. uint64_t reserved_17_63:47;
  478. #endif
  479. } cn50xx;
  480. struct cvmx_asxx_tx_comp_byp_cn58xx {
  481. #ifdef __BIG_ENDIAN_BITFIELD
  482. uint64_t reserved_13_63:51;
  483. uint64_t pctl:5;
  484. uint64_t reserved_5_7:3;
  485. uint64_t nctl:5;
  486. #else
  487. uint64_t nctl:5;
  488. uint64_t reserved_5_7:3;
  489. uint64_t pctl:5;
  490. uint64_t reserved_13_63:51;
  491. #endif
  492. } cn58xx;
  493. };
  494. union cvmx_asxx_tx_hi_waterx {
  495. uint64_t u64;
  496. struct cvmx_asxx_tx_hi_waterx_s {
  497. #ifdef __BIG_ENDIAN_BITFIELD
  498. uint64_t reserved_4_63:60;
  499. uint64_t mark:4;
  500. #else
  501. uint64_t mark:4;
  502. uint64_t reserved_4_63:60;
  503. #endif
  504. } s;
  505. struct cvmx_asxx_tx_hi_waterx_cn30xx {
  506. #ifdef __BIG_ENDIAN_BITFIELD
  507. uint64_t reserved_3_63:61;
  508. uint64_t mark:3;
  509. #else
  510. uint64_t mark:3;
  511. uint64_t reserved_3_63:61;
  512. #endif
  513. } cn30xx;
  514. };
  515. union cvmx_asxx_tx_prt_en {
  516. uint64_t u64;
  517. struct cvmx_asxx_tx_prt_en_s {
  518. #ifdef __BIG_ENDIAN_BITFIELD
  519. uint64_t reserved_4_63:60;
  520. uint64_t prt_en:4;
  521. #else
  522. uint64_t prt_en:4;
  523. uint64_t reserved_4_63:60;
  524. #endif
  525. } s;
  526. struct cvmx_asxx_tx_prt_en_cn30xx {
  527. #ifdef __BIG_ENDIAN_BITFIELD
  528. uint64_t reserved_3_63:61;
  529. uint64_t prt_en:3;
  530. #else
  531. uint64_t prt_en:3;
  532. uint64_t reserved_3_63:61;
  533. #endif
  534. } cn30xx;
  535. };
  536. #endif