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-2012 Cavium Networks 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_GPIO_DEFS_H__ 298c2ecf20Sopenharmony_ci#define __CVMX_GPIO_DEFS_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define CVMX_GPIO_BIT_CFGX(offset) (CVMX_ADD_IO_SEG(0x0001070000000800ull) + ((offset) & 15) * 8) 328c2ecf20Sopenharmony_ci#define CVMX_GPIO_BOOT_ENA (CVMX_ADD_IO_SEG(0x00010700000008A8ull)) 338c2ecf20Sopenharmony_ci#define CVMX_GPIO_CLK_GENX(offset) (CVMX_ADD_IO_SEG(0x00010700000008C0ull) + ((offset) & 3) * 8) 348c2ecf20Sopenharmony_ci#define CVMX_GPIO_CLK_QLMX(offset) (CVMX_ADD_IO_SEG(0x00010700000008E0ull) + ((offset) & 1) * 8) 358c2ecf20Sopenharmony_ci#define CVMX_GPIO_DBG_ENA (CVMX_ADD_IO_SEG(0x00010700000008A0ull)) 368c2ecf20Sopenharmony_ci#define CVMX_GPIO_INT_CLR (CVMX_ADD_IO_SEG(0x0001070000000898ull)) 378c2ecf20Sopenharmony_ci#define CVMX_GPIO_MULTI_CAST (CVMX_ADD_IO_SEG(0x00010700000008B0ull)) 388c2ecf20Sopenharmony_ci#define CVMX_GPIO_PIN_ENA (CVMX_ADD_IO_SEG(0x00010700000008B8ull)) 398c2ecf20Sopenharmony_ci#define CVMX_GPIO_RX_DAT (CVMX_ADD_IO_SEG(0x0001070000000880ull)) 408c2ecf20Sopenharmony_ci#define CVMX_GPIO_TIM_CTL (CVMX_ADD_IO_SEG(0x00010700000008A0ull)) 418c2ecf20Sopenharmony_ci#define CVMX_GPIO_TX_CLR (CVMX_ADD_IO_SEG(0x0001070000000890ull)) 428c2ecf20Sopenharmony_ci#define CVMX_GPIO_TX_SET (CVMX_ADD_IO_SEG(0x0001070000000888ull)) 438c2ecf20Sopenharmony_ci#define CVMX_GPIO_XBIT_CFGX(offset) (CVMX_ADD_IO_SEG(0x0001070000000900ull) + ((offset) & 31) * 8 - 8*16) 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciunion cvmx_gpio_bit_cfgx { 468c2ecf20Sopenharmony_ci uint64_t u64; 478c2ecf20Sopenharmony_ci struct cvmx_gpio_bit_cfgx_s { 488c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 498c2ecf20Sopenharmony_ci uint64_t reserved_21_63:42; 508c2ecf20Sopenharmony_ci uint64_t output_sel:5; 518c2ecf20Sopenharmony_ci uint64_t synce_sel:2; 528c2ecf20Sopenharmony_ci uint64_t clk_gen:1; 538c2ecf20Sopenharmony_ci uint64_t clk_sel:2; 548c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 558c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 568c2ecf20Sopenharmony_ci uint64_t int_type:1; 578c2ecf20Sopenharmony_ci uint64_t int_en:1; 588c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 598c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 608c2ecf20Sopenharmony_ci#else 618c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 628c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 638c2ecf20Sopenharmony_ci uint64_t int_en:1; 648c2ecf20Sopenharmony_ci uint64_t int_type:1; 658c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 668c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 678c2ecf20Sopenharmony_ci uint64_t clk_sel:2; 688c2ecf20Sopenharmony_ci uint64_t clk_gen:1; 698c2ecf20Sopenharmony_ci uint64_t synce_sel:2; 708c2ecf20Sopenharmony_ci uint64_t output_sel:5; 718c2ecf20Sopenharmony_ci uint64_t reserved_21_63:42; 728c2ecf20Sopenharmony_ci#endif 738c2ecf20Sopenharmony_ci } s; 748c2ecf20Sopenharmony_ci struct cvmx_gpio_bit_cfgx_cn30xx { 758c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 768c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 778c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 788c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 798c2ecf20Sopenharmony_ci uint64_t int_type:1; 808c2ecf20Sopenharmony_ci uint64_t int_en:1; 818c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 828c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 838c2ecf20Sopenharmony_ci#else 848c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 858c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 868c2ecf20Sopenharmony_ci uint64_t int_en:1; 878c2ecf20Sopenharmony_ci uint64_t int_type:1; 888c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 898c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 908c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 918c2ecf20Sopenharmony_ci#endif 928c2ecf20Sopenharmony_ci } cn30xx; 938c2ecf20Sopenharmony_ci struct cvmx_gpio_bit_cfgx_cn52xx { 948c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 958c2ecf20Sopenharmony_ci uint64_t reserved_15_63:49; 968c2ecf20Sopenharmony_ci uint64_t clk_gen:1; 978c2ecf20Sopenharmony_ci uint64_t clk_sel:2; 988c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 998c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 1008c2ecf20Sopenharmony_ci uint64_t int_type:1; 1018c2ecf20Sopenharmony_ci uint64_t int_en:1; 1028c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 1038c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 1048c2ecf20Sopenharmony_ci#else 1058c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 1068c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 1078c2ecf20Sopenharmony_ci uint64_t int_en:1; 1088c2ecf20Sopenharmony_ci uint64_t int_type:1; 1098c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 1108c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 1118c2ecf20Sopenharmony_ci uint64_t clk_sel:2; 1128c2ecf20Sopenharmony_ci uint64_t clk_gen:1; 1138c2ecf20Sopenharmony_ci uint64_t reserved_15_63:49; 1148c2ecf20Sopenharmony_ci#endif 1158c2ecf20Sopenharmony_ci } cn52xx; 1168c2ecf20Sopenharmony_ci}; 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ciunion cvmx_gpio_boot_ena { 1198c2ecf20Sopenharmony_ci uint64_t u64; 1208c2ecf20Sopenharmony_ci struct cvmx_gpio_boot_ena_s { 1218c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1228c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 1238c2ecf20Sopenharmony_ci uint64_t boot_ena:4; 1248c2ecf20Sopenharmony_ci uint64_t reserved_0_7:8; 1258c2ecf20Sopenharmony_ci#else 1268c2ecf20Sopenharmony_ci uint64_t reserved_0_7:8; 1278c2ecf20Sopenharmony_ci uint64_t boot_ena:4; 1288c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 1298c2ecf20Sopenharmony_ci#endif 1308c2ecf20Sopenharmony_ci } s; 1318c2ecf20Sopenharmony_ci}; 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ciunion cvmx_gpio_clk_genx { 1348c2ecf20Sopenharmony_ci uint64_t u64; 1358c2ecf20Sopenharmony_ci struct cvmx_gpio_clk_genx_s { 1368c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1378c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 1388c2ecf20Sopenharmony_ci uint64_t n:32; 1398c2ecf20Sopenharmony_ci#else 1408c2ecf20Sopenharmony_ci uint64_t n:32; 1418c2ecf20Sopenharmony_ci uint64_t reserved_32_63:32; 1428c2ecf20Sopenharmony_ci#endif 1438c2ecf20Sopenharmony_ci } s; 1448c2ecf20Sopenharmony_ci}; 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ciunion cvmx_gpio_clk_qlmx { 1478c2ecf20Sopenharmony_ci uint64_t u64; 1488c2ecf20Sopenharmony_ci struct cvmx_gpio_clk_qlmx_s { 1498c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1508c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 1518c2ecf20Sopenharmony_ci uint64_t qlm_sel:3; 1528c2ecf20Sopenharmony_ci uint64_t reserved_3_7:5; 1538c2ecf20Sopenharmony_ci uint64_t div:1; 1548c2ecf20Sopenharmony_ci uint64_t lane_sel:2; 1558c2ecf20Sopenharmony_ci#else 1568c2ecf20Sopenharmony_ci uint64_t lane_sel:2; 1578c2ecf20Sopenharmony_ci uint64_t div:1; 1588c2ecf20Sopenharmony_ci uint64_t reserved_3_7:5; 1598c2ecf20Sopenharmony_ci uint64_t qlm_sel:3; 1608c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 1618c2ecf20Sopenharmony_ci#endif 1628c2ecf20Sopenharmony_ci } s; 1638c2ecf20Sopenharmony_ci struct cvmx_gpio_clk_qlmx_cn61xx { 1648c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1658c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 1668c2ecf20Sopenharmony_ci uint64_t qlm_sel:2; 1678c2ecf20Sopenharmony_ci uint64_t reserved_3_7:5; 1688c2ecf20Sopenharmony_ci uint64_t div:1; 1698c2ecf20Sopenharmony_ci uint64_t lane_sel:2; 1708c2ecf20Sopenharmony_ci#else 1718c2ecf20Sopenharmony_ci uint64_t lane_sel:2; 1728c2ecf20Sopenharmony_ci uint64_t div:1; 1738c2ecf20Sopenharmony_ci uint64_t reserved_3_7:5; 1748c2ecf20Sopenharmony_ci uint64_t qlm_sel:2; 1758c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 1768c2ecf20Sopenharmony_ci#endif 1778c2ecf20Sopenharmony_ci } cn61xx; 1788c2ecf20Sopenharmony_ci struct cvmx_gpio_clk_qlmx_cn63xx { 1798c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1808c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 1818c2ecf20Sopenharmony_ci uint64_t div:1; 1828c2ecf20Sopenharmony_ci uint64_t lane_sel:2; 1838c2ecf20Sopenharmony_ci#else 1848c2ecf20Sopenharmony_ci uint64_t lane_sel:2; 1858c2ecf20Sopenharmony_ci uint64_t div:1; 1868c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 1878c2ecf20Sopenharmony_ci#endif 1888c2ecf20Sopenharmony_ci } cn63xx; 1898c2ecf20Sopenharmony_ci}; 1908c2ecf20Sopenharmony_ci 1918c2ecf20Sopenharmony_ciunion cvmx_gpio_dbg_ena { 1928c2ecf20Sopenharmony_ci uint64_t u64; 1938c2ecf20Sopenharmony_ci struct cvmx_gpio_dbg_ena_s { 1948c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 1958c2ecf20Sopenharmony_ci uint64_t reserved_21_63:43; 1968c2ecf20Sopenharmony_ci uint64_t dbg_ena:21; 1978c2ecf20Sopenharmony_ci#else 1988c2ecf20Sopenharmony_ci uint64_t dbg_ena:21; 1998c2ecf20Sopenharmony_ci uint64_t reserved_21_63:43; 2008c2ecf20Sopenharmony_ci#endif 2018c2ecf20Sopenharmony_ci } s; 2028c2ecf20Sopenharmony_ci}; 2038c2ecf20Sopenharmony_ci 2048c2ecf20Sopenharmony_ciunion cvmx_gpio_int_clr { 2058c2ecf20Sopenharmony_ci uint64_t u64; 2068c2ecf20Sopenharmony_ci struct cvmx_gpio_int_clr_s { 2078c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2088c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 2098c2ecf20Sopenharmony_ci uint64_t type:16; 2108c2ecf20Sopenharmony_ci#else 2118c2ecf20Sopenharmony_ci uint64_t type:16; 2128c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 2138c2ecf20Sopenharmony_ci#endif 2148c2ecf20Sopenharmony_ci } s; 2158c2ecf20Sopenharmony_ci}; 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_ciunion cvmx_gpio_multi_cast { 2188c2ecf20Sopenharmony_ci uint64_t u64; 2198c2ecf20Sopenharmony_ci struct cvmx_gpio_multi_cast_s { 2208c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2218c2ecf20Sopenharmony_ci uint64_t reserved_1_63:63; 2228c2ecf20Sopenharmony_ci uint64_t en:1; 2238c2ecf20Sopenharmony_ci#else 2248c2ecf20Sopenharmony_ci uint64_t en:1; 2258c2ecf20Sopenharmony_ci uint64_t reserved_1_63:63; 2268c2ecf20Sopenharmony_ci#endif 2278c2ecf20Sopenharmony_ci } s; 2288c2ecf20Sopenharmony_ci}; 2298c2ecf20Sopenharmony_ci 2308c2ecf20Sopenharmony_ciunion cvmx_gpio_pin_ena { 2318c2ecf20Sopenharmony_ci uint64_t u64; 2328c2ecf20Sopenharmony_ci struct cvmx_gpio_pin_ena_s { 2338c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2348c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 2358c2ecf20Sopenharmony_ci uint64_t ena19:1; 2368c2ecf20Sopenharmony_ci uint64_t ena18:1; 2378c2ecf20Sopenharmony_ci uint64_t reserved_0_17:18; 2388c2ecf20Sopenharmony_ci#else 2398c2ecf20Sopenharmony_ci uint64_t reserved_0_17:18; 2408c2ecf20Sopenharmony_ci uint64_t ena18:1; 2418c2ecf20Sopenharmony_ci uint64_t ena19:1; 2428c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 2438c2ecf20Sopenharmony_ci#endif 2448c2ecf20Sopenharmony_ci } s; 2458c2ecf20Sopenharmony_ci}; 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ciunion cvmx_gpio_rx_dat { 2488c2ecf20Sopenharmony_ci uint64_t u64; 2498c2ecf20Sopenharmony_ci struct cvmx_gpio_rx_dat_s { 2508c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2518c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 2528c2ecf20Sopenharmony_ci uint64_t dat:24; 2538c2ecf20Sopenharmony_ci#else 2548c2ecf20Sopenharmony_ci uint64_t dat:24; 2558c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 2568c2ecf20Sopenharmony_ci#endif 2578c2ecf20Sopenharmony_ci } s; 2588c2ecf20Sopenharmony_ci struct cvmx_gpio_rx_dat_cn38xx { 2598c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2608c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 2618c2ecf20Sopenharmony_ci uint64_t dat:16; 2628c2ecf20Sopenharmony_ci#else 2638c2ecf20Sopenharmony_ci uint64_t dat:16; 2648c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 2658c2ecf20Sopenharmony_ci#endif 2668c2ecf20Sopenharmony_ci } cn38xx; 2678c2ecf20Sopenharmony_ci struct cvmx_gpio_rx_dat_cn61xx { 2688c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2698c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 2708c2ecf20Sopenharmony_ci uint64_t dat:20; 2718c2ecf20Sopenharmony_ci#else 2728c2ecf20Sopenharmony_ci uint64_t dat:20; 2738c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 2748c2ecf20Sopenharmony_ci#endif 2758c2ecf20Sopenharmony_ci } cn61xx; 2768c2ecf20Sopenharmony_ci}; 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_ciunion cvmx_gpio_tim_ctl { 2798c2ecf20Sopenharmony_ci uint64_t u64; 2808c2ecf20Sopenharmony_ci struct cvmx_gpio_tim_ctl_s { 2818c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2828c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 2838c2ecf20Sopenharmony_ci uint64_t sel:4; 2848c2ecf20Sopenharmony_ci#else 2858c2ecf20Sopenharmony_ci uint64_t sel:4; 2868c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 2878c2ecf20Sopenharmony_ci#endif 2888c2ecf20Sopenharmony_ci } s; 2898c2ecf20Sopenharmony_ci}; 2908c2ecf20Sopenharmony_ci 2918c2ecf20Sopenharmony_ciunion cvmx_gpio_tx_clr { 2928c2ecf20Sopenharmony_ci uint64_t u64; 2938c2ecf20Sopenharmony_ci struct cvmx_gpio_tx_clr_s { 2948c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 2958c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 2968c2ecf20Sopenharmony_ci uint64_t clr:24; 2978c2ecf20Sopenharmony_ci#else 2988c2ecf20Sopenharmony_ci uint64_t clr:24; 2998c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 3008c2ecf20Sopenharmony_ci#endif 3018c2ecf20Sopenharmony_ci } s; 3028c2ecf20Sopenharmony_ci struct cvmx_gpio_tx_clr_cn38xx { 3038c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3048c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 3058c2ecf20Sopenharmony_ci uint64_t clr:16; 3068c2ecf20Sopenharmony_ci#else 3078c2ecf20Sopenharmony_ci uint64_t clr:16; 3088c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 3098c2ecf20Sopenharmony_ci#endif 3108c2ecf20Sopenharmony_ci } cn38xx; 3118c2ecf20Sopenharmony_ci struct cvmx_gpio_tx_clr_cn61xx { 3128c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3138c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 3148c2ecf20Sopenharmony_ci uint64_t clr:20; 3158c2ecf20Sopenharmony_ci#else 3168c2ecf20Sopenharmony_ci uint64_t clr:20; 3178c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 3188c2ecf20Sopenharmony_ci#endif 3198c2ecf20Sopenharmony_ci } cn61xx; 3208c2ecf20Sopenharmony_ci}; 3218c2ecf20Sopenharmony_ci 3228c2ecf20Sopenharmony_ciunion cvmx_gpio_tx_set { 3238c2ecf20Sopenharmony_ci uint64_t u64; 3248c2ecf20Sopenharmony_ci struct cvmx_gpio_tx_set_s { 3258c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3268c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 3278c2ecf20Sopenharmony_ci uint64_t set:24; 3288c2ecf20Sopenharmony_ci#else 3298c2ecf20Sopenharmony_ci uint64_t set:24; 3308c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 3318c2ecf20Sopenharmony_ci#endif 3328c2ecf20Sopenharmony_ci } s; 3338c2ecf20Sopenharmony_ci struct cvmx_gpio_tx_set_cn38xx { 3348c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3358c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 3368c2ecf20Sopenharmony_ci uint64_t set:16; 3378c2ecf20Sopenharmony_ci#else 3388c2ecf20Sopenharmony_ci uint64_t set:16; 3398c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 3408c2ecf20Sopenharmony_ci#endif 3418c2ecf20Sopenharmony_ci } cn38xx; 3428c2ecf20Sopenharmony_ci struct cvmx_gpio_tx_set_cn61xx { 3438c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3448c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 3458c2ecf20Sopenharmony_ci uint64_t set:20; 3468c2ecf20Sopenharmony_ci#else 3478c2ecf20Sopenharmony_ci uint64_t set:20; 3488c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 3498c2ecf20Sopenharmony_ci#endif 3508c2ecf20Sopenharmony_ci } cn61xx; 3518c2ecf20Sopenharmony_ci}; 3528c2ecf20Sopenharmony_ci 3538c2ecf20Sopenharmony_ciunion cvmx_gpio_xbit_cfgx { 3548c2ecf20Sopenharmony_ci uint64_t u64; 3558c2ecf20Sopenharmony_ci struct cvmx_gpio_xbit_cfgx_s { 3568c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3578c2ecf20Sopenharmony_ci uint64_t reserved_17_63:47; 3588c2ecf20Sopenharmony_ci uint64_t synce_sel:2; 3598c2ecf20Sopenharmony_ci uint64_t clk_gen:1; 3608c2ecf20Sopenharmony_ci uint64_t clk_sel:2; 3618c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 3628c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 3638c2ecf20Sopenharmony_ci uint64_t int_type:1; 3648c2ecf20Sopenharmony_ci uint64_t int_en:1; 3658c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 3668c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 3678c2ecf20Sopenharmony_ci#else 3688c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 3698c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 3708c2ecf20Sopenharmony_ci uint64_t int_en:1; 3718c2ecf20Sopenharmony_ci uint64_t int_type:1; 3728c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 3738c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 3748c2ecf20Sopenharmony_ci uint64_t clk_sel:2; 3758c2ecf20Sopenharmony_ci uint64_t clk_gen:1; 3768c2ecf20Sopenharmony_ci uint64_t synce_sel:2; 3778c2ecf20Sopenharmony_ci uint64_t reserved_17_63:47; 3788c2ecf20Sopenharmony_ci#endif 3798c2ecf20Sopenharmony_ci } s; 3808c2ecf20Sopenharmony_ci struct cvmx_gpio_xbit_cfgx_cn30xx { 3818c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3828c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 3838c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 3848c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 3858c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 3868c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 3878c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 3888c2ecf20Sopenharmony_ci#else 3898c2ecf20Sopenharmony_ci uint64_t tx_oe:1; 3908c2ecf20Sopenharmony_ci uint64_t rx_xor:1; 3918c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 3928c2ecf20Sopenharmony_ci uint64_t fil_cnt:4; 3938c2ecf20Sopenharmony_ci uint64_t fil_sel:4; 3948c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 3958c2ecf20Sopenharmony_ci#endif 3968c2ecf20Sopenharmony_ci } cn30xx; 3978c2ecf20Sopenharmony_ci}; 3988c2ecf20Sopenharmony_ci 3998c2ecf20Sopenharmony_ci#endif 400