154293ec3SDavid Daney /***********************license start*************** 254293ec3SDavid Daney * Author: Cavium Networks 354293ec3SDavid Daney * 454293ec3SDavid Daney * Contact: support@caviumnetworks.com 554293ec3SDavid Daney * This file is part of the OCTEON SDK 654293ec3SDavid Daney * 7c5aa59e8SDavid Daney * Copyright (c) 2003-2012 Cavium Networks 854293ec3SDavid Daney * 954293ec3SDavid Daney * This file is free software; you can redistribute it and/or modify 1054293ec3SDavid Daney * it under the terms of the GNU General Public License, Version 2, as 1154293ec3SDavid Daney * published by the Free Software Foundation. 1254293ec3SDavid Daney * 1354293ec3SDavid Daney * This file is distributed in the hope that it will be useful, but 1454293ec3SDavid Daney * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 1554293ec3SDavid Daney * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 1654293ec3SDavid Daney * NONINFRINGEMENT. See the GNU General Public License for more 1754293ec3SDavid Daney * details. 1854293ec3SDavid Daney * 1954293ec3SDavid Daney * You should have received a copy of the GNU General Public License 2054293ec3SDavid Daney * along with this file; if not, write to the Free Software 2154293ec3SDavid Daney * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 2254293ec3SDavid Daney * or visit http://www.gnu.org/licenses/. 2354293ec3SDavid Daney * 2454293ec3SDavid Daney * This file may also be available under a different license from Cavium. 2554293ec3SDavid Daney * Contact Cavium Networks for more information 2654293ec3SDavid Daney ***********************license end**************************************/ 2754293ec3SDavid Daney 2854293ec3SDavid Daney #ifndef __CVMX_GPIO_DEFS_H__ 2954293ec3SDavid Daney #define __CVMX_GPIO_DEFS_H__ 3054293ec3SDavid Daney 31aa32a955SDavid Daney #define CVMX_GPIO_BIT_CFGX(offset) (CVMX_ADD_IO_SEG(0x0001070000000800ull) + ((offset) & 15) * 8) 32aa32a955SDavid Daney #define CVMX_GPIO_BOOT_ENA (CVMX_ADD_IO_SEG(0x00010700000008A8ull)) 33aa32a955SDavid Daney #define CVMX_GPIO_CLK_GENX(offset) (CVMX_ADD_IO_SEG(0x00010700000008C0ull) + ((offset) & 3) * 8) 34aa32a955SDavid Daney #define CVMX_GPIO_CLK_QLMX(offset) (CVMX_ADD_IO_SEG(0x00010700000008E0ull) + ((offset) & 1) * 8) 35aa32a955SDavid Daney #define CVMX_GPIO_DBG_ENA (CVMX_ADD_IO_SEG(0x00010700000008A0ull)) 36aa32a955SDavid Daney #define CVMX_GPIO_INT_CLR (CVMX_ADD_IO_SEG(0x0001070000000898ull)) 37c5aa59e8SDavid Daney #define CVMX_GPIO_MULTI_CAST (CVMX_ADD_IO_SEG(0x00010700000008B0ull)) 38c5aa59e8SDavid Daney #define CVMX_GPIO_PIN_ENA (CVMX_ADD_IO_SEG(0x00010700000008B8ull)) 39aa32a955SDavid Daney #define CVMX_GPIO_RX_DAT (CVMX_ADD_IO_SEG(0x0001070000000880ull)) 40c5aa59e8SDavid Daney #define CVMX_GPIO_TIM_CTL (CVMX_ADD_IO_SEG(0x00010700000008A0ull)) 41aa32a955SDavid Daney #define CVMX_GPIO_TX_CLR (CVMX_ADD_IO_SEG(0x0001070000000890ull)) 42aa32a955SDavid Daney #define CVMX_GPIO_TX_SET (CVMX_ADD_IO_SEG(0x0001070000000888ull)) 43aa32a955SDavid Daney #define CVMX_GPIO_XBIT_CFGX(offset) (CVMX_ADD_IO_SEG(0x0001070000000900ull) + ((offset) & 31) * 8 - 8*16) 4454293ec3SDavid Daney 4554293ec3SDavid Daney union cvmx_gpio_bit_cfgx { 4654293ec3SDavid Daney uint64_t u64; 4754293ec3SDavid Daney struct cvmx_gpio_bit_cfgx_s { 48c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 49*93e502b3SSteven J. Hill uint64_t reserved_21_63:42; 50*93e502b3SSteven J. Hill uint64_t output_sel:5; 51aa32a955SDavid Daney uint64_t synce_sel:2; 5254293ec3SDavid Daney uint64_t clk_gen:1; 5354293ec3SDavid Daney uint64_t clk_sel:2; 5454293ec3SDavid Daney uint64_t fil_sel:4; 5554293ec3SDavid Daney uint64_t fil_cnt:4; 5654293ec3SDavid Daney uint64_t int_type:1; 5754293ec3SDavid Daney uint64_t int_en:1; 5854293ec3SDavid Daney uint64_t rx_xor:1; 5954293ec3SDavid Daney uint64_t tx_oe:1; 60c5aa59e8SDavid Daney #else 61c5aa59e8SDavid Daney uint64_t tx_oe:1; 62c5aa59e8SDavid Daney uint64_t rx_xor:1; 63c5aa59e8SDavid Daney uint64_t int_en:1; 64c5aa59e8SDavid Daney uint64_t int_type:1; 65c5aa59e8SDavid Daney uint64_t fil_cnt:4; 66c5aa59e8SDavid Daney uint64_t fil_sel:4; 67c5aa59e8SDavid Daney uint64_t clk_sel:2; 68c5aa59e8SDavid Daney uint64_t clk_gen:1; 69c5aa59e8SDavid Daney uint64_t synce_sel:2; 70*93e502b3SSteven J. Hill uint64_t output_sel:5; 71*93e502b3SSteven J. Hill uint64_t reserved_21_63:42; 72c5aa59e8SDavid Daney #endif 7354293ec3SDavid Daney } s; 7454293ec3SDavid Daney struct cvmx_gpio_bit_cfgx_cn30xx { 75c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 7654293ec3SDavid Daney uint64_t reserved_12_63:52; 7754293ec3SDavid Daney uint64_t fil_sel:4; 7854293ec3SDavid Daney uint64_t fil_cnt:4; 7954293ec3SDavid Daney uint64_t int_type:1; 8054293ec3SDavid Daney uint64_t int_en:1; 8154293ec3SDavid Daney uint64_t rx_xor:1; 8254293ec3SDavid Daney uint64_t tx_oe:1; 83c5aa59e8SDavid Daney #else 84c5aa59e8SDavid Daney uint64_t tx_oe:1; 85c5aa59e8SDavid Daney uint64_t rx_xor:1; 86c5aa59e8SDavid Daney uint64_t int_en:1; 87c5aa59e8SDavid Daney uint64_t int_type:1; 88c5aa59e8SDavid Daney uint64_t fil_cnt:4; 89c5aa59e8SDavid Daney uint64_t fil_sel:4; 90c5aa59e8SDavid Daney uint64_t reserved_12_63:52; 91c5aa59e8SDavid Daney #endif 9254293ec3SDavid Daney } cn30xx; 93aa32a955SDavid Daney struct cvmx_gpio_bit_cfgx_cn52xx { 94c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 95aa32a955SDavid Daney uint64_t reserved_15_63:49; 96aa32a955SDavid Daney uint64_t clk_gen:1; 97aa32a955SDavid Daney uint64_t clk_sel:2; 98aa32a955SDavid Daney uint64_t fil_sel:4; 99aa32a955SDavid Daney uint64_t fil_cnt:4; 100aa32a955SDavid Daney uint64_t int_type:1; 101aa32a955SDavid Daney uint64_t int_en:1; 102aa32a955SDavid Daney uint64_t rx_xor:1; 103aa32a955SDavid Daney uint64_t tx_oe:1; 104c5aa59e8SDavid Daney #else 105c5aa59e8SDavid Daney uint64_t tx_oe:1; 106c5aa59e8SDavid Daney uint64_t rx_xor:1; 107c5aa59e8SDavid Daney uint64_t int_en:1; 108c5aa59e8SDavid Daney uint64_t int_type:1; 109c5aa59e8SDavid Daney uint64_t fil_cnt:4; 110c5aa59e8SDavid Daney uint64_t fil_sel:4; 111c5aa59e8SDavid Daney uint64_t clk_sel:2; 112c5aa59e8SDavid Daney uint64_t clk_gen:1; 113c5aa59e8SDavid Daney uint64_t reserved_15_63:49; 114c5aa59e8SDavid Daney #endif 115aa32a955SDavid Daney } cn52xx; 11654293ec3SDavid Daney }; 11754293ec3SDavid Daney 11854293ec3SDavid Daney union cvmx_gpio_boot_ena { 11954293ec3SDavid Daney uint64_t u64; 12054293ec3SDavid Daney struct cvmx_gpio_boot_ena_s { 121c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 12254293ec3SDavid Daney uint64_t reserved_12_63:52; 12354293ec3SDavid Daney uint64_t boot_ena:4; 12454293ec3SDavid Daney uint64_t reserved_0_7:8; 125c5aa59e8SDavid Daney #else 126c5aa59e8SDavid Daney uint64_t reserved_0_7:8; 127c5aa59e8SDavid Daney uint64_t boot_ena:4; 128c5aa59e8SDavid Daney uint64_t reserved_12_63:52; 129c5aa59e8SDavid Daney #endif 13054293ec3SDavid Daney } s; 13154293ec3SDavid Daney }; 13254293ec3SDavid Daney 13354293ec3SDavid Daney union cvmx_gpio_clk_genx { 13454293ec3SDavid Daney uint64_t u64; 13554293ec3SDavid Daney struct cvmx_gpio_clk_genx_s { 136c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 13754293ec3SDavid Daney uint64_t reserved_32_63:32; 13854293ec3SDavid Daney uint64_t n:32; 139c5aa59e8SDavid Daney #else 140c5aa59e8SDavid Daney uint64_t n:32; 141c5aa59e8SDavid Daney uint64_t reserved_32_63:32; 142c5aa59e8SDavid Daney #endif 14354293ec3SDavid Daney } s; 144aa32a955SDavid Daney }; 145aa32a955SDavid Daney 146aa32a955SDavid Daney union cvmx_gpio_clk_qlmx { 147aa32a955SDavid Daney uint64_t u64; 148aa32a955SDavid Daney struct cvmx_gpio_clk_qlmx_s { 149c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 150c5aa59e8SDavid Daney uint64_t reserved_11_63:53; 151c5aa59e8SDavid Daney uint64_t qlm_sel:3; 152c5aa59e8SDavid Daney uint64_t reserved_3_7:5; 153c5aa59e8SDavid Daney uint64_t div:1; 154c5aa59e8SDavid Daney uint64_t lane_sel:2; 155c5aa59e8SDavid Daney #else 156c5aa59e8SDavid Daney uint64_t lane_sel:2; 157c5aa59e8SDavid Daney uint64_t div:1; 158c5aa59e8SDavid Daney uint64_t reserved_3_7:5; 159c5aa59e8SDavid Daney uint64_t qlm_sel:3; 160c5aa59e8SDavid Daney uint64_t reserved_11_63:53; 161c5aa59e8SDavid Daney #endif 162c5aa59e8SDavid Daney } s; 163c5aa59e8SDavid Daney struct cvmx_gpio_clk_qlmx_cn61xx { 164c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 165c5aa59e8SDavid Daney uint64_t reserved_10_63:54; 166c5aa59e8SDavid Daney uint64_t qlm_sel:2; 167c5aa59e8SDavid Daney uint64_t reserved_3_7:5; 168c5aa59e8SDavid Daney uint64_t div:1; 169c5aa59e8SDavid Daney uint64_t lane_sel:2; 170c5aa59e8SDavid Daney #else 171c5aa59e8SDavid Daney uint64_t lane_sel:2; 172c5aa59e8SDavid Daney uint64_t div:1; 173c5aa59e8SDavid Daney uint64_t reserved_3_7:5; 174c5aa59e8SDavid Daney uint64_t qlm_sel:2; 175c5aa59e8SDavid Daney uint64_t reserved_10_63:54; 176c5aa59e8SDavid Daney #endif 177c5aa59e8SDavid Daney } cn61xx; 178c5aa59e8SDavid Daney struct cvmx_gpio_clk_qlmx_cn63xx { 179c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 180aa32a955SDavid Daney uint64_t reserved_3_63:61; 181aa32a955SDavid Daney uint64_t div:1; 182aa32a955SDavid Daney uint64_t lane_sel:2; 183c5aa59e8SDavid Daney #else 184c5aa59e8SDavid Daney uint64_t lane_sel:2; 185c5aa59e8SDavid Daney uint64_t div:1; 186c5aa59e8SDavid Daney uint64_t reserved_3_63:61; 187c5aa59e8SDavid Daney #endif 188c5aa59e8SDavid Daney } cn63xx; 18954293ec3SDavid Daney }; 19054293ec3SDavid Daney 19154293ec3SDavid Daney union cvmx_gpio_dbg_ena { 19254293ec3SDavid Daney uint64_t u64; 19354293ec3SDavid Daney struct cvmx_gpio_dbg_ena_s { 194c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 19554293ec3SDavid Daney uint64_t reserved_21_63:43; 19654293ec3SDavid Daney uint64_t dbg_ena:21; 197c5aa59e8SDavid Daney #else 198c5aa59e8SDavid Daney uint64_t dbg_ena:21; 199c5aa59e8SDavid Daney uint64_t reserved_21_63:43; 200c5aa59e8SDavid Daney #endif 20154293ec3SDavid Daney } s; 20254293ec3SDavid Daney }; 20354293ec3SDavid Daney 20454293ec3SDavid Daney union cvmx_gpio_int_clr { 20554293ec3SDavid Daney uint64_t u64; 20654293ec3SDavid Daney struct cvmx_gpio_int_clr_s { 207c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 20854293ec3SDavid Daney uint64_t reserved_16_63:48; 20954293ec3SDavid Daney uint64_t type:16; 210c5aa59e8SDavid Daney #else 211c5aa59e8SDavid Daney uint64_t type:16; 212c5aa59e8SDavid Daney uint64_t reserved_16_63:48; 213c5aa59e8SDavid Daney #endif 21454293ec3SDavid Daney } s; 215c5aa59e8SDavid Daney }; 216c5aa59e8SDavid Daney 217c5aa59e8SDavid Daney union cvmx_gpio_multi_cast { 218c5aa59e8SDavid Daney uint64_t u64; 219c5aa59e8SDavid Daney struct cvmx_gpio_multi_cast_s { 220c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 221c5aa59e8SDavid Daney uint64_t reserved_1_63:63; 222c5aa59e8SDavid Daney uint64_t en:1; 223c5aa59e8SDavid Daney #else 224c5aa59e8SDavid Daney uint64_t en:1; 225c5aa59e8SDavid Daney uint64_t reserved_1_63:63; 226c5aa59e8SDavid Daney #endif 227c5aa59e8SDavid Daney } s; 228c5aa59e8SDavid Daney }; 229c5aa59e8SDavid Daney 230c5aa59e8SDavid Daney union cvmx_gpio_pin_ena { 231c5aa59e8SDavid Daney uint64_t u64; 232c5aa59e8SDavid Daney struct cvmx_gpio_pin_ena_s { 233c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 234c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 235c5aa59e8SDavid Daney uint64_t ena19:1; 236c5aa59e8SDavid Daney uint64_t ena18:1; 237c5aa59e8SDavid Daney uint64_t reserved_0_17:18; 238c5aa59e8SDavid Daney #else 239c5aa59e8SDavid Daney uint64_t reserved_0_17:18; 240c5aa59e8SDavid Daney uint64_t ena18:1; 241c5aa59e8SDavid Daney uint64_t ena19:1; 242c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 243c5aa59e8SDavid Daney #endif 244c5aa59e8SDavid Daney } s; 24554293ec3SDavid Daney }; 24654293ec3SDavid Daney 24754293ec3SDavid Daney union cvmx_gpio_rx_dat { 24854293ec3SDavid Daney uint64_t u64; 24954293ec3SDavid Daney struct cvmx_gpio_rx_dat_s { 250c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 25154293ec3SDavid Daney uint64_t reserved_24_63:40; 25254293ec3SDavid Daney uint64_t dat:24; 253c5aa59e8SDavid Daney #else 254c5aa59e8SDavid Daney uint64_t dat:24; 255c5aa59e8SDavid Daney uint64_t reserved_24_63:40; 256c5aa59e8SDavid Daney #endif 25754293ec3SDavid Daney } s; 25854293ec3SDavid Daney struct cvmx_gpio_rx_dat_cn38xx { 259c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 26054293ec3SDavid Daney uint64_t reserved_16_63:48; 26154293ec3SDavid Daney uint64_t dat:16; 262c5aa59e8SDavid Daney #else 263c5aa59e8SDavid Daney uint64_t dat:16; 264c5aa59e8SDavid Daney uint64_t reserved_16_63:48; 265c5aa59e8SDavid Daney #endif 26654293ec3SDavid Daney } cn38xx; 267c5aa59e8SDavid Daney struct cvmx_gpio_rx_dat_cn61xx { 268c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 269c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 270c5aa59e8SDavid Daney uint64_t dat:20; 271c5aa59e8SDavid Daney #else 272c5aa59e8SDavid Daney uint64_t dat:20; 273c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 274c5aa59e8SDavid Daney #endif 275c5aa59e8SDavid Daney } cn61xx; 276c5aa59e8SDavid Daney }; 277c5aa59e8SDavid Daney 278c5aa59e8SDavid Daney union cvmx_gpio_tim_ctl { 279c5aa59e8SDavid Daney uint64_t u64; 280c5aa59e8SDavid Daney struct cvmx_gpio_tim_ctl_s { 281c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 282c5aa59e8SDavid Daney uint64_t reserved_4_63:60; 283c5aa59e8SDavid Daney uint64_t sel:4; 284c5aa59e8SDavid Daney #else 285c5aa59e8SDavid Daney uint64_t sel:4; 286c5aa59e8SDavid Daney uint64_t reserved_4_63:60; 287c5aa59e8SDavid Daney #endif 288c5aa59e8SDavid Daney } s; 28954293ec3SDavid Daney }; 29054293ec3SDavid Daney 29154293ec3SDavid Daney union cvmx_gpio_tx_clr { 29254293ec3SDavid Daney uint64_t u64; 29354293ec3SDavid Daney struct cvmx_gpio_tx_clr_s { 294c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 29554293ec3SDavid Daney uint64_t reserved_24_63:40; 29654293ec3SDavid Daney uint64_t clr:24; 297c5aa59e8SDavid Daney #else 298c5aa59e8SDavid Daney uint64_t clr:24; 299c5aa59e8SDavid Daney uint64_t reserved_24_63:40; 300c5aa59e8SDavid Daney #endif 30154293ec3SDavid Daney } s; 30254293ec3SDavid Daney struct cvmx_gpio_tx_clr_cn38xx { 303c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 30454293ec3SDavid Daney uint64_t reserved_16_63:48; 30554293ec3SDavid Daney uint64_t clr:16; 306c5aa59e8SDavid Daney #else 307c5aa59e8SDavid Daney uint64_t clr:16; 308c5aa59e8SDavid Daney uint64_t reserved_16_63:48; 309c5aa59e8SDavid Daney #endif 31054293ec3SDavid Daney } cn38xx; 311c5aa59e8SDavid Daney struct cvmx_gpio_tx_clr_cn61xx { 312c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 313c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 314c5aa59e8SDavid Daney uint64_t clr:20; 315c5aa59e8SDavid Daney #else 316c5aa59e8SDavid Daney uint64_t clr:20; 317c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 318c5aa59e8SDavid Daney #endif 319c5aa59e8SDavid Daney } cn61xx; 32054293ec3SDavid Daney }; 32154293ec3SDavid Daney 32254293ec3SDavid Daney union cvmx_gpio_tx_set { 32354293ec3SDavid Daney uint64_t u64; 32454293ec3SDavid Daney struct cvmx_gpio_tx_set_s { 325c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 32654293ec3SDavid Daney uint64_t reserved_24_63:40; 32754293ec3SDavid Daney uint64_t set:24; 328c5aa59e8SDavid Daney #else 329c5aa59e8SDavid Daney uint64_t set:24; 330c5aa59e8SDavid Daney uint64_t reserved_24_63:40; 331c5aa59e8SDavid Daney #endif 33254293ec3SDavid Daney } s; 33354293ec3SDavid Daney struct cvmx_gpio_tx_set_cn38xx { 334c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 33554293ec3SDavid Daney uint64_t reserved_16_63:48; 33654293ec3SDavid Daney uint64_t set:16; 337c5aa59e8SDavid Daney #else 338c5aa59e8SDavid Daney uint64_t set:16; 339c5aa59e8SDavid Daney uint64_t reserved_16_63:48; 340c5aa59e8SDavid Daney #endif 34154293ec3SDavid Daney } cn38xx; 342c5aa59e8SDavid Daney struct cvmx_gpio_tx_set_cn61xx { 343c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 344c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 345c5aa59e8SDavid Daney uint64_t set:20; 346c5aa59e8SDavid Daney #else 347c5aa59e8SDavid Daney uint64_t set:20; 348c5aa59e8SDavid Daney uint64_t reserved_20_63:44; 349c5aa59e8SDavid Daney #endif 350c5aa59e8SDavid Daney } cn61xx; 35154293ec3SDavid Daney }; 35254293ec3SDavid Daney 35354293ec3SDavid Daney union cvmx_gpio_xbit_cfgx { 35454293ec3SDavid Daney uint64_t u64; 35554293ec3SDavid Daney struct cvmx_gpio_xbit_cfgx_s { 356c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 357c5aa59e8SDavid Daney uint64_t reserved_17_63:47; 358c5aa59e8SDavid Daney uint64_t synce_sel:2; 359c5aa59e8SDavid Daney uint64_t clk_gen:1; 360c5aa59e8SDavid Daney uint64_t clk_sel:2; 361c5aa59e8SDavid Daney uint64_t fil_sel:4; 362c5aa59e8SDavid Daney uint64_t fil_cnt:4; 363c5aa59e8SDavid Daney uint64_t int_type:1; 364c5aa59e8SDavid Daney uint64_t int_en:1; 365c5aa59e8SDavid Daney uint64_t rx_xor:1; 366c5aa59e8SDavid Daney uint64_t tx_oe:1; 367c5aa59e8SDavid Daney #else 368c5aa59e8SDavid Daney uint64_t tx_oe:1; 369c5aa59e8SDavid Daney uint64_t rx_xor:1; 370c5aa59e8SDavid Daney uint64_t int_en:1; 371c5aa59e8SDavid Daney uint64_t int_type:1; 372c5aa59e8SDavid Daney uint64_t fil_cnt:4; 373c5aa59e8SDavid Daney uint64_t fil_sel:4; 374c5aa59e8SDavid Daney uint64_t clk_sel:2; 375c5aa59e8SDavid Daney uint64_t clk_gen:1; 376c5aa59e8SDavid Daney uint64_t synce_sel:2; 377c5aa59e8SDavid Daney uint64_t reserved_17_63:47; 378c5aa59e8SDavid Daney #endif 379c5aa59e8SDavid Daney } s; 380c5aa59e8SDavid Daney struct cvmx_gpio_xbit_cfgx_cn30xx { 381c5aa59e8SDavid Daney #ifdef __BIG_ENDIAN_BITFIELD 38254293ec3SDavid Daney uint64_t reserved_12_63:52; 38354293ec3SDavid Daney uint64_t fil_sel:4; 38454293ec3SDavid Daney uint64_t fil_cnt:4; 38554293ec3SDavid Daney uint64_t reserved_2_3:2; 38654293ec3SDavid Daney uint64_t rx_xor:1; 38754293ec3SDavid Daney uint64_t tx_oe:1; 388c5aa59e8SDavid Daney #else 389c5aa59e8SDavid Daney uint64_t tx_oe:1; 390c5aa59e8SDavid Daney uint64_t rx_xor:1; 391c5aa59e8SDavid Daney uint64_t reserved_2_3:2; 392c5aa59e8SDavid Daney uint64_t fil_cnt:4; 393c5aa59e8SDavid Daney uint64_t fil_sel:4; 394c5aa59e8SDavid Daney uint64_t reserved_12_63:52; 395c5aa59e8SDavid Daney #endif 396c5aa59e8SDavid Daney } cn30xx; 39754293ec3SDavid Daney }; 39854293ec3SDavid Daney 39954293ec3SDavid Daney #endif 400