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_STXX_DEFS_H__
298c2ecf20Sopenharmony_ci#define __CVMX_STXX_DEFS_H__
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define CVMX_STXX_ARB_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000608ull) + ((block_id) & 1) * 0x8000000ull)
328c2ecf20Sopenharmony_ci#define CVMX_STXX_BCKPRS_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000688ull) + ((block_id) & 1) * 0x8000000ull)
338c2ecf20Sopenharmony_ci#define CVMX_STXX_COM_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000600ull) + ((block_id) & 1) * 0x8000000ull)
348c2ecf20Sopenharmony_ci#define CVMX_STXX_DIP_CNT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000690ull) + ((block_id) & 1) * 0x8000000ull)
358c2ecf20Sopenharmony_ci#define CVMX_STXX_IGN_CAL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000610ull) + ((block_id) & 1) * 0x8000000ull)
368c2ecf20Sopenharmony_ci#define CVMX_STXX_INT_MSK(block_id) (CVMX_ADD_IO_SEG(0x00011800900006A0ull) + ((block_id) & 1) * 0x8000000ull)
378c2ecf20Sopenharmony_ci#define CVMX_STXX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x0001180090000698ull) + ((block_id) & 1) * 0x8000000ull)
388c2ecf20Sopenharmony_ci#define CVMX_STXX_INT_SYNC(block_id) (CVMX_ADD_IO_SEG(0x00011800900006A8ull) + ((block_id) & 1) * 0x8000000ull)
398c2ecf20Sopenharmony_ci#define CVMX_STXX_MIN_BST(block_id) (CVMX_ADD_IO_SEG(0x0001180090000618ull) + ((block_id) & 1) * 0x8000000ull)
408c2ecf20Sopenharmony_ci#define CVMX_STXX_SPI4_CALX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180090000400ull) + (((offset) & 31) + ((block_id) & 1) * 0x1000000ull) * 8)
418c2ecf20Sopenharmony_ci#define CVMX_STXX_SPI4_DAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000628ull) + ((block_id) & 1) * 0x8000000ull)
428c2ecf20Sopenharmony_ci#define CVMX_STXX_SPI4_STAT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000630ull) + ((block_id) & 1) * 0x8000000ull)
438c2ecf20Sopenharmony_ci#define CVMX_STXX_STAT_BYTES_HI(block_id) (CVMX_ADD_IO_SEG(0x0001180090000648ull) + ((block_id) & 1) * 0x8000000ull)
448c2ecf20Sopenharmony_ci#define CVMX_STXX_STAT_BYTES_LO(block_id) (CVMX_ADD_IO_SEG(0x0001180090000680ull) + ((block_id) & 1) * 0x8000000ull)
458c2ecf20Sopenharmony_ci#define CVMX_STXX_STAT_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180090000638ull) + ((block_id) & 1) * 0x8000000ull)
468c2ecf20Sopenharmony_ci#define CVMX_STXX_STAT_PKT_XMT(block_id) (CVMX_ADD_IO_SEG(0x0001180090000640ull) + ((block_id) & 1) * 0x8000000ull)
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_civoid __cvmx_interrupt_stxx_int_msk_enable(int index);
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciunion cvmx_stxx_arb_ctl {
518c2ecf20Sopenharmony_ci	uint64_t u64;
528c2ecf20Sopenharmony_ci	struct cvmx_stxx_arb_ctl_s {
538c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
548c2ecf20Sopenharmony_ci		uint64_t reserved_6_63:58;
558c2ecf20Sopenharmony_ci		uint64_t mintrn:1;
568c2ecf20Sopenharmony_ci		uint64_t reserved_4_4:1;
578c2ecf20Sopenharmony_ci		uint64_t igntpa:1;
588c2ecf20Sopenharmony_ci		uint64_t reserved_0_2:3;
598c2ecf20Sopenharmony_ci#else
608c2ecf20Sopenharmony_ci		uint64_t reserved_0_2:3;
618c2ecf20Sopenharmony_ci		uint64_t igntpa:1;
628c2ecf20Sopenharmony_ci		uint64_t reserved_4_4:1;
638c2ecf20Sopenharmony_ci		uint64_t mintrn:1;
648c2ecf20Sopenharmony_ci		uint64_t reserved_6_63:58;
658c2ecf20Sopenharmony_ci#endif
668c2ecf20Sopenharmony_ci	} s;
678c2ecf20Sopenharmony_ci};
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciunion cvmx_stxx_bckprs_cnt {
708c2ecf20Sopenharmony_ci	uint64_t u64;
718c2ecf20Sopenharmony_ci	struct cvmx_stxx_bckprs_cnt_s {
728c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
738c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
748c2ecf20Sopenharmony_ci		uint64_t cnt:32;
758c2ecf20Sopenharmony_ci#else
768c2ecf20Sopenharmony_ci		uint64_t cnt:32;
778c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
788c2ecf20Sopenharmony_ci#endif
798c2ecf20Sopenharmony_ci	} s;
808c2ecf20Sopenharmony_ci};
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ciunion cvmx_stxx_com_ctl {
838c2ecf20Sopenharmony_ci	uint64_t u64;
848c2ecf20Sopenharmony_ci	struct cvmx_stxx_com_ctl_s {
858c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
868c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
878c2ecf20Sopenharmony_ci		uint64_t st_en:1;
888c2ecf20Sopenharmony_ci		uint64_t reserved_1_2:2;
898c2ecf20Sopenharmony_ci		uint64_t inf_en:1;
908c2ecf20Sopenharmony_ci#else
918c2ecf20Sopenharmony_ci		uint64_t inf_en:1;
928c2ecf20Sopenharmony_ci		uint64_t reserved_1_2:2;
938c2ecf20Sopenharmony_ci		uint64_t st_en:1;
948c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
958c2ecf20Sopenharmony_ci#endif
968c2ecf20Sopenharmony_ci	} s;
978c2ecf20Sopenharmony_ci};
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ciunion cvmx_stxx_dip_cnt {
1008c2ecf20Sopenharmony_ci	uint64_t u64;
1018c2ecf20Sopenharmony_ci	struct cvmx_stxx_dip_cnt_s {
1028c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1038c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1048c2ecf20Sopenharmony_ci		uint64_t frmmax:4;
1058c2ecf20Sopenharmony_ci		uint64_t dipmax:4;
1068c2ecf20Sopenharmony_ci#else
1078c2ecf20Sopenharmony_ci		uint64_t dipmax:4;
1088c2ecf20Sopenharmony_ci		uint64_t frmmax:4;
1098c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1108c2ecf20Sopenharmony_ci#endif
1118c2ecf20Sopenharmony_ci	} s;
1128c2ecf20Sopenharmony_ci};
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ciunion cvmx_stxx_ign_cal {
1158c2ecf20Sopenharmony_ci	uint64_t u64;
1168c2ecf20Sopenharmony_ci	struct cvmx_stxx_ign_cal_s {
1178c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1188c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
1198c2ecf20Sopenharmony_ci		uint64_t igntpa:16;
1208c2ecf20Sopenharmony_ci#else
1218c2ecf20Sopenharmony_ci		uint64_t igntpa:16;
1228c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
1238c2ecf20Sopenharmony_ci#endif
1248c2ecf20Sopenharmony_ci	} s;
1258c2ecf20Sopenharmony_ci};
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ciunion cvmx_stxx_int_msk {
1288c2ecf20Sopenharmony_ci	uint64_t u64;
1298c2ecf20Sopenharmony_ci	struct cvmx_stxx_int_msk_s {
1308c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1318c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1328c2ecf20Sopenharmony_ci		uint64_t frmerr:1;
1338c2ecf20Sopenharmony_ci		uint64_t unxfrm:1;
1348c2ecf20Sopenharmony_ci		uint64_t nosync:1;
1358c2ecf20Sopenharmony_ci		uint64_t diperr:1;
1368c2ecf20Sopenharmony_ci		uint64_t datovr:1;
1378c2ecf20Sopenharmony_ci		uint64_t ovrbst:1;
1388c2ecf20Sopenharmony_ci		uint64_t calpar1:1;
1398c2ecf20Sopenharmony_ci		uint64_t calpar0:1;
1408c2ecf20Sopenharmony_ci#else
1418c2ecf20Sopenharmony_ci		uint64_t calpar0:1;
1428c2ecf20Sopenharmony_ci		uint64_t calpar1:1;
1438c2ecf20Sopenharmony_ci		uint64_t ovrbst:1;
1448c2ecf20Sopenharmony_ci		uint64_t datovr:1;
1458c2ecf20Sopenharmony_ci		uint64_t diperr:1;
1468c2ecf20Sopenharmony_ci		uint64_t nosync:1;
1478c2ecf20Sopenharmony_ci		uint64_t unxfrm:1;
1488c2ecf20Sopenharmony_ci		uint64_t frmerr:1;
1498c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1508c2ecf20Sopenharmony_ci#endif
1518c2ecf20Sopenharmony_ci	} s;
1528c2ecf20Sopenharmony_ci};
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ciunion cvmx_stxx_int_reg {
1558c2ecf20Sopenharmony_ci	uint64_t u64;
1568c2ecf20Sopenharmony_ci	struct cvmx_stxx_int_reg_s {
1578c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1588c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
1598c2ecf20Sopenharmony_ci		uint64_t syncerr:1;
1608c2ecf20Sopenharmony_ci		uint64_t frmerr:1;
1618c2ecf20Sopenharmony_ci		uint64_t unxfrm:1;
1628c2ecf20Sopenharmony_ci		uint64_t nosync:1;
1638c2ecf20Sopenharmony_ci		uint64_t diperr:1;
1648c2ecf20Sopenharmony_ci		uint64_t datovr:1;
1658c2ecf20Sopenharmony_ci		uint64_t ovrbst:1;
1668c2ecf20Sopenharmony_ci		uint64_t calpar1:1;
1678c2ecf20Sopenharmony_ci		uint64_t calpar0:1;
1688c2ecf20Sopenharmony_ci#else
1698c2ecf20Sopenharmony_ci		uint64_t calpar0:1;
1708c2ecf20Sopenharmony_ci		uint64_t calpar1:1;
1718c2ecf20Sopenharmony_ci		uint64_t ovrbst:1;
1728c2ecf20Sopenharmony_ci		uint64_t datovr:1;
1738c2ecf20Sopenharmony_ci		uint64_t diperr:1;
1748c2ecf20Sopenharmony_ci		uint64_t nosync:1;
1758c2ecf20Sopenharmony_ci		uint64_t unxfrm:1;
1768c2ecf20Sopenharmony_ci		uint64_t frmerr:1;
1778c2ecf20Sopenharmony_ci		uint64_t syncerr:1;
1788c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
1798c2ecf20Sopenharmony_ci#endif
1808c2ecf20Sopenharmony_ci	} s;
1818c2ecf20Sopenharmony_ci};
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ciunion cvmx_stxx_int_sync {
1848c2ecf20Sopenharmony_ci	uint64_t u64;
1858c2ecf20Sopenharmony_ci	struct cvmx_stxx_int_sync_s {
1868c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
1878c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
1888c2ecf20Sopenharmony_ci		uint64_t frmerr:1;
1898c2ecf20Sopenharmony_ci		uint64_t unxfrm:1;
1908c2ecf20Sopenharmony_ci		uint64_t nosync:1;
1918c2ecf20Sopenharmony_ci		uint64_t diperr:1;
1928c2ecf20Sopenharmony_ci		uint64_t datovr:1;
1938c2ecf20Sopenharmony_ci		uint64_t ovrbst:1;
1948c2ecf20Sopenharmony_ci		uint64_t calpar1:1;
1958c2ecf20Sopenharmony_ci		uint64_t calpar0:1;
1968c2ecf20Sopenharmony_ci#else
1978c2ecf20Sopenharmony_ci		uint64_t calpar0:1;
1988c2ecf20Sopenharmony_ci		uint64_t calpar1:1;
1998c2ecf20Sopenharmony_ci		uint64_t ovrbst:1;
2008c2ecf20Sopenharmony_ci		uint64_t datovr:1;
2018c2ecf20Sopenharmony_ci		uint64_t diperr:1;
2028c2ecf20Sopenharmony_ci		uint64_t nosync:1;
2038c2ecf20Sopenharmony_ci		uint64_t unxfrm:1;
2048c2ecf20Sopenharmony_ci		uint64_t frmerr:1;
2058c2ecf20Sopenharmony_ci		uint64_t reserved_8_63:56;
2068c2ecf20Sopenharmony_ci#endif
2078c2ecf20Sopenharmony_ci	} s;
2088c2ecf20Sopenharmony_ci};
2098c2ecf20Sopenharmony_ci
2108c2ecf20Sopenharmony_ciunion cvmx_stxx_min_bst {
2118c2ecf20Sopenharmony_ci	uint64_t u64;
2128c2ecf20Sopenharmony_ci	struct cvmx_stxx_min_bst_s {
2138c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2148c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
2158c2ecf20Sopenharmony_ci		uint64_t minb:9;
2168c2ecf20Sopenharmony_ci#else
2178c2ecf20Sopenharmony_ci		uint64_t minb:9;
2188c2ecf20Sopenharmony_ci		uint64_t reserved_9_63:55;
2198c2ecf20Sopenharmony_ci#endif
2208c2ecf20Sopenharmony_ci	} s;
2218c2ecf20Sopenharmony_ci};
2228c2ecf20Sopenharmony_ci
2238c2ecf20Sopenharmony_ciunion cvmx_stxx_spi4_calx {
2248c2ecf20Sopenharmony_ci	uint64_t u64;
2258c2ecf20Sopenharmony_ci	struct cvmx_stxx_spi4_calx_s {
2268c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2278c2ecf20Sopenharmony_ci		uint64_t reserved_17_63:47;
2288c2ecf20Sopenharmony_ci		uint64_t oddpar:1;
2298c2ecf20Sopenharmony_ci		uint64_t prt3:4;
2308c2ecf20Sopenharmony_ci		uint64_t prt2:4;
2318c2ecf20Sopenharmony_ci		uint64_t prt1:4;
2328c2ecf20Sopenharmony_ci		uint64_t prt0:4;
2338c2ecf20Sopenharmony_ci#else
2348c2ecf20Sopenharmony_ci		uint64_t prt0:4;
2358c2ecf20Sopenharmony_ci		uint64_t prt1:4;
2368c2ecf20Sopenharmony_ci		uint64_t prt2:4;
2378c2ecf20Sopenharmony_ci		uint64_t prt3:4;
2388c2ecf20Sopenharmony_ci		uint64_t oddpar:1;
2398c2ecf20Sopenharmony_ci		uint64_t reserved_17_63:47;
2408c2ecf20Sopenharmony_ci#endif
2418c2ecf20Sopenharmony_ci	} s;
2428c2ecf20Sopenharmony_ci};
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_ciunion cvmx_stxx_spi4_dat {
2458c2ecf20Sopenharmony_ci	uint64_t u64;
2468c2ecf20Sopenharmony_ci	struct cvmx_stxx_spi4_dat_s {
2478c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2488c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
2498c2ecf20Sopenharmony_ci		uint64_t alpha:16;
2508c2ecf20Sopenharmony_ci		uint64_t max_t:16;
2518c2ecf20Sopenharmony_ci#else
2528c2ecf20Sopenharmony_ci		uint64_t max_t:16;
2538c2ecf20Sopenharmony_ci		uint64_t alpha:16;
2548c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
2558c2ecf20Sopenharmony_ci#endif
2568c2ecf20Sopenharmony_ci	} s;
2578c2ecf20Sopenharmony_ci};
2588c2ecf20Sopenharmony_ci
2598c2ecf20Sopenharmony_ciunion cvmx_stxx_spi4_stat {
2608c2ecf20Sopenharmony_ci	uint64_t u64;
2618c2ecf20Sopenharmony_ci	struct cvmx_stxx_spi4_stat_s {
2628c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2638c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
2648c2ecf20Sopenharmony_ci		uint64_t m:8;
2658c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
2668c2ecf20Sopenharmony_ci		uint64_t len:7;
2678c2ecf20Sopenharmony_ci#else
2688c2ecf20Sopenharmony_ci		uint64_t len:7;
2698c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
2708c2ecf20Sopenharmony_ci		uint64_t m:8;
2718c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
2728c2ecf20Sopenharmony_ci#endif
2738c2ecf20Sopenharmony_ci	} s;
2748c2ecf20Sopenharmony_ci};
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_ciunion cvmx_stxx_stat_bytes_hi {
2778c2ecf20Sopenharmony_ci	uint64_t u64;
2788c2ecf20Sopenharmony_ci	struct cvmx_stxx_stat_bytes_hi_s {
2798c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2808c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
2818c2ecf20Sopenharmony_ci		uint64_t cnt:32;
2828c2ecf20Sopenharmony_ci#else
2838c2ecf20Sopenharmony_ci		uint64_t cnt:32;
2848c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
2858c2ecf20Sopenharmony_ci#endif
2868c2ecf20Sopenharmony_ci	} s;
2878c2ecf20Sopenharmony_ci};
2888c2ecf20Sopenharmony_ci
2898c2ecf20Sopenharmony_ciunion cvmx_stxx_stat_bytes_lo {
2908c2ecf20Sopenharmony_ci	uint64_t u64;
2918c2ecf20Sopenharmony_ci	struct cvmx_stxx_stat_bytes_lo_s {
2928c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
2938c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
2948c2ecf20Sopenharmony_ci		uint64_t cnt:32;
2958c2ecf20Sopenharmony_ci#else
2968c2ecf20Sopenharmony_ci		uint64_t cnt:32;
2978c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
2988c2ecf20Sopenharmony_ci#endif
2998c2ecf20Sopenharmony_ci	} s;
3008c2ecf20Sopenharmony_ci};
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ciunion cvmx_stxx_stat_ctl {
3038c2ecf20Sopenharmony_ci	uint64_t u64;
3048c2ecf20Sopenharmony_ci	struct cvmx_stxx_stat_ctl_s {
3058c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3068c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3078c2ecf20Sopenharmony_ci		uint64_t clr:1;
3088c2ecf20Sopenharmony_ci		uint64_t bckprs:4;
3098c2ecf20Sopenharmony_ci#else
3108c2ecf20Sopenharmony_ci		uint64_t bckprs:4;
3118c2ecf20Sopenharmony_ci		uint64_t clr:1;
3128c2ecf20Sopenharmony_ci		uint64_t reserved_5_63:59;
3138c2ecf20Sopenharmony_ci#endif
3148c2ecf20Sopenharmony_ci	} s;
3158c2ecf20Sopenharmony_ci};
3168c2ecf20Sopenharmony_ci
3178c2ecf20Sopenharmony_ciunion cvmx_stxx_stat_pkt_xmt {
3188c2ecf20Sopenharmony_ci	uint64_t u64;
3198c2ecf20Sopenharmony_ci	struct cvmx_stxx_stat_pkt_xmt_s {
3208c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3218c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
3228c2ecf20Sopenharmony_ci		uint64_t cnt:32;
3238c2ecf20Sopenharmony_ci#else
3248c2ecf20Sopenharmony_ci		uint64_t cnt:32;
3258c2ecf20Sopenharmony_ci		uint64_t reserved_32_63:32;
3268c2ecf20Sopenharmony_ci#endif
3278c2ecf20Sopenharmony_ci	} s;
3288c2ecf20Sopenharmony_ci};
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ci#endif
331