cvmx-asxx-defs.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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_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. union cvmx_asxx_gmii_rx_clk_set {
  56. uint64_t u64;
  57. struct cvmx_asxx_gmii_rx_clk_set_s {
  58. #ifdef __BIG_ENDIAN_BITFIELD
  59. uint64_t reserved_5_63:59;
  60. uint64_t setting:5;
  61. #else
  62. uint64_t setting:5;
  63. uint64_t reserved_5_63:59;
  64. #endif
  65. } s;
  66. struct cvmx_asxx_gmii_rx_clk_set_s cn30xx;
  67. struct cvmx_asxx_gmii_rx_clk_set_s cn31xx;
  68. struct cvmx_asxx_gmii_rx_clk_set_s cn50xx;
  69. };
  70. union cvmx_asxx_gmii_rx_dat_set {
  71. uint64_t u64;
  72. struct cvmx_asxx_gmii_rx_dat_set_s {
  73. #ifdef __BIG_ENDIAN_BITFIELD
  74. uint64_t reserved_5_63:59;
  75. uint64_t setting:5;
  76. #else
  77. uint64_t setting:5;
  78. uint64_t reserved_5_63:59;
  79. #endif
  80. } s;
  81. struct cvmx_asxx_gmii_rx_dat_set_s cn30xx;
  82. struct cvmx_asxx_gmii_rx_dat_set_s cn31xx;
  83. struct cvmx_asxx_gmii_rx_dat_set_s cn50xx;
  84. };
  85. union cvmx_asxx_int_en {
  86. uint64_t u64;
  87. struct cvmx_asxx_int_en_s {
  88. #ifdef __BIG_ENDIAN_BITFIELD
  89. uint64_t reserved_12_63:52;
  90. uint64_t txpsh:4;
  91. uint64_t txpop:4;
  92. uint64_t ovrflw:4;
  93. #else
  94. uint64_t ovrflw:4;
  95. uint64_t txpop:4;
  96. uint64_t txpsh:4;
  97. uint64_t reserved_12_63:52;
  98. #endif
  99. } s;
  100. struct cvmx_asxx_int_en_cn30xx {
  101. #ifdef __BIG_ENDIAN_BITFIELD
  102. uint64_t reserved_11_63:53;
  103. uint64_t txpsh:3;
  104. uint64_t reserved_7_7:1;
  105. uint64_t txpop:3;
  106. uint64_t reserved_3_3:1;
  107. uint64_t ovrflw:3;
  108. #else
  109. uint64_t ovrflw:3;
  110. uint64_t reserved_3_3:1;
  111. uint64_t txpop:3;
  112. uint64_t reserved_7_7:1;
  113. uint64_t txpsh:3;
  114. uint64_t reserved_11_63:53;
  115. #endif
  116. } cn30xx;
  117. struct cvmx_asxx_int_en_cn30xx cn31xx;
  118. struct cvmx_asxx_int_en_s cn38xx;
  119. struct cvmx_asxx_int_en_s cn38xxp2;
  120. struct cvmx_asxx_int_en_cn30xx cn50xx;
  121. struct cvmx_asxx_int_en_s cn58xx;
  122. struct cvmx_asxx_int_en_s cn58xxp1;
  123. };
  124. union cvmx_asxx_int_reg {
  125. uint64_t u64;
  126. struct cvmx_asxx_int_reg_s {
  127. #ifdef __BIG_ENDIAN_BITFIELD
  128. uint64_t reserved_12_63:52;
  129. uint64_t txpsh:4;
  130. uint64_t txpop:4;
  131. uint64_t ovrflw:4;
  132. #else
  133. uint64_t ovrflw:4;
  134. uint64_t txpop:4;
  135. uint64_t txpsh:4;
  136. uint64_t reserved_12_63:52;
  137. #endif
  138. } s;
  139. struct cvmx_asxx_int_reg_cn30xx {
  140. #ifdef __BIG_ENDIAN_BITFIELD
  141. uint64_t reserved_11_63:53;
  142. uint64_t txpsh:3;
  143. uint64_t reserved_7_7:1;
  144. uint64_t txpop:3;
  145. uint64_t reserved_3_3:1;
  146. uint64_t ovrflw:3;
  147. #else
  148. uint64_t ovrflw:3;
  149. uint64_t reserved_3_3:1;
  150. uint64_t txpop:3;
  151. uint64_t reserved_7_7:1;
  152. uint64_t txpsh:3;
  153. uint64_t reserved_11_63:53;
  154. #endif
  155. } cn30xx;
  156. struct cvmx_asxx_int_reg_cn30xx cn31xx;
  157. struct cvmx_asxx_int_reg_s cn38xx;
  158. struct cvmx_asxx_int_reg_s cn38xxp2;
  159. struct cvmx_asxx_int_reg_cn30xx cn50xx;
  160. struct cvmx_asxx_int_reg_s cn58xx;
  161. struct cvmx_asxx_int_reg_s cn58xxp1;
  162. };
  163. union cvmx_asxx_mii_rx_dat_set {
  164. uint64_t u64;
  165. struct cvmx_asxx_mii_rx_dat_set_s {
  166. #ifdef __BIG_ENDIAN_BITFIELD
  167. uint64_t reserved_5_63:59;
  168. uint64_t setting:5;
  169. #else
  170. uint64_t setting:5;
  171. uint64_t reserved_5_63:59;
  172. #endif
  173. } s;
  174. struct cvmx_asxx_mii_rx_dat_set_s cn30xx;
  175. struct cvmx_asxx_mii_rx_dat_set_s cn50xx;
  176. };
  177. union cvmx_asxx_prt_loop {
  178. uint64_t u64;
  179. struct cvmx_asxx_prt_loop_s {
  180. #ifdef __BIG_ENDIAN_BITFIELD
  181. uint64_t reserved_8_63:56;
  182. uint64_t ext_loop:4;
  183. uint64_t int_loop:4;
  184. #else
  185. uint64_t int_loop:4;
  186. uint64_t ext_loop:4;
  187. uint64_t reserved_8_63:56;
  188. #endif
  189. } s;
  190. struct cvmx_asxx_prt_loop_cn30xx {
  191. #ifdef __BIG_ENDIAN_BITFIELD
  192. uint64_t reserved_7_63:57;
  193. uint64_t ext_loop:3;
  194. uint64_t reserved_3_3:1;
  195. uint64_t int_loop:3;
  196. #else
  197. uint64_t int_loop:3;
  198. uint64_t reserved_3_3:1;
  199. uint64_t ext_loop:3;
  200. uint64_t reserved_7_63:57;
  201. #endif
  202. } cn30xx;
  203. struct cvmx_asxx_prt_loop_cn30xx cn31xx;
  204. struct cvmx_asxx_prt_loop_s cn38xx;
  205. struct cvmx_asxx_prt_loop_s cn38xxp2;
  206. struct cvmx_asxx_prt_loop_cn30xx cn50xx;
  207. struct cvmx_asxx_prt_loop_s cn58xx;
  208. struct cvmx_asxx_prt_loop_s cn58xxp1;
  209. };
  210. union cvmx_asxx_rld_bypass {
  211. uint64_t u64;
  212. struct cvmx_asxx_rld_bypass_s {
  213. #ifdef __BIG_ENDIAN_BITFIELD
  214. uint64_t reserved_1_63:63;
  215. uint64_t bypass:1;
  216. #else
  217. uint64_t bypass:1;
  218. uint64_t reserved_1_63:63;
  219. #endif
  220. } s;
  221. struct cvmx_asxx_rld_bypass_s cn38xx;
  222. struct cvmx_asxx_rld_bypass_s cn38xxp2;
  223. struct cvmx_asxx_rld_bypass_s cn58xx;
  224. struct cvmx_asxx_rld_bypass_s cn58xxp1;
  225. };
  226. union cvmx_asxx_rld_bypass_setting {
  227. uint64_t u64;
  228. struct cvmx_asxx_rld_bypass_setting_s {
  229. #ifdef __BIG_ENDIAN_BITFIELD
  230. uint64_t reserved_5_63:59;
  231. uint64_t setting:5;
  232. #else
  233. uint64_t setting:5;
  234. uint64_t reserved_5_63:59;
  235. #endif
  236. } s;
  237. struct cvmx_asxx_rld_bypass_setting_s cn38xx;
  238. struct cvmx_asxx_rld_bypass_setting_s cn38xxp2;
  239. struct cvmx_asxx_rld_bypass_setting_s cn58xx;
  240. struct cvmx_asxx_rld_bypass_setting_s cn58xxp1;
  241. };
  242. union cvmx_asxx_rld_comp {
  243. uint64_t u64;
  244. struct cvmx_asxx_rld_comp_s {
  245. #ifdef __BIG_ENDIAN_BITFIELD
  246. uint64_t reserved_9_63:55;
  247. uint64_t pctl:5;
  248. uint64_t nctl:4;
  249. #else
  250. uint64_t nctl:4;
  251. uint64_t pctl:5;
  252. uint64_t reserved_9_63:55;
  253. #endif
  254. } s;
  255. struct cvmx_asxx_rld_comp_cn38xx {
  256. #ifdef __BIG_ENDIAN_BITFIELD
  257. uint64_t reserved_8_63:56;
  258. uint64_t pctl:4;
  259. uint64_t nctl:4;
  260. #else
  261. uint64_t nctl:4;
  262. uint64_t pctl:4;
  263. uint64_t reserved_8_63:56;
  264. #endif
  265. } cn38xx;
  266. struct cvmx_asxx_rld_comp_cn38xx cn38xxp2;
  267. struct cvmx_asxx_rld_comp_s cn58xx;
  268. struct cvmx_asxx_rld_comp_s cn58xxp1;
  269. };
  270. union cvmx_asxx_rld_data_drv {
  271. uint64_t u64;
  272. struct cvmx_asxx_rld_data_drv_s {
  273. #ifdef __BIG_ENDIAN_BITFIELD
  274. uint64_t reserved_8_63:56;
  275. uint64_t pctl:4;
  276. uint64_t nctl:4;
  277. #else
  278. uint64_t nctl:4;
  279. uint64_t pctl:4;
  280. uint64_t reserved_8_63:56;
  281. #endif
  282. } s;
  283. struct cvmx_asxx_rld_data_drv_s cn38xx;
  284. struct cvmx_asxx_rld_data_drv_s cn38xxp2;
  285. struct cvmx_asxx_rld_data_drv_s cn58xx;
  286. struct cvmx_asxx_rld_data_drv_s cn58xxp1;
  287. };
  288. union cvmx_asxx_rld_fcram_mode {
  289. uint64_t u64;
  290. struct cvmx_asxx_rld_fcram_mode_s {
  291. #ifdef __BIG_ENDIAN_BITFIELD
  292. uint64_t reserved_1_63:63;
  293. uint64_t mode:1;
  294. #else
  295. uint64_t mode:1;
  296. uint64_t reserved_1_63:63;
  297. #endif
  298. } s;
  299. struct cvmx_asxx_rld_fcram_mode_s cn38xx;
  300. struct cvmx_asxx_rld_fcram_mode_s cn38xxp2;
  301. };
  302. union cvmx_asxx_rld_nctl_strong {
  303. uint64_t u64;
  304. struct cvmx_asxx_rld_nctl_strong_s {
  305. #ifdef __BIG_ENDIAN_BITFIELD
  306. uint64_t reserved_5_63:59;
  307. uint64_t nctl:5;
  308. #else
  309. uint64_t nctl:5;
  310. uint64_t reserved_5_63:59;
  311. #endif
  312. } s;
  313. struct cvmx_asxx_rld_nctl_strong_s cn38xx;
  314. struct cvmx_asxx_rld_nctl_strong_s cn38xxp2;
  315. struct cvmx_asxx_rld_nctl_strong_s cn58xx;
  316. struct cvmx_asxx_rld_nctl_strong_s cn58xxp1;
  317. };
  318. union cvmx_asxx_rld_nctl_weak {
  319. uint64_t u64;
  320. struct cvmx_asxx_rld_nctl_weak_s {
  321. #ifdef __BIG_ENDIAN_BITFIELD
  322. uint64_t reserved_5_63:59;
  323. uint64_t nctl:5;
  324. #else
  325. uint64_t nctl:5;
  326. uint64_t reserved_5_63:59;
  327. #endif
  328. } s;
  329. struct cvmx_asxx_rld_nctl_weak_s cn38xx;
  330. struct cvmx_asxx_rld_nctl_weak_s cn38xxp2;
  331. struct cvmx_asxx_rld_nctl_weak_s cn58xx;
  332. struct cvmx_asxx_rld_nctl_weak_s cn58xxp1;
  333. };
  334. union cvmx_asxx_rld_pctl_strong {
  335. uint64_t u64;
  336. struct cvmx_asxx_rld_pctl_strong_s {
  337. #ifdef __BIG_ENDIAN_BITFIELD
  338. uint64_t reserved_5_63:59;
  339. uint64_t pctl:5;
  340. #else
  341. uint64_t pctl:5;
  342. uint64_t reserved_5_63:59;
  343. #endif
  344. } s;
  345. struct cvmx_asxx_rld_pctl_strong_s cn38xx;
  346. struct cvmx_asxx_rld_pctl_strong_s cn38xxp2;
  347. struct cvmx_asxx_rld_pctl_strong_s cn58xx;
  348. struct cvmx_asxx_rld_pctl_strong_s cn58xxp1;
  349. };
  350. union cvmx_asxx_rld_pctl_weak {
  351. uint64_t u64;
  352. struct cvmx_asxx_rld_pctl_weak_s {
  353. #ifdef __BIG_ENDIAN_BITFIELD
  354. uint64_t reserved_5_63:59;
  355. uint64_t pctl:5;
  356. #else
  357. uint64_t pctl:5;
  358. uint64_t reserved_5_63:59;
  359. #endif
  360. } s;
  361. struct cvmx_asxx_rld_pctl_weak_s cn38xx;
  362. struct cvmx_asxx_rld_pctl_weak_s cn38xxp2;
  363. struct cvmx_asxx_rld_pctl_weak_s cn58xx;
  364. struct cvmx_asxx_rld_pctl_weak_s cn58xxp1;
  365. };
  366. union cvmx_asxx_rld_setting {
  367. uint64_t u64;
  368. struct cvmx_asxx_rld_setting_s {
  369. #ifdef __BIG_ENDIAN_BITFIELD
  370. uint64_t reserved_13_63:51;
  371. uint64_t dfaset:5;
  372. uint64_t dfalag:1;
  373. uint64_t dfalead:1;
  374. uint64_t dfalock:1;
  375. uint64_t setting:5;
  376. #else
  377. uint64_t setting:5;
  378. uint64_t dfalock:1;
  379. uint64_t dfalead:1;
  380. uint64_t dfalag:1;
  381. uint64_t dfaset:5;
  382. uint64_t reserved_13_63:51;
  383. #endif
  384. } s;
  385. struct cvmx_asxx_rld_setting_cn38xx {
  386. #ifdef __BIG_ENDIAN_BITFIELD
  387. uint64_t reserved_5_63:59;
  388. uint64_t setting:5;
  389. #else
  390. uint64_t setting:5;
  391. uint64_t reserved_5_63:59;
  392. #endif
  393. } cn38xx;
  394. struct cvmx_asxx_rld_setting_cn38xx cn38xxp2;
  395. struct cvmx_asxx_rld_setting_s cn58xx;
  396. struct cvmx_asxx_rld_setting_s cn58xxp1;
  397. };
  398. union cvmx_asxx_rx_clk_setx {
  399. uint64_t u64;
  400. struct cvmx_asxx_rx_clk_setx_s {
  401. #ifdef __BIG_ENDIAN_BITFIELD
  402. uint64_t reserved_5_63:59;
  403. uint64_t setting:5;
  404. #else
  405. uint64_t setting:5;
  406. uint64_t reserved_5_63:59;
  407. #endif
  408. } s;
  409. struct cvmx_asxx_rx_clk_setx_s cn30xx;
  410. struct cvmx_asxx_rx_clk_setx_s cn31xx;
  411. struct cvmx_asxx_rx_clk_setx_s cn38xx;
  412. struct cvmx_asxx_rx_clk_setx_s cn38xxp2;
  413. struct cvmx_asxx_rx_clk_setx_s cn50xx;
  414. struct cvmx_asxx_rx_clk_setx_s cn58xx;
  415. struct cvmx_asxx_rx_clk_setx_s cn58xxp1;
  416. };
  417. union cvmx_asxx_rx_prt_en {
  418. uint64_t u64;
  419. struct cvmx_asxx_rx_prt_en_s {
  420. #ifdef __BIG_ENDIAN_BITFIELD
  421. uint64_t reserved_4_63:60;
  422. uint64_t prt_en:4;
  423. #else
  424. uint64_t prt_en:4;
  425. uint64_t reserved_4_63:60;
  426. #endif
  427. } s;
  428. struct cvmx_asxx_rx_prt_en_cn30xx {
  429. #ifdef __BIG_ENDIAN_BITFIELD
  430. uint64_t reserved_3_63:61;
  431. uint64_t prt_en:3;
  432. #else
  433. uint64_t prt_en:3;
  434. uint64_t reserved_3_63:61;
  435. #endif
  436. } cn30xx;
  437. struct cvmx_asxx_rx_prt_en_cn30xx cn31xx;
  438. struct cvmx_asxx_rx_prt_en_s cn38xx;
  439. struct cvmx_asxx_rx_prt_en_s cn38xxp2;
  440. struct cvmx_asxx_rx_prt_en_cn30xx cn50xx;
  441. struct cvmx_asxx_rx_prt_en_s cn58xx;
  442. struct cvmx_asxx_rx_prt_en_s cn58xxp1;
  443. };
  444. union cvmx_asxx_rx_wol {
  445. uint64_t u64;
  446. struct cvmx_asxx_rx_wol_s {
  447. #ifdef __BIG_ENDIAN_BITFIELD
  448. uint64_t reserved_2_63:62;
  449. uint64_t status:1;
  450. uint64_t enable:1;
  451. #else
  452. uint64_t enable:1;
  453. uint64_t status:1;
  454. uint64_t reserved_2_63:62;
  455. #endif
  456. } s;
  457. struct cvmx_asxx_rx_wol_s cn38xx;
  458. struct cvmx_asxx_rx_wol_s cn38xxp2;
  459. };
  460. union cvmx_asxx_rx_wol_msk {
  461. uint64_t u64;
  462. struct cvmx_asxx_rx_wol_msk_s {
  463. #ifdef __BIG_ENDIAN_BITFIELD
  464. uint64_t msk:64;
  465. #else
  466. uint64_t msk:64;
  467. #endif
  468. } s;
  469. struct cvmx_asxx_rx_wol_msk_s cn38xx;
  470. struct cvmx_asxx_rx_wol_msk_s cn38xxp2;
  471. };
  472. union cvmx_asxx_rx_wol_powok {
  473. uint64_t u64;
  474. struct cvmx_asxx_rx_wol_powok_s {
  475. #ifdef __BIG_ENDIAN_BITFIELD
  476. uint64_t reserved_1_63:63;
  477. uint64_t powerok:1;
  478. #else
  479. uint64_t powerok:1;
  480. uint64_t reserved_1_63:63;
  481. #endif
  482. } s;
  483. struct cvmx_asxx_rx_wol_powok_s cn38xx;
  484. struct cvmx_asxx_rx_wol_powok_s cn38xxp2;
  485. };
  486. union cvmx_asxx_rx_wol_sig {
  487. uint64_t u64;
  488. struct cvmx_asxx_rx_wol_sig_s {
  489. #ifdef __BIG_ENDIAN_BITFIELD
  490. uint64_t reserved_32_63:32;
  491. uint64_t sig:32;
  492. #else
  493. uint64_t sig:32;
  494. uint64_t reserved_32_63:32;
  495. #endif
  496. } s;
  497. struct cvmx_asxx_rx_wol_sig_s cn38xx;
  498. struct cvmx_asxx_rx_wol_sig_s cn38xxp2;
  499. };
  500. union cvmx_asxx_tx_clk_setx {
  501. uint64_t u64;
  502. struct cvmx_asxx_tx_clk_setx_s {
  503. #ifdef __BIG_ENDIAN_BITFIELD
  504. uint64_t reserved_5_63:59;
  505. uint64_t setting:5;
  506. #else
  507. uint64_t setting:5;
  508. uint64_t reserved_5_63:59;
  509. #endif
  510. } s;
  511. struct cvmx_asxx_tx_clk_setx_s cn30xx;
  512. struct cvmx_asxx_tx_clk_setx_s cn31xx;
  513. struct cvmx_asxx_tx_clk_setx_s cn38xx;
  514. struct cvmx_asxx_tx_clk_setx_s cn38xxp2;
  515. struct cvmx_asxx_tx_clk_setx_s cn50xx;
  516. struct cvmx_asxx_tx_clk_setx_s cn58xx;
  517. struct cvmx_asxx_tx_clk_setx_s cn58xxp1;
  518. };
  519. union cvmx_asxx_tx_comp_byp {
  520. uint64_t u64;
  521. struct cvmx_asxx_tx_comp_byp_s {
  522. #ifdef __BIG_ENDIAN_BITFIELD
  523. uint64_t reserved_0_63:64;
  524. #else
  525. uint64_t reserved_0_63:64;
  526. #endif
  527. } s;
  528. struct cvmx_asxx_tx_comp_byp_cn30xx {
  529. #ifdef __BIG_ENDIAN_BITFIELD
  530. uint64_t reserved_9_63:55;
  531. uint64_t bypass:1;
  532. uint64_t pctl:4;
  533. uint64_t nctl:4;
  534. #else
  535. uint64_t nctl:4;
  536. uint64_t pctl:4;
  537. uint64_t bypass:1;
  538. uint64_t reserved_9_63:55;
  539. #endif
  540. } cn30xx;
  541. struct cvmx_asxx_tx_comp_byp_cn30xx cn31xx;
  542. struct cvmx_asxx_tx_comp_byp_cn38xx {
  543. #ifdef __BIG_ENDIAN_BITFIELD
  544. uint64_t reserved_8_63:56;
  545. uint64_t pctl:4;
  546. uint64_t nctl:4;
  547. #else
  548. uint64_t nctl:4;
  549. uint64_t pctl:4;
  550. uint64_t reserved_8_63:56;
  551. #endif
  552. } cn38xx;
  553. struct cvmx_asxx_tx_comp_byp_cn38xx cn38xxp2;
  554. struct cvmx_asxx_tx_comp_byp_cn50xx {
  555. #ifdef __BIG_ENDIAN_BITFIELD
  556. uint64_t reserved_17_63:47;
  557. uint64_t bypass:1;
  558. uint64_t reserved_13_15:3;
  559. uint64_t pctl:5;
  560. uint64_t reserved_5_7:3;
  561. uint64_t nctl:5;
  562. #else
  563. uint64_t nctl:5;
  564. uint64_t reserved_5_7:3;
  565. uint64_t pctl:5;
  566. uint64_t reserved_13_15:3;
  567. uint64_t bypass:1;
  568. uint64_t reserved_17_63:47;
  569. #endif
  570. } cn50xx;
  571. struct cvmx_asxx_tx_comp_byp_cn58xx {
  572. #ifdef __BIG_ENDIAN_BITFIELD
  573. uint64_t reserved_13_63:51;
  574. uint64_t pctl:5;
  575. uint64_t reserved_5_7:3;
  576. uint64_t nctl:5;
  577. #else
  578. uint64_t nctl:5;
  579. uint64_t reserved_5_7:3;
  580. uint64_t pctl:5;
  581. uint64_t reserved_13_63:51;
  582. #endif
  583. } cn58xx;
  584. struct cvmx_asxx_tx_comp_byp_cn58xx cn58xxp1;
  585. };
  586. union cvmx_asxx_tx_hi_waterx {
  587. uint64_t u64;
  588. struct cvmx_asxx_tx_hi_waterx_s {
  589. #ifdef __BIG_ENDIAN_BITFIELD
  590. uint64_t reserved_4_63:60;
  591. uint64_t mark:4;
  592. #else
  593. uint64_t mark:4;
  594. uint64_t reserved_4_63:60;
  595. #endif
  596. } s;
  597. struct cvmx_asxx_tx_hi_waterx_cn30xx {
  598. #ifdef __BIG_ENDIAN_BITFIELD
  599. uint64_t reserved_3_63:61;
  600. uint64_t mark:3;
  601. #else
  602. uint64_t mark:3;
  603. uint64_t reserved_3_63:61;
  604. #endif
  605. } cn30xx;
  606. struct cvmx_asxx_tx_hi_waterx_cn30xx cn31xx;
  607. struct cvmx_asxx_tx_hi_waterx_s cn38xx;
  608. struct cvmx_asxx_tx_hi_waterx_s cn38xxp2;
  609. struct cvmx_asxx_tx_hi_waterx_cn30xx cn50xx;
  610. struct cvmx_asxx_tx_hi_waterx_s cn58xx;
  611. struct cvmx_asxx_tx_hi_waterx_s cn58xxp1;
  612. };
  613. union cvmx_asxx_tx_prt_en {
  614. uint64_t u64;
  615. struct cvmx_asxx_tx_prt_en_s {
  616. #ifdef __BIG_ENDIAN_BITFIELD
  617. uint64_t reserved_4_63:60;
  618. uint64_t prt_en:4;
  619. #else
  620. uint64_t prt_en:4;
  621. uint64_t reserved_4_63:60;
  622. #endif
  623. } s;
  624. struct cvmx_asxx_tx_prt_en_cn30xx {
  625. #ifdef __BIG_ENDIAN_BITFIELD
  626. uint64_t reserved_3_63:61;
  627. uint64_t prt_en:3;
  628. #else
  629. uint64_t prt_en:3;
  630. uint64_t reserved_3_63:61;
  631. #endif
  632. } cn30xx;
  633. struct cvmx_asxx_tx_prt_en_cn30xx cn31xx;
  634. struct cvmx_asxx_tx_prt_en_s cn38xx;
  635. struct cvmx_asxx_tx_prt_en_s cn38xxp2;
  636. struct cvmx_asxx_tx_prt_en_cn30xx cn50xx;
  637. struct cvmx_asxx_tx_prt_en_s cn58xx;
  638. struct cvmx_asxx_tx_prt_en_s cn58xxp1;
  639. };
  640. #endif