18c2ecf20Sopenharmony_ci/***********************license start***************
28c2ecf20Sopenharmony_ci * Author: Cavium Networks
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Contact: support@caviumnetworks.com
58c2ecf20Sopenharmony_ci * This file is part of the OCTEON SDK
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 2003-2018 Cavium, Inc.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * This file is free software; you can redistribute it and/or modify
108c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as
118c2ecf20Sopenharmony_ci * published by the Free Software Foundation.
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * This file is distributed in the hope that it will be useful, but
148c2ecf20Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
158c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
168c2ecf20Sopenharmony_ci * NONINFRINGEMENT.  See the GNU General Public License for more
178c2ecf20Sopenharmony_ci * details.
188c2ecf20Sopenharmony_ci *
198c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License
208c2ecf20Sopenharmony_ci * along with this file; if not, write to the Free Software
218c2ecf20Sopenharmony_ci * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
228c2ecf20Sopenharmony_ci * or visit http://www.gnu.org/licenses/.
238c2ecf20Sopenharmony_ci *
248c2ecf20Sopenharmony_ci * This file may also be available under a different license from Cavium.
258c2ecf20Sopenharmony_ci * Contact Cavium Networks for more information
268c2ecf20Sopenharmony_ci ***********************license end**************************************/
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#ifndef __CVMX_ASXX_DEFS_H__
298c2ecf20Sopenharmony_ci#define __CVMX_ASXX_DEFS_H__
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define CVMX_ASXX_GMII_RX_CLK_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000180ull))
328c2ecf20Sopenharmony_ci#define CVMX_ASXX_GMII_RX_DAT_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000188ull))
338c2ecf20Sopenharmony_ci#define CVMX_ASXX_INT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000018ull) + ((block_id) & 1) * 0x8000000ull)
348c2ecf20Sopenharmony_ci#define CVMX_ASXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000010ull) + ((block_id) & 1) * 0x8000000ull)
358c2ecf20Sopenharmony_ci#define CVMX_ASXX_MII_RX_DAT_SET(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000190ull))
368c2ecf20Sopenharmony_ci#define CVMX_ASXX_PRT_LOOP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000040ull) + ((block_id) & 1) * 0x8000000ull)
378c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_BYPASS(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000248ull) + ((block_id) & 1) * 0x8000000ull)
388c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_BYPASS_SETTING(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000250ull) + ((block_id) & 1) * 0x8000000ull)
398c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_COMP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000220ull) + ((block_id) & 1) * 0x8000000ull)
408c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_DATA_DRV(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000218ull) + ((block_id) & 1) * 0x8000000ull)
418c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_FCRAM_MODE(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000210ull) + ((block_id) & 1) * 0x8000000ull)
428c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_NCTL_STRONG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000230ull) + ((block_id) & 1) * 0x8000000ull)
438c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_NCTL_WEAK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000240ull) + ((block_id) & 1) * 0x8000000ull)
448c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_PCTL_STRONG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000228ull) + ((block_id) & 1) * 0x8000000ull)
458c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_PCTL_WEAK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000238ull) + ((block_id) & 1) * 0x8000000ull)
468c2ecf20Sopenharmony_ci#define CVMX_ASXX_RLD_SETTING(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000258ull) + ((block_id) & 1) * 0x8000000ull)
478c2ecf20Sopenharmony_ci#define CVMX_ASXX_RX_CLK_SETX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000020ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
488c2ecf20Sopenharmony_ci#define CVMX_ASXX_RX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000000ull) + ((block_id) & 1) * 0x8000000ull)
498c2ecf20Sopenharmony_ci#define CVMX_ASXX_RX_WOL(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000100ull) + ((block_id) & 1) * 0x8000000ull)
508c2ecf20Sopenharmony_ci#define CVMX_ASXX_RX_WOL_MSK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000108ull) + ((block_id) & 1) * 0x8000000ull)
518c2ecf20Sopenharmony_ci#define CVMX_ASXX_RX_WOL_POWOK(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000118ull) + ((block_id) & 1) * 0x8000000ull)
528c2ecf20Sopenharmony_ci#define CVMX_ASXX_RX_WOL_SIG(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000110ull) + ((block_id) & 1) * 0x8000000ull)
538c2ecf20Sopenharmony_ci#define CVMX_ASXX_TX_CLK_SETX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000048ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
548c2ecf20Sopenharmony_ci#define CVMX_ASXX_TX_COMP_BYP(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000068ull) + ((block_id) & 1) * 0x8000000ull)
558c2ecf20Sopenharmony_ci#define CVMX_ASXX_TX_HI_WATERX(offset, block_id) (CVMX_ADD_IO_SEG(0x00011800B0000080ull) + (((offset) & 3) + ((block_id) & 1) * 0x1000000ull) * 8)
568c2ecf20Sopenharmony_ci#define CVMX_ASXX_TX_PRT_EN(block_id) (CVMX_ADD_IO_SEG(0x00011800B0000008ull) + ((block_id) & 1) * 0x8000000ull)
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_civoid __cvmx_interrupt_asxx_enable(int block);
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciunion cvmx_asxx_gmii_rx_clk_set {
618c2ecf20Sopenharmony_ci	uint64_t u64;
628c2ecf20Sopenharmony_ci	struct cvmx_asxx_gmii_rx_clk_set_s {
638c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
648c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
658c2ecf20Sopenharmony_ci		uint64_t setting:5;
668c2ecf20Sopenharmony_ci#else
678c2ecf20Sopenharmony_ci		uint64_t setting:5;
688c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
698c2ecf20Sopenharmony_ci#endif
708c2ecf20Sopenharmony_ci	} s;
718c2ecf20Sopenharmony_ci};
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ciunion cvmx_asxx_gmii_rx_dat_set {
748c2ecf20Sopenharmony_ci	uint64_t u64;
758c2ecf20Sopenharmony_ci	struct cvmx_asxx_gmii_rx_dat_set_s {
768c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
778c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
788c2ecf20Sopenharmony_ci		uint64_t setting:5;
798c2ecf20Sopenharmony_ci#else
808c2ecf20Sopenharmony_ci		uint64_t setting:5;
818c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
828c2ecf20Sopenharmony_ci#endif
838c2ecf20Sopenharmony_ci	} s;
848c2ecf20Sopenharmony_ci};
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ciunion cvmx_asxx_int_en {
878c2ecf20Sopenharmony_ci	uint64_t u64;
888c2ecf20Sopenharmony_ci	struct cvmx_asxx_int_en_s {
898c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
908c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
918c2ecf20Sopenharmony_ci		uint64_t txpsh:4;
928c2ecf20Sopenharmony_ci		uint64_t txpop:4;
938c2ecf20Sopenharmony_ci		uint64_t ovrflw:4;
948c2ecf20Sopenharmony_ci#else
958c2ecf20Sopenharmony_ci		uint64_t ovrflw:4;
968c2ecf20Sopenharmony_ci		uint64_t txpop:4;
978c2ecf20Sopenharmony_ci		uint64_t txpsh:4;
988c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
998c2ecf20Sopenharmony_ci#endif
1008c2ecf20Sopenharmony_ci	} s;
1018c2ecf20Sopenharmony_ci	struct cvmx_asxx_int_en_cn30xx {
1028c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1038c2ecf20Sopenharmony_ci		uint64_t reserved_11_63:53;
1048c2ecf20Sopenharmony_ci		uint64_t txpsh:3;
1058c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
1068c2ecf20Sopenharmony_ci		uint64_t txpop:3;
1078c2ecf20Sopenharmony_ci		uint64_t reserved_3_3:1;
1088c2ecf20Sopenharmony_ci		uint64_t ovrflw:3;
1098c2ecf20Sopenharmony_ci#else
1108c2ecf20Sopenharmony_ci		uint64_t ovrflw:3;
1118c2ecf20Sopenharmony_ci		uint64_t reserved_3_3:1;
1128c2ecf20Sopenharmony_ci		uint64_t txpop:3;
1138c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
1148c2ecf20Sopenharmony_ci		uint64_t txpsh:3;
1158c2ecf20Sopenharmony_ci		uint64_t reserved_11_63:53;
1168c2ecf20Sopenharmony_ci#endif
1178c2ecf20Sopenharmony_ci	} cn30xx;
1188c2ecf20Sopenharmony_ci};
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ciunion cvmx_asxx_int_reg {
1218c2ecf20Sopenharmony_ci	uint64_t u64;
1228c2ecf20Sopenharmony_ci	struct cvmx_asxx_int_reg_s {
1238c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1248c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
1258c2ecf20Sopenharmony_ci		uint64_t txpsh:4;
1268c2ecf20Sopenharmony_ci		uint64_t txpop:4;
1278c2ecf20Sopenharmony_ci		uint64_t ovrflw:4;
1288c2ecf20Sopenharmony_ci#else
1298c2ecf20Sopenharmony_ci		uint64_t ovrflw:4;
1308c2ecf20Sopenharmony_ci		uint64_t txpop:4;
1318c2ecf20Sopenharmony_ci		uint64_t txpsh:4;
1328c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
1338c2ecf20Sopenharmony_ci#endif
1348c2ecf20Sopenharmony_ci	} s;
1358c2ecf20Sopenharmony_ci	struct cvmx_asxx_int_reg_cn30xx {
1368c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1378c2ecf20Sopenharmony_ci		uint64_t reserved_11_63:53;
1388c2ecf20Sopenharmony_ci		uint64_t txpsh:3;
1398c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
1408c2ecf20Sopenharmony_ci		uint64_t txpop:3;
1418c2ecf20Sopenharmony_ci		uint64_t reserved_3_3:1;
1428c2ecf20Sopenharmony_ci		uint64_t ovrflw:3;
1438c2ecf20Sopenharmony_ci#else
1448c2ecf20Sopenharmony_ci		uint64_t ovrflw:3;
1458c2ecf20Sopenharmony_ci		uint64_t reserved_3_3:1;
1468c2ecf20Sopenharmony_ci		uint64_t txpop:3;
1478c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
1488c2ecf20Sopenharmony_ci		uint64_t txpsh:3;
1498c2ecf20Sopenharmony_ci		uint64_t reserved_11_63:53;
1508c2ecf20Sopenharmony_ci#endif
1518c2ecf20Sopenharmony_ci	} cn30xx;
1528c2ecf20Sopenharmony_ci};
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ciunion cvmx_asxx_mii_rx_dat_set {
1558c2ecf20Sopenharmony_ci	uint64_t u64;
1568c2ecf20Sopenharmony_ci	struct cvmx_asxx_mii_rx_dat_set_s {
1578c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1588c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
1598c2ecf20Sopenharmony_ci		uint64_t setting:5;
1608c2ecf20Sopenharmony_ci#else
1618c2ecf20Sopenharmony_ci		uint64_t setting:5;
1628c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
1638c2ecf20Sopenharmony_ci#endif
1648c2ecf20Sopenharmony_ci	} s;
1658c2ecf20Sopenharmony_ci};
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_ciunion cvmx_asxx_prt_loop {
1688c2ecf20Sopenharmony_ci	uint64_t u64;
1698c2ecf20Sopenharmony_ci	struct cvmx_asxx_prt_loop_s {
1708c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1718c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1728c2ecf20Sopenharmony_ci		uint64_t ext_loop:4;
1738c2ecf20Sopenharmony_ci		uint64_t int_loop:4;
1748c2ecf20Sopenharmony_ci#else
1758c2ecf20Sopenharmony_ci		uint64_t int_loop:4;
1768c2ecf20Sopenharmony_ci		uint64_t ext_loop:4;
1778c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1788c2ecf20Sopenharmony_ci#endif
1798c2ecf20Sopenharmony_ci	} s;
1808c2ecf20Sopenharmony_ci	struct cvmx_asxx_prt_loop_cn30xx {
1818c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1828c2ecf20Sopenharmony_ci		uint64_t reserved_7_63:57;
1838c2ecf20Sopenharmony_ci		uint64_t ext_loop:3;
1848c2ecf20Sopenharmony_ci		uint64_t reserved_3_3:1;
1858c2ecf20Sopenharmony_ci		uint64_t int_loop:3;
1868c2ecf20Sopenharmony_ci#else
1878c2ecf20Sopenharmony_ci		uint64_t int_loop:3;
1888c2ecf20Sopenharmony_ci		uint64_t reserved_3_3:1;
1898c2ecf20Sopenharmony_ci		uint64_t ext_loop:3;
1908c2ecf20Sopenharmony_ci		uint64_t reserved_7_63:57;
1918c2ecf20Sopenharmony_ci#endif
1928c2ecf20Sopenharmony_ci	} cn30xx;
1938c2ecf20Sopenharmony_ci};
1948c2ecf20Sopenharmony_ci
1958c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_bypass {
1968c2ecf20Sopenharmony_ci	uint64_t u64;
1978c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_bypass_s {
1988c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1998c2ecf20Sopenharmony_ci		uint64_t reserved_1_63:63;
2008c2ecf20Sopenharmony_ci		uint64_t bypass:1;
2018c2ecf20Sopenharmony_ci#else
2028c2ecf20Sopenharmony_ci		uint64_t bypass:1;
2038c2ecf20Sopenharmony_ci		uint64_t reserved_1_63:63;
2048c2ecf20Sopenharmony_ci#endif
2058c2ecf20Sopenharmony_ci	} s;
2068c2ecf20Sopenharmony_ci};
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_bypass_setting {
2098c2ecf20Sopenharmony_ci	uint64_t u64;
2108c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_bypass_setting_s {
2118c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2128c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
2138c2ecf20Sopenharmony_ci		uint64_t setting:5;
2148c2ecf20Sopenharmony_ci#else
2158c2ecf20Sopenharmony_ci		uint64_t setting:5;
2168c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
2178c2ecf20Sopenharmony_ci#endif
2188c2ecf20Sopenharmony_ci	} s;
2198c2ecf20Sopenharmony_ci};
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_comp {
2228c2ecf20Sopenharmony_ci	uint64_t u64;
2238c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_comp_s {
2248c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2258c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
2268c2ecf20Sopenharmony_ci		uint64_t pctl:5;
2278c2ecf20Sopenharmony_ci		uint64_t nctl:4;
2288c2ecf20Sopenharmony_ci#else
2298c2ecf20Sopenharmony_ci		uint64_t nctl:4;
2308c2ecf20Sopenharmony_ci		uint64_t pctl:5;
2318c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
2328c2ecf20Sopenharmony_ci#endif
2338c2ecf20Sopenharmony_ci	} s;
2348c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_comp_cn38xx {
2358c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2368c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
2378c2ecf20Sopenharmony_ci		uint64_t pctl:4;
2388c2ecf20Sopenharmony_ci		uint64_t nctl:4;
2398c2ecf20Sopenharmony_ci#else
2408c2ecf20Sopenharmony_ci		uint64_t nctl:4;
2418c2ecf20Sopenharmony_ci		uint64_t pctl:4;
2428c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
2438c2ecf20Sopenharmony_ci#endif
2448c2ecf20Sopenharmony_ci	} cn38xx;
2458c2ecf20Sopenharmony_ci};
2468c2ecf20Sopenharmony_ci
2478c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_data_drv {
2488c2ecf20Sopenharmony_ci	uint64_t u64;
2498c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_data_drv_s {
2508c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2518c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
2528c2ecf20Sopenharmony_ci		uint64_t pctl:4;
2538c2ecf20Sopenharmony_ci		uint64_t nctl:4;
2548c2ecf20Sopenharmony_ci#else
2558c2ecf20Sopenharmony_ci		uint64_t nctl:4;
2568c2ecf20Sopenharmony_ci		uint64_t pctl:4;
2578c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
2588c2ecf20Sopenharmony_ci#endif
2598c2ecf20Sopenharmony_ci	} s;
2608c2ecf20Sopenharmony_ci};
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_fcram_mode {
2638c2ecf20Sopenharmony_ci	uint64_t u64;
2648c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_fcram_mode_s {
2658c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2668c2ecf20Sopenharmony_ci		uint64_t reserved_1_63:63;
2678c2ecf20Sopenharmony_ci		uint64_t mode:1;
2688c2ecf20Sopenharmony_ci#else
2698c2ecf20Sopenharmony_ci		uint64_t mode:1;
2708c2ecf20Sopenharmony_ci		uint64_t reserved_1_63:63;
2718c2ecf20Sopenharmony_ci#endif
2728c2ecf20Sopenharmony_ci	} s;
2738c2ecf20Sopenharmony_ci};
2748c2ecf20Sopenharmony_ci
2758c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_nctl_strong {
2768c2ecf20Sopenharmony_ci	uint64_t u64;
2778c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_nctl_strong_s {
2788c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2798c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
2808c2ecf20Sopenharmony_ci		uint64_t nctl:5;
2818c2ecf20Sopenharmony_ci#else
2828c2ecf20Sopenharmony_ci		uint64_t nctl:5;
2838c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
2848c2ecf20Sopenharmony_ci#endif
2858c2ecf20Sopenharmony_ci	} s;
2868c2ecf20Sopenharmony_ci};
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_nctl_weak {
2898c2ecf20Sopenharmony_ci	uint64_t u64;
2908c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_nctl_weak_s {
2918c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2928c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
2938c2ecf20Sopenharmony_ci		uint64_t nctl:5;
2948c2ecf20Sopenharmony_ci#else
2958c2ecf20Sopenharmony_ci		uint64_t nctl:5;
2968c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
2978c2ecf20Sopenharmony_ci#endif
2988c2ecf20Sopenharmony_ci	} s;
2998c2ecf20Sopenharmony_ci};
3008c2ecf20Sopenharmony_ci
3018c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_pctl_strong {
3028c2ecf20Sopenharmony_ci	uint64_t u64;
3038c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_pctl_strong_s {
3048c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3058c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3068c2ecf20Sopenharmony_ci		uint64_t pctl:5;
3078c2ecf20Sopenharmony_ci#else
3088c2ecf20Sopenharmony_ci		uint64_t pctl:5;
3098c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3108c2ecf20Sopenharmony_ci#endif
3118c2ecf20Sopenharmony_ci	} s;
3128c2ecf20Sopenharmony_ci};
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_pctl_weak {
3158c2ecf20Sopenharmony_ci	uint64_t u64;
3168c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_pctl_weak_s {
3178c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3188c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3198c2ecf20Sopenharmony_ci		uint64_t pctl:5;
3208c2ecf20Sopenharmony_ci#else
3218c2ecf20Sopenharmony_ci		uint64_t pctl:5;
3228c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3238c2ecf20Sopenharmony_ci#endif
3248c2ecf20Sopenharmony_ci	} s;
3258c2ecf20Sopenharmony_ci};
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ciunion cvmx_asxx_rld_setting {
3288c2ecf20Sopenharmony_ci	uint64_t u64;
3298c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_setting_s {
3308c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3318c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
3328c2ecf20Sopenharmony_ci		uint64_t dfaset:5;
3338c2ecf20Sopenharmony_ci		uint64_t dfalag:1;
3348c2ecf20Sopenharmony_ci		uint64_t dfalead:1;
3358c2ecf20Sopenharmony_ci		uint64_t dfalock:1;
3368c2ecf20Sopenharmony_ci		uint64_t setting:5;
3378c2ecf20Sopenharmony_ci#else
3388c2ecf20Sopenharmony_ci		uint64_t setting:5;
3398c2ecf20Sopenharmony_ci		uint64_t dfalock:1;
3408c2ecf20Sopenharmony_ci		uint64_t dfalead:1;
3418c2ecf20Sopenharmony_ci		uint64_t dfalag:1;
3428c2ecf20Sopenharmony_ci		uint64_t dfaset:5;
3438c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
3448c2ecf20Sopenharmony_ci#endif
3458c2ecf20Sopenharmony_ci	} s;
3468c2ecf20Sopenharmony_ci	struct cvmx_asxx_rld_setting_cn38xx {
3478c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3488c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3498c2ecf20Sopenharmony_ci		uint64_t setting:5;
3508c2ecf20Sopenharmony_ci#else
3518c2ecf20Sopenharmony_ci		uint64_t setting:5;
3528c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3538c2ecf20Sopenharmony_ci#endif
3548c2ecf20Sopenharmony_ci	} cn38xx;
3558c2ecf20Sopenharmony_ci};
3568c2ecf20Sopenharmony_ci
3578c2ecf20Sopenharmony_ciunion cvmx_asxx_rx_clk_setx {
3588c2ecf20Sopenharmony_ci	uint64_t u64;
3598c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_clk_setx_s {
3608c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3618c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3628c2ecf20Sopenharmony_ci		uint64_t setting:5;
3638c2ecf20Sopenharmony_ci#else
3648c2ecf20Sopenharmony_ci		uint64_t setting:5;
3658c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3668c2ecf20Sopenharmony_ci#endif
3678c2ecf20Sopenharmony_ci	} s;
3688c2ecf20Sopenharmony_ci};
3698c2ecf20Sopenharmony_ci
3708c2ecf20Sopenharmony_ciunion cvmx_asxx_rx_prt_en {
3718c2ecf20Sopenharmony_ci	uint64_t u64;
3728c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_prt_en_s {
3738c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3748c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
3758c2ecf20Sopenharmony_ci		uint64_t prt_en:4;
3768c2ecf20Sopenharmony_ci#else
3778c2ecf20Sopenharmony_ci		uint64_t prt_en:4;
3788c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
3798c2ecf20Sopenharmony_ci#endif
3808c2ecf20Sopenharmony_ci	} s;
3818c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_prt_en_cn30xx {
3828c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3838c2ecf20Sopenharmony_ci		uint64_t reserved_3_63:61;
3848c2ecf20Sopenharmony_ci		uint64_t prt_en:3;
3858c2ecf20Sopenharmony_ci#else
3868c2ecf20Sopenharmony_ci		uint64_t prt_en:3;
3878c2ecf20Sopenharmony_ci		uint64_t reserved_3_63:61;
3888c2ecf20Sopenharmony_ci#endif
3898c2ecf20Sopenharmony_ci	} cn30xx;
3908c2ecf20Sopenharmony_ci};
3918c2ecf20Sopenharmony_ci
3928c2ecf20Sopenharmony_ciunion cvmx_asxx_rx_wol {
3938c2ecf20Sopenharmony_ci	uint64_t u64;
3948c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_wol_s {
3958c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3968c2ecf20Sopenharmony_ci		uint64_t reserved_2_63:62;
3978c2ecf20Sopenharmony_ci		uint64_t status:1;
3988c2ecf20Sopenharmony_ci		uint64_t enable:1;
3998c2ecf20Sopenharmony_ci#else
4008c2ecf20Sopenharmony_ci		uint64_t enable:1;
4018c2ecf20Sopenharmony_ci		uint64_t status:1;
4028c2ecf20Sopenharmony_ci		uint64_t reserved_2_63:62;
4038c2ecf20Sopenharmony_ci#endif
4048c2ecf20Sopenharmony_ci	} s;
4058c2ecf20Sopenharmony_ci};
4068c2ecf20Sopenharmony_ci
4078c2ecf20Sopenharmony_ciunion cvmx_asxx_rx_wol_msk {
4088c2ecf20Sopenharmony_ci	uint64_t u64;
4098c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_wol_msk_s {
4108c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4118c2ecf20Sopenharmony_ci		uint64_t msk:64;
4128c2ecf20Sopenharmony_ci#else
4138c2ecf20Sopenharmony_ci		uint64_t msk:64;
4148c2ecf20Sopenharmony_ci#endif
4158c2ecf20Sopenharmony_ci	} s;
4168c2ecf20Sopenharmony_ci};
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_ciunion cvmx_asxx_rx_wol_powok {
4198c2ecf20Sopenharmony_ci	uint64_t u64;
4208c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_wol_powok_s {
4218c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4228c2ecf20Sopenharmony_ci		uint64_t reserved_1_63:63;
4238c2ecf20Sopenharmony_ci		uint64_t powerok:1;
4248c2ecf20Sopenharmony_ci#else
4258c2ecf20Sopenharmony_ci		uint64_t powerok:1;
4268c2ecf20Sopenharmony_ci		uint64_t reserved_1_63:63;
4278c2ecf20Sopenharmony_ci#endif
4288c2ecf20Sopenharmony_ci	} s;
4298c2ecf20Sopenharmony_ci};
4308c2ecf20Sopenharmony_ci
4318c2ecf20Sopenharmony_ciunion cvmx_asxx_rx_wol_sig {
4328c2ecf20Sopenharmony_ci	uint64_t u64;
4338c2ecf20Sopenharmony_ci	struct cvmx_asxx_rx_wol_sig_s {
4348c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4358c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
4368c2ecf20Sopenharmony_ci		uint64_t sig:32;
4378c2ecf20Sopenharmony_ci#else
4388c2ecf20Sopenharmony_ci		uint64_t sig:32;
4398c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
4408c2ecf20Sopenharmony_ci#endif
4418c2ecf20Sopenharmony_ci	} s;
4428c2ecf20Sopenharmony_ci};
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ciunion cvmx_asxx_tx_clk_setx {
4458c2ecf20Sopenharmony_ci	uint64_t u64;
4468c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_clk_setx_s {
4478c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4488c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
4498c2ecf20Sopenharmony_ci		uint64_t setting:5;
4508c2ecf20Sopenharmony_ci#else
4518c2ecf20Sopenharmony_ci		uint64_t setting:5;
4528c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
4538c2ecf20Sopenharmony_ci#endif
4548c2ecf20Sopenharmony_ci	} s;
4558c2ecf20Sopenharmony_ci};
4568c2ecf20Sopenharmony_ci
4578c2ecf20Sopenharmony_ciunion cvmx_asxx_tx_comp_byp {
4588c2ecf20Sopenharmony_ci	uint64_t u64;
4598c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_comp_byp_s {
4608c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4618c2ecf20Sopenharmony_ci		uint64_t reserved_0_63:64;
4628c2ecf20Sopenharmony_ci#else
4638c2ecf20Sopenharmony_ci		uint64_t reserved_0_63:64;
4648c2ecf20Sopenharmony_ci#endif
4658c2ecf20Sopenharmony_ci	} s;
4668c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_comp_byp_cn30xx {
4678c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4688c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
4698c2ecf20Sopenharmony_ci		uint64_t bypass:1;
4708c2ecf20Sopenharmony_ci		uint64_t pctl:4;
4718c2ecf20Sopenharmony_ci		uint64_t nctl:4;
4728c2ecf20Sopenharmony_ci#else
4738c2ecf20Sopenharmony_ci		uint64_t nctl:4;
4748c2ecf20Sopenharmony_ci		uint64_t pctl:4;
4758c2ecf20Sopenharmony_ci		uint64_t bypass:1;
4768c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
4778c2ecf20Sopenharmony_ci#endif
4788c2ecf20Sopenharmony_ci	} cn30xx;
4798c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_comp_byp_cn38xx {
4808c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4818c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
4828c2ecf20Sopenharmony_ci		uint64_t pctl:4;
4838c2ecf20Sopenharmony_ci		uint64_t nctl:4;
4848c2ecf20Sopenharmony_ci#else
4858c2ecf20Sopenharmony_ci		uint64_t nctl:4;
4868c2ecf20Sopenharmony_ci		uint64_t pctl:4;
4878c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
4888c2ecf20Sopenharmony_ci#endif
4898c2ecf20Sopenharmony_ci	} cn38xx;
4908c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_comp_byp_cn50xx {
4918c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4928c2ecf20Sopenharmony_ci		uint64_t reserved_17_63:47;
4938c2ecf20Sopenharmony_ci		uint64_t bypass:1;
4948c2ecf20Sopenharmony_ci		uint64_t reserved_13_15:3;
4958c2ecf20Sopenharmony_ci		uint64_t pctl:5;
4968c2ecf20Sopenharmony_ci		uint64_t reserved_5_7:3;
4978c2ecf20Sopenharmony_ci		uint64_t nctl:5;
4988c2ecf20Sopenharmony_ci#else
4998c2ecf20Sopenharmony_ci		uint64_t nctl:5;
5008c2ecf20Sopenharmony_ci		uint64_t reserved_5_7:3;
5018c2ecf20Sopenharmony_ci		uint64_t pctl:5;
5028c2ecf20Sopenharmony_ci		uint64_t reserved_13_15:3;
5038c2ecf20Sopenharmony_ci		uint64_t bypass:1;
5048c2ecf20Sopenharmony_ci		uint64_t reserved_17_63:47;
5058c2ecf20Sopenharmony_ci#endif
5068c2ecf20Sopenharmony_ci	} cn50xx;
5078c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_comp_byp_cn58xx {
5088c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5098c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
5108c2ecf20Sopenharmony_ci		uint64_t pctl:5;
5118c2ecf20Sopenharmony_ci		uint64_t reserved_5_7:3;
5128c2ecf20Sopenharmony_ci		uint64_t nctl:5;
5138c2ecf20Sopenharmony_ci#else
5148c2ecf20Sopenharmony_ci		uint64_t nctl:5;
5158c2ecf20Sopenharmony_ci		uint64_t reserved_5_7:3;
5168c2ecf20Sopenharmony_ci		uint64_t pctl:5;
5178c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
5188c2ecf20Sopenharmony_ci#endif
5198c2ecf20Sopenharmony_ci	} cn58xx;
5208c2ecf20Sopenharmony_ci};
5218c2ecf20Sopenharmony_ci
5228c2ecf20Sopenharmony_ciunion cvmx_asxx_tx_hi_waterx {
5238c2ecf20Sopenharmony_ci	uint64_t u64;
5248c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_hi_waterx_s {
5258c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5268c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
5278c2ecf20Sopenharmony_ci		uint64_t mark:4;
5288c2ecf20Sopenharmony_ci#else
5298c2ecf20Sopenharmony_ci		uint64_t mark:4;
5308c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
5318c2ecf20Sopenharmony_ci#endif
5328c2ecf20Sopenharmony_ci	} s;
5338c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_hi_waterx_cn30xx {
5348c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5358c2ecf20Sopenharmony_ci		uint64_t reserved_3_63:61;
5368c2ecf20Sopenharmony_ci		uint64_t mark:3;
5378c2ecf20Sopenharmony_ci#else
5388c2ecf20Sopenharmony_ci		uint64_t mark:3;
5398c2ecf20Sopenharmony_ci		uint64_t reserved_3_63:61;
5408c2ecf20Sopenharmony_ci#endif
5418c2ecf20Sopenharmony_ci	} cn30xx;
5428c2ecf20Sopenharmony_ci};
5438c2ecf20Sopenharmony_ci
5448c2ecf20Sopenharmony_ciunion cvmx_asxx_tx_prt_en {
5458c2ecf20Sopenharmony_ci	uint64_t u64;
5468c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_prt_en_s {
5478c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5488c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
5498c2ecf20Sopenharmony_ci		uint64_t prt_en:4;
5508c2ecf20Sopenharmony_ci#else
5518c2ecf20Sopenharmony_ci		uint64_t prt_en:4;
5528c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
5538c2ecf20Sopenharmony_ci#endif
5548c2ecf20Sopenharmony_ci	} s;
5558c2ecf20Sopenharmony_ci	struct cvmx_asxx_tx_prt_en_cn30xx {
5568c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5578c2ecf20Sopenharmony_ci		uint64_t reserved_3_63:61;
5588c2ecf20Sopenharmony_ci		uint64_t prt_en:3;
5598c2ecf20Sopenharmony_ci#else
5608c2ecf20Sopenharmony_ci		uint64_t prt_en:3;
5618c2ecf20Sopenharmony_ci		uint64_t reserved_3_63:61;
5628c2ecf20Sopenharmony_ci#endif
5638c2ecf20Sopenharmony_ci	} cn30xx;
5648c2ecf20Sopenharmony_ci};
5658c2ecf20Sopenharmony_ci
5668c2ecf20Sopenharmony_ci#endif
567