162306a36Sopenharmony_ci/***********************license start***************
262306a36Sopenharmony_ci * Author: Cavium Networks
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * Contact: support@caviumnetworks.com
562306a36Sopenharmony_ci * This file is part of the OCTEON SDK
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Copyright (c) 2003-2012 Cavium Networks
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci * This file is free software; you can redistribute it and/or modify
1062306a36Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as
1162306a36Sopenharmony_ci * published by the Free Software Foundation.
1262306a36Sopenharmony_ci *
1362306a36Sopenharmony_ci * This file is distributed in the hope that it will be useful, but
1462306a36Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
1562306a36Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
1662306a36Sopenharmony_ci * NONINFRINGEMENT.  See the GNU General Public License for more
1762306a36Sopenharmony_ci * details.
1862306a36Sopenharmony_ci *
1962306a36Sopenharmony_ci * You should have received a copy of the GNU General Public License
2062306a36Sopenharmony_ci * along with this file; if not, write to the Free Software
2162306a36Sopenharmony_ci * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2262306a36Sopenharmony_ci * or visit http://www.gnu.org/licenses/.
2362306a36Sopenharmony_ci *
2462306a36Sopenharmony_ci * This file may also be available under a different license from Cavium.
2562306a36Sopenharmony_ci * Contact Cavium Networks for more information
2662306a36Sopenharmony_ci ***********************license end**************************************/
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#ifndef __CVMX_UCTLX_DEFS_H__
2962306a36Sopenharmony_ci#define __CVMX_UCTLX_DEFS_H__
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#define CVMX_UCTLX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x000118006F0000A0ull))
3262306a36Sopenharmony_ci#define CVMX_UCTLX_CLK_RST_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000000ull))
3362306a36Sopenharmony_ci#define CVMX_UCTLX_EHCI_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000080ull))
3462306a36Sopenharmony_ci#define CVMX_UCTLX_EHCI_FLA(block_id) (CVMX_ADD_IO_SEG(0x000118006F0000A8ull))
3562306a36Sopenharmony_ci#define CVMX_UCTLX_ERTO_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000090ull))
3662306a36Sopenharmony_ci#define CVMX_UCTLX_IF_ENA(block_id) (CVMX_ADD_IO_SEG(0x000118006F000030ull))
3762306a36Sopenharmony_ci#define CVMX_UCTLX_INT_ENA(block_id) (CVMX_ADD_IO_SEG(0x000118006F000028ull))
3862306a36Sopenharmony_ci#define CVMX_UCTLX_INT_REG(block_id) (CVMX_ADD_IO_SEG(0x000118006F000020ull))
3962306a36Sopenharmony_ci#define CVMX_UCTLX_OHCI_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000088ull))
4062306a36Sopenharmony_ci#define CVMX_UCTLX_ORTO_CTL(block_id) (CVMX_ADD_IO_SEG(0x000118006F000098ull))
4162306a36Sopenharmony_ci#define CVMX_UCTLX_PPAF_WM(block_id) (CVMX_ADD_IO_SEG(0x000118006F000038ull))
4262306a36Sopenharmony_ci#define CVMX_UCTLX_UPHY_CTL_STATUS(block_id) (CVMX_ADD_IO_SEG(0x000118006F000008ull))
4362306a36Sopenharmony_ci#define CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(offset, block_id) (CVMX_ADD_IO_SEG(0x000118006F000010ull) + (((offset) & 1) + ((block_id) & 0) * 0x0ull) * 8)
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciunion cvmx_uctlx_bist_status {
4662306a36Sopenharmony_ci	uint64_t u64;
4762306a36Sopenharmony_ci	struct cvmx_uctlx_bist_status_s {
4862306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4962306a36Sopenharmony_ci		uint64_t reserved_6_63:58;
5062306a36Sopenharmony_ci		uint64_t data_bis:1;
5162306a36Sopenharmony_ci		uint64_t desc_bis:1;
5262306a36Sopenharmony_ci		uint64_t erbm_bis:1;
5362306a36Sopenharmony_ci		uint64_t orbm_bis:1;
5462306a36Sopenharmony_ci		uint64_t wrbm_bis:1;
5562306a36Sopenharmony_ci		uint64_t ppaf_bis:1;
5662306a36Sopenharmony_ci#else
5762306a36Sopenharmony_ci		uint64_t ppaf_bis:1;
5862306a36Sopenharmony_ci		uint64_t wrbm_bis:1;
5962306a36Sopenharmony_ci		uint64_t orbm_bis:1;
6062306a36Sopenharmony_ci		uint64_t erbm_bis:1;
6162306a36Sopenharmony_ci		uint64_t desc_bis:1;
6262306a36Sopenharmony_ci		uint64_t data_bis:1;
6362306a36Sopenharmony_ci		uint64_t reserved_6_63:58;
6462306a36Sopenharmony_ci#endif
6562306a36Sopenharmony_ci	} s;
6662306a36Sopenharmony_ci};
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciunion cvmx_uctlx_clk_rst_ctl {
6962306a36Sopenharmony_ci	uint64_t u64;
7062306a36Sopenharmony_ci	struct cvmx_uctlx_clk_rst_ctl_s {
7162306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
7262306a36Sopenharmony_ci		uint64_t reserved_25_63:39;
7362306a36Sopenharmony_ci		uint64_t clear_bist:1;
7462306a36Sopenharmony_ci		uint64_t start_bist:1;
7562306a36Sopenharmony_ci		uint64_t ehci_sm:1;
7662306a36Sopenharmony_ci		uint64_t ohci_clkcktrst:1;
7762306a36Sopenharmony_ci		uint64_t ohci_sm:1;
7862306a36Sopenharmony_ci		uint64_t ohci_susp_lgcy:1;
7962306a36Sopenharmony_ci		uint64_t app_start_clk:1;
8062306a36Sopenharmony_ci		uint64_t o_clkdiv_rst:1;
8162306a36Sopenharmony_ci		uint64_t h_clkdiv_byp:1;
8262306a36Sopenharmony_ci		uint64_t h_clkdiv_rst:1;
8362306a36Sopenharmony_ci		uint64_t h_clkdiv_en:1;
8462306a36Sopenharmony_ci		uint64_t o_clkdiv_en:1;
8562306a36Sopenharmony_ci		uint64_t h_div:4;
8662306a36Sopenharmony_ci		uint64_t p_refclk_sel:2;
8762306a36Sopenharmony_ci		uint64_t p_refclk_div:2;
8862306a36Sopenharmony_ci		uint64_t reserved_4_4:1;
8962306a36Sopenharmony_ci		uint64_t p_com_on:1;
9062306a36Sopenharmony_ci		uint64_t p_por:1;
9162306a36Sopenharmony_ci		uint64_t p_prst:1;
9262306a36Sopenharmony_ci		uint64_t hrst:1;
9362306a36Sopenharmony_ci#else
9462306a36Sopenharmony_ci		uint64_t hrst:1;
9562306a36Sopenharmony_ci		uint64_t p_prst:1;
9662306a36Sopenharmony_ci		uint64_t p_por:1;
9762306a36Sopenharmony_ci		uint64_t p_com_on:1;
9862306a36Sopenharmony_ci		uint64_t reserved_4_4:1;
9962306a36Sopenharmony_ci		uint64_t p_refclk_div:2;
10062306a36Sopenharmony_ci		uint64_t p_refclk_sel:2;
10162306a36Sopenharmony_ci		uint64_t h_div:4;
10262306a36Sopenharmony_ci		uint64_t o_clkdiv_en:1;
10362306a36Sopenharmony_ci		uint64_t h_clkdiv_en:1;
10462306a36Sopenharmony_ci		uint64_t h_clkdiv_rst:1;
10562306a36Sopenharmony_ci		uint64_t h_clkdiv_byp:1;
10662306a36Sopenharmony_ci		uint64_t o_clkdiv_rst:1;
10762306a36Sopenharmony_ci		uint64_t app_start_clk:1;
10862306a36Sopenharmony_ci		uint64_t ohci_susp_lgcy:1;
10962306a36Sopenharmony_ci		uint64_t ohci_sm:1;
11062306a36Sopenharmony_ci		uint64_t ohci_clkcktrst:1;
11162306a36Sopenharmony_ci		uint64_t ehci_sm:1;
11262306a36Sopenharmony_ci		uint64_t start_bist:1;
11362306a36Sopenharmony_ci		uint64_t clear_bist:1;
11462306a36Sopenharmony_ci		uint64_t reserved_25_63:39;
11562306a36Sopenharmony_ci#endif
11662306a36Sopenharmony_ci	} s;
11762306a36Sopenharmony_ci};
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciunion cvmx_uctlx_ehci_ctl {
12062306a36Sopenharmony_ci	uint64_t u64;
12162306a36Sopenharmony_ci	struct cvmx_uctlx_ehci_ctl_s {
12262306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
12362306a36Sopenharmony_ci		uint64_t reserved_20_63:44;
12462306a36Sopenharmony_ci		uint64_t desc_rbm:1;
12562306a36Sopenharmony_ci		uint64_t reg_nb:1;
12662306a36Sopenharmony_ci		uint64_t l2c_dc:1;
12762306a36Sopenharmony_ci		uint64_t l2c_bc:1;
12862306a36Sopenharmony_ci		uint64_t l2c_0pag:1;
12962306a36Sopenharmony_ci		uint64_t l2c_stt:1;
13062306a36Sopenharmony_ci		uint64_t l2c_buff_emod:2;
13162306a36Sopenharmony_ci		uint64_t l2c_desc_emod:2;
13262306a36Sopenharmony_ci		uint64_t inv_reg_a2:1;
13362306a36Sopenharmony_ci		uint64_t ehci_64b_addr_en:1;
13462306a36Sopenharmony_ci		uint64_t l2c_addr_msb:8;
13562306a36Sopenharmony_ci#else
13662306a36Sopenharmony_ci		uint64_t l2c_addr_msb:8;
13762306a36Sopenharmony_ci		uint64_t ehci_64b_addr_en:1;
13862306a36Sopenharmony_ci		uint64_t inv_reg_a2:1;
13962306a36Sopenharmony_ci		uint64_t l2c_desc_emod:2;
14062306a36Sopenharmony_ci		uint64_t l2c_buff_emod:2;
14162306a36Sopenharmony_ci		uint64_t l2c_stt:1;
14262306a36Sopenharmony_ci		uint64_t l2c_0pag:1;
14362306a36Sopenharmony_ci		uint64_t l2c_bc:1;
14462306a36Sopenharmony_ci		uint64_t l2c_dc:1;
14562306a36Sopenharmony_ci		uint64_t reg_nb:1;
14662306a36Sopenharmony_ci		uint64_t desc_rbm:1;
14762306a36Sopenharmony_ci		uint64_t reserved_20_63:44;
14862306a36Sopenharmony_ci#endif
14962306a36Sopenharmony_ci	} s;
15062306a36Sopenharmony_ci};
15162306a36Sopenharmony_ci
15262306a36Sopenharmony_ciunion cvmx_uctlx_ehci_fla {
15362306a36Sopenharmony_ci	uint64_t u64;
15462306a36Sopenharmony_ci	struct cvmx_uctlx_ehci_fla_s {
15562306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
15662306a36Sopenharmony_ci		uint64_t reserved_6_63:58;
15762306a36Sopenharmony_ci		uint64_t fla:6;
15862306a36Sopenharmony_ci#else
15962306a36Sopenharmony_ci		uint64_t fla:6;
16062306a36Sopenharmony_ci		uint64_t reserved_6_63:58;
16162306a36Sopenharmony_ci#endif
16262306a36Sopenharmony_ci	} s;
16362306a36Sopenharmony_ci};
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ciunion cvmx_uctlx_erto_ctl {
16662306a36Sopenharmony_ci	uint64_t u64;
16762306a36Sopenharmony_ci	struct cvmx_uctlx_erto_ctl_s {
16862306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
16962306a36Sopenharmony_ci		uint64_t reserved_32_63:32;
17062306a36Sopenharmony_ci		uint64_t to_val:27;
17162306a36Sopenharmony_ci		uint64_t reserved_0_4:5;
17262306a36Sopenharmony_ci#else
17362306a36Sopenharmony_ci		uint64_t reserved_0_4:5;
17462306a36Sopenharmony_ci		uint64_t to_val:27;
17562306a36Sopenharmony_ci		uint64_t reserved_32_63:32;
17662306a36Sopenharmony_ci#endif
17762306a36Sopenharmony_ci	} s;
17862306a36Sopenharmony_ci};
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ciunion cvmx_uctlx_if_ena {
18162306a36Sopenharmony_ci	uint64_t u64;
18262306a36Sopenharmony_ci	struct cvmx_uctlx_if_ena_s {
18362306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
18462306a36Sopenharmony_ci		uint64_t reserved_1_63:63;
18562306a36Sopenharmony_ci		uint64_t en:1;
18662306a36Sopenharmony_ci#else
18762306a36Sopenharmony_ci		uint64_t en:1;
18862306a36Sopenharmony_ci		uint64_t reserved_1_63:63;
18962306a36Sopenharmony_ci#endif
19062306a36Sopenharmony_ci	} s;
19162306a36Sopenharmony_ci};
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ciunion cvmx_uctlx_int_ena {
19462306a36Sopenharmony_ci	uint64_t u64;
19562306a36Sopenharmony_ci	struct cvmx_uctlx_int_ena_s {
19662306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
19762306a36Sopenharmony_ci		uint64_t reserved_8_63:56;
19862306a36Sopenharmony_ci		uint64_t ec_ovf_e:1;
19962306a36Sopenharmony_ci		uint64_t oc_ovf_e:1;
20062306a36Sopenharmony_ci		uint64_t wb_pop_e:1;
20162306a36Sopenharmony_ci		uint64_t wb_psh_f:1;
20262306a36Sopenharmony_ci		uint64_t cf_psh_f:1;
20362306a36Sopenharmony_ci		uint64_t or_psh_f:1;
20462306a36Sopenharmony_ci		uint64_t er_psh_f:1;
20562306a36Sopenharmony_ci		uint64_t pp_psh_f:1;
20662306a36Sopenharmony_ci#else
20762306a36Sopenharmony_ci		uint64_t pp_psh_f:1;
20862306a36Sopenharmony_ci		uint64_t er_psh_f:1;
20962306a36Sopenharmony_ci		uint64_t or_psh_f:1;
21062306a36Sopenharmony_ci		uint64_t cf_psh_f:1;
21162306a36Sopenharmony_ci		uint64_t wb_psh_f:1;
21262306a36Sopenharmony_ci		uint64_t wb_pop_e:1;
21362306a36Sopenharmony_ci		uint64_t oc_ovf_e:1;
21462306a36Sopenharmony_ci		uint64_t ec_ovf_e:1;
21562306a36Sopenharmony_ci		uint64_t reserved_8_63:56;
21662306a36Sopenharmony_ci#endif
21762306a36Sopenharmony_ci	} s;
21862306a36Sopenharmony_ci};
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ciunion cvmx_uctlx_int_reg {
22162306a36Sopenharmony_ci	uint64_t u64;
22262306a36Sopenharmony_ci	struct cvmx_uctlx_int_reg_s {
22362306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
22462306a36Sopenharmony_ci		uint64_t reserved_8_63:56;
22562306a36Sopenharmony_ci		uint64_t ec_ovf_e:1;
22662306a36Sopenharmony_ci		uint64_t oc_ovf_e:1;
22762306a36Sopenharmony_ci		uint64_t wb_pop_e:1;
22862306a36Sopenharmony_ci		uint64_t wb_psh_f:1;
22962306a36Sopenharmony_ci		uint64_t cf_psh_f:1;
23062306a36Sopenharmony_ci		uint64_t or_psh_f:1;
23162306a36Sopenharmony_ci		uint64_t er_psh_f:1;
23262306a36Sopenharmony_ci		uint64_t pp_psh_f:1;
23362306a36Sopenharmony_ci#else
23462306a36Sopenharmony_ci		uint64_t pp_psh_f:1;
23562306a36Sopenharmony_ci		uint64_t er_psh_f:1;
23662306a36Sopenharmony_ci		uint64_t or_psh_f:1;
23762306a36Sopenharmony_ci		uint64_t cf_psh_f:1;
23862306a36Sopenharmony_ci		uint64_t wb_psh_f:1;
23962306a36Sopenharmony_ci		uint64_t wb_pop_e:1;
24062306a36Sopenharmony_ci		uint64_t oc_ovf_e:1;
24162306a36Sopenharmony_ci		uint64_t ec_ovf_e:1;
24262306a36Sopenharmony_ci		uint64_t reserved_8_63:56;
24362306a36Sopenharmony_ci#endif
24462306a36Sopenharmony_ci	} s;
24562306a36Sopenharmony_ci};
24662306a36Sopenharmony_ci
24762306a36Sopenharmony_ciunion cvmx_uctlx_ohci_ctl {
24862306a36Sopenharmony_ci	uint64_t u64;
24962306a36Sopenharmony_ci	struct cvmx_uctlx_ohci_ctl_s {
25062306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
25162306a36Sopenharmony_ci		uint64_t reserved_19_63:45;
25262306a36Sopenharmony_ci		uint64_t reg_nb:1;
25362306a36Sopenharmony_ci		uint64_t l2c_dc:1;
25462306a36Sopenharmony_ci		uint64_t l2c_bc:1;
25562306a36Sopenharmony_ci		uint64_t l2c_0pag:1;
25662306a36Sopenharmony_ci		uint64_t l2c_stt:1;
25762306a36Sopenharmony_ci		uint64_t l2c_buff_emod:2;
25862306a36Sopenharmony_ci		uint64_t l2c_desc_emod:2;
25962306a36Sopenharmony_ci		uint64_t inv_reg_a2:1;
26062306a36Sopenharmony_ci		uint64_t reserved_8_8:1;
26162306a36Sopenharmony_ci		uint64_t l2c_addr_msb:8;
26262306a36Sopenharmony_ci#else
26362306a36Sopenharmony_ci		uint64_t l2c_addr_msb:8;
26462306a36Sopenharmony_ci		uint64_t reserved_8_8:1;
26562306a36Sopenharmony_ci		uint64_t inv_reg_a2:1;
26662306a36Sopenharmony_ci		uint64_t l2c_desc_emod:2;
26762306a36Sopenharmony_ci		uint64_t l2c_buff_emod:2;
26862306a36Sopenharmony_ci		uint64_t l2c_stt:1;
26962306a36Sopenharmony_ci		uint64_t l2c_0pag:1;
27062306a36Sopenharmony_ci		uint64_t l2c_bc:1;
27162306a36Sopenharmony_ci		uint64_t l2c_dc:1;
27262306a36Sopenharmony_ci		uint64_t reg_nb:1;
27362306a36Sopenharmony_ci		uint64_t reserved_19_63:45;
27462306a36Sopenharmony_ci#endif
27562306a36Sopenharmony_ci	} s;
27662306a36Sopenharmony_ci};
27762306a36Sopenharmony_ci
27862306a36Sopenharmony_ciunion cvmx_uctlx_orto_ctl {
27962306a36Sopenharmony_ci	uint64_t u64;
28062306a36Sopenharmony_ci	struct cvmx_uctlx_orto_ctl_s {
28162306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
28262306a36Sopenharmony_ci		uint64_t reserved_32_63:32;
28362306a36Sopenharmony_ci		uint64_t to_val:24;
28462306a36Sopenharmony_ci		uint64_t reserved_0_7:8;
28562306a36Sopenharmony_ci#else
28662306a36Sopenharmony_ci		uint64_t reserved_0_7:8;
28762306a36Sopenharmony_ci		uint64_t to_val:24;
28862306a36Sopenharmony_ci		uint64_t reserved_32_63:32;
28962306a36Sopenharmony_ci#endif
29062306a36Sopenharmony_ci	} s;
29162306a36Sopenharmony_ci};
29262306a36Sopenharmony_ci
29362306a36Sopenharmony_ciunion cvmx_uctlx_ppaf_wm {
29462306a36Sopenharmony_ci	uint64_t u64;
29562306a36Sopenharmony_ci	struct cvmx_uctlx_ppaf_wm_s {
29662306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
29762306a36Sopenharmony_ci		uint64_t reserved_5_63:59;
29862306a36Sopenharmony_ci		uint64_t wm:5;
29962306a36Sopenharmony_ci#else
30062306a36Sopenharmony_ci		uint64_t wm:5;
30162306a36Sopenharmony_ci		uint64_t reserved_5_63:59;
30262306a36Sopenharmony_ci#endif
30362306a36Sopenharmony_ci	} s;
30462306a36Sopenharmony_ci};
30562306a36Sopenharmony_ci
30662306a36Sopenharmony_ciunion cvmx_uctlx_uphy_ctl_status {
30762306a36Sopenharmony_ci	uint64_t u64;
30862306a36Sopenharmony_ci	struct cvmx_uctlx_uphy_ctl_status_s {
30962306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
31062306a36Sopenharmony_ci		uint64_t reserved_10_63:54;
31162306a36Sopenharmony_ci		uint64_t bist_done:1;
31262306a36Sopenharmony_ci		uint64_t bist_err:1;
31362306a36Sopenharmony_ci		uint64_t hsbist:1;
31462306a36Sopenharmony_ci		uint64_t fsbist:1;
31562306a36Sopenharmony_ci		uint64_t lsbist:1;
31662306a36Sopenharmony_ci		uint64_t siddq:1;
31762306a36Sopenharmony_ci		uint64_t vtest_en:1;
31862306a36Sopenharmony_ci		uint64_t uphy_bist:1;
31962306a36Sopenharmony_ci		uint64_t bist_en:1;
32062306a36Sopenharmony_ci		uint64_t ate_reset:1;
32162306a36Sopenharmony_ci#else
32262306a36Sopenharmony_ci		uint64_t ate_reset:1;
32362306a36Sopenharmony_ci		uint64_t bist_en:1;
32462306a36Sopenharmony_ci		uint64_t uphy_bist:1;
32562306a36Sopenharmony_ci		uint64_t vtest_en:1;
32662306a36Sopenharmony_ci		uint64_t siddq:1;
32762306a36Sopenharmony_ci		uint64_t lsbist:1;
32862306a36Sopenharmony_ci		uint64_t fsbist:1;
32962306a36Sopenharmony_ci		uint64_t hsbist:1;
33062306a36Sopenharmony_ci		uint64_t bist_err:1;
33162306a36Sopenharmony_ci		uint64_t bist_done:1;
33262306a36Sopenharmony_ci		uint64_t reserved_10_63:54;
33362306a36Sopenharmony_ci#endif
33462306a36Sopenharmony_ci	} s;
33562306a36Sopenharmony_ci};
33662306a36Sopenharmony_ci
33762306a36Sopenharmony_ciunion cvmx_uctlx_uphy_portx_ctl_status {
33862306a36Sopenharmony_ci	uint64_t u64;
33962306a36Sopenharmony_ci	struct cvmx_uctlx_uphy_portx_ctl_status_s {
34062306a36Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
34162306a36Sopenharmony_ci		uint64_t reserved_43_63:21;
34262306a36Sopenharmony_ci		uint64_t tdata_out:4;
34362306a36Sopenharmony_ci		uint64_t txbiststuffenh:1;
34462306a36Sopenharmony_ci		uint64_t txbiststuffen:1;
34562306a36Sopenharmony_ci		uint64_t dmpulldown:1;
34662306a36Sopenharmony_ci		uint64_t dppulldown:1;
34762306a36Sopenharmony_ci		uint64_t vbusvldext:1;
34862306a36Sopenharmony_ci		uint64_t portreset:1;
34962306a36Sopenharmony_ci		uint64_t txhsvxtune:2;
35062306a36Sopenharmony_ci		uint64_t txvreftune:4;
35162306a36Sopenharmony_ci		uint64_t txrisetune:1;
35262306a36Sopenharmony_ci		uint64_t txpreemphasistune:1;
35362306a36Sopenharmony_ci		uint64_t txfslstune:4;
35462306a36Sopenharmony_ci		uint64_t sqrxtune:3;
35562306a36Sopenharmony_ci		uint64_t compdistune:3;
35662306a36Sopenharmony_ci		uint64_t loop_en:1;
35762306a36Sopenharmony_ci		uint64_t tclk:1;
35862306a36Sopenharmony_ci		uint64_t tdata_sel:1;
35962306a36Sopenharmony_ci		uint64_t taddr_in:4;
36062306a36Sopenharmony_ci		uint64_t tdata_in:8;
36162306a36Sopenharmony_ci#else
36262306a36Sopenharmony_ci		uint64_t tdata_in:8;
36362306a36Sopenharmony_ci		uint64_t taddr_in:4;
36462306a36Sopenharmony_ci		uint64_t tdata_sel:1;
36562306a36Sopenharmony_ci		uint64_t tclk:1;
36662306a36Sopenharmony_ci		uint64_t loop_en:1;
36762306a36Sopenharmony_ci		uint64_t compdistune:3;
36862306a36Sopenharmony_ci		uint64_t sqrxtune:3;
36962306a36Sopenharmony_ci		uint64_t txfslstune:4;
37062306a36Sopenharmony_ci		uint64_t txpreemphasistune:1;
37162306a36Sopenharmony_ci		uint64_t txrisetune:1;
37262306a36Sopenharmony_ci		uint64_t txvreftune:4;
37362306a36Sopenharmony_ci		uint64_t txhsvxtune:2;
37462306a36Sopenharmony_ci		uint64_t portreset:1;
37562306a36Sopenharmony_ci		uint64_t vbusvldext:1;
37662306a36Sopenharmony_ci		uint64_t dppulldown:1;
37762306a36Sopenharmony_ci		uint64_t dmpulldown:1;
37862306a36Sopenharmony_ci		uint64_t txbiststuffen:1;
37962306a36Sopenharmony_ci		uint64_t txbiststuffenh:1;
38062306a36Sopenharmony_ci		uint64_t tdata_out:4;
38162306a36Sopenharmony_ci		uint64_t reserved_43_63:21;
38262306a36Sopenharmony_ci#endif
38362306a36Sopenharmony_ci	} s;
38462306a36Sopenharmony_ci};
38562306a36Sopenharmony_ci
38662306a36Sopenharmony_ci#endif
387