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_PCSX_DEFS_H__
298c2ecf20Sopenharmony_ci#define __CVMX_PCSX_DEFS_H__
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_ANX_ADV_REG(unsigned long offset, unsigned long block_id)
328c2ecf20Sopenharmony_ci{
338c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
348c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
358c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
368c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
378c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
388c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
398c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
408c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
418c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
428c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
438c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
448c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
458c2ecf20Sopenharmony_ci	}
468c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
478c2ecf20Sopenharmony_ci}
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_ANX_EXT_ST_REG(unsigned long offset, unsigned long block_id)
508c2ecf20Sopenharmony_ci{
518c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
528c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
538c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
548c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
558c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
568c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
578c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
588c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
598c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
608c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
618c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
628c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
638c2ecf20Sopenharmony_ci	}
648c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
658c2ecf20Sopenharmony_ci}
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_ANX_LP_ABIL_REG(unsigned long offset, unsigned long block_id)
688c2ecf20Sopenharmony_ci{
698c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
708c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
718c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
728c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
738c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
748c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
758c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
768c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
778c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
788c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
798c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
808c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
818c2ecf20Sopenharmony_ci	}
828c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001018ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
838c2ecf20Sopenharmony_ci}
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_ANX_RESULTS_REG(unsigned long offset, unsigned long block_id)
868c2ecf20Sopenharmony_ci{
878c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
888c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
898c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
908c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
918c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
928c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
938c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
948c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
958c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
968c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
978c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
988c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
998c2ecf20Sopenharmony_ci	}
1008c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001020ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1018c2ecf20Sopenharmony_ci}
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_INTX_EN_REG(unsigned long offset, unsigned long block_id)
1048c2ecf20Sopenharmony_ci{
1058c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
1068c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
1078c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1088c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
1098c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
1108c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1118c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
1128c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
1138c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
1148c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1158c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
1168c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
1178c2ecf20Sopenharmony_ci	}
1188c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001088ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1198c2ecf20Sopenharmony_ci}
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_INTX_REG(unsigned long offset, unsigned long block_id)
1228c2ecf20Sopenharmony_ci{
1238c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
1248c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
1258c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1268c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
1278c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
1288c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1298c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
1308c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
1318c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
1328c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1338c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
1348c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
1358c2ecf20Sopenharmony_ci	}
1368c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001080ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1378c2ecf20Sopenharmony_ci}
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_LINKX_TIMER_COUNT_REG(unsigned long offset, unsigned long block_id)
1408c2ecf20Sopenharmony_ci{
1418c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
1428c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
1438c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1448c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
1458c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
1468c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1478c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
1488c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
1498c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
1508c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1518c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
1528c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
1538c2ecf20Sopenharmony_ci	}
1548c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001040ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1558c2ecf20Sopenharmony_ci}
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_LOG_ANLX_REG(unsigned long offset, unsigned long block_id)
1588c2ecf20Sopenharmony_ci{
1598c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
1608c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
1618c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1628c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
1638c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
1648c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1658c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
1668c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
1678c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
1688c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1698c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
1708c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
1718c2ecf20Sopenharmony_ci	}
1728c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001090ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1738c2ecf20Sopenharmony_ci}
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_MISCX_CTL_REG(unsigned long offset, unsigned long block_id)
1768c2ecf20Sopenharmony_ci{
1778c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
1788c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
1798c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1808c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
1818c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
1828c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1838c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
1848c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
1858c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
1868c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1878c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
1888c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
1898c2ecf20Sopenharmony_ci	}
1908c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001078ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1918c2ecf20Sopenharmony_ci}
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_MRX_CONTROL_REG(unsigned long offset, unsigned long block_id)
1948c2ecf20Sopenharmony_ci{
1958c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
1968c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
1978c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
1988c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
1998c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
2008c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2018c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
2028c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
2038c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
2048c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2058c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
2068c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
2078c2ecf20Sopenharmony_ci	}
2088c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001000ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2098c2ecf20Sopenharmony_ci}
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_MRX_STATUS_REG(unsigned long offset, unsigned long block_id)
2128c2ecf20Sopenharmony_ci{
2138c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
2148c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
2158c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2168c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
2178c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
2188c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2198c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
2208c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
2218c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
2228c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2238c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
2248c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
2258c2ecf20Sopenharmony_ci	}
2268c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001008ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2278c2ecf20Sopenharmony_ci}
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_RXX_STATES_REG(unsigned long offset, unsigned long block_id)
2308c2ecf20Sopenharmony_ci{
2318c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
2328c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
2338c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2348c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
2358c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
2368c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2378c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
2388c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
2398c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
2408c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2418c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
2428c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
2438c2ecf20Sopenharmony_ci	}
2448c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001058ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2458c2ecf20Sopenharmony_ci}
2468c2ecf20Sopenharmony_ci
2478c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_RXX_SYNC_REG(unsigned long offset, unsigned long block_id)
2488c2ecf20Sopenharmony_ci{
2498c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
2508c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
2518c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2528c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
2538c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
2548c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2558c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
2568c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
2578c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
2588c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2598c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
2608c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
2618c2ecf20Sopenharmony_ci	}
2628c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001050ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2638c2ecf20Sopenharmony_ci}
2648c2ecf20Sopenharmony_ci
2658c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_SGMX_AN_ADV_REG(unsigned long offset, unsigned long block_id)
2668c2ecf20Sopenharmony_ci{
2678c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
2688c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
2698c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2708c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
2718c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
2728c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2738c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
2748c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
2758c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
2768c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2778c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
2788c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
2798c2ecf20Sopenharmony_ci	}
2808c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001068ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2818c2ecf20Sopenharmony_ci}
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_SGMX_LP_ADV_REG(unsigned long offset, unsigned long block_id)
2848c2ecf20Sopenharmony_ci{
2858c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
2868c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
2878c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2888c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
2898c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
2908c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2918c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
2928c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
2938c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
2948c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2958c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
2968c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
2978c2ecf20Sopenharmony_ci	}
2988c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001070ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
2998c2ecf20Sopenharmony_ci}
3008c2ecf20Sopenharmony_ci
3018c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_TXX_STATES_REG(unsigned long offset, unsigned long block_id)
3028c2ecf20Sopenharmony_ci{
3038c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
3048c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
3058c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3068c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
3078c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
3088c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3098c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
3108c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
3118c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
3128c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3138c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
3148c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
3158c2ecf20Sopenharmony_ci	}
3168c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001060ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3178c2ecf20Sopenharmony_ci}
3188c2ecf20Sopenharmony_ci
3198c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_PCSX_TX_RXX_POLARITY_REG(unsigned long offset, unsigned long block_id)
3208c2ecf20Sopenharmony_ci{
3218c2ecf20Sopenharmony_ci	switch (cvmx_get_octeon_family()) {
3228c2ecf20Sopenharmony_ci	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
3238c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3248c2ecf20Sopenharmony_ci	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
3258c2ecf20Sopenharmony_ci	case OCTEON_CN52XX & OCTEON_FAMILY_MASK:
3268c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3278c2ecf20Sopenharmony_ci	case OCTEON_CN56XX & OCTEON_FAMILY_MASK:
3288c2ecf20Sopenharmony_ci	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
3298c2ecf20Sopenharmony_ci	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
3308c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3318c2ecf20Sopenharmony_ci	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
3328c2ecf20Sopenharmony_ci		return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x4000ull) * 1024;
3338c2ecf20Sopenharmony_ci	}
3348c2ecf20Sopenharmony_ci	return CVMX_ADD_IO_SEG(0x00011800B0001048ull) + ((offset) + (block_id) * 0x20000ull) * 1024;
3358c2ecf20Sopenharmony_ci}
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_civoid __cvmx_interrupt_pcsx_intx_en_reg_enable(int index, int block);
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_ciunion cvmx_pcsx_anx_adv_reg {
3408c2ecf20Sopenharmony_ci	uint64_t u64;
3418c2ecf20Sopenharmony_ci	struct cvmx_pcsx_anx_adv_reg_s {
3428c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3438c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
3448c2ecf20Sopenharmony_ci		uint64_t np:1;
3458c2ecf20Sopenharmony_ci		uint64_t reserved_14_14:1;
3468c2ecf20Sopenharmony_ci		uint64_t rem_flt:2;
3478c2ecf20Sopenharmony_ci		uint64_t reserved_9_11:3;
3488c2ecf20Sopenharmony_ci		uint64_t pause:2;
3498c2ecf20Sopenharmony_ci		uint64_t hfd:1;
3508c2ecf20Sopenharmony_ci		uint64_t fd:1;
3518c2ecf20Sopenharmony_ci		uint64_t reserved_0_4:5;
3528c2ecf20Sopenharmony_ci#else
3538c2ecf20Sopenharmony_ci		uint64_t reserved_0_4:5;
3548c2ecf20Sopenharmony_ci		uint64_t fd:1;
3558c2ecf20Sopenharmony_ci		uint64_t hfd:1;
3568c2ecf20Sopenharmony_ci		uint64_t pause:2;
3578c2ecf20Sopenharmony_ci		uint64_t reserved_9_11:3;
3588c2ecf20Sopenharmony_ci		uint64_t rem_flt:2;
3598c2ecf20Sopenharmony_ci		uint64_t reserved_14_14:1;
3608c2ecf20Sopenharmony_ci		uint64_t np:1;
3618c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
3628c2ecf20Sopenharmony_ci#endif
3638c2ecf20Sopenharmony_ci	} s;
3648c2ecf20Sopenharmony_ci};
3658c2ecf20Sopenharmony_ci
3668c2ecf20Sopenharmony_ciunion cvmx_pcsx_anx_ext_st_reg {
3678c2ecf20Sopenharmony_ci	uint64_t u64;
3688c2ecf20Sopenharmony_ci	struct cvmx_pcsx_anx_ext_st_reg_s {
3698c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3708c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
3718c2ecf20Sopenharmony_ci		uint64_t thou_xfd:1;
3728c2ecf20Sopenharmony_ci		uint64_t thou_xhd:1;
3738c2ecf20Sopenharmony_ci		uint64_t thou_tfd:1;
3748c2ecf20Sopenharmony_ci		uint64_t thou_thd:1;
3758c2ecf20Sopenharmony_ci		uint64_t reserved_0_11:12;
3768c2ecf20Sopenharmony_ci#else
3778c2ecf20Sopenharmony_ci		uint64_t reserved_0_11:12;
3788c2ecf20Sopenharmony_ci		uint64_t thou_thd:1;
3798c2ecf20Sopenharmony_ci		uint64_t thou_tfd:1;
3808c2ecf20Sopenharmony_ci		uint64_t thou_xhd:1;
3818c2ecf20Sopenharmony_ci		uint64_t thou_xfd:1;
3828c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
3838c2ecf20Sopenharmony_ci#endif
3848c2ecf20Sopenharmony_ci	} s;
3858c2ecf20Sopenharmony_ci};
3868c2ecf20Sopenharmony_ci
3878c2ecf20Sopenharmony_ciunion cvmx_pcsx_anx_lp_abil_reg {
3888c2ecf20Sopenharmony_ci	uint64_t u64;
3898c2ecf20Sopenharmony_ci	struct cvmx_pcsx_anx_lp_abil_reg_s {
3908c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
3918c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
3928c2ecf20Sopenharmony_ci		uint64_t np:1;
3938c2ecf20Sopenharmony_ci		uint64_t ack:1;
3948c2ecf20Sopenharmony_ci		uint64_t rem_flt:2;
3958c2ecf20Sopenharmony_ci		uint64_t reserved_9_11:3;
3968c2ecf20Sopenharmony_ci		uint64_t pause:2;
3978c2ecf20Sopenharmony_ci		uint64_t hfd:1;
3988c2ecf20Sopenharmony_ci		uint64_t fd:1;
3998c2ecf20Sopenharmony_ci		uint64_t reserved_0_4:5;
4008c2ecf20Sopenharmony_ci#else
4018c2ecf20Sopenharmony_ci		uint64_t reserved_0_4:5;
4028c2ecf20Sopenharmony_ci		uint64_t fd:1;
4038c2ecf20Sopenharmony_ci		uint64_t hfd:1;
4048c2ecf20Sopenharmony_ci		uint64_t pause:2;
4058c2ecf20Sopenharmony_ci		uint64_t reserved_9_11:3;
4068c2ecf20Sopenharmony_ci		uint64_t rem_flt:2;
4078c2ecf20Sopenharmony_ci		uint64_t ack:1;
4088c2ecf20Sopenharmony_ci		uint64_t np:1;
4098c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
4108c2ecf20Sopenharmony_ci#endif
4118c2ecf20Sopenharmony_ci	} s;
4128c2ecf20Sopenharmony_ci};
4138c2ecf20Sopenharmony_ci
4148c2ecf20Sopenharmony_ciunion cvmx_pcsx_anx_results_reg {
4158c2ecf20Sopenharmony_ci	uint64_t u64;
4168c2ecf20Sopenharmony_ci	struct cvmx_pcsx_anx_results_reg_s {
4178c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4188c2ecf20Sopenharmony_ci		uint64_t reserved_7_63:57;
4198c2ecf20Sopenharmony_ci		uint64_t pause:2;
4208c2ecf20Sopenharmony_ci		uint64_t spd:2;
4218c2ecf20Sopenharmony_ci		uint64_t an_cpt:1;
4228c2ecf20Sopenharmony_ci		uint64_t dup:1;
4238c2ecf20Sopenharmony_ci		uint64_t link_ok:1;
4248c2ecf20Sopenharmony_ci#else
4258c2ecf20Sopenharmony_ci		uint64_t link_ok:1;
4268c2ecf20Sopenharmony_ci		uint64_t dup:1;
4278c2ecf20Sopenharmony_ci		uint64_t an_cpt:1;
4288c2ecf20Sopenharmony_ci		uint64_t spd:2;
4298c2ecf20Sopenharmony_ci		uint64_t pause:2;
4308c2ecf20Sopenharmony_ci		uint64_t reserved_7_63:57;
4318c2ecf20Sopenharmony_ci#endif
4328c2ecf20Sopenharmony_ci	} s;
4338c2ecf20Sopenharmony_ci};
4348c2ecf20Sopenharmony_ci
4358c2ecf20Sopenharmony_ciunion cvmx_pcsx_intx_en_reg {
4368c2ecf20Sopenharmony_ci	uint64_t u64;
4378c2ecf20Sopenharmony_ci	struct cvmx_pcsx_intx_en_reg_s {
4388c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4398c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
4408c2ecf20Sopenharmony_ci		uint64_t dbg_sync_en:1;
4418c2ecf20Sopenharmony_ci		uint64_t dup:1;
4428c2ecf20Sopenharmony_ci		uint64_t sync_bad_en:1;
4438c2ecf20Sopenharmony_ci		uint64_t an_bad_en:1;
4448c2ecf20Sopenharmony_ci		uint64_t rxlock_en:1;
4458c2ecf20Sopenharmony_ci		uint64_t rxbad_en:1;
4468c2ecf20Sopenharmony_ci		uint64_t rxerr_en:1;
4478c2ecf20Sopenharmony_ci		uint64_t txbad_en:1;
4488c2ecf20Sopenharmony_ci		uint64_t txfifo_en:1;
4498c2ecf20Sopenharmony_ci		uint64_t txfifu_en:1;
4508c2ecf20Sopenharmony_ci		uint64_t an_err_en:1;
4518c2ecf20Sopenharmony_ci		uint64_t xmit_en:1;
4528c2ecf20Sopenharmony_ci		uint64_t lnkspd_en:1;
4538c2ecf20Sopenharmony_ci#else
4548c2ecf20Sopenharmony_ci		uint64_t lnkspd_en:1;
4558c2ecf20Sopenharmony_ci		uint64_t xmit_en:1;
4568c2ecf20Sopenharmony_ci		uint64_t an_err_en:1;
4578c2ecf20Sopenharmony_ci		uint64_t txfifu_en:1;
4588c2ecf20Sopenharmony_ci		uint64_t txfifo_en:1;
4598c2ecf20Sopenharmony_ci		uint64_t txbad_en:1;
4608c2ecf20Sopenharmony_ci		uint64_t rxerr_en:1;
4618c2ecf20Sopenharmony_ci		uint64_t rxbad_en:1;
4628c2ecf20Sopenharmony_ci		uint64_t rxlock_en:1;
4638c2ecf20Sopenharmony_ci		uint64_t an_bad_en:1;
4648c2ecf20Sopenharmony_ci		uint64_t sync_bad_en:1;
4658c2ecf20Sopenharmony_ci		uint64_t dup:1;
4668c2ecf20Sopenharmony_ci		uint64_t dbg_sync_en:1;
4678c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
4688c2ecf20Sopenharmony_ci#endif
4698c2ecf20Sopenharmony_ci	} s;
4708c2ecf20Sopenharmony_ci	struct cvmx_pcsx_intx_en_reg_cn52xx {
4718c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
4728c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
4738c2ecf20Sopenharmony_ci		uint64_t dup:1;
4748c2ecf20Sopenharmony_ci		uint64_t sync_bad_en:1;
4758c2ecf20Sopenharmony_ci		uint64_t an_bad_en:1;
4768c2ecf20Sopenharmony_ci		uint64_t rxlock_en:1;
4778c2ecf20Sopenharmony_ci		uint64_t rxbad_en:1;
4788c2ecf20Sopenharmony_ci		uint64_t rxerr_en:1;
4798c2ecf20Sopenharmony_ci		uint64_t txbad_en:1;
4808c2ecf20Sopenharmony_ci		uint64_t txfifo_en:1;
4818c2ecf20Sopenharmony_ci		uint64_t txfifu_en:1;
4828c2ecf20Sopenharmony_ci		uint64_t an_err_en:1;
4838c2ecf20Sopenharmony_ci		uint64_t xmit_en:1;
4848c2ecf20Sopenharmony_ci		uint64_t lnkspd_en:1;
4858c2ecf20Sopenharmony_ci#else
4868c2ecf20Sopenharmony_ci		uint64_t lnkspd_en:1;
4878c2ecf20Sopenharmony_ci		uint64_t xmit_en:1;
4888c2ecf20Sopenharmony_ci		uint64_t an_err_en:1;
4898c2ecf20Sopenharmony_ci		uint64_t txfifu_en:1;
4908c2ecf20Sopenharmony_ci		uint64_t txfifo_en:1;
4918c2ecf20Sopenharmony_ci		uint64_t txbad_en:1;
4928c2ecf20Sopenharmony_ci		uint64_t rxerr_en:1;
4938c2ecf20Sopenharmony_ci		uint64_t rxbad_en:1;
4948c2ecf20Sopenharmony_ci		uint64_t rxlock_en:1;
4958c2ecf20Sopenharmony_ci		uint64_t an_bad_en:1;
4968c2ecf20Sopenharmony_ci		uint64_t sync_bad_en:1;
4978c2ecf20Sopenharmony_ci		uint64_t dup:1;
4988c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
4998c2ecf20Sopenharmony_ci#endif
5008c2ecf20Sopenharmony_ci	} cn52xx;
5018c2ecf20Sopenharmony_ci};
5028c2ecf20Sopenharmony_ci
5038c2ecf20Sopenharmony_ciunion cvmx_pcsx_intx_reg {
5048c2ecf20Sopenharmony_ci	uint64_t u64;
5058c2ecf20Sopenharmony_ci	struct cvmx_pcsx_intx_reg_s {
5068c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5078c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
5088c2ecf20Sopenharmony_ci		uint64_t dbg_sync:1;
5098c2ecf20Sopenharmony_ci		uint64_t dup:1;
5108c2ecf20Sopenharmony_ci		uint64_t sync_bad:1;
5118c2ecf20Sopenharmony_ci		uint64_t an_bad:1;
5128c2ecf20Sopenharmony_ci		uint64_t rxlock:1;
5138c2ecf20Sopenharmony_ci		uint64_t rxbad:1;
5148c2ecf20Sopenharmony_ci		uint64_t rxerr:1;
5158c2ecf20Sopenharmony_ci		uint64_t txbad:1;
5168c2ecf20Sopenharmony_ci		uint64_t txfifo:1;
5178c2ecf20Sopenharmony_ci		uint64_t txfifu:1;
5188c2ecf20Sopenharmony_ci		uint64_t an_err:1;
5198c2ecf20Sopenharmony_ci		uint64_t xmit:1;
5208c2ecf20Sopenharmony_ci		uint64_t lnkspd:1;
5218c2ecf20Sopenharmony_ci#else
5228c2ecf20Sopenharmony_ci		uint64_t lnkspd:1;
5238c2ecf20Sopenharmony_ci		uint64_t xmit:1;
5248c2ecf20Sopenharmony_ci		uint64_t an_err:1;
5258c2ecf20Sopenharmony_ci		uint64_t txfifu:1;
5268c2ecf20Sopenharmony_ci		uint64_t txfifo:1;
5278c2ecf20Sopenharmony_ci		uint64_t txbad:1;
5288c2ecf20Sopenharmony_ci		uint64_t rxerr:1;
5298c2ecf20Sopenharmony_ci		uint64_t rxbad:1;
5308c2ecf20Sopenharmony_ci		uint64_t rxlock:1;
5318c2ecf20Sopenharmony_ci		uint64_t an_bad:1;
5328c2ecf20Sopenharmony_ci		uint64_t sync_bad:1;
5338c2ecf20Sopenharmony_ci		uint64_t dup:1;
5348c2ecf20Sopenharmony_ci		uint64_t dbg_sync:1;
5358c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
5368c2ecf20Sopenharmony_ci#endif
5378c2ecf20Sopenharmony_ci	} s;
5388c2ecf20Sopenharmony_ci	struct cvmx_pcsx_intx_reg_cn52xx {
5398c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5408c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
5418c2ecf20Sopenharmony_ci		uint64_t dup:1;
5428c2ecf20Sopenharmony_ci		uint64_t sync_bad:1;
5438c2ecf20Sopenharmony_ci		uint64_t an_bad:1;
5448c2ecf20Sopenharmony_ci		uint64_t rxlock:1;
5458c2ecf20Sopenharmony_ci		uint64_t rxbad:1;
5468c2ecf20Sopenharmony_ci		uint64_t rxerr:1;
5478c2ecf20Sopenharmony_ci		uint64_t txbad:1;
5488c2ecf20Sopenharmony_ci		uint64_t txfifo:1;
5498c2ecf20Sopenharmony_ci		uint64_t txfifu:1;
5508c2ecf20Sopenharmony_ci		uint64_t an_err:1;
5518c2ecf20Sopenharmony_ci		uint64_t xmit:1;
5528c2ecf20Sopenharmony_ci		uint64_t lnkspd:1;
5538c2ecf20Sopenharmony_ci#else
5548c2ecf20Sopenharmony_ci		uint64_t lnkspd:1;
5558c2ecf20Sopenharmony_ci		uint64_t xmit:1;
5568c2ecf20Sopenharmony_ci		uint64_t an_err:1;
5578c2ecf20Sopenharmony_ci		uint64_t txfifu:1;
5588c2ecf20Sopenharmony_ci		uint64_t txfifo:1;
5598c2ecf20Sopenharmony_ci		uint64_t txbad:1;
5608c2ecf20Sopenharmony_ci		uint64_t rxerr:1;
5618c2ecf20Sopenharmony_ci		uint64_t rxbad:1;
5628c2ecf20Sopenharmony_ci		uint64_t rxlock:1;
5638c2ecf20Sopenharmony_ci		uint64_t an_bad:1;
5648c2ecf20Sopenharmony_ci		uint64_t sync_bad:1;
5658c2ecf20Sopenharmony_ci		uint64_t dup:1;
5668c2ecf20Sopenharmony_ci		uint64_t reserved_12_63:52;
5678c2ecf20Sopenharmony_ci#endif
5688c2ecf20Sopenharmony_ci	} cn52xx;
5698c2ecf20Sopenharmony_ci};
5708c2ecf20Sopenharmony_ci
5718c2ecf20Sopenharmony_ciunion cvmx_pcsx_linkx_timer_count_reg {
5728c2ecf20Sopenharmony_ci	uint64_t u64;
5738c2ecf20Sopenharmony_ci	struct cvmx_pcsx_linkx_timer_count_reg_s {
5748c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5758c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
5768c2ecf20Sopenharmony_ci		uint64_t count:16;
5778c2ecf20Sopenharmony_ci#else
5788c2ecf20Sopenharmony_ci		uint64_t count:16;
5798c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
5808c2ecf20Sopenharmony_ci#endif
5818c2ecf20Sopenharmony_ci	} s;
5828c2ecf20Sopenharmony_ci};
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_ciunion cvmx_pcsx_log_anlx_reg {
5858c2ecf20Sopenharmony_ci	uint64_t u64;
5868c2ecf20Sopenharmony_ci	struct cvmx_pcsx_log_anlx_reg_s {
5878c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
5888c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
5898c2ecf20Sopenharmony_ci		uint64_t lafifovfl:1;
5908c2ecf20Sopenharmony_ci		uint64_t la_en:1;
5918c2ecf20Sopenharmony_ci		uint64_t pkt_sz:2;
5928c2ecf20Sopenharmony_ci#else
5938c2ecf20Sopenharmony_ci		uint64_t pkt_sz:2;
5948c2ecf20Sopenharmony_ci		uint64_t la_en:1;
5958c2ecf20Sopenharmony_ci		uint64_t lafifovfl:1;
5968c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
5978c2ecf20Sopenharmony_ci#endif
5988c2ecf20Sopenharmony_ci	} s;
5998c2ecf20Sopenharmony_ci};
6008c2ecf20Sopenharmony_ci
6018c2ecf20Sopenharmony_ciunion cvmx_pcsx_miscx_ctl_reg {
6028c2ecf20Sopenharmony_ci	uint64_t u64;
6038c2ecf20Sopenharmony_ci	struct cvmx_pcsx_miscx_ctl_reg_s {
6048c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
6058c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
6068c2ecf20Sopenharmony_ci		uint64_t sgmii:1;
6078c2ecf20Sopenharmony_ci		uint64_t gmxeno:1;
6088c2ecf20Sopenharmony_ci		uint64_t loopbck2:1;
6098c2ecf20Sopenharmony_ci		uint64_t mac_phy:1;
6108c2ecf20Sopenharmony_ci		uint64_t mode:1;
6118c2ecf20Sopenharmony_ci		uint64_t an_ovrd:1;
6128c2ecf20Sopenharmony_ci		uint64_t samp_pt:7;
6138c2ecf20Sopenharmony_ci#else
6148c2ecf20Sopenharmony_ci		uint64_t samp_pt:7;
6158c2ecf20Sopenharmony_ci		uint64_t an_ovrd:1;
6168c2ecf20Sopenharmony_ci		uint64_t mode:1;
6178c2ecf20Sopenharmony_ci		uint64_t mac_phy:1;
6188c2ecf20Sopenharmony_ci		uint64_t loopbck2:1;
6198c2ecf20Sopenharmony_ci		uint64_t gmxeno:1;
6208c2ecf20Sopenharmony_ci		uint64_t sgmii:1;
6218c2ecf20Sopenharmony_ci		uint64_t reserved_13_63:51;
6228c2ecf20Sopenharmony_ci#endif
6238c2ecf20Sopenharmony_ci	} s;
6248c2ecf20Sopenharmony_ci};
6258c2ecf20Sopenharmony_ci
6268c2ecf20Sopenharmony_ciunion cvmx_pcsx_mrx_control_reg {
6278c2ecf20Sopenharmony_ci	uint64_t u64;
6288c2ecf20Sopenharmony_ci	struct cvmx_pcsx_mrx_control_reg_s {
6298c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
6308c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
6318c2ecf20Sopenharmony_ci		uint64_t reset:1;
6328c2ecf20Sopenharmony_ci		uint64_t loopbck1:1;
6338c2ecf20Sopenharmony_ci		uint64_t spdlsb:1;
6348c2ecf20Sopenharmony_ci		uint64_t an_en:1;
6358c2ecf20Sopenharmony_ci		uint64_t pwr_dn:1;
6368c2ecf20Sopenharmony_ci		uint64_t reserved_10_10:1;
6378c2ecf20Sopenharmony_ci		uint64_t rst_an:1;
6388c2ecf20Sopenharmony_ci		uint64_t dup:1;
6398c2ecf20Sopenharmony_ci		uint64_t coltst:1;
6408c2ecf20Sopenharmony_ci		uint64_t spdmsb:1;
6418c2ecf20Sopenharmony_ci		uint64_t uni:1;
6428c2ecf20Sopenharmony_ci		uint64_t reserved_0_4:5;
6438c2ecf20Sopenharmony_ci#else
6448c2ecf20Sopenharmony_ci		uint64_t reserved_0_4:5;
6458c2ecf20Sopenharmony_ci		uint64_t uni:1;
6468c2ecf20Sopenharmony_ci		uint64_t spdmsb:1;
6478c2ecf20Sopenharmony_ci		uint64_t coltst:1;
6488c2ecf20Sopenharmony_ci		uint64_t dup:1;
6498c2ecf20Sopenharmony_ci		uint64_t rst_an:1;
6508c2ecf20Sopenharmony_ci		uint64_t reserved_10_10:1;
6518c2ecf20Sopenharmony_ci		uint64_t pwr_dn:1;
6528c2ecf20Sopenharmony_ci		uint64_t an_en:1;
6538c2ecf20Sopenharmony_ci		uint64_t spdlsb:1;
6548c2ecf20Sopenharmony_ci		uint64_t loopbck1:1;
6558c2ecf20Sopenharmony_ci		uint64_t reset:1;
6568c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
6578c2ecf20Sopenharmony_ci#endif
6588c2ecf20Sopenharmony_ci	} s;
6598c2ecf20Sopenharmony_ci};
6608c2ecf20Sopenharmony_ci
6618c2ecf20Sopenharmony_ciunion cvmx_pcsx_mrx_status_reg {
6628c2ecf20Sopenharmony_ci	uint64_t u64;
6638c2ecf20Sopenharmony_ci	struct cvmx_pcsx_mrx_status_reg_s {
6648c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
6658c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
6668c2ecf20Sopenharmony_ci		uint64_t hun_t4:1;
6678c2ecf20Sopenharmony_ci		uint64_t hun_xfd:1;
6688c2ecf20Sopenharmony_ci		uint64_t hun_xhd:1;
6698c2ecf20Sopenharmony_ci		uint64_t ten_fd:1;
6708c2ecf20Sopenharmony_ci		uint64_t ten_hd:1;
6718c2ecf20Sopenharmony_ci		uint64_t hun_t2fd:1;
6728c2ecf20Sopenharmony_ci		uint64_t hun_t2hd:1;
6738c2ecf20Sopenharmony_ci		uint64_t ext_st:1;
6748c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
6758c2ecf20Sopenharmony_ci		uint64_t prb_sup:1;
6768c2ecf20Sopenharmony_ci		uint64_t an_cpt:1;
6778c2ecf20Sopenharmony_ci		uint64_t rm_flt:1;
6788c2ecf20Sopenharmony_ci		uint64_t an_abil:1;
6798c2ecf20Sopenharmony_ci		uint64_t lnk_st:1;
6808c2ecf20Sopenharmony_ci		uint64_t reserved_1_1:1;
6818c2ecf20Sopenharmony_ci		uint64_t extnd:1;
6828c2ecf20Sopenharmony_ci#else
6838c2ecf20Sopenharmony_ci		uint64_t extnd:1;
6848c2ecf20Sopenharmony_ci		uint64_t reserved_1_1:1;
6858c2ecf20Sopenharmony_ci		uint64_t lnk_st:1;
6868c2ecf20Sopenharmony_ci		uint64_t an_abil:1;
6878c2ecf20Sopenharmony_ci		uint64_t rm_flt:1;
6888c2ecf20Sopenharmony_ci		uint64_t an_cpt:1;
6898c2ecf20Sopenharmony_ci		uint64_t prb_sup:1;
6908c2ecf20Sopenharmony_ci		uint64_t reserved_7_7:1;
6918c2ecf20Sopenharmony_ci		uint64_t ext_st:1;
6928c2ecf20Sopenharmony_ci		uint64_t hun_t2hd:1;
6938c2ecf20Sopenharmony_ci		uint64_t hun_t2fd:1;
6948c2ecf20Sopenharmony_ci		uint64_t ten_hd:1;
6958c2ecf20Sopenharmony_ci		uint64_t ten_fd:1;
6968c2ecf20Sopenharmony_ci		uint64_t hun_xhd:1;
6978c2ecf20Sopenharmony_ci		uint64_t hun_xfd:1;
6988c2ecf20Sopenharmony_ci		uint64_t hun_t4:1;
6998c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7008c2ecf20Sopenharmony_ci#endif
7018c2ecf20Sopenharmony_ci	} s;
7028c2ecf20Sopenharmony_ci};
7038c2ecf20Sopenharmony_ci
7048c2ecf20Sopenharmony_ciunion cvmx_pcsx_rxx_states_reg {
7058c2ecf20Sopenharmony_ci	uint64_t u64;
7068c2ecf20Sopenharmony_ci	struct cvmx_pcsx_rxx_states_reg_s {
7078c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
7088c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7098c2ecf20Sopenharmony_ci		uint64_t rx_bad:1;
7108c2ecf20Sopenharmony_ci		uint64_t rx_st:5;
7118c2ecf20Sopenharmony_ci		uint64_t sync_bad:1;
7128c2ecf20Sopenharmony_ci		uint64_t sync:4;
7138c2ecf20Sopenharmony_ci		uint64_t an_bad:1;
7148c2ecf20Sopenharmony_ci		uint64_t an_st:4;
7158c2ecf20Sopenharmony_ci#else
7168c2ecf20Sopenharmony_ci		uint64_t an_st:4;
7178c2ecf20Sopenharmony_ci		uint64_t an_bad:1;
7188c2ecf20Sopenharmony_ci		uint64_t sync:4;
7198c2ecf20Sopenharmony_ci		uint64_t sync_bad:1;
7208c2ecf20Sopenharmony_ci		uint64_t rx_st:5;
7218c2ecf20Sopenharmony_ci		uint64_t rx_bad:1;
7228c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7238c2ecf20Sopenharmony_ci#endif
7248c2ecf20Sopenharmony_ci	} s;
7258c2ecf20Sopenharmony_ci};
7268c2ecf20Sopenharmony_ci
7278c2ecf20Sopenharmony_ciunion cvmx_pcsx_rxx_sync_reg {
7288c2ecf20Sopenharmony_ci	uint64_t u64;
7298c2ecf20Sopenharmony_ci	struct cvmx_pcsx_rxx_sync_reg_s {
7308c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
7318c2ecf20Sopenharmony_ci		uint64_t reserved_2_63:62;
7328c2ecf20Sopenharmony_ci		uint64_t sync:1;
7338c2ecf20Sopenharmony_ci		uint64_t bit_lock:1;
7348c2ecf20Sopenharmony_ci#else
7358c2ecf20Sopenharmony_ci		uint64_t bit_lock:1;
7368c2ecf20Sopenharmony_ci		uint64_t sync:1;
7378c2ecf20Sopenharmony_ci		uint64_t reserved_2_63:62;
7388c2ecf20Sopenharmony_ci#endif
7398c2ecf20Sopenharmony_ci	} s;
7408c2ecf20Sopenharmony_ci};
7418c2ecf20Sopenharmony_ci
7428c2ecf20Sopenharmony_ciunion cvmx_pcsx_sgmx_an_adv_reg {
7438c2ecf20Sopenharmony_ci	uint64_t u64;
7448c2ecf20Sopenharmony_ci	struct cvmx_pcsx_sgmx_an_adv_reg_s {
7458c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
7468c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7478c2ecf20Sopenharmony_ci		uint64_t link:1;
7488c2ecf20Sopenharmony_ci		uint64_t ack:1;
7498c2ecf20Sopenharmony_ci		uint64_t reserved_13_13:1;
7508c2ecf20Sopenharmony_ci		uint64_t dup:1;
7518c2ecf20Sopenharmony_ci		uint64_t speed:2;
7528c2ecf20Sopenharmony_ci		uint64_t reserved_1_9:9;
7538c2ecf20Sopenharmony_ci		uint64_t one:1;
7548c2ecf20Sopenharmony_ci#else
7558c2ecf20Sopenharmony_ci		uint64_t one:1;
7568c2ecf20Sopenharmony_ci		uint64_t reserved_1_9:9;
7578c2ecf20Sopenharmony_ci		uint64_t speed:2;
7588c2ecf20Sopenharmony_ci		uint64_t dup:1;
7598c2ecf20Sopenharmony_ci		uint64_t reserved_13_13:1;
7608c2ecf20Sopenharmony_ci		uint64_t ack:1;
7618c2ecf20Sopenharmony_ci		uint64_t link:1;
7628c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7638c2ecf20Sopenharmony_ci#endif
7648c2ecf20Sopenharmony_ci	} s;
7658c2ecf20Sopenharmony_ci};
7668c2ecf20Sopenharmony_ci
7678c2ecf20Sopenharmony_ciunion cvmx_pcsx_sgmx_lp_adv_reg {
7688c2ecf20Sopenharmony_ci	uint64_t u64;
7698c2ecf20Sopenharmony_ci	struct cvmx_pcsx_sgmx_lp_adv_reg_s {
7708c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
7718c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7728c2ecf20Sopenharmony_ci		uint64_t link:1;
7738c2ecf20Sopenharmony_ci		uint64_t reserved_13_14:2;
7748c2ecf20Sopenharmony_ci		uint64_t dup:1;
7758c2ecf20Sopenharmony_ci		uint64_t speed:2;
7768c2ecf20Sopenharmony_ci		uint64_t reserved_1_9:9;
7778c2ecf20Sopenharmony_ci		uint64_t one:1;
7788c2ecf20Sopenharmony_ci#else
7798c2ecf20Sopenharmony_ci		uint64_t one:1;
7808c2ecf20Sopenharmony_ci		uint64_t reserved_1_9:9;
7818c2ecf20Sopenharmony_ci		uint64_t speed:2;
7828c2ecf20Sopenharmony_ci		uint64_t dup:1;
7838c2ecf20Sopenharmony_ci		uint64_t reserved_13_14:2;
7848c2ecf20Sopenharmony_ci		uint64_t link:1;
7858c2ecf20Sopenharmony_ci		uint64_t reserved_16_63:48;
7868c2ecf20Sopenharmony_ci#endif
7878c2ecf20Sopenharmony_ci	} s;
7888c2ecf20Sopenharmony_ci};
7898c2ecf20Sopenharmony_ci
7908c2ecf20Sopenharmony_ciunion cvmx_pcsx_txx_states_reg {
7918c2ecf20Sopenharmony_ci	uint64_t u64;
7928c2ecf20Sopenharmony_ci	struct cvmx_pcsx_txx_states_reg_s {
7938c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
7948c2ecf20Sopenharmony_ci		uint64_t reserved_7_63:57;
7958c2ecf20Sopenharmony_ci		uint64_t xmit:2;
7968c2ecf20Sopenharmony_ci		uint64_t tx_bad:1;
7978c2ecf20Sopenharmony_ci		uint64_t ord_st:4;
7988c2ecf20Sopenharmony_ci#else
7998c2ecf20Sopenharmony_ci		uint64_t ord_st:4;
8008c2ecf20Sopenharmony_ci		uint64_t tx_bad:1;
8018c2ecf20Sopenharmony_ci		uint64_t xmit:2;
8028c2ecf20Sopenharmony_ci		uint64_t reserved_7_63:57;
8038c2ecf20Sopenharmony_ci#endif
8048c2ecf20Sopenharmony_ci	} s;
8058c2ecf20Sopenharmony_ci};
8068c2ecf20Sopenharmony_ci
8078c2ecf20Sopenharmony_ciunion cvmx_pcsx_tx_rxx_polarity_reg {
8088c2ecf20Sopenharmony_ci	uint64_t u64;
8098c2ecf20Sopenharmony_ci	struct cvmx_pcsx_tx_rxx_polarity_reg_s {
8108c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD
8118c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
8128c2ecf20Sopenharmony_ci		uint64_t rxovrd:1;
8138c2ecf20Sopenharmony_ci		uint64_t autorxpl:1;
8148c2ecf20Sopenharmony_ci		uint64_t rxplrt:1;
8158c2ecf20Sopenharmony_ci		uint64_t txplrt:1;
8168c2ecf20Sopenharmony_ci#else
8178c2ecf20Sopenharmony_ci		uint64_t txplrt:1;
8188c2ecf20Sopenharmony_ci		uint64_t rxplrt:1;
8198c2ecf20Sopenharmony_ci		uint64_t autorxpl:1;
8208c2ecf20Sopenharmony_ci		uint64_t rxovrd:1;
8218c2ecf20Sopenharmony_ci		uint64_t reserved_4_63:60;
8228c2ecf20Sopenharmony_ci#endif
8238c2ecf20Sopenharmony_ci	} s;
8248c2ecf20Sopenharmony_ci};
8258c2ecf20Sopenharmony_ci
8268c2ecf20Sopenharmony_ci#endif
827