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_SPXX_DEFS_H__ 298c2ecf20Sopenharmony_ci#define __CVMX_SPXX_DEFS_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define CVMX_SPXX_BCKPRS_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000340ull) + ((block_id) & 1) * 0x8000000ull) 328c2ecf20Sopenharmony_ci#define CVMX_SPXX_BIST_STAT(block_id) (CVMX_ADD_IO_SEG(0x00011800900007F8ull) + ((block_id) & 1) * 0x8000000ull) 338c2ecf20Sopenharmony_ci#define CVMX_SPXX_CLK_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000348ull) + ((block_id) & 1) * 0x8000000ull) 348c2ecf20Sopenharmony_ci#define CVMX_SPXX_CLK_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000350ull) + ((block_id) & 1) * 0x8000000ull) 358c2ecf20Sopenharmony_ci#define CVMX_SPXX_DBG_DESKEW_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000368ull) + ((block_id) & 1) * 0x8000000ull) 368c2ecf20Sopenharmony_ci#define CVMX_SPXX_DBG_DESKEW_STATE(block_id) (CVMX_ADD_IO_SEG(0x0001180090000370ull) + ((block_id) & 1) * 0x8000000ull) 378c2ecf20Sopenharmony_ci#define CVMX_SPXX_DRV_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000358ull) + ((block_id) & 1) * 0x8000000ull) 388c2ecf20Sopenharmony_ci#define CVMX_SPXX_ERR_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000320ull) + ((block_id) & 1) * 0x8000000ull) 398c2ecf20Sopenharmony_ci#define CVMX_SPXX_INT_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000318ull) + ((block_id) & 1) * 0x8000000ull) 408c2ecf20Sopenharmony_ci#define CVMX_SPXX_INT_MSK(block_id) (CVMX_ADD_IO_SEG(0x0001180090000308ull) + ((block_id) & 1) * 0x8000000ull) 418c2ecf20Sopenharmony_ci#define CVMX_SPXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x0001180090000300ull) + ((block_id) & 1) * 0x8000000ull) 428c2ecf20Sopenharmony_ci#define CVMX_SPXX_INT_SYNC(block_id) (CVMX_ADD_IO_SEG(0x0001180090000310ull) + ((block_id) & 1) * 0x8000000ull) 438c2ecf20Sopenharmony_ci#define CVMX_SPXX_TPA_ACC(block_id) (CVMX_ADD_IO_SEG(0x0001180090000338ull) + ((block_id) & 1) * 0x8000000ull) 448c2ecf20Sopenharmony_ci#define CVMX_SPXX_TPA_MAX(block_id) (CVMX_ADD_IO_SEG(0x0001180090000330ull) + ((block_id) & 1) * 0x8000000ull) 458c2ecf20Sopenharmony_ci#define CVMX_SPXX_TPA_SEL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000328ull) + ((block_id) & 1) * 0x8000000ull) 468c2ecf20Sopenharmony_ci#define CVMX_SPXX_TRN4_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000360ull) + ((block_id) & 1) * 0x8000000ull) 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_civoid __cvmx_interrupt_spxx_int_msk_enable(int index); 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciunion cvmx_spxx_bckprs_cnt { 518c2ecf20Sopenharmony_ci uint64_t u64; 528c2ecf20Sopenharmony_ci struct cvmx_spxx_bckprs_cnt_s { 538c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 548c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 558c2ecf20Sopenharmony_ci uint64_t cnt:32; 568c2ecf20Sopenharmony_ci#else 578c2ecf20Sopenharmony_ci uint64_t cnt:32; 588c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 598c2ecf20Sopenharmony_ci#endif 608c2ecf20Sopenharmony_ci } s; 618c2ecf20Sopenharmony_ci}; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ciunion cvmx_spxx_bist_stat { 648c2ecf20Sopenharmony_ci uint64_t u64; 658c2ecf20Sopenharmony_ci struct cvmx_spxx_bist_stat_s { 668c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 678c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 688c2ecf20Sopenharmony_ci uint64_t stat2:1; 698c2ecf20Sopenharmony_ci uint64_t stat1:1; 708c2ecf20Sopenharmony_ci uint64_t stat0:1; 718c2ecf20Sopenharmony_ci#else 728c2ecf20Sopenharmony_ci uint64_t stat0:1; 738c2ecf20Sopenharmony_ci uint64_t stat1:1; 748c2ecf20Sopenharmony_ci uint64_t stat2:1; 758c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 768c2ecf20Sopenharmony_ci#endif 778c2ecf20Sopenharmony_ci } s; 788c2ecf20Sopenharmony_ci}; 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ciunion cvmx_spxx_clk_ctl { 818c2ecf20Sopenharmony_ci uint64_t u64; 828c2ecf20Sopenharmony_ci struct cvmx_spxx_clk_ctl_s { 838c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 848c2ecf20Sopenharmony_ci uint64_t reserved_17_63:47; 858c2ecf20Sopenharmony_ci uint64_t seetrn:1; 868c2ecf20Sopenharmony_ci uint64_t reserved_12_15:4; 878c2ecf20Sopenharmony_ci uint64_t clkdly:5; 888c2ecf20Sopenharmony_ci uint64_t runbist:1; 898c2ecf20Sopenharmony_ci uint64_t statdrv:1; 908c2ecf20Sopenharmony_ci uint64_t statrcv:1; 918c2ecf20Sopenharmony_ci uint64_t sndtrn:1; 928c2ecf20Sopenharmony_ci uint64_t drptrn:1; 938c2ecf20Sopenharmony_ci uint64_t rcvtrn:1; 948c2ecf20Sopenharmony_ci uint64_t srxdlck:1; 958c2ecf20Sopenharmony_ci#else 968c2ecf20Sopenharmony_ci uint64_t srxdlck:1; 978c2ecf20Sopenharmony_ci uint64_t rcvtrn:1; 988c2ecf20Sopenharmony_ci uint64_t drptrn:1; 998c2ecf20Sopenharmony_ci uint64_t sndtrn:1; 1008c2ecf20Sopenharmony_ci uint64_t statrcv:1; 1018c2ecf20Sopenharmony_ci uint64_t statdrv:1; 1028c2ecf20Sopenharmony_ci uint64_t runbist:1; 1038c2ecf20Sopenharmony_ci uint64_t clkdly:5; 1048c2ecf20Sopenharmony_ci uint64_t reserved_12_15:4; 1058c2ecf20Sopenharmony_ci uint64_t seetrn:1; 1068c2ecf20Sopenharmony_ci uint64_t reserved_17_63:47; 1078c2ecf20Sopenharmony_ci#endif 1088c2ecf20Sopenharmony_ci } s; 1098c2ecf20Sopenharmony_ci}; 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ciunion cvmx_spxx_clk_stat { 1128c2ecf20Sopenharmony_ci uint64_t u64; 1138c2ecf20Sopenharmony_ci struct cvmx_spxx_clk_stat_s { 1148c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1158c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 1168c2ecf20Sopenharmony_ci uint64_t stxcal:1; 1178c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 1188c2ecf20Sopenharmony_ci uint64_t srxtrn:1; 1198c2ecf20Sopenharmony_ci uint64_t s4clk1:1; 1208c2ecf20Sopenharmony_ci uint64_t s4clk0:1; 1218c2ecf20Sopenharmony_ci uint64_t d4clk1:1; 1228c2ecf20Sopenharmony_ci uint64_t d4clk0:1; 1238c2ecf20Sopenharmony_ci uint64_t reserved_0_3:4; 1248c2ecf20Sopenharmony_ci#else 1258c2ecf20Sopenharmony_ci uint64_t reserved_0_3:4; 1268c2ecf20Sopenharmony_ci uint64_t d4clk0:1; 1278c2ecf20Sopenharmony_ci uint64_t d4clk1:1; 1288c2ecf20Sopenharmony_ci uint64_t s4clk0:1; 1298c2ecf20Sopenharmony_ci uint64_t s4clk1:1; 1308c2ecf20Sopenharmony_ci uint64_t srxtrn:1; 1318c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 1328c2ecf20Sopenharmony_ci uint64_t stxcal:1; 1338c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 1348c2ecf20Sopenharmony_ci#endif 1358c2ecf20Sopenharmony_ci } s; 1368c2ecf20Sopenharmony_ci}; 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ciunion cvmx_spxx_dbg_deskew_ctl { 1398c2ecf20Sopenharmony_ci uint64_t u64; 1408c2ecf20Sopenharmony_ci struct cvmx_spxx_dbg_deskew_ctl_s { 1418c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1428c2ecf20Sopenharmony_ci uint64_t reserved_30_63:34; 1438c2ecf20Sopenharmony_ci uint64_t fallnop:1; 1448c2ecf20Sopenharmony_ci uint64_t fall8:1; 1458c2ecf20Sopenharmony_ci uint64_t reserved_26_27:2; 1468c2ecf20Sopenharmony_ci uint64_t sstep_go:1; 1478c2ecf20Sopenharmony_ci uint64_t sstep:1; 1488c2ecf20Sopenharmony_ci uint64_t reserved_22_23:2; 1498c2ecf20Sopenharmony_ci uint64_t clrdly:1; 1508c2ecf20Sopenharmony_ci uint64_t dec:1; 1518c2ecf20Sopenharmony_ci uint64_t inc:1; 1528c2ecf20Sopenharmony_ci uint64_t mux:1; 1538c2ecf20Sopenharmony_ci uint64_t offset:5; 1548c2ecf20Sopenharmony_ci uint64_t bitsel:5; 1558c2ecf20Sopenharmony_ci uint64_t offdly:6; 1568c2ecf20Sopenharmony_ci uint64_t dllfrc:1; 1578c2ecf20Sopenharmony_ci uint64_t dlldis:1; 1588c2ecf20Sopenharmony_ci#else 1598c2ecf20Sopenharmony_ci uint64_t dlldis:1; 1608c2ecf20Sopenharmony_ci uint64_t dllfrc:1; 1618c2ecf20Sopenharmony_ci uint64_t offdly:6; 1628c2ecf20Sopenharmony_ci uint64_t bitsel:5; 1638c2ecf20Sopenharmony_ci uint64_t offset:5; 1648c2ecf20Sopenharmony_ci uint64_t mux:1; 1658c2ecf20Sopenharmony_ci uint64_t inc:1; 1668c2ecf20Sopenharmony_ci uint64_t dec:1; 1678c2ecf20Sopenharmony_ci uint64_t clrdly:1; 1688c2ecf20Sopenharmony_ci uint64_t reserved_22_23:2; 1698c2ecf20Sopenharmony_ci uint64_t sstep:1; 1708c2ecf20Sopenharmony_ci uint64_t sstep_go:1; 1718c2ecf20Sopenharmony_ci uint64_t reserved_26_27:2; 1728c2ecf20Sopenharmony_ci uint64_t fall8:1; 1738c2ecf20Sopenharmony_ci uint64_t fallnop:1; 1748c2ecf20Sopenharmony_ci uint64_t reserved_30_63:34; 1758c2ecf20Sopenharmony_ci#endif 1768c2ecf20Sopenharmony_ci } s; 1778c2ecf20Sopenharmony_ci}; 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ciunion cvmx_spxx_dbg_deskew_state { 1808c2ecf20Sopenharmony_ci uint64_t u64; 1818c2ecf20Sopenharmony_ci struct cvmx_spxx_dbg_deskew_state_s { 1828c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1838c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 1848c2ecf20Sopenharmony_ci uint64_t testres:1; 1858c2ecf20Sopenharmony_ci uint64_t unxterm:1; 1868c2ecf20Sopenharmony_ci uint64_t muxsel:2; 1878c2ecf20Sopenharmony_ci uint64_t offset:5; 1888c2ecf20Sopenharmony_ci#else 1898c2ecf20Sopenharmony_ci uint64_t offset:5; 1908c2ecf20Sopenharmony_ci uint64_t muxsel:2; 1918c2ecf20Sopenharmony_ci uint64_t unxterm:1; 1928c2ecf20Sopenharmony_ci uint64_t testres:1; 1938c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 1948c2ecf20Sopenharmony_ci#endif 1958c2ecf20Sopenharmony_ci } s; 1968c2ecf20Sopenharmony_ci}; 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ciunion cvmx_spxx_drv_ctl { 1998c2ecf20Sopenharmony_ci uint64_t u64; 2008c2ecf20Sopenharmony_ci struct cvmx_spxx_drv_ctl_s { 2018c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2028c2ecf20Sopenharmony_ci uint64_t reserved_0_63:64; 2038c2ecf20Sopenharmony_ci#else 2048c2ecf20Sopenharmony_ci uint64_t reserved_0_63:64; 2058c2ecf20Sopenharmony_ci#endif 2068c2ecf20Sopenharmony_ci } s; 2078c2ecf20Sopenharmony_ci struct cvmx_spxx_drv_ctl_cn38xx { 2088c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2098c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 2108c2ecf20Sopenharmony_ci uint64_t stx4ncmp:4; 2118c2ecf20Sopenharmony_ci uint64_t stx4pcmp:4; 2128c2ecf20Sopenharmony_ci uint64_t srx4cmp:8; 2138c2ecf20Sopenharmony_ci#else 2148c2ecf20Sopenharmony_ci uint64_t srx4cmp:8; 2158c2ecf20Sopenharmony_ci uint64_t stx4pcmp:4; 2168c2ecf20Sopenharmony_ci uint64_t stx4ncmp:4; 2178c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 2188c2ecf20Sopenharmony_ci#endif 2198c2ecf20Sopenharmony_ci } cn38xx; 2208c2ecf20Sopenharmony_ci struct cvmx_spxx_drv_ctl_cn58xx { 2218c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2228c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 2238c2ecf20Sopenharmony_ci uint64_t stx4ncmp:4; 2248c2ecf20Sopenharmony_ci uint64_t stx4pcmp:4; 2258c2ecf20Sopenharmony_ci uint64_t reserved_10_15:6; 2268c2ecf20Sopenharmony_ci uint64_t srx4cmp:10; 2278c2ecf20Sopenharmony_ci#else 2288c2ecf20Sopenharmony_ci uint64_t srx4cmp:10; 2298c2ecf20Sopenharmony_ci uint64_t reserved_10_15:6; 2308c2ecf20Sopenharmony_ci uint64_t stx4pcmp:4; 2318c2ecf20Sopenharmony_ci uint64_t stx4ncmp:4; 2328c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 2338c2ecf20Sopenharmony_ci#endif 2348c2ecf20Sopenharmony_ci } cn58xx; 2358c2ecf20Sopenharmony_ci}; 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_ciunion cvmx_spxx_err_ctl { 2388c2ecf20Sopenharmony_ci uint64_t u64; 2398c2ecf20Sopenharmony_ci struct cvmx_spxx_err_ctl_s { 2408c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2418c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 2428c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 2438c2ecf20Sopenharmony_ci uint64_t dipcls:1; 2448c2ecf20Sopenharmony_ci uint64_t dippay:1; 2458c2ecf20Sopenharmony_ci uint64_t reserved_4_5:2; 2468c2ecf20Sopenharmony_ci uint64_t errcnt:4; 2478c2ecf20Sopenharmony_ci#else 2488c2ecf20Sopenharmony_ci uint64_t errcnt:4; 2498c2ecf20Sopenharmony_ci uint64_t reserved_4_5:2; 2508c2ecf20Sopenharmony_ci uint64_t dippay:1; 2518c2ecf20Sopenharmony_ci uint64_t dipcls:1; 2528c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 2538c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 2548c2ecf20Sopenharmony_ci#endif 2558c2ecf20Sopenharmony_ci } s; 2568c2ecf20Sopenharmony_ci}; 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_ciunion cvmx_spxx_int_dat { 2598c2ecf20Sopenharmony_ci uint64_t u64; 2608c2ecf20Sopenharmony_ci struct cvmx_spxx_int_dat_s { 2618c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2628c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 2638c2ecf20Sopenharmony_ci uint64_t mul:1; 2648c2ecf20Sopenharmony_ci uint64_t reserved_14_30:17; 2658c2ecf20Sopenharmony_ci uint64_t calbnk:2; 2668c2ecf20Sopenharmony_ci uint64_t rsvop:4; 2678c2ecf20Sopenharmony_ci uint64_t prt:8; 2688c2ecf20Sopenharmony_ci#else 2698c2ecf20Sopenharmony_ci uint64_t prt:8; 2708c2ecf20Sopenharmony_ci uint64_t rsvop:4; 2718c2ecf20Sopenharmony_ci uint64_t calbnk:2; 2728c2ecf20Sopenharmony_ci uint64_t reserved_14_30:17; 2738c2ecf20Sopenharmony_ci uint64_t mul:1; 2748c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 2758c2ecf20Sopenharmony_ci#endif 2768c2ecf20Sopenharmony_ci } s; 2778c2ecf20Sopenharmony_ci}; 2788c2ecf20Sopenharmony_ci 2798c2ecf20Sopenharmony_ciunion cvmx_spxx_int_msk { 2808c2ecf20Sopenharmony_ci uint64_t u64; 2818c2ecf20Sopenharmony_ci struct cvmx_spxx_int_msk_s { 2828c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2838c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 2848c2ecf20Sopenharmony_ci uint64_t calerr:1; 2858c2ecf20Sopenharmony_ci uint64_t syncerr:1; 2868c2ecf20Sopenharmony_ci uint64_t diperr:1; 2878c2ecf20Sopenharmony_ci uint64_t tpaovr:1; 2888c2ecf20Sopenharmony_ci uint64_t rsverr:1; 2898c2ecf20Sopenharmony_ci uint64_t drwnng:1; 2908c2ecf20Sopenharmony_ci uint64_t clserr:1; 2918c2ecf20Sopenharmony_ci uint64_t spiovr:1; 2928c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 2938c2ecf20Sopenharmony_ci uint64_t abnorm:1; 2948c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 2958c2ecf20Sopenharmony_ci#else 2968c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 2978c2ecf20Sopenharmony_ci uint64_t abnorm:1; 2988c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 2998c2ecf20Sopenharmony_ci uint64_t spiovr:1; 3008c2ecf20Sopenharmony_ci uint64_t clserr:1; 3018c2ecf20Sopenharmony_ci uint64_t drwnng:1; 3028c2ecf20Sopenharmony_ci uint64_t rsverr:1; 3038c2ecf20Sopenharmony_ci uint64_t tpaovr:1; 3048c2ecf20Sopenharmony_ci uint64_t diperr:1; 3058c2ecf20Sopenharmony_ci uint64_t syncerr:1; 3068c2ecf20Sopenharmony_ci uint64_t calerr:1; 3078c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 3088c2ecf20Sopenharmony_ci#endif 3098c2ecf20Sopenharmony_ci } s; 3108c2ecf20Sopenharmony_ci}; 3118c2ecf20Sopenharmony_ci 3128c2ecf20Sopenharmony_ciunion cvmx_spxx_int_reg { 3138c2ecf20Sopenharmony_ci uint64_t u64; 3148c2ecf20Sopenharmony_ci struct cvmx_spxx_int_reg_s { 3158c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3168c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 3178c2ecf20Sopenharmony_ci uint64_t spf:1; 3188c2ecf20Sopenharmony_ci uint64_t reserved_12_30:19; 3198c2ecf20Sopenharmony_ci uint64_t calerr:1; 3208c2ecf20Sopenharmony_ci uint64_t syncerr:1; 3218c2ecf20Sopenharmony_ci uint64_t diperr:1; 3228c2ecf20Sopenharmony_ci uint64_t tpaovr:1; 3238c2ecf20Sopenharmony_ci uint64_t rsverr:1; 3248c2ecf20Sopenharmony_ci uint64_t drwnng:1; 3258c2ecf20Sopenharmony_ci uint64_t clserr:1; 3268c2ecf20Sopenharmony_ci uint64_t spiovr:1; 3278c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 3288c2ecf20Sopenharmony_ci uint64_t abnorm:1; 3298c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 3308c2ecf20Sopenharmony_ci#else 3318c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 3328c2ecf20Sopenharmony_ci uint64_t abnorm:1; 3338c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 3348c2ecf20Sopenharmony_ci uint64_t spiovr:1; 3358c2ecf20Sopenharmony_ci uint64_t clserr:1; 3368c2ecf20Sopenharmony_ci uint64_t drwnng:1; 3378c2ecf20Sopenharmony_ci uint64_t rsverr:1; 3388c2ecf20Sopenharmony_ci uint64_t tpaovr:1; 3398c2ecf20Sopenharmony_ci uint64_t diperr:1; 3408c2ecf20Sopenharmony_ci uint64_t syncerr:1; 3418c2ecf20Sopenharmony_ci uint64_t calerr:1; 3428c2ecf20Sopenharmony_ci uint64_t reserved_12_30:19; 3438c2ecf20Sopenharmony_ci uint64_t spf:1; 3448c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 3458c2ecf20Sopenharmony_ci#endif 3468c2ecf20Sopenharmony_ci } s; 3478c2ecf20Sopenharmony_ci}; 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_ciunion cvmx_spxx_int_sync { 3508c2ecf20Sopenharmony_ci uint64_t u64; 3518c2ecf20Sopenharmony_ci struct cvmx_spxx_int_sync_s { 3528c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3538c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 3548c2ecf20Sopenharmony_ci uint64_t calerr:1; 3558c2ecf20Sopenharmony_ci uint64_t syncerr:1; 3568c2ecf20Sopenharmony_ci uint64_t diperr:1; 3578c2ecf20Sopenharmony_ci uint64_t tpaovr:1; 3588c2ecf20Sopenharmony_ci uint64_t rsverr:1; 3598c2ecf20Sopenharmony_ci uint64_t drwnng:1; 3608c2ecf20Sopenharmony_ci uint64_t clserr:1; 3618c2ecf20Sopenharmony_ci uint64_t spiovr:1; 3628c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 3638c2ecf20Sopenharmony_ci uint64_t abnorm:1; 3648c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 3658c2ecf20Sopenharmony_ci#else 3668c2ecf20Sopenharmony_ci uint64_t prtnxa:1; 3678c2ecf20Sopenharmony_ci uint64_t abnorm:1; 3688c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 3698c2ecf20Sopenharmony_ci uint64_t spiovr:1; 3708c2ecf20Sopenharmony_ci uint64_t clserr:1; 3718c2ecf20Sopenharmony_ci uint64_t drwnng:1; 3728c2ecf20Sopenharmony_ci uint64_t rsverr:1; 3738c2ecf20Sopenharmony_ci uint64_t tpaovr:1; 3748c2ecf20Sopenharmony_ci uint64_t diperr:1; 3758c2ecf20Sopenharmony_ci uint64_t syncerr:1; 3768c2ecf20Sopenharmony_ci uint64_t calerr:1; 3778c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 3788c2ecf20Sopenharmony_ci#endif 3798c2ecf20Sopenharmony_ci } s; 3808c2ecf20Sopenharmony_ci}; 3818c2ecf20Sopenharmony_ci 3828c2ecf20Sopenharmony_ciunion cvmx_spxx_tpa_acc { 3838c2ecf20Sopenharmony_ci uint64_t u64; 3848c2ecf20Sopenharmony_ci struct cvmx_spxx_tpa_acc_s { 3858c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3868c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 3878c2ecf20Sopenharmony_ci uint64_t cnt:32; 3888c2ecf20Sopenharmony_ci#else 3898c2ecf20Sopenharmony_ci uint64_t cnt:32; 3908c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 3918c2ecf20Sopenharmony_ci#endif 3928c2ecf20Sopenharmony_ci } s; 3938c2ecf20Sopenharmony_ci}; 3948c2ecf20Sopenharmony_ci 3958c2ecf20Sopenharmony_ciunion cvmx_spxx_tpa_max { 3968c2ecf20Sopenharmony_ci uint64_t u64; 3978c2ecf20Sopenharmony_ci struct cvmx_spxx_tpa_max_s { 3988c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3998c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 4008c2ecf20Sopenharmony_ci uint64_t max:32; 4018c2ecf20Sopenharmony_ci#else 4028c2ecf20Sopenharmony_ci uint64_t max:32; 4038c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 4048c2ecf20Sopenharmony_ci#endif 4058c2ecf20Sopenharmony_ci } s; 4068c2ecf20Sopenharmony_ci}; 4078c2ecf20Sopenharmony_ci 4088c2ecf20Sopenharmony_ciunion cvmx_spxx_tpa_sel { 4098c2ecf20Sopenharmony_ci uint64_t u64; 4108c2ecf20Sopenharmony_ci struct cvmx_spxx_tpa_sel_s { 4118c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4128c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 4138c2ecf20Sopenharmony_ci uint64_t prtsel:4; 4148c2ecf20Sopenharmony_ci#else 4158c2ecf20Sopenharmony_ci uint64_t prtsel:4; 4168c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 4178c2ecf20Sopenharmony_ci#endif 4188c2ecf20Sopenharmony_ci } s; 4198c2ecf20Sopenharmony_ci}; 4208c2ecf20Sopenharmony_ci 4218c2ecf20Sopenharmony_ciunion cvmx_spxx_trn4_ctl { 4228c2ecf20Sopenharmony_ci uint64_t u64; 4238c2ecf20Sopenharmony_ci struct cvmx_spxx_trn4_ctl_s { 4248c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4258c2ecf20Sopenharmony_ci uint64_t reserved_13_63:51; 4268c2ecf20Sopenharmony_ci uint64_t trntest:1; 4278c2ecf20Sopenharmony_ci uint64_t jitter:3; 4288c2ecf20Sopenharmony_ci uint64_t clr_boot:1; 4298c2ecf20Sopenharmony_ci uint64_t set_boot:1; 4308c2ecf20Sopenharmony_ci uint64_t maxdist:5; 4318c2ecf20Sopenharmony_ci uint64_t macro_en:1; 4328c2ecf20Sopenharmony_ci uint64_t mux_en:1; 4338c2ecf20Sopenharmony_ci#else 4348c2ecf20Sopenharmony_ci uint64_t mux_en:1; 4358c2ecf20Sopenharmony_ci uint64_t macro_en:1; 4368c2ecf20Sopenharmony_ci uint64_t maxdist:5; 4378c2ecf20Sopenharmony_ci uint64_t set_boot:1; 4388c2ecf20Sopenharmony_ci uint64_t clr_boot:1; 4398c2ecf20Sopenharmony_ci uint64_t jitter:3; 4408c2ecf20Sopenharmony_ci uint64_t trntest:1; 4418c2ecf20Sopenharmony_ci uint64_t reserved_13_63:51; 4428c2ecf20Sopenharmony_ci#endif 4438c2ecf20Sopenharmony_ci } s; 4448c2ecf20Sopenharmony_ci}; 4458c2ecf20Sopenharmony_ci 4468c2ecf20Sopenharmony_ci#endif 447