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_GMXX_DEFS_H__ 298c2ecf20Sopenharmony_ci#define __CVMX_GMXX_DEFS_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_HG2_CONTROL(unsigned long block_id) 328c2ecf20Sopenharmony_ci{ 338c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 348c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 358c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000550ull) + (block_id) * 0x1000000ull; 368c2ecf20Sopenharmony_ci } 378c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000550ull) + (block_id) * 0x8000000ull; 388c2ecf20Sopenharmony_ci} 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_INF_MODE(unsigned long block_id) 418c2ecf20Sopenharmony_ci{ 428c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 438c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 448c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080007F8ull) + (block_id) * 0x1000000ull; 458c2ecf20Sopenharmony_ci } 468c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080007F8ull) + (block_id) * 0x8000000ull; 478c2ecf20Sopenharmony_ci} 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_PRTX_CFG(unsigned long offset, unsigned long block_id) 508c2ecf20Sopenharmony_ci{ 518c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 528c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 538c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x0ull) * 2048; 548c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 558c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 568c2ecf20Sopenharmony_ci } 578c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 588c2ecf20Sopenharmony_ci} 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM0(unsigned long offset, unsigned long block_id) 618c2ecf20Sopenharmony_ci{ 628c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 638c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 648c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x0ull) * 2048; 658c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 668c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 678c2ecf20Sopenharmony_ci } 688c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000180ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 698c2ecf20Sopenharmony_ci} 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM1(unsigned long offset, unsigned long block_id) 728c2ecf20Sopenharmony_ci{ 738c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 748c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 758c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x0ull) * 2048; 768c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 778c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 788c2ecf20Sopenharmony_ci } 798c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000188ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 808c2ecf20Sopenharmony_ci} 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM2(unsigned long offset, unsigned long block_id) 838c2ecf20Sopenharmony_ci{ 848c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 858c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 868c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x0ull) * 2048; 878c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 888c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 898c2ecf20Sopenharmony_ci } 908c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000190ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 918c2ecf20Sopenharmony_ci} 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM3(unsigned long offset, unsigned long block_id) 948c2ecf20Sopenharmony_ci{ 958c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 968c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 978c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x0ull) * 2048; 988c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 998c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1008c2ecf20Sopenharmony_ci } 1018c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000198ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1028c2ecf20Sopenharmony_ci} 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM4(unsigned long offset, unsigned long block_id) 1058c2ecf20Sopenharmony_ci{ 1068c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1078c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1088c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1098c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1108c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1118c2ecf20Sopenharmony_ci } 1128c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080001A0ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1138c2ecf20Sopenharmony_ci} 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM5(unsigned long offset, unsigned long block_id) 1168c2ecf20Sopenharmony_ci{ 1178c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1188c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1198c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1208c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1218c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1228c2ecf20Sopenharmony_ci } 1238c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080001A8ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1248c2ecf20Sopenharmony_ci} 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CAM_EN(unsigned long offset, unsigned long block_id) 1278c2ecf20Sopenharmony_ci{ 1288c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1298c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1308c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1318c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1328c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1338c2ecf20Sopenharmony_ci } 1348c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000108ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1358c2ecf20Sopenharmony_ci} 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_ADR_CTL(unsigned long offset, unsigned long block_id) 1388c2ecf20Sopenharmony_ci{ 1398c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1408c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1418c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1428c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1438c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1448c2ecf20Sopenharmony_ci } 1458c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000100ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1468c2ecf20Sopenharmony_ci} 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_FRM_CTL(unsigned long offset, unsigned long block_id) 1498c2ecf20Sopenharmony_ci{ 1508c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1518c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1528c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1538c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1548c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1558c2ecf20Sopenharmony_ci } 1568c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000018ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1578c2ecf20Sopenharmony_ci} 1588c2ecf20Sopenharmony_ci 1598c2ecf20Sopenharmony_ci#define CVMX_GMXX_RXX_FRM_MAX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000030ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048) 1608c2ecf20Sopenharmony_ci#define CVMX_GMXX_RXX_FRM_MIN(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000028ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048) 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_INT_EN(unsigned long offset, unsigned long block_id) 1638c2ecf20Sopenharmony_ci{ 1648c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1658c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1668c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1678c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1688c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1698c2ecf20Sopenharmony_ci } 1708c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000008ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1718c2ecf20Sopenharmony_ci} 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_INT_REG(unsigned long offset, unsigned long block_id) 1748c2ecf20Sopenharmony_ci{ 1758c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1768c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1778c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1788c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1798c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1808c2ecf20Sopenharmony_ci } 1818c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000000ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1828c2ecf20Sopenharmony_ci} 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RXX_JABBER(unsigned long offset, unsigned long block_id) 1858c2ecf20Sopenharmony_ci{ 1868c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 1878c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 1888c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x0ull) * 2048; 1898c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 1908c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 1918c2ecf20Sopenharmony_ci } 1928c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000038ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 1938c2ecf20Sopenharmony_ci} 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci#define CVMX_GMXX_RXX_RX_INBND(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000060ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048) 1968c2ecf20Sopenharmony_ci 1978c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RX_PRTS(unsigned long block_id) 1988c2ecf20Sopenharmony_ci{ 1998c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2008c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2018c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000410ull) + (block_id) * 0x1000000ull; 2028c2ecf20Sopenharmony_ci } 2038c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000410ull) + (block_id) * 0x8000000ull; 2048c2ecf20Sopenharmony_ci} 2058c2ecf20Sopenharmony_ci 2068c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_RX_XAUI_CTL(unsigned long block_id) 2078c2ecf20Sopenharmony_ci{ 2088c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2098c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2108c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000530ull) + (block_id) * 0x1000000ull; 2118c2ecf20Sopenharmony_ci } 2128c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000530ull) + (block_id) * 0x8000000ull; 2138c2ecf20Sopenharmony_ci} 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_SMACX(unsigned long offset, unsigned long block_id) 2168c2ecf20Sopenharmony_ci{ 2178c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2188c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2198c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2208c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2218c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2228c2ecf20Sopenharmony_ci } 2238c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000230ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2248c2ecf20Sopenharmony_ci} 2258c2ecf20Sopenharmony_ci 2268c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TXX_BURST(unsigned long offset, unsigned long block_id) 2278c2ecf20Sopenharmony_ci{ 2288c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2298c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2308c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2318c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2328c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2338c2ecf20Sopenharmony_ci } 2348c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000228ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2358c2ecf20Sopenharmony_ci} 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_ci#define CVMX_GMXX_TXX_CLK(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000208ull) + (((offset) & 3) + ((block_id) & 1) * 0x10000ull) * 2048) 2388c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TXX_CTL(unsigned long offset, unsigned long block_id) 2398c2ecf20Sopenharmony_ci{ 2408c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2418c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2428c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2438c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2448c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2458c2ecf20Sopenharmony_ci } 2468c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000270ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2478c2ecf20Sopenharmony_ci} 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TXX_PAUSE_PKT_INTERVAL(unsigned long offset, unsigned long block_id) 2508c2ecf20Sopenharmony_ci{ 2518c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2528c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2538c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2548c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2558c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2568c2ecf20Sopenharmony_ci } 2578c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000248ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2588c2ecf20Sopenharmony_ci} 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TXX_PAUSE_PKT_TIME(unsigned long offset, unsigned long block_id) 2618c2ecf20Sopenharmony_ci{ 2628c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2638c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2648c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2658c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2668c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2678c2ecf20Sopenharmony_ci } 2688c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000238ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2698c2ecf20Sopenharmony_ci} 2708c2ecf20Sopenharmony_ci 2718c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TXX_SLOT(unsigned long offset, unsigned long block_id) 2728c2ecf20Sopenharmony_ci{ 2738c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2748c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2758c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2768c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2778c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2788c2ecf20Sopenharmony_ci } 2798c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000220ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2808c2ecf20Sopenharmony_ci} 2818c2ecf20Sopenharmony_ci 2828c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TXX_THRESH(unsigned long offset, unsigned long block_id) 2838c2ecf20Sopenharmony_ci{ 2848c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2858c2ecf20Sopenharmony_ci case OCTEON_CN31XX & OCTEON_FAMILY_MASK: 2868c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x0ull) * 2048; 2878c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2888c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x2000ull) * 2048; 2898c2ecf20Sopenharmony_ci } 2908c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000210ull) + ((offset) + (block_id) * 0x10000ull) * 2048; 2918c2ecf20Sopenharmony_ci} 2928c2ecf20Sopenharmony_ci 2938c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TX_INT_EN(unsigned long block_id) 2948c2ecf20Sopenharmony_ci{ 2958c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 2968c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 2978c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000508ull) + (block_id) * 0x1000000ull; 2988c2ecf20Sopenharmony_ci } 2998c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000508ull) + (block_id) * 0x8000000ull; 3008c2ecf20Sopenharmony_ci} 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TX_INT_REG(unsigned long block_id) 3038c2ecf20Sopenharmony_ci{ 3048c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 3058c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 3068c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000500ull) + (block_id) * 0x1000000ull; 3078c2ecf20Sopenharmony_ci } 3088c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000500ull) + (block_id) * 0x8000000ull; 3098c2ecf20Sopenharmony_ci} 3108c2ecf20Sopenharmony_ci 3118c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TX_OVR_BP(unsigned long block_id) 3128c2ecf20Sopenharmony_ci{ 3138c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 3148c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 3158c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080004C8ull) + (block_id) * 0x1000000ull; 3168c2ecf20Sopenharmony_ci } 3178c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x00011800080004C8ull) + (block_id) * 0x8000000ull; 3188c2ecf20Sopenharmony_ci} 3198c2ecf20Sopenharmony_ci 3208c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TX_PRTS(unsigned long block_id) 3218c2ecf20Sopenharmony_ci{ 3228c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 3238c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 3248c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000480ull) + (block_id) * 0x1000000ull; 3258c2ecf20Sopenharmony_ci } 3268c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000480ull) + (block_id) * 0x8000000ull; 3278c2ecf20Sopenharmony_ci} 3288c2ecf20Sopenharmony_ci 3298c2ecf20Sopenharmony_ci#define CVMX_GMXX_TX_SPI_CTL(block_id) (CVMX_ADD_IO_SEG(0x00011800080004C0ull) + ((block_id) & 1) * 0x8000000ull) 3308c2ecf20Sopenharmony_ci#define CVMX_GMXX_TX_SPI_MAX(block_id) (CVMX_ADD_IO_SEG(0x00011800080004B0ull) + ((block_id) & 1) * 0x8000000ull) 3318c2ecf20Sopenharmony_ci#define CVMX_GMXX_TX_SPI_THRESH(block_id) (CVMX_ADD_IO_SEG(0x00011800080004B8ull) + ((block_id) & 1) * 0x8000000ull) 3328c2ecf20Sopenharmony_cistatic inline uint64_t CVMX_GMXX_TX_XAUI_CTL(unsigned long block_id) 3338c2ecf20Sopenharmony_ci{ 3348c2ecf20Sopenharmony_ci switch (cvmx_get_octeon_family()) { 3358c2ecf20Sopenharmony_ci case OCTEON_CN68XX & OCTEON_FAMILY_MASK: 3368c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000528ull) + (block_id) * 0x1000000ull; 3378c2ecf20Sopenharmony_ci } 3388c2ecf20Sopenharmony_ci return CVMX_ADD_IO_SEG(0x0001180008000528ull) + (block_id) * 0x8000000ull; 3398c2ecf20Sopenharmony_ci} 3408c2ecf20Sopenharmony_ci 3418c2ecf20Sopenharmony_civoid __cvmx_interrupt_gmxx_enable(int interface); 3428c2ecf20Sopenharmony_ci 3438c2ecf20Sopenharmony_ciunion cvmx_gmxx_hg2_control { 3448c2ecf20Sopenharmony_ci uint64_t u64; 3458c2ecf20Sopenharmony_ci struct cvmx_gmxx_hg2_control_s { 3468c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3478c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 3488c2ecf20Sopenharmony_ci uint64_t hg2tx_en:1; 3498c2ecf20Sopenharmony_ci uint64_t hg2rx_en:1; 3508c2ecf20Sopenharmony_ci uint64_t phys_en:1; 3518c2ecf20Sopenharmony_ci uint64_t logl_en:16; 3528c2ecf20Sopenharmony_ci#else 3538c2ecf20Sopenharmony_ci uint64_t logl_en:16; 3548c2ecf20Sopenharmony_ci uint64_t phys_en:1; 3558c2ecf20Sopenharmony_ci uint64_t hg2rx_en:1; 3568c2ecf20Sopenharmony_ci uint64_t hg2tx_en:1; 3578c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 3588c2ecf20Sopenharmony_ci#endif 3598c2ecf20Sopenharmony_ci } s; 3608c2ecf20Sopenharmony_ci}; 3618c2ecf20Sopenharmony_ci 3628c2ecf20Sopenharmony_ciunion cvmx_gmxx_inf_mode { 3638c2ecf20Sopenharmony_ci uint64_t u64; 3648c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_s { 3658c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3668c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 3678c2ecf20Sopenharmony_ci uint64_t rate:4; 3688c2ecf20Sopenharmony_ci uint64_t reserved_12_15:4; 3698c2ecf20Sopenharmony_ci uint64_t speed:4; 3708c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 3718c2ecf20Sopenharmony_ci uint64_t mode:3; 3728c2ecf20Sopenharmony_ci uint64_t reserved_3_3:1; 3738c2ecf20Sopenharmony_ci uint64_t p0mii:1; 3748c2ecf20Sopenharmony_ci uint64_t en:1; 3758c2ecf20Sopenharmony_ci uint64_t type:1; 3768c2ecf20Sopenharmony_ci#else 3778c2ecf20Sopenharmony_ci uint64_t type:1; 3788c2ecf20Sopenharmony_ci uint64_t en:1; 3798c2ecf20Sopenharmony_ci uint64_t p0mii:1; 3808c2ecf20Sopenharmony_ci uint64_t reserved_3_3:1; 3818c2ecf20Sopenharmony_ci uint64_t mode:3; 3828c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 3838c2ecf20Sopenharmony_ci uint64_t speed:4; 3848c2ecf20Sopenharmony_ci uint64_t reserved_12_15:4; 3858c2ecf20Sopenharmony_ci uint64_t rate:4; 3868c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 3878c2ecf20Sopenharmony_ci#endif 3888c2ecf20Sopenharmony_ci } s; 3898c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_cn30xx { 3908c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 3918c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 3928c2ecf20Sopenharmony_ci uint64_t p0mii:1; 3938c2ecf20Sopenharmony_ci uint64_t en:1; 3948c2ecf20Sopenharmony_ci uint64_t type:1; 3958c2ecf20Sopenharmony_ci#else 3968c2ecf20Sopenharmony_ci uint64_t type:1; 3978c2ecf20Sopenharmony_ci uint64_t en:1; 3988c2ecf20Sopenharmony_ci uint64_t p0mii:1; 3998c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 4008c2ecf20Sopenharmony_ci#endif 4018c2ecf20Sopenharmony_ci } cn30xx; 4028c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_cn31xx { 4038c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4048c2ecf20Sopenharmony_ci uint64_t reserved_2_63:62; 4058c2ecf20Sopenharmony_ci uint64_t en:1; 4068c2ecf20Sopenharmony_ci uint64_t type:1; 4078c2ecf20Sopenharmony_ci#else 4088c2ecf20Sopenharmony_ci uint64_t type:1; 4098c2ecf20Sopenharmony_ci uint64_t en:1; 4108c2ecf20Sopenharmony_ci uint64_t reserved_2_63:62; 4118c2ecf20Sopenharmony_ci#endif 4128c2ecf20Sopenharmony_ci } cn31xx; 4138c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_cn52xx { 4148c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4158c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 4168c2ecf20Sopenharmony_ci uint64_t speed:2; 4178c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 4188c2ecf20Sopenharmony_ci uint64_t mode:2; 4198c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4208c2ecf20Sopenharmony_ci uint64_t en:1; 4218c2ecf20Sopenharmony_ci uint64_t type:1; 4228c2ecf20Sopenharmony_ci#else 4238c2ecf20Sopenharmony_ci uint64_t type:1; 4248c2ecf20Sopenharmony_ci uint64_t en:1; 4258c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4268c2ecf20Sopenharmony_ci uint64_t mode:2; 4278c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 4288c2ecf20Sopenharmony_ci uint64_t speed:2; 4298c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 4308c2ecf20Sopenharmony_ci#endif 4318c2ecf20Sopenharmony_ci } cn52xx; 4328c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_cn61xx { 4338c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4348c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 4358c2ecf20Sopenharmony_ci uint64_t speed:4; 4368c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 4378c2ecf20Sopenharmony_ci uint64_t mode:1; 4388c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4398c2ecf20Sopenharmony_ci uint64_t en:1; 4408c2ecf20Sopenharmony_ci uint64_t type:1; 4418c2ecf20Sopenharmony_ci#else 4428c2ecf20Sopenharmony_ci uint64_t type:1; 4438c2ecf20Sopenharmony_ci uint64_t en:1; 4448c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4458c2ecf20Sopenharmony_ci uint64_t mode:1; 4468c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 4478c2ecf20Sopenharmony_ci uint64_t speed:4; 4488c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 4498c2ecf20Sopenharmony_ci#endif 4508c2ecf20Sopenharmony_ci } cn61xx; 4518c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_cn66xx { 4528c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4538c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 4548c2ecf20Sopenharmony_ci uint64_t rate:4; 4558c2ecf20Sopenharmony_ci uint64_t reserved_12_15:4; 4568c2ecf20Sopenharmony_ci uint64_t speed:4; 4578c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 4588c2ecf20Sopenharmony_ci uint64_t mode:1; 4598c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4608c2ecf20Sopenharmony_ci uint64_t en:1; 4618c2ecf20Sopenharmony_ci uint64_t type:1; 4628c2ecf20Sopenharmony_ci#else 4638c2ecf20Sopenharmony_ci uint64_t type:1; 4648c2ecf20Sopenharmony_ci uint64_t en:1; 4658c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4668c2ecf20Sopenharmony_ci uint64_t mode:1; 4678c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 4688c2ecf20Sopenharmony_ci uint64_t speed:4; 4698c2ecf20Sopenharmony_ci uint64_t reserved_12_15:4; 4708c2ecf20Sopenharmony_ci uint64_t rate:4; 4718c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 4728c2ecf20Sopenharmony_ci#endif 4738c2ecf20Sopenharmony_ci } cn66xx; 4748c2ecf20Sopenharmony_ci struct cvmx_gmxx_inf_mode_cn68xx { 4758c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4768c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 4778c2ecf20Sopenharmony_ci uint64_t speed:4; 4788c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 4798c2ecf20Sopenharmony_ci uint64_t mode:3; 4808c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4818c2ecf20Sopenharmony_ci uint64_t en:1; 4828c2ecf20Sopenharmony_ci uint64_t type:1; 4838c2ecf20Sopenharmony_ci#else 4848c2ecf20Sopenharmony_ci uint64_t type:1; 4858c2ecf20Sopenharmony_ci uint64_t en:1; 4868c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 4878c2ecf20Sopenharmony_ci uint64_t mode:3; 4888c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 4898c2ecf20Sopenharmony_ci uint64_t speed:4; 4908c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 4918c2ecf20Sopenharmony_ci#endif 4928c2ecf20Sopenharmony_ci } cn68xx; 4938c2ecf20Sopenharmony_ci}; 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_ciunion cvmx_gmxx_prtx_cfg { 4968c2ecf20Sopenharmony_ci uint64_t u64; 4978c2ecf20Sopenharmony_ci struct cvmx_gmxx_prtx_cfg_s { 4988c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 4998c2ecf20Sopenharmony_ci uint64_t reserved_22_63:42; 5008c2ecf20Sopenharmony_ci uint64_t pknd:6; 5018c2ecf20Sopenharmony_ci uint64_t reserved_14_15:2; 5028c2ecf20Sopenharmony_ci uint64_t tx_idle:1; 5038c2ecf20Sopenharmony_ci uint64_t rx_idle:1; 5048c2ecf20Sopenharmony_ci uint64_t reserved_9_11:3; 5058c2ecf20Sopenharmony_ci uint64_t speed_msb:1; 5068c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 5078c2ecf20Sopenharmony_ci uint64_t slottime:1; 5088c2ecf20Sopenharmony_ci uint64_t duplex:1; 5098c2ecf20Sopenharmony_ci uint64_t speed:1; 5108c2ecf20Sopenharmony_ci uint64_t en:1; 5118c2ecf20Sopenharmony_ci#else 5128c2ecf20Sopenharmony_ci uint64_t en:1; 5138c2ecf20Sopenharmony_ci uint64_t speed:1; 5148c2ecf20Sopenharmony_ci uint64_t duplex:1; 5158c2ecf20Sopenharmony_ci uint64_t slottime:1; 5168c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 5178c2ecf20Sopenharmony_ci uint64_t speed_msb:1; 5188c2ecf20Sopenharmony_ci uint64_t reserved_9_11:3; 5198c2ecf20Sopenharmony_ci uint64_t rx_idle:1; 5208c2ecf20Sopenharmony_ci uint64_t tx_idle:1; 5218c2ecf20Sopenharmony_ci uint64_t reserved_14_15:2; 5228c2ecf20Sopenharmony_ci uint64_t pknd:6; 5238c2ecf20Sopenharmony_ci uint64_t reserved_22_63:42; 5248c2ecf20Sopenharmony_ci#endif 5258c2ecf20Sopenharmony_ci } s; 5268c2ecf20Sopenharmony_ci struct cvmx_gmxx_prtx_cfg_cn30xx { 5278c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 5288c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 5298c2ecf20Sopenharmony_ci uint64_t slottime:1; 5308c2ecf20Sopenharmony_ci uint64_t duplex:1; 5318c2ecf20Sopenharmony_ci uint64_t speed:1; 5328c2ecf20Sopenharmony_ci uint64_t en:1; 5338c2ecf20Sopenharmony_ci#else 5348c2ecf20Sopenharmony_ci uint64_t en:1; 5358c2ecf20Sopenharmony_ci uint64_t speed:1; 5368c2ecf20Sopenharmony_ci uint64_t duplex:1; 5378c2ecf20Sopenharmony_ci uint64_t slottime:1; 5388c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 5398c2ecf20Sopenharmony_ci#endif 5408c2ecf20Sopenharmony_ci } cn30xx; 5418c2ecf20Sopenharmony_ci struct cvmx_gmxx_prtx_cfg_cn52xx { 5428c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 5438c2ecf20Sopenharmony_ci uint64_t reserved_14_63:50; 5448c2ecf20Sopenharmony_ci uint64_t tx_idle:1; 5458c2ecf20Sopenharmony_ci uint64_t rx_idle:1; 5468c2ecf20Sopenharmony_ci uint64_t reserved_9_11:3; 5478c2ecf20Sopenharmony_ci uint64_t speed_msb:1; 5488c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 5498c2ecf20Sopenharmony_ci uint64_t slottime:1; 5508c2ecf20Sopenharmony_ci uint64_t duplex:1; 5518c2ecf20Sopenharmony_ci uint64_t speed:1; 5528c2ecf20Sopenharmony_ci uint64_t en:1; 5538c2ecf20Sopenharmony_ci#else 5548c2ecf20Sopenharmony_ci uint64_t en:1; 5558c2ecf20Sopenharmony_ci uint64_t speed:1; 5568c2ecf20Sopenharmony_ci uint64_t duplex:1; 5578c2ecf20Sopenharmony_ci uint64_t slottime:1; 5588c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 5598c2ecf20Sopenharmony_ci uint64_t speed_msb:1; 5608c2ecf20Sopenharmony_ci uint64_t reserved_9_11:3; 5618c2ecf20Sopenharmony_ci uint64_t rx_idle:1; 5628c2ecf20Sopenharmony_ci uint64_t tx_idle:1; 5638c2ecf20Sopenharmony_ci uint64_t reserved_14_63:50; 5648c2ecf20Sopenharmony_ci#endif 5658c2ecf20Sopenharmony_ci } cn52xx; 5668c2ecf20Sopenharmony_ci}; 5678c2ecf20Sopenharmony_ci 5688c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_adr_ctl { 5698c2ecf20Sopenharmony_ci uint64_t u64; 5708c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_adr_ctl_s { 5718c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 5728c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 5738c2ecf20Sopenharmony_ci uint64_t cam_mode:1; 5748c2ecf20Sopenharmony_ci uint64_t mcst:2; 5758c2ecf20Sopenharmony_ci uint64_t bcst:1; 5768c2ecf20Sopenharmony_ci#else 5778c2ecf20Sopenharmony_ci uint64_t bcst:1; 5788c2ecf20Sopenharmony_ci uint64_t mcst:2; 5798c2ecf20Sopenharmony_ci uint64_t cam_mode:1; 5808c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 5818c2ecf20Sopenharmony_ci#endif 5828c2ecf20Sopenharmony_ci } s; 5838c2ecf20Sopenharmony_ci}; 5848c2ecf20Sopenharmony_ci 5858c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_frm_ctl { 5868c2ecf20Sopenharmony_ci uint64_t u64; 5878c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_s { 5888c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 5898c2ecf20Sopenharmony_ci uint64_t reserved_13_63:51; 5908c2ecf20Sopenharmony_ci uint64_t ptp_mode:1; 5918c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 5928c2ecf20Sopenharmony_ci uint64_t null_dis:1; 5938c2ecf20Sopenharmony_ci uint64_t pre_align:1; 5948c2ecf20Sopenharmony_ci uint64_t pad_len:1; 5958c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 5968c2ecf20Sopenharmony_ci uint64_t pre_free:1; 5978c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 5988c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 5998c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6008c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6018c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6028c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6038c2ecf20Sopenharmony_ci#else 6048c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6058c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6068c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6078c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6088c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6098c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6108c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6118c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 6128c2ecf20Sopenharmony_ci uint64_t pad_len:1; 6138c2ecf20Sopenharmony_ci uint64_t pre_align:1; 6148c2ecf20Sopenharmony_ci uint64_t null_dis:1; 6158c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 6168c2ecf20Sopenharmony_ci uint64_t ptp_mode:1; 6178c2ecf20Sopenharmony_ci uint64_t reserved_13_63:51; 6188c2ecf20Sopenharmony_ci#endif 6198c2ecf20Sopenharmony_ci } s; 6208c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_cn30xx { 6218c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 6228c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 6238c2ecf20Sopenharmony_ci uint64_t pad_len:1; 6248c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 6258c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6268c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6278c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6288c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6298c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6308c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6318c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6328c2ecf20Sopenharmony_ci#else 6338c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6348c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6358c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6368c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6378c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6388c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6398c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6408c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 6418c2ecf20Sopenharmony_ci uint64_t pad_len:1; 6428c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 6438c2ecf20Sopenharmony_ci#endif 6448c2ecf20Sopenharmony_ci } cn30xx; 6458c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_cn31xx { 6468c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 6478c2ecf20Sopenharmony_ci uint64_t reserved_8_63:56; 6488c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 6498c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6508c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6518c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6528c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6538c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6548c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6558c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6568c2ecf20Sopenharmony_ci#else 6578c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6588c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6598c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6608c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6618c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6628c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6638c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6648c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 6658c2ecf20Sopenharmony_ci uint64_t reserved_8_63:56; 6668c2ecf20Sopenharmony_ci#endif 6678c2ecf20Sopenharmony_ci } cn31xx; 6688c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_cn50xx { 6698c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 6708c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 6718c2ecf20Sopenharmony_ci uint64_t null_dis:1; 6728c2ecf20Sopenharmony_ci uint64_t pre_align:1; 6738c2ecf20Sopenharmony_ci uint64_t reserved_7_8:2; 6748c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6758c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6768c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6778c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6788c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6798c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6808c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6818c2ecf20Sopenharmony_ci#else 6828c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 6838c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 6848c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 6858c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 6868c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 6878c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 6888c2ecf20Sopenharmony_ci uint64_t pre_free:1; 6898c2ecf20Sopenharmony_ci uint64_t reserved_7_8:2; 6908c2ecf20Sopenharmony_ci uint64_t pre_align:1; 6918c2ecf20Sopenharmony_ci uint64_t null_dis:1; 6928c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 6938c2ecf20Sopenharmony_ci#endif 6948c2ecf20Sopenharmony_ci } cn50xx; 6958c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_cn56xxp1 { 6968c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 6978c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 6988c2ecf20Sopenharmony_ci uint64_t pre_align:1; 6998c2ecf20Sopenharmony_ci uint64_t reserved_7_8:2; 7008c2ecf20Sopenharmony_ci uint64_t pre_free:1; 7018c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 7028c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 7038c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 7048c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 7058c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 7068c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 7078c2ecf20Sopenharmony_ci#else 7088c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 7098c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 7108c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 7118c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 7128c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 7138c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 7148c2ecf20Sopenharmony_ci uint64_t pre_free:1; 7158c2ecf20Sopenharmony_ci uint64_t reserved_7_8:2; 7168c2ecf20Sopenharmony_ci uint64_t pre_align:1; 7178c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 7188c2ecf20Sopenharmony_ci#endif 7198c2ecf20Sopenharmony_ci } cn56xxp1; 7208c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_cn58xx { 7218c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 7228c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 7238c2ecf20Sopenharmony_ci uint64_t null_dis:1; 7248c2ecf20Sopenharmony_ci uint64_t pre_align:1; 7258c2ecf20Sopenharmony_ci uint64_t pad_len:1; 7268c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 7278c2ecf20Sopenharmony_ci uint64_t pre_free:1; 7288c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 7298c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 7308c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 7318c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 7328c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 7338c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 7348c2ecf20Sopenharmony_ci#else 7358c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 7368c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 7378c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 7388c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 7398c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 7408c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 7418c2ecf20Sopenharmony_ci uint64_t pre_free:1; 7428c2ecf20Sopenharmony_ci uint64_t vlan_len:1; 7438c2ecf20Sopenharmony_ci uint64_t pad_len:1; 7448c2ecf20Sopenharmony_ci uint64_t pre_align:1; 7458c2ecf20Sopenharmony_ci uint64_t null_dis:1; 7468c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 7478c2ecf20Sopenharmony_ci#endif 7488c2ecf20Sopenharmony_ci } cn58xx; 7498c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_ctl_cn61xx { 7508c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 7518c2ecf20Sopenharmony_ci uint64_t reserved_13_63:51; 7528c2ecf20Sopenharmony_ci uint64_t ptp_mode:1; 7538c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 7548c2ecf20Sopenharmony_ci uint64_t null_dis:1; 7558c2ecf20Sopenharmony_ci uint64_t pre_align:1; 7568c2ecf20Sopenharmony_ci uint64_t reserved_7_8:2; 7578c2ecf20Sopenharmony_ci uint64_t pre_free:1; 7588c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 7598c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 7608c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 7618c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 7628c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 7638c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 7648c2ecf20Sopenharmony_ci#else 7658c2ecf20Sopenharmony_ci uint64_t pre_chk:1; 7668c2ecf20Sopenharmony_ci uint64_t pre_strp:1; 7678c2ecf20Sopenharmony_ci uint64_t ctl_drp:1; 7688c2ecf20Sopenharmony_ci uint64_t ctl_bck:1; 7698c2ecf20Sopenharmony_ci uint64_t ctl_mcst:1; 7708c2ecf20Sopenharmony_ci uint64_t ctl_smac:1; 7718c2ecf20Sopenharmony_ci uint64_t pre_free:1; 7728c2ecf20Sopenharmony_ci uint64_t reserved_7_8:2; 7738c2ecf20Sopenharmony_ci uint64_t pre_align:1; 7748c2ecf20Sopenharmony_ci uint64_t null_dis:1; 7758c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 7768c2ecf20Sopenharmony_ci uint64_t ptp_mode:1; 7778c2ecf20Sopenharmony_ci uint64_t reserved_13_63:51; 7788c2ecf20Sopenharmony_ci#endif 7798c2ecf20Sopenharmony_ci } cn61xx; 7808c2ecf20Sopenharmony_ci}; 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_frm_max { 7838c2ecf20Sopenharmony_ci uint64_t u64; 7848c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_max_s { 7858c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 7868c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 7878c2ecf20Sopenharmony_ci uint64_t len:16; 7888c2ecf20Sopenharmony_ci#else 7898c2ecf20Sopenharmony_ci uint64_t len:16; 7908c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 7918c2ecf20Sopenharmony_ci#endif 7928c2ecf20Sopenharmony_ci } s; 7938c2ecf20Sopenharmony_ci}; 7948c2ecf20Sopenharmony_ci 7958c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_frm_min { 7968c2ecf20Sopenharmony_ci uint64_t u64; 7978c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_frm_min_s { 7988c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 7998c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 8008c2ecf20Sopenharmony_ci uint64_t len:16; 8018c2ecf20Sopenharmony_ci#else 8028c2ecf20Sopenharmony_ci uint64_t len:16; 8038c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 8048c2ecf20Sopenharmony_ci#endif 8058c2ecf20Sopenharmony_ci } s; 8068c2ecf20Sopenharmony_ci}; 8078c2ecf20Sopenharmony_ci 8088c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_int_en { 8098c2ecf20Sopenharmony_ci uint64_t u64; 8108c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_s { 8118c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 8128c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 8138c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 8148c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 8158c2ecf20Sopenharmony_ci uint64_t undat:1; 8168c2ecf20Sopenharmony_ci uint64_t uneop:1; 8178c2ecf20Sopenharmony_ci uint64_t unsop:1; 8188c2ecf20Sopenharmony_ci uint64_t bad_term:1; 8198c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 8208c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 8218c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 8228c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 8238c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 8248c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 8258c2ecf20Sopenharmony_ci uint64_t phy_link:1; 8268c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 8278c2ecf20Sopenharmony_ci uint64_t coldet:1; 8288c2ecf20Sopenharmony_ci uint64_t falerr:1; 8298c2ecf20Sopenharmony_ci uint64_t rsverr:1; 8308c2ecf20Sopenharmony_ci uint64_t pcterr:1; 8318c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 8328c2ecf20Sopenharmony_ci uint64_t niberr:1; 8338c2ecf20Sopenharmony_ci uint64_t skperr:1; 8348c2ecf20Sopenharmony_ci uint64_t rcverr:1; 8358c2ecf20Sopenharmony_ci uint64_t lenerr:1; 8368c2ecf20Sopenharmony_ci uint64_t alnerr:1; 8378c2ecf20Sopenharmony_ci uint64_t fcserr:1; 8388c2ecf20Sopenharmony_ci uint64_t jabber:1; 8398c2ecf20Sopenharmony_ci uint64_t maxerr:1; 8408c2ecf20Sopenharmony_ci uint64_t carext:1; 8418c2ecf20Sopenharmony_ci uint64_t minerr:1; 8428c2ecf20Sopenharmony_ci#else 8438c2ecf20Sopenharmony_ci uint64_t minerr:1; 8448c2ecf20Sopenharmony_ci uint64_t carext:1; 8458c2ecf20Sopenharmony_ci uint64_t maxerr:1; 8468c2ecf20Sopenharmony_ci uint64_t jabber:1; 8478c2ecf20Sopenharmony_ci uint64_t fcserr:1; 8488c2ecf20Sopenharmony_ci uint64_t alnerr:1; 8498c2ecf20Sopenharmony_ci uint64_t lenerr:1; 8508c2ecf20Sopenharmony_ci uint64_t rcverr:1; 8518c2ecf20Sopenharmony_ci uint64_t skperr:1; 8528c2ecf20Sopenharmony_ci uint64_t niberr:1; 8538c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 8548c2ecf20Sopenharmony_ci uint64_t pcterr:1; 8558c2ecf20Sopenharmony_ci uint64_t rsverr:1; 8568c2ecf20Sopenharmony_ci uint64_t falerr:1; 8578c2ecf20Sopenharmony_ci uint64_t coldet:1; 8588c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 8598c2ecf20Sopenharmony_ci uint64_t phy_link:1; 8608c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 8618c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 8628c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 8638c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 8648c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 8658c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 8668c2ecf20Sopenharmony_ci uint64_t bad_term:1; 8678c2ecf20Sopenharmony_ci uint64_t unsop:1; 8688c2ecf20Sopenharmony_ci uint64_t uneop:1; 8698c2ecf20Sopenharmony_ci uint64_t undat:1; 8708c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 8718c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 8728c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 8738c2ecf20Sopenharmony_ci#endif 8748c2ecf20Sopenharmony_ci } s; 8758c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_cn30xx { 8768c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 8778c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 8788c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 8798c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 8808c2ecf20Sopenharmony_ci uint64_t phy_link:1; 8818c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 8828c2ecf20Sopenharmony_ci uint64_t coldet:1; 8838c2ecf20Sopenharmony_ci uint64_t falerr:1; 8848c2ecf20Sopenharmony_ci uint64_t rsverr:1; 8858c2ecf20Sopenharmony_ci uint64_t pcterr:1; 8868c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 8878c2ecf20Sopenharmony_ci uint64_t niberr:1; 8888c2ecf20Sopenharmony_ci uint64_t skperr:1; 8898c2ecf20Sopenharmony_ci uint64_t rcverr:1; 8908c2ecf20Sopenharmony_ci uint64_t lenerr:1; 8918c2ecf20Sopenharmony_ci uint64_t alnerr:1; 8928c2ecf20Sopenharmony_ci uint64_t fcserr:1; 8938c2ecf20Sopenharmony_ci uint64_t jabber:1; 8948c2ecf20Sopenharmony_ci uint64_t maxerr:1; 8958c2ecf20Sopenharmony_ci uint64_t carext:1; 8968c2ecf20Sopenharmony_ci uint64_t minerr:1; 8978c2ecf20Sopenharmony_ci#else 8988c2ecf20Sopenharmony_ci uint64_t minerr:1; 8998c2ecf20Sopenharmony_ci uint64_t carext:1; 9008c2ecf20Sopenharmony_ci uint64_t maxerr:1; 9018c2ecf20Sopenharmony_ci uint64_t jabber:1; 9028c2ecf20Sopenharmony_ci uint64_t fcserr:1; 9038c2ecf20Sopenharmony_ci uint64_t alnerr:1; 9048c2ecf20Sopenharmony_ci uint64_t lenerr:1; 9058c2ecf20Sopenharmony_ci uint64_t rcverr:1; 9068c2ecf20Sopenharmony_ci uint64_t skperr:1; 9078c2ecf20Sopenharmony_ci uint64_t niberr:1; 9088c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 9098c2ecf20Sopenharmony_ci uint64_t pcterr:1; 9108c2ecf20Sopenharmony_ci uint64_t rsverr:1; 9118c2ecf20Sopenharmony_ci uint64_t falerr:1; 9128c2ecf20Sopenharmony_ci uint64_t coldet:1; 9138c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 9148c2ecf20Sopenharmony_ci uint64_t phy_link:1; 9158c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 9168c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 9178c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 9188c2ecf20Sopenharmony_ci#endif 9198c2ecf20Sopenharmony_ci } cn30xx; 9208c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_cn50xx { 9218c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 9228c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 9238c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 9248c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 9258c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 9268c2ecf20Sopenharmony_ci uint64_t phy_link:1; 9278c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 9288c2ecf20Sopenharmony_ci uint64_t coldet:1; 9298c2ecf20Sopenharmony_ci uint64_t falerr:1; 9308c2ecf20Sopenharmony_ci uint64_t rsverr:1; 9318c2ecf20Sopenharmony_ci uint64_t pcterr:1; 9328c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 9338c2ecf20Sopenharmony_ci uint64_t niberr:1; 9348c2ecf20Sopenharmony_ci uint64_t skperr:1; 9358c2ecf20Sopenharmony_ci uint64_t rcverr:1; 9368c2ecf20Sopenharmony_ci uint64_t reserved_6_6:1; 9378c2ecf20Sopenharmony_ci uint64_t alnerr:1; 9388c2ecf20Sopenharmony_ci uint64_t fcserr:1; 9398c2ecf20Sopenharmony_ci uint64_t jabber:1; 9408c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 9418c2ecf20Sopenharmony_ci uint64_t carext:1; 9428c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 9438c2ecf20Sopenharmony_ci#else 9448c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 9458c2ecf20Sopenharmony_ci uint64_t carext:1; 9468c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 9478c2ecf20Sopenharmony_ci uint64_t jabber:1; 9488c2ecf20Sopenharmony_ci uint64_t fcserr:1; 9498c2ecf20Sopenharmony_ci uint64_t alnerr:1; 9508c2ecf20Sopenharmony_ci uint64_t reserved_6_6:1; 9518c2ecf20Sopenharmony_ci uint64_t rcverr:1; 9528c2ecf20Sopenharmony_ci uint64_t skperr:1; 9538c2ecf20Sopenharmony_ci uint64_t niberr:1; 9548c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 9558c2ecf20Sopenharmony_ci uint64_t pcterr:1; 9568c2ecf20Sopenharmony_ci uint64_t rsverr:1; 9578c2ecf20Sopenharmony_ci uint64_t falerr:1; 9588c2ecf20Sopenharmony_ci uint64_t coldet:1; 9598c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 9608c2ecf20Sopenharmony_ci uint64_t phy_link:1; 9618c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 9628c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 9638c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 9648c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 9658c2ecf20Sopenharmony_ci#endif 9668c2ecf20Sopenharmony_ci } cn50xx; 9678c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_cn52xx { 9688c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 9698c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 9708c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 9718c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 9728c2ecf20Sopenharmony_ci uint64_t undat:1; 9738c2ecf20Sopenharmony_ci uint64_t uneop:1; 9748c2ecf20Sopenharmony_ci uint64_t unsop:1; 9758c2ecf20Sopenharmony_ci uint64_t bad_term:1; 9768c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 9778c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 9788c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 9798c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 9808c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 9818c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 9828c2ecf20Sopenharmony_ci uint64_t coldet:1; 9838c2ecf20Sopenharmony_ci uint64_t falerr:1; 9848c2ecf20Sopenharmony_ci uint64_t rsverr:1; 9858c2ecf20Sopenharmony_ci uint64_t pcterr:1; 9868c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 9878c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 9888c2ecf20Sopenharmony_ci uint64_t skperr:1; 9898c2ecf20Sopenharmony_ci uint64_t rcverr:1; 9908c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 9918c2ecf20Sopenharmony_ci uint64_t fcserr:1; 9928c2ecf20Sopenharmony_ci uint64_t jabber:1; 9938c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 9948c2ecf20Sopenharmony_ci uint64_t carext:1; 9958c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 9968c2ecf20Sopenharmony_ci#else 9978c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 9988c2ecf20Sopenharmony_ci uint64_t carext:1; 9998c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 10008c2ecf20Sopenharmony_ci uint64_t jabber:1; 10018c2ecf20Sopenharmony_ci uint64_t fcserr:1; 10028c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 10038c2ecf20Sopenharmony_ci uint64_t rcverr:1; 10048c2ecf20Sopenharmony_ci uint64_t skperr:1; 10058c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 10068c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 10078c2ecf20Sopenharmony_ci uint64_t pcterr:1; 10088c2ecf20Sopenharmony_ci uint64_t rsverr:1; 10098c2ecf20Sopenharmony_ci uint64_t falerr:1; 10108c2ecf20Sopenharmony_ci uint64_t coldet:1; 10118c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 10128c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 10138c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 10148c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 10158c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 10168c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 10178c2ecf20Sopenharmony_ci uint64_t bad_term:1; 10188c2ecf20Sopenharmony_ci uint64_t unsop:1; 10198c2ecf20Sopenharmony_ci uint64_t uneop:1; 10208c2ecf20Sopenharmony_ci uint64_t undat:1; 10218c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 10228c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 10238c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 10248c2ecf20Sopenharmony_ci#endif 10258c2ecf20Sopenharmony_ci } cn52xx; 10268c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_cn56xxp1 { 10278c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 10288c2ecf20Sopenharmony_ci uint64_t reserved_27_63:37; 10298c2ecf20Sopenharmony_ci uint64_t undat:1; 10308c2ecf20Sopenharmony_ci uint64_t uneop:1; 10318c2ecf20Sopenharmony_ci uint64_t unsop:1; 10328c2ecf20Sopenharmony_ci uint64_t bad_term:1; 10338c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 10348c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 10358c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 10368c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 10378c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 10388c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 10398c2ecf20Sopenharmony_ci uint64_t coldet:1; 10408c2ecf20Sopenharmony_ci uint64_t falerr:1; 10418c2ecf20Sopenharmony_ci uint64_t rsverr:1; 10428c2ecf20Sopenharmony_ci uint64_t pcterr:1; 10438c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 10448c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 10458c2ecf20Sopenharmony_ci uint64_t skperr:1; 10468c2ecf20Sopenharmony_ci uint64_t rcverr:1; 10478c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 10488c2ecf20Sopenharmony_ci uint64_t fcserr:1; 10498c2ecf20Sopenharmony_ci uint64_t jabber:1; 10508c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 10518c2ecf20Sopenharmony_ci uint64_t carext:1; 10528c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 10538c2ecf20Sopenharmony_ci#else 10548c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 10558c2ecf20Sopenharmony_ci uint64_t carext:1; 10568c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 10578c2ecf20Sopenharmony_ci uint64_t jabber:1; 10588c2ecf20Sopenharmony_ci uint64_t fcserr:1; 10598c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 10608c2ecf20Sopenharmony_ci uint64_t rcverr:1; 10618c2ecf20Sopenharmony_ci uint64_t skperr:1; 10628c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 10638c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 10648c2ecf20Sopenharmony_ci uint64_t pcterr:1; 10658c2ecf20Sopenharmony_ci uint64_t rsverr:1; 10668c2ecf20Sopenharmony_ci uint64_t falerr:1; 10678c2ecf20Sopenharmony_ci uint64_t coldet:1; 10688c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 10698c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 10708c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 10718c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 10728c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 10738c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 10748c2ecf20Sopenharmony_ci uint64_t bad_term:1; 10758c2ecf20Sopenharmony_ci uint64_t unsop:1; 10768c2ecf20Sopenharmony_ci uint64_t uneop:1; 10778c2ecf20Sopenharmony_ci uint64_t undat:1; 10788c2ecf20Sopenharmony_ci uint64_t reserved_27_63:37; 10798c2ecf20Sopenharmony_ci#endif 10808c2ecf20Sopenharmony_ci } cn56xxp1; 10818c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_cn58xx { 10828c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 10838c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 10848c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 10858c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 10868c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 10878c2ecf20Sopenharmony_ci uint64_t phy_link:1; 10888c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 10898c2ecf20Sopenharmony_ci uint64_t coldet:1; 10908c2ecf20Sopenharmony_ci uint64_t falerr:1; 10918c2ecf20Sopenharmony_ci uint64_t rsverr:1; 10928c2ecf20Sopenharmony_ci uint64_t pcterr:1; 10938c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 10948c2ecf20Sopenharmony_ci uint64_t niberr:1; 10958c2ecf20Sopenharmony_ci uint64_t skperr:1; 10968c2ecf20Sopenharmony_ci uint64_t rcverr:1; 10978c2ecf20Sopenharmony_ci uint64_t lenerr:1; 10988c2ecf20Sopenharmony_ci uint64_t alnerr:1; 10998c2ecf20Sopenharmony_ci uint64_t fcserr:1; 11008c2ecf20Sopenharmony_ci uint64_t jabber:1; 11018c2ecf20Sopenharmony_ci uint64_t maxerr:1; 11028c2ecf20Sopenharmony_ci uint64_t carext:1; 11038c2ecf20Sopenharmony_ci uint64_t minerr:1; 11048c2ecf20Sopenharmony_ci#else 11058c2ecf20Sopenharmony_ci uint64_t minerr:1; 11068c2ecf20Sopenharmony_ci uint64_t carext:1; 11078c2ecf20Sopenharmony_ci uint64_t maxerr:1; 11088c2ecf20Sopenharmony_ci uint64_t jabber:1; 11098c2ecf20Sopenharmony_ci uint64_t fcserr:1; 11108c2ecf20Sopenharmony_ci uint64_t alnerr:1; 11118c2ecf20Sopenharmony_ci uint64_t lenerr:1; 11128c2ecf20Sopenharmony_ci uint64_t rcverr:1; 11138c2ecf20Sopenharmony_ci uint64_t skperr:1; 11148c2ecf20Sopenharmony_ci uint64_t niberr:1; 11158c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 11168c2ecf20Sopenharmony_ci uint64_t pcterr:1; 11178c2ecf20Sopenharmony_ci uint64_t rsverr:1; 11188c2ecf20Sopenharmony_ci uint64_t falerr:1; 11198c2ecf20Sopenharmony_ci uint64_t coldet:1; 11208c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 11218c2ecf20Sopenharmony_ci uint64_t phy_link:1; 11228c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 11238c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 11248c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 11258c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 11268c2ecf20Sopenharmony_ci#endif 11278c2ecf20Sopenharmony_ci } cn58xx; 11288c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_en_cn61xx { 11298c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 11308c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 11318c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 11328c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 11338c2ecf20Sopenharmony_ci uint64_t undat:1; 11348c2ecf20Sopenharmony_ci uint64_t uneop:1; 11358c2ecf20Sopenharmony_ci uint64_t unsop:1; 11368c2ecf20Sopenharmony_ci uint64_t bad_term:1; 11378c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 11388c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 11398c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 11408c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 11418c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 11428c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 11438c2ecf20Sopenharmony_ci uint64_t coldet:1; 11448c2ecf20Sopenharmony_ci uint64_t falerr:1; 11458c2ecf20Sopenharmony_ci uint64_t rsverr:1; 11468c2ecf20Sopenharmony_ci uint64_t pcterr:1; 11478c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 11488c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 11498c2ecf20Sopenharmony_ci uint64_t skperr:1; 11508c2ecf20Sopenharmony_ci uint64_t rcverr:1; 11518c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 11528c2ecf20Sopenharmony_ci uint64_t fcserr:1; 11538c2ecf20Sopenharmony_ci uint64_t jabber:1; 11548c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 11558c2ecf20Sopenharmony_ci uint64_t carext:1; 11568c2ecf20Sopenharmony_ci uint64_t minerr:1; 11578c2ecf20Sopenharmony_ci#else 11588c2ecf20Sopenharmony_ci uint64_t minerr:1; 11598c2ecf20Sopenharmony_ci uint64_t carext:1; 11608c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 11618c2ecf20Sopenharmony_ci uint64_t jabber:1; 11628c2ecf20Sopenharmony_ci uint64_t fcserr:1; 11638c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 11648c2ecf20Sopenharmony_ci uint64_t rcverr:1; 11658c2ecf20Sopenharmony_ci uint64_t skperr:1; 11668c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 11678c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 11688c2ecf20Sopenharmony_ci uint64_t pcterr:1; 11698c2ecf20Sopenharmony_ci uint64_t rsverr:1; 11708c2ecf20Sopenharmony_ci uint64_t falerr:1; 11718c2ecf20Sopenharmony_ci uint64_t coldet:1; 11728c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 11738c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 11748c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 11758c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 11768c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 11778c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 11788c2ecf20Sopenharmony_ci uint64_t bad_term:1; 11798c2ecf20Sopenharmony_ci uint64_t unsop:1; 11808c2ecf20Sopenharmony_ci uint64_t uneop:1; 11818c2ecf20Sopenharmony_ci uint64_t undat:1; 11828c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 11838c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 11848c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 11858c2ecf20Sopenharmony_ci#endif 11868c2ecf20Sopenharmony_ci } cn61xx; 11878c2ecf20Sopenharmony_ci}; 11888c2ecf20Sopenharmony_ci 11898c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_int_reg { 11908c2ecf20Sopenharmony_ci uint64_t u64; 11918c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_s { 11928c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 11938c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 11948c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 11958c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 11968c2ecf20Sopenharmony_ci uint64_t undat:1; 11978c2ecf20Sopenharmony_ci uint64_t uneop:1; 11988c2ecf20Sopenharmony_ci uint64_t unsop:1; 11998c2ecf20Sopenharmony_ci uint64_t bad_term:1; 12008c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 12018c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 12028c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 12038c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 12048c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 12058c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 12068c2ecf20Sopenharmony_ci uint64_t phy_link:1; 12078c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 12088c2ecf20Sopenharmony_ci uint64_t coldet:1; 12098c2ecf20Sopenharmony_ci uint64_t falerr:1; 12108c2ecf20Sopenharmony_ci uint64_t rsverr:1; 12118c2ecf20Sopenharmony_ci uint64_t pcterr:1; 12128c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 12138c2ecf20Sopenharmony_ci uint64_t niberr:1; 12148c2ecf20Sopenharmony_ci uint64_t skperr:1; 12158c2ecf20Sopenharmony_ci uint64_t rcverr:1; 12168c2ecf20Sopenharmony_ci uint64_t lenerr:1; 12178c2ecf20Sopenharmony_ci uint64_t alnerr:1; 12188c2ecf20Sopenharmony_ci uint64_t fcserr:1; 12198c2ecf20Sopenharmony_ci uint64_t jabber:1; 12208c2ecf20Sopenharmony_ci uint64_t maxerr:1; 12218c2ecf20Sopenharmony_ci uint64_t carext:1; 12228c2ecf20Sopenharmony_ci uint64_t minerr:1; 12238c2ecf20Sopenharmony_ci#else 12248c2ecf20Sopenharmony_ci uint64_t minerr:1; 12258c2ecf20Sopenharmony_ci uint64_t carext:1; 12268c2ecf20Sopenharmony_ci uint64_t maxerr:1; 12278c2ecf20Sopenharmony_ci uint64_t jabber:1; 12288c2ecf20Sopenharmony_ci uint64_t fcserr:1; 12298c2ecf20Sopenharmony_ci uint64_t alnerr:1; 12308c2ecf20Sopenharmony_ci uint64_t lenerr:1; 12318c2ecf20Sopenharmony_ci uint64_t rcverr:1; 12328c2ecf20Sopenharmony_ci uint64_t skperr:1; 12338c2ecf20Sopenharmony_ci uint64_t niberr:1; 12348c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 12358c2ecf20Sopenharmony_ci uint64_t pcterr:1; 12368c2ecf20Sopenharmony_ci uint64_t rsverr:1; 12378c2ecf20Sopenharmony_ci uint64_t falerr:1; 12388c2ecf20Sopenharmony_ci uint64_t coldet:1; 12398c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 12408c2ecf20Sopenharmony_ci uint64_t phy_link:1; 12418c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 12428c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 12438c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 12448c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 12458c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 12468c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 12478c2ecf20Sopenharmony_ci uint64_t bad_term:1; 12488c2ecf20Sopenharmony_ci uint64_t unsop:1; 12498c2ecf20Sopenharmony_ci uint64_t uneop:1; 12508c2ecf20Sopenharmony_ci uint64_t undat:1; 12518c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 12528c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 12538c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 12548c2ecf20Sopenharmony_ci#endif 12558c2ecf20Sopenharmony_ci } s; 12568c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_cn30xx { 12578c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 12588c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 12598c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 12608c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 12618c2ecf20Sopenharmony_ci uint64_t phy_link:1; 12628c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 12638c2ecf20Sopenharmony_ci uint64_t coldet:1; 12648c2ecf20Sopenharmony_ci uint64_t falerr:1; 12658c2ecf20Sopenharmony_ci uint64_t rsverr:1; 12668c2ecf20Sopenharmony_ci uint64_t pcterr:1; 12678c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 12688c2ecf20Sopenharmony_ci uint64_t niberr:1; 12698c2ecf20Sopenharmony_ci uint64_t skperr:1; 12708c2ecf20Sopenharmony_ci uint64_t rcverr:1; 12718c2ecf20Sopenharmony_ci uint64_t lenerr:1; 12728c2ecf20Sopenharmony_ci uint64_t alnerr:1; 12738c2ecf20Sopenharmony_ci uint64_t fcserr:1; 12748c2ecf20Sopenharmony_ci uint64_t jabber:1; 12758c2ecf20Sopenharmony_ci uint64_t maxerr:1; 12768c2ecf20Sopenharmony_ci uint64_t carext:1; 12778c2ecf20Sopenharmony_ci uint64_t minerr:1; 12788c2ecf20Sopenharmony_ci#else 12798c2ecf20Sopenharmony_ci uint64_t minerr:1; 12808c2ecf20Sopenharmony_ci uint64_t carext:1; 12818c2ecf20Sopenharmony_ci uint64_t maxerr:1; 12828c2ecf20Sopenharmony_ci uint64_t jabber:1; 12838c2ecf20Sopenharmony_ci uint64_t fcserr:1; 12848c2ecf20Sopenharmony_ci uint64_t alnerr:1; 12858c2ecf20Sopenharmony_ci uint64_t lenerr:1; 12868c2ecf20Sopenharmony_ci uint64_t rcverr:1; 12878c2ecf20Sopenharmony_ci uint64_t skperr:1; 12888c2ecf20Sopenharmony_ci uint64_t niberr:1; 12898c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 12908c2ecf20Sopenharmony_ci uint64_t pcterr:1; 12918c2ecf20Sopenharmony_ci uint64_t rsverr:1; 12928c2ecf20Sopenharmony_ci uint64_t falerr:1; 12938c2ecf20Sopenharmony_ci uint64_t coldet:1; 12948c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 12958c2ecf20Sopenharmony_ci uint64_t phy_link:1; 12968c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 12978c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 12988c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 12998c2ecf20Sopenharmony_ci#endif 13008c2ecf20Sopenharmony_ci } cn30xx; 13018c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_cn50xx { 13028c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 13038c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 13048c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 13058c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 13068c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 13078c2ecf20Sopenharmony_ci uint64_t phy_link:1; 13088c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 13098c2ecf20Sopenharmony_ci uint64_t coldet:1; 13108c2ecf20Sopenharmony_ci uint64_t falerr:1; 13118c2ecf20Sopenharmony_ci uint64_t rsverr:1; 13128c2ecf20Sopenharmony_ci uint64_t pcterr:1; 13138c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 13148c2ecf20Sopenharmony_ci uint64_t niberr:1; 13158c2ecf20Sopenharmony_ci uint64_t skperr:1; 13168c2ecf20Sopenharmony_ci uint64_t rcverr:1; 13178c2ecf20Sopenharmony_ci uint64_t reserved_6_6:1; 13188c2ecf20Sopenharmony_ci uint64_t alnerr:1; 13198c2ecf20Sopenharmony_ci uint64_t fcserr:1; 13208c2ecf20Sopenharmony_ci uint64_t jabber:1; 13218c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 13228c2ecf20Sopenharmony_ci uint64_t carext:1; 13238c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 13248c2ecf20Sopenharmony_ci#else 13258c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 13268c2ecf20Sopenharmony_ci uint64_t carext:1; 13278c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 13288c2ecf20Sopenharmony_ci uint64_t jabber:1; 13298c2ecf20Sopenharmony_ci uint64_t fcserr:1; 13308c2ecf20Sopenharmony_ci uint64_t alnerr:1; 13318c2ecf20Sopenharmony_ci uint64_t reserved_6_6:1; 13328c2ecf20Sopenharmony_ci uint64_t rcverr:1; 13338c2ecf20Sopenharmony_ci uint64_t skperr:1; 13348c2ecf20Sopenharmony_ci uint64_t niberr:1; 13358c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 13368c2ecf20Sopenharmony_ci uint64_t pcterr:1; 13378c2ecf20Sopenharmony_ci uint64_t rsverr:1; 13388c2ecf20Sopenharmony_ci uint64_t falerr:1; 13398c2ecf20Sopenharmony_ci uint64_t coldet:1; 13408c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 13418c2ecf20Sopenharmony_ci uint64_t phy_link:1; 13428c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 13438c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 13448c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 13458c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 13468c2ecf20Sopenharmony_ci#endif 13478c2ecf20Sopenharmony_ci } cn50xx; 13488c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_cn52xx { 13498c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 13508c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 13518c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 13528c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 13538c2ecf20Sopenharmony_ci uint64_t undat:1; 13548c2ecf20Sopenharmony_ci uint64_t uneop:1; 13558c2ecf20Sopenharmony_ci uint64_t unsop:1; 13568c2ecf20Sopenharmony_ci uint64_t bad_term:1; 13578c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 13588c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 13598c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 13608c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 13618c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 13628c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 13638c2ecf20Sopenharmony_ci uint64_t coldet:1; 13648c2ecf20Sopenharmony_ci uint64_t falerr:1; 13658c2ecf20Sopenharmony_ci uint64_t rsverr:1; 13668c2ecf20Sopenharmony_ci uint64_t pcterr:1; 13678c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 13688c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 13698c2ecf20Sopenharmony_ci uint64_t skperr:1; 13708c2ecf20Sopenharmony_ci uint64_t rcverr:1; 13718c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 13728c2ecf20Sopenharmony_ci uint64_t fcserr:1; 13738c2ecf20Sopenharmony_ci uint64_t jabber:1; 13748c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 13758c2ecf20Sopenharmony_ci uint64_t carext:1; 13768c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 13778c2ecf20Sopenharmony_ci#else 13788c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 13798c2ecf20Sopenharmony_ci uint64_t carext:1; 13808c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 13818c2ecf20Sopenharmony_ci uint64_t jabber:1; 13828c2ecf20Sopenharmony_ci uint64_t fcserr:1; 13838c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 13848c2ecf20Sopenharmony_ci uint64_t rcverr:1; 13858c2ecf20Sopenharmony_ci uint64_t skperr:1; 13868c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 13878c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 13888c2ecf20Sopenharmony_ci uint64_t pcterr:1; 13898c2ecf20Sopenharmony_ci uint64_t rsverr:1; 13908c2ecf20Sopenharmony_ci uint64_t falerr:1; 13918c2ecf20Sopenharmony_ci uint64_t coldet:1; 13928c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 13938c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 13948c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 13958c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 13968c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 13978c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 13988c2ecf20Sopenharmony_ci uint64_t bad_term:1; 13998c2ecf20Sopenharmony_ci uint64_t unsop:1; 14008c2ecf20Sopenharmony_ci uint64_t uneop:1; 14018c2ecf20Sopenharmony_ci uint64_t undat:1; 14028c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 14038c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 14048c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 14058c2ecf20Sopenharmony_ci#endif 14068c2ecf20Sopenharmony_ci } cn52xx; 14078c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_cn56xxp1 { 14088c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 14098c2ecf20Sopenharmony_ci uint64_t reserved_27_63:37; 14108c2ecf20Sopenharmony_ci uint64_t undat:1; 14118c2ecf20Sopenharmony_ci uint64_t uneop:1; 14128c2ecf20Sopenharmony_ci uint64_t unsop:1; 14138c2ecf20Sopenharmony_ci uint64_t bad_term:1; 14148c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 14158c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 14168c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 14178c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 14188c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 14198c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 14208c2ecf20Sopenharmony_ci uint64_t coldet:1; 14218c2ecf20Sopenharmony_ci uint64_t falerr:1; 14228c2ecf20Sopenharmony_ci uint64_t rsverr:1; 14238c2ecf20Sopenharmony_ci uint64_t pcterr:1; 14248c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 14258c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 14268c2ecf20Sopenharmony_ci uint64_t skperr:1; 14278c2ecf20Sopenharmony_ci uint64_t rcverr:1; 14288c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 14298c2ecf20Sopenharmony_ci uint64_t fcserr:1; 14308c2ecf20Sopenharmony_ci uint64_t jabber:1; 14318c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 14328c2ecf20Sopenharmony_ci uint64_t carext:1; 14338c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 14348c2ecf20Sopenharmony_ci#else 14358c2ecf20Sopenharmony_ci uint64_t reserved_0_0:1; 14368c2ecf20Sopenharmony_ci uint64_t carext:1; 14378c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 14388c2ecf20Sopenharmony_ci uint64_t jabber:1; 14398c2ecf20Sopenharmony_ci uint64_t fcserr:1; 14408c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 14418c2ecf20Sopenharmony_ci uint64_t rcverr:1; 14428c2ecf20Sopenharmony_ci uint64_t skperr:1; 14438c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 14448c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 14458c2ecf20Sopenharmony_ci uint64_t pcterr:1; 14468c2ecf20Sopenharmony_ci uint64_t rsverr:1; 14478c2ecf20Sopenharmony_ci uint64_t falerr:1; 14488c2ecf20Sopenharmony_ci uint64_t coldet:1; 14498c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 14508c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 14518c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 14528c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 14538c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 14548c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 14558c2ecf20Sopenharmony_ci uint64_t bad_term:1; 14568c2ecf20Sopenharmony_ci uint64_t unsop:1; 14578c2ecf20Sopenharmony_ci uint64_t uneop:1; 14588c2ecf20Sopenharmony_ci uint64_t undat:1; 14598c2ecf20Sopenharmony_ci uint64_t reserved_27_63:37; 14608c2ecf20Sopenharmony_ci#endif 14618c2ecf20Sopenharmony_ci } cn56xxp1; 14628c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_cn58xx { 14638c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 14648c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 14658c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 14668c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 14678c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 14688c2ecf20Sopenharmony_ci uint64_t phy_link:1; 14698c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 14708c2ecf20Sopenharmony_ci uint64_t coldet:1; 14718c2ecf20Sopenharmony_ci uint64_t falerr:1; 14728c2ecf20Sopenharmony_ci uint64_t rsverr:1; 14738c2ecf20Sopenharmony_ci uint64_t pcterr:1; 14748c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 14758c2ecf20Sopenharmony_ci uint64_t niberr:1; 14768c2ecf20Sopenharmony_ci uint64_t skperr:1; 14778c2ecf20Sopenharmony_ci uint64_t rcverr:1; 14788c2ecf20Sopenharmony_ci uint64_t lenerr:1; 14798c2ecf20Sopenharmony_ci uint64_t alnerr:1; 14808c2ecf20Sopenharmony_ci uint64_t fcserr:1; 14818c2ecf20Sopenharmony_ci uint64_t jabber:1; 14828c2ecf20Sopenharmony_ci uint64_t maxerr:1; 14838c2ecf20Sopenharmony_ci uint64_t carext:1; 14848c2ecf20Sopenharmony_ci uint64_t minerr:1; 14858c2ecf20Sopenharmony_ci#else 14868c2ecf20Sopenharmony_ci uint64_t minerr:1; 14878c2ecf20Sopenharmony_ci uint64_t carext:1; 14888c2ecf20Sopenharmony_ci uint64_t maxerr:1; 14898c2ecf20Sopenharmony_ci uint64_t jabber:1; 14908c2ecf20Sopenharmony_ci uint64_t fcserr:1; 14918c2ecf20Sopenharmony_ci uint64_t alnerr:1; 14928c2ecf20Sopenharmony_ci uint64_t lenerr:1; 14938c2ecf20Sopenharmony_ci uint64_t rcverr:1; 14948c2ecf20Sopenharmony_ci uint64_t skperr:1; 14958c2ecf20Sopenharmony_ci uint64_t niberr:1; 14968c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 14978c2ecf20Sopenharmony_ci uint64_t pcterr:1; 14988c2ecf20Sopenharmony_ci uint64_t rsverr:1; 14998c2ecf20Sopenharmony_ci uint64_t falerr:1; 15008c2ecf20Sopenharmony_ci uint64_t coldet:1; 15018c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 15028c2ecf20Sopenharmony_ci uint64_t phy_link:1; 15038c2ecf20Sopenharmony_ci uint64_t phy_spd:1; 15048c2ecf20Sopenharmony_ci uint64_t phy_dupx:1; 15058c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 15068c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 15078c2ecf20Sopenharmony_ci#endif 15088c2ecf20Sopenharmony_ci } cn58xx; 15098c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_int_reg_cn61xx { 15108c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 15118c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 15128c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 15138c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 15148c2ecf20Sopenharmony_ci uint64_t undat:1; 15158c2ecf20Sopenharmony_ci uint64_t uneop:1; 15168c2ecf20Sopenharmony_ci uint64_t unsop:1; 15178c2ecf20Sopenharmony_ci uint64_t bad_term:1; 15188c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 15198c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 15208c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 15218c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 15228c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 15238c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 15248c2ecf20Sopenharmony_ci uint64_t coldet:1; 15258c2ecf20Sopenharmony_ci uint64_t falerr:1; 15268c2ecf20Sopenharmony_ci uint64_t rsverr:1; 15278c2ecf20Sopenharmony_ci uint64_t pcterr:1; 15288c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 15298c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 15308c2ecf20Sopenharmony_ci uint64_t skperr:1; 15318c2ecf20Sopenharmony_ci uint64_t rcverr:1; 15328c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 15338c2ecf20Sopenharmony_ci uint64_t fcserr:1; 15348c2ecf20Sopenharmony_ci uint64_t jabber:1; 15358c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 15368c2ecf20Sopenharmony_ci uint64_t carext:1; 15378c2ecf20Sopenharmony_ci uint64_t minerr:1; 15388c2ecf20Sopenharmony_ci#else 15398c2ecf20Sopenharmony_ci uint64_t minerr:1; 15408c2ecf20Sopenharmony_ci uint64_t carext:1; 15418c2ecf20Sopenharmony_ci uint64_t reserved_2_2:1; 15428c2ecf20Sopenharmony_ci uint64_t jabber:1; 15438c2ecf20Sopenharmony_ci uint64_t fcserr:1; 15448c2ecf20Sopenharmony_ci uint64_t reserved_5_6:2; 15458c2ecf20Sopenharmony_ci uint64_t rcverr:1; 15468c2ecf20Sopenharmony_ci uint64_t skperr:1; 15478c2ecf20Sopenharmony_ci uint64_t reserved_9_9:1; 15488c2ecf20Sopenharmony_ci uint64_t ovrerr:1; 15498c2ecf20Sopenharmony_ci uint64_t pcterr:1; 15508c2ecf20Sopenharmony_ci uint64_t rsverr:1; 15518c2ecf20Sopenharmony_ci uint64_t falerr:1; 15528c2ecf20Sopenharmony_ci uint64_t coldet:1; 15538c2ecf20Sopenharmony_ci uint64_t ifgerr:1; 15548c2ecf20Sopenharmony_ci uint64_t reserved_16_18:3; 15558c2ecf20Sopenharmony_ci uint64_t pause_drp:1; 15568c2ecf20Sopenharmony_ci uint64_t loc_fault:1; 15578c2ecf20Sopenharmony_ci uint64_t rem_fault:1; 15588c2ecf20Sopenharmony_ci uint64_t bad_seq:1; 15598c2ecf20Sopenharmony_ci uint64_t bad_term:1; 15608c2ecf20Sopenharmony_ci uint64_t unsop:1; 15618c2ecf20Sopenharmony_ci uint64_t uneop:1; 15628c2ecf20Sopenharmony_ci uint64_t undat:1; 15638c2ecf20Sopenharmony_ci uint64_t hg2fld:1; 15648c2ecf20Sopenharmony_ci uint64_t hg2cc:1; 15658c2ecf20Sopenharmony_ci uint64_t reserved_29_63:35; 15668c2ecf20Sopenharmony_ci#endif 15678c2ecf20Sopenharmony_ci } cn61xx; 15688c2ecf20Sopenharmony_ci}; 15698c2ecf20Sopenharmony_ci 15708c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_jabber { 15718c2ecf20Sopenharmony_ci uint64_t u64; 15728c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_jabber_s { 15738c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 15748c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 15758c2ecf20Sopenharmony_ci uint64_t cnt:16; 15768c2ecf20Sopenharmony_ci#else 15778c2ecf20Sopenharmony_ci uint64_t cnt:16; 15788c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 15798c2ecf20Sopenharmony_ci#endif 15808c2ecf20Sopenharmony_ci } s; 15818c2ecf20Sopenharmony_ci}; 15828c2ecf20Sopenharmony_ci 15838c2ecf20Sopenharmony_ciunion cvmx_gmxx_rxx_rx_inbnd { 15848c2ecf20Sopenharmony_ci uint64_t u64; 15858c2ecf20Sopenharmony_ci struct cvmx_gmxx_rxx_rx_inbnd_s { 15868c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 15878c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 15888c2ecf20Sopenharmony_ci uint64_t duplex:1; 15898c2ecf20Sopenharmony_ci uint64_t speed:2; 15908c2ecf20Sopenharmony_ci uint64_t status:1; 15918c2ecf20Sopenharmony_ci#else 15928c2ecf20Sopenharmony_ci uint64_t status:1; 15938c2ecf20Sopenharmony_ci uint64_t speed:2; 15948c2ecf20Sopenharmony_ci uint64_t duplex:1; 15958c2ecf20Sopenharmony_ci uint64_t reserved_4_63:60; 15968c2ecf20Sopenharmony_ci#endif 15978c2ecf20Sopenharmony_ci } s; 15988c2ecf20Sopenharmony_ci}; 15998c2ecf20Sopenharmony_ci 16008c2ecf20Sopenharmony_ciunion cvmx_gmxx_rx_prts { 16018c2ecf20Sopenharmony_ci uint64_t u64; 16028c2ecf20Sopenharmony_ci struct cvmx_gmxx_rx_prts_s { 16038c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16048c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 16058c2ecf20Sopenharmony_ci uint64_t prts:3; 16068c2ecf20Sopenharmony_ci#else 16078c2ecf20Sopenharmony_ci uint64_t prts:3; 16088c2ecf20Sopenharmony_ci uint64_t reserved_3_63:61; 16098c2ecf20Sopenharmony_ci#endif 16108c2ecf20Sopenharmony_ci } s; 16118c2ecf20Sopenharmony_ci}; 16128c2ecf20Sopenharmony_ci 16138c2ecf20Sopenharmony_ciunion cvmx_gmxx_rx_xaui_ctl { 16148c2ecf20Sopenharmony_ci uint64_t u64; 16158c2ecf20Sopenharmony_ci struct cvmx_gmxx_rx_xaui_ctl_s { 16168c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16178c2ecf20Sopenharmony_ci uint64_t reserved_2_63:62; 16188c2ecf20Sopenharmony_ci uint64_t status:2; 16198c2ecf20Sopenharmony_ci#else 16208c2ecf20Sopenharmony_ci uint64_t status:2; 16218c2ecf20Sopenharmony_ci uint64_t reserved_2_63:62; 16228c2ecf20Sopenharmony_ci#endif 16238c2ecf20Sopenharmony_ci } s; 16248c2ecf20Sopenharmony_ci}; 16258c2ecf20Sopenharmony_ci 16268c2ecf20Sopenharmony_ciunion cvmx_gmxx_txx_thresh { 16278c2ecf20Sopenharmony_ci uint64_t u64; 16288c2ecf20Sopenharmony_ci struct cvmx_gmxx_txx_thresh_s { 16298c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16308c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 16318c2ecf20Sopenharmony_ci uint64_t cnt:10; 16328c2ecf20Sopenharmony_ci#else 16338c2ecf20Sopenharmony_ci uint64_t cnt:10; 16348c2ecf20Sopenharmony_ci uint64_t reserved_10_63:54; 16358c2ecf20Sopenharmony_ci#endif 16368c2ecf20Sopenharmony_ci } s; 16378c2ecf20Sopenharmony_ci struct cvmx_gmxx_txx_thresh_cn30xx { 16388c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16398c2ecf20Sopenharmony_ci uint64_t reserved_7_63:57; 16408c2ecf20Sopenharmony_ci uint64_t cnt:7; 16418c2ecf20Sopenharmony_ci#else 16428c2ecf20Sopenharmony_ci uint64_t cnt:7; 16438c2ecf20Sopenharmony_ci uint64_t reserved_7_63:57; 16448c2ecf20Sopenharmony_ci#endif 16458c2ecf20Sopenharmony_ci } cn30xx; 16468c2ecf20Sopenharmony_ci struct cvmx_gmxx_txx_thresh_cn38xx { 16478c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16488c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 16498c2ecf20Sopenharmony_ci uint64_t cnt:9; 16508c2ecf20Sopenharmony_ci#else 16518c2ecf20Sopenharmony_ci uint64_t cnt:9; 16528c2ecf20Sopenharmony_ci uint64_t reserved_9_63:55; 16538c2ecf20Sopenharmony_ci#endif 16548c2ecf20Sopenharmony_ci } cn38xx; 16558c2ecf20Sopenharmony_ci}; 16568c2ecf20Sopenharmony_ci 16578c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_int_en { 16588c2ecf20Sopenharmony_ci uint64_t u64; 16598c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_s { 16608c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16618c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 16628c2ecf20Sopenharmony_ci uint64_t xchange:1; 16638c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 16648c2ecf20Sopenharmony_ci uint64_t late_col:4; 16658c2ecf20Sopenharmony_ci uint64_t xsdef:4; 16668c2ecf20Sopenharmony_ci uint64_t xscol:4; 16678c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 16688c2ecf20Sopenharmony_ci uint64_t undflw:4; 16698c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 16708c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 16718c2ecf20Sopenharmony_ci#else 16728c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 16738c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 16748c2ecf20Sopenharmony_ci uint64_t undflw:4; 16758c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 16768c2ecf20Sopenharmony_ci uint64_t xscol:4; 16778c2ecf20Sopenharmony_ci uint64_t xsdef:4; 16788c2ecf20Sopenharmony_ci uint64_t late_col:4; 16798c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 16808c2ecf20Sopenharmony_ci uint64_t xchange:1; 16818c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 16828c2ecf20Sopenharmony_ci#endif 16838c2ecf20Sopenharmony_ci } s; 16848c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn30xx { 16858c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 16868c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 16878c2ecf20Sopenharmony_ci uint64_t late_col:3; 16888c2ecf20Sopenharmony_ci uint64_t reserved_15_15:1; 16898c2ecf20Sopenharmony_ci uint64_t xsdef:3; 16908c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 16918c2ecf20Sopenharmony_ci uint64_t xscol:3; 16928c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 16938c2ecf20Sopenharmony_ci uint64_t undflw:3; 16948c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 16958c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 16968c2ecf20Sopenharmony_ci#else 16978c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 16988c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 16998c2ecf20Sopenharmony_ci uint64_t undflw:3; 17008c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 17018c2ecf20Sopenharmony_ci uint64_t xscol:3; 17028c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 17038c2ecf20Sopenharmony_ci uint64_t xsdef:3; 17048c2ecf20Sopenharmony_ci uint64_t reserved_15_15:1; 17058c2ecf20Sopenharmony_ci uint64_t late_col:3; 17068c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 17078c2ecf20Sopenharmony_ci#endif 17088c2ecf20Sopenharmony_ci } cn30xx; 17098c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn31xx { 17108c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 17118c2ecf20Sopenharmony_ci uint64_t reserved_15_63:49; 17128c2ecf20Sopenharmony_ci uint64_t xsdef:3; 17138c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 17148c2ecf20Sopenharmony_ci uint64_t xscol:3; 17158c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 17168c2ecf20Sopenharmony_ci uint64_t undflw:3; 17178c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 17188c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17198c2ecf20Sopenharmony_ci#else 17208c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17218c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 17228c2ecf20Sopenharmony_ci uint64_t undflw:3; 17238c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 17248c2ecf20Sopenharmony_ci uint64_t xscol:3; 17258c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 17268c2ecf20Sopenharmony_ci uint64_t xsdef:3; 17278c2ecf20Sopenharmony_ci uint64_t reserved_15_63:49; 17288c2ecf20Sopenharmony_ci#endif 17298c2ecf20Sopenharmony_ci } cn31xx; 17308c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn38xx { 17318c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 17328c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 17338c2ecf20Sopenharmony_ci uint64_t late_col:4; 17348c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17358c2ecf20Sopenharmony_ci uint64_t xscol:4; 17368c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17378c2ecf20Sopenharmony_ci uint64_t undflw:4; 17388c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 17398c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17408c2ecf20Sopenharmony_ci#else 17418c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17428c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 17438c2ecf20Sopenharmony_ci uint64_t undflw:4; 17448c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17458c2ecf20Sopenharmony_ci uint64_t xscol:4; 17468c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17478c2ecf20Sopenharmony_ci uint64_t late_col:4; 17488c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 17498c2ecf20Sopenharmony_ci#endif 17508c2ecf20Sopenharmony_ci } cn38xx; 17518c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn38xxp2 { 17528c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 17538c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 17548c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17558c2ecf20Sopenharmony_ci uint64_t xscol:4; 17568c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17578c2ecf20Sopenharmony_ci uint64_t undflw:4; 17588c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 17598c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17608c2ecf20Sopenharmony_ci#else 17618c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17628c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 17638c2ecf20Sopenharmony_ci uint64_t undflw:4; 17648c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17658c2ecf20Sopenharmony_ci uint64_t xscol:4; 17668c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17678c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 17688c2ecf20Sopenharmony_ci#endif 17698c2ecf20Sopenharmony_ci } cn38xxp2; 17708c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn52xx { 17718c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 17728c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 17738c2ecf20Sopenharmony_ci uint64_t late_col:4; 17748c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17758c2ecf20Sopenharmony_ci uint64_t xscol:4; 17768c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17778c2ecf20Sopenharmony_ci uint64_t undflw:4; 17788c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 17798c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17808c2ecf20Sopenharmony_ci#else 17818c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 17828c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 17838c2ecf20Sopenharmony_ci uint64_t undflw:4; 17848c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17858c2ecf20Sopenharmony_ci uint64_t xscol:4; 17868c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17878c2ecf20Sopenharmony_ci uint64_t late_col:4; 17888c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 17898c2ecf20Sopenharmony_ci#endif 17908c2ecf20Sopenharmony_ci } cn52xx; 17918c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn63xx { 17928c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 17938c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 17948c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 17958c2ecf20Sopenharmony_ci uint64_t late_col:4; 17968c2ecf20Sopenharmony_ci uint64_t xsdef:4; 17978c2ecf20Sopenharmony_ci uint64_t xscol:4; 17988c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 17998c2ecf20Sopenharmony_ci uint64_t undflw:4; 18008c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 18018c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18028c2ecf20Sopenharmony_ci#else 18038c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18048c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 18058c2ecf20Sopenharmony_ci uint64_t undflw:4; 18068c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 18078c2ecf20Sopenharmony_ci uint64_t xscol:4; 18088c2ecf20Sopenharmony_ci uint64_t xsdef:4; 18098c2ecf20Sopenharmony_ci uint64_t late_col:4; 18108c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 18118c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 18128c2ecf20Sopenharmony_ci#endif 18138c2ecf20Sopenharmony_ci } cn63xx; 18148c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cn68xx { 18158c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 18168c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 18178c2ecf20Sopenharmony_ci uint64_t xchange:1; 18188c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 18198c2ecf20Sopenharmony_ci uint64_t late_col:4; 18208c2ecf20Sopenharmony_ci uint64_t xsdef:4; 18218c2ecf20Sopenharmony_ci uint64_t xscol:4; 18228c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 18238c2ecf20Sopenharmony_ci uint64_t undflw:4; 18248c2ecf20Sopenharmony_ci uint64_t pko_nxp:1; 18258c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18268c2ecf20Sopenharmony_ci#else 18278c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18288c2ecf20Sopenharmony_ci uint64_t pko_nxp:1; 18298c2ecf20Sopenharmony_ci uint64_t undflw:4; 18308c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 18318c2ecf20Sopenharmony_ci uint64_t xscol:4; 18328c2ecf20Sopenharmony_ci uint64_t xsdef:4; 18338c2ecf20Sopenharmony_ci uint64_t late_col:4; 18348c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 18358c2ecf20Sopenharmony_ci uint64_t xchange:1; 18368c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 18378c2ecf20Sopenharmony_ci#endif 18388c2ecf20Sopenharmony_ci } cn68xx; 18398c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_en_cnf71xx { 18408c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 18418c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 18428c2ecf20Sopenharmony_ci uint64_t xchange:1; 18438c2ecf20Sopenharmony_ci uint64_t reserved_22_23:2; 18448c2ecf20Sopenharmony_ci uint64_t ptp_lost:2; 18458c2ecf20Sopenharmony_ci uint64_t reserved_18_19:2; 18468c2ecf20Sopenharmony_ci uint64_t late_col:2; 18478c2ecf20Sopenharmony_ci uint64_t reserved_14_15:2; 18488c2ecf20Sopenharmony_ci uint64_t xsdef:2; 18498c2ecf20Sopenharmony_ci uint64_t reserved_10_11:2; 18508c2ecf20Sopenharmony_ci uint64_t xscol:2; 18518c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 18528c2ecf20Sopenharmony_ci uint64_t undflw:2; 18538c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 18548c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18558c2ecf20Sopenharmony_ci#else 18568c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18578c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 18588c2ecf20Sopenharmony_ci uint64_t undflw:2; 18598c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 18608c2ecf20Sopenharmony_ci uint64_t xscol:2; 18618c2ecf20Sopenharmony_ci uint64_t reserved_10_11:2; 18628c2ecf20Sopenharmony_ci uint64_t xsdef:2; 18638c2ecf20Sopenharmony_ci uint64_t reserved_14_15:2; 18648c2ecf20Sopenharmony_ci uint64_t late_col:2; 18658c2ecf20Sopenharmony_ci uint64_t reserved_18_19:2; 18668c2ecf20Sopenharmony_ci uint64_t ptp_lost:2; 18678c2ecf20Sopenharmony_ci uint64_t reserved_22_23:2; 18688c2ecf20Sopenharmony_ci uint64_t xchange:1; 18698c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 18708c2ecf20Sopenharmony_ci#endif 18718c2ecf20Sopenharmony_ci } cnf71xx; 18728c2ecf20Sopenharmony_ci}; 18738c2ecf20Sopenharmony_ci 18748c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_int_reg { 18758c2ecf20Sopenharmony_ci uint64_t u64; 18768c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_s { 18778c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 18788c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 18798c2ecf20Sopenharmony_ci uint64_t xchange:1; 18808c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 18818c2ecf20Sopenharmony_ci uint64_t late_col:4; 18828c2ecf20Sopenharmony_ci uint64_t xsdef:4; 18838c2ecf20Sopenharmony_ci uint64_t xscol:4; 18848c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 18858c2ecf20Sopenharmony_ci uint64_t undflw:4; 18868c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 18878c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18888c2ecf20Sopenharmony_ci#else 18898c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 18908c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 18918c2ecf20Sopenharmony_ci uint64_t undflw:4; 18928c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 18938c2ecf20Sopenharmony_ci uint64_t xscol:4; 18948c2ecf20Sopenharmony_ci uint64_t xsdef:4; 18958c2ecf20Sopenharmony_ci uint64_t late_col:4; 18968c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 18978c2ecf20Sopenharmony_ci uint64_t xchange:1; 18988c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 18998c2ecf20Sopenharmony_ci#endif 19008c2ecf20Sopenharmony_ci } s; 19018c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn30xx { 19028c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 19038c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 19048c2ecf20Sopenharmony_ci uint64_t late_col:3; 19058c2ecf20Sopenharmony_ci uint64_t reserved_15_15:1; 19068c2ecf20Sopenharmony_ci uint64_t xsdef:3; 19078c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 19088c2ecf20Sopenharmony_ci uint64_t xscol:3; 19098c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 19108c2ecf20Sopenharmony_ci uint64_t undflw:3; 19118c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 19128c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19138c2ecf20Sopenharmony_ci#else 19148c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19158c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 19168c2ecf20Sopenharmony_ci uint64_t undflw:3; 19178c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 19188c2ecf20Sopenharmony_ci uint64_t xscol:3; 19198c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 19208c2ecf20Sopenharmony_ci uint64_t xsdef:3; 19218c2ecf20Sopenharmony_ci uint64_t reserved_15_15:1; 19228c2ecf20Sopenharmony_ci uint64_t late_col:3; 19238c2ecf20Sopenharmony_ci uint64_t reserved_19_63:45; 19248c2ecf20Sopenharmony_ci#endif 19258c2ecf20Sopenharmony_ci } cn30xx; 19268c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn31xx { 19278c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 19288c2ecf20Sopenharmony_ci uint64_t reserved_15_63:49; 19298c2ecf20Sopenharmony_ci uint64_t xsdef:3; 19308c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 19318c2ecf20Sopenharmony_ci uint64_t xscol:3; 19328c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 19338c2ecf20Sopenharmony_ci uint64_t undflw:3; 19348c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 19358c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19368c2ecf20Sopenharmony_ci#else 19378c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19388c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 19398c2ecf20Sopenharmony_ci uint64_t undflw:3; 19408c2ecf20Sopenharmony_ci uint64_t reserved_5_7:3; 19418c2ecf20Sopenharmony_ci uint64_t xscol:3; 19428c2ecf20Sopenharmony_ci uint64_t reserved_11_11:1; 19438c2ecf20Sopenharmony_ci uint64_t xsdef:3; 19448c2ecf20Sopenharmony_ci uint64_t reserved_15_63:49; 19458c2ecf20Sopenharmony_ci#endif 19468c2ecf20Sopenharmony_ci } cn31xx; 19478c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn38xx { 19488c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 19498c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 19508c2ecf20Sopenharmony_ci uint64_t late_col:4; 19518c2ecf20Sopenharmony_ci uint64_t xsdef:4; 19528c2ecf20Sopenharmony_ci uint64_t xscol:4; 19538c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 19548c2ecf20Sopenharmony_ci uint64_t undflw:4; 19558c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 19568c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19578c2ecf20Sopenharmony_ci#else 19588c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19598c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 19608c2ecf20Sopenharmony_ci uint64_t undflw:4; 19618c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 19628c2ecf20Sopenharmony_ci uint64_t xscol:4; 19638c2ecf20Sopenharmony_ci uint64_t xsdef:4; 19648c2ecf20Sopenharmony_ci uint64_t late_col:4; 19658c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 19668c2ecf20Sopenharmony_ci#endif 19678c2ecf20Sopenharmony_ci } cn38xx; 19688c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn38xxp2 { 19698c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 19708c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 19718c2ecf20Sopenharmony_ci uint64_t xsdef:4; 19728c2ecf20Sopenharmony_ci uint64_t xscol:4; 19738c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 19748c2ecf20Sopenharmony_ci uint64_t undflw:4; 19758c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 19768c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19778c2ecf20Sopenharmony_ci#else 19788c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19798c2ecf20Sopenharmony_ci uint64_t ncb_nxa:1; 19808c2ecf20Sopenharmony_ci uint64_t undflw:4; 19818c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 19828c2ecf20Sopenharmony_ci uint64_t xscol:4; 19838c2ecf20Sopenharmony_ci uint64_t xsdef:4; 19848c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 19858c2ecf20Sopenharmony_ci#endif 19868c2ecf20Sopenharmony_ci } cn38xxp2; 19878c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn52xx { 19888c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 19898c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 19908c2ecf20Sopenharmony_ci uint64_t late_col:4; 19918c2ecf20Sopenharmony_ci uint64_t xsdef:4; 19928c2ecf20Sopenharmony_ci uint64_t xscol:4; 19938c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 19948c2ecf20Sopenharmony_ci uint64_t undflw:4; 19958c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 19968c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19978c2ecf20Sopenharmony_ci#else 19988c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 19998c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 20008c2ecf20Sopenharmony_ci uint64_t undflw:4; 20018c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 20028c2ecf20Sopenharmony_ci uint64_t xscol:4; 20038c2ecf20Sopenharmony_ci uint64_t xsdef:4; 20048c2ecf20Sopenharmony_ci uint64_t late_col:4; 20058c2ecf20Sopenharmony_ci uint64_t reserved_20_63:44; 20068c2ecf20Sopenharmony_ci#endif 20078c2ecf20Sopenharmony_ci } cn52xx; 20088c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn63xx { 20098c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 20108c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 20118c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 20128c2ecf20Sopenharmony_ci uint64_t late_col:4; 20138c2ecf20Sopenharmony_ci uint64_t xsdef:4; 20148c2ecf20Sopenharmony_ci uint64_t xscol:4; 20158c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 20168c2ecf20Sopenharmony_ci uint64_t undflw:4; 20178c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 20188c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 20198c2ecf20Sopenharmony_ci#else 20208c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 20218c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 20228c2ecf20Sopenharmony_ci uint64_t undflw:4; 20238c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 20248c2ecf20Sopenharmony_ci uint64_t xscol:4; 20258c2ecf20Sopenharmony_ci uint64_t xsdef:4; 20268c2ecf20Sopenharmony_ci uint64_t late_col:4; 20278c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 20288c2ecf20Sopenharmony_ci uint64_t reserved_24_63:40; 20298c2ecf20Sopenharmony_ci#endif 20308c2ecf20Sopenharmony_ci } cn63xx; 20318c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cn68xx { 20328c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 20338c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 20348c2ecf20Sopenharmony_ci uint64_t xchange:1; 20358c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 20368c2ecf20Sopenharmony_ci uint64_t late_col:4; 20378c2ecf20Sopenharmony_ci uint64_t xsdef:4; 20388c2ecf20Sopenharmony_ci uint64_t xscol:4; 20398c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 20408c2ecf20Sopenharmony_ci uint64_t undflw:4; 20418c2ecf20Sopenharmony_ci uint64_t pko_nxp:1; 20428c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 20438c2ecf20Sopenharmony_ci#else 20448c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 20458c2ecf20Sopenharmony_ci uint64_t pko_nxp:1; 20468c2ecf20Sopenharmony_ci uint64_t undflw:4; 20478c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 20488c2ecf20Sopenharmony_ci uint64_t xscol:4; 20498c2ecf20Sopenharmony_ci uint64_t xsdef:4; 20508c2ecf20Sopenharmony_ci uint64_t late_col:4; 20518c2ecf20Sopenharmony_ci uint64_t ptp_lost:4; 20528c2ecf20Sopenharmony_ci uint64_t xchange:1; 20538c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 20548c2ecf20Sopenharmony_ci#endif 20558c2ecf20Sopenharmony_ci } cn68xx; 20568c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_int_reg_cnf71xx { 20578c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 20588c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 20598c2ecf20Sopenharmony_ci uint64_t xchange:1; 20608c2ecf20Sopenharmony_ci uint64_t reserved_22_23:2; 20618c2ecf20Sopenharmony_ci uint64_t ptp_lost:2; 20628c2ecf20Sopenharmony_ci uint64_t reserved_18_19:2; 20638c2ecf20Sopenharmony_ci uint64_t late_col:2; 20648c2ecf20Sopenharmony_ci uint64_t reserved_14_15:2; 20658c2ecf20Sopenharmony_ci uint64_t xsdef:2; 20668c2ecf20Sopenharmony_ci uint64_t reserved_10_11:2; 20678c2ecf20Sopenharmony_ci uint64_t xscol:2; 20688c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 20698c2ecf20Sopenharmony_ci uint64_t undflw:2; 20708c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 20718c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 20728c2ecf20Sopenharmony_ci#else 20738c2ecf20Sopenharmony_ci uint64_t pko_nxa:1; 20748c2ecf20Sopenharmony_ci uint64_t reserved_1_1:1; 20758c2ecf20Sopenharmony_ci uint64_t undflw:2; 20768c2ecf20Sopenharmony_ci uint64_t reserved_4_7:4; 20778c2ecf20Sopenharmony_ci uint64_t xscol:2; 20788c2ecf20Sopenharmony_ci uint64_t reserved_10_11:2; 20798c2ecf20Sopenharmony_ci uint64_t xsdef:2; 20808c2ecf20Sopenharmony_ci uint64_t reserved_14_15:2; 20818c2ecf20Sopenharmony_ci uint64_t late_col:2; 20828c2ecf20Sopenharmony_ci uint64_t reserved_18_19:2; 20838c2ecf20Sopenharmony_ci uint64_t ptp_lost:2; 20848c2ecf20Sopenharmony_ci uint64_t reserved_22_23:2; 20858c2ecf20Sopenharmony_ci uint64_t xchange:1; 20868c2ecf20Sopenharmony_ci uint64_t reserved_25_63:39; 20878c2ecf20Sopenharmony_ci#endif 20888c2ecf20Sopenharmony_ci } cnf71xx; 20898c2ecf20Sopenharmony_ci}; 20908c2ecf20Sopenharmony_ci 20918c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_ovr_bp { 20928c2ecf20Sopenharmony_ci uint64_t u64; 20938c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_ovr_bp_s { 20948c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 20958c2ecf20Sopenharmony_ci uint64_t reserved_48_63:16; 20968c2ecf20Sopenharmony_ci uint64_t tx_prt_bp:16; 20978c2ecf20Sopenharmony_ci uint64_t reserved_12_31:20; 20988c2ecf20Sopenharmony_ci uint64_t en:4; 20998c2ecf20Sopenharmony_ci uint64_t bp:4; 21008c2ecf20Sopenharmony_ci uint64_t ign_full:4; 21018c2ecf20Sopenharmony_ci#else 21028c2ecf20Sopenharmony_ci uint64_t ign_full:4; 21038c2ecf20Sopenharmony_ci uint64_t bp:4; 21048c2ecf20Sopenharmony_ci uint64_t en:4; 21058c2ecf20Sopenharmony_ci uint64_t reserved_12_31:20; 21068c2ecf20Sopenharmony_ci uint64_t tx_prt_bp:16; 21078c2ecf20Sopenharmony_ci uint64_t reserved_48_63:16; 21088c2ecf20Sopenharmony_ci#endif 21098c2ecf20Sopenharmony_ci } s; 21108c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_ovr_bp_cn30xx { 21118c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 21128c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 21138c2ecf20Sopenharmony_ci uint64_t en:3; 21148c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 21158c2ecf20Sopenharmony_ci uint64_t bp:3; 21168c2ecf20Sopenharmony_ci uint64_t reserved_3_3:1; 21178c2ecf20Sopenharmony_ci uint64_t ign_full:3; 21188c2ecf20Sopenharmony_ci#else 21198c2ecf20Sopenharmony_ci uint64_t ign_full:3; 21208c2ecf20Sopenharmony_ci uint64_t reserved_3_3:1; 21218c2ecf20Sopenharmony_ci uint64_t bp:3; 21228c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 21238c2ecf20Sopenharmony_ci uint64_t en:3; 21248c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 21258c2ecf20Sopenharmony_ci#endif 21268c2ecf20Sopenharmony_ci } cn30xx; 21278c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_ovr_bp_cn38xx { 21288c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 21298c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 21308c2ecf20Sopenharmony_ci uint64_t en:4; 21318c2ecf20Sopenharmony_ci uint64_t bp:4; 21328c2ecf20Sopenharmony_ci uint64_t ign_full:4; 21338c2ecf20Sopenharmony_ci#else 21348c2ecf20Sopenharmony_ci uint64_t ign_full:4; 21358c2ecf20Sopenharmony_ci uint64_t bp:4; 21368c2ecf20Sopenharmony_ci uint64_t en:4; 21378c2ecf20Sopenharmony_ci uint64_t reserved_12_63:52; 21388c2ecf20Sopenharmony_ci#endif 21398c2ecf20Sopenharmony_ci } cn38xx; 21408c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_ovr_bp_cnf71xx { 21418c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 21428c2ecf20Sopenharmony_ci uint64_t reserved_48_63:16; 21438c2ecf20Sopenharmony_ci uint64_t tx_prt_bp:16; 21448c2ecf20Sopenharmony_ci uint64_t reserved_10_31:22; 21458c2ecf20Sopenharmony_ci uint64_t en:2; 21468c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 21478c2ecf20Sopenharmony_ci uint64_t bp:2; 21488c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 21498c2ecf20Sopenharmony_ci uint64_t ign_full:2; 21508c2ecf20Sopenharmony_ci#else 21518c2ecf20Sopenharmony_ci uint64_t ign_full:2; 21528c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 21538c2ecf20Sopenharmony_ci uint64_t bp:2; 21548c2ecf20Sopenharmony_ci uint64_t reserved_6_7:2; 21558c2ecf20Sopenharmony_ci uint64_t en:2; 21568c2ecf20Sopenharmony_ci uint64_t reserved_10_31:22; 21578c2ecf20Sopenharmony_ci uint64_t tx_prt_bp:16; 21588c2ecf20Sopenharmony_ci uint64_t reserved_48_63:16; 21598c2ecf20Sopenharmony_ci#endif 21608c2ecf20Sopenharmony_ci } cnf71xx; 21618c2ecf20Sopenharmony_ci}; 21628c2ecf20Sopenharmony_ci 21638c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_prts { 21648c2ecf20Sopenharmony_ci uint64_t u64; 21658c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_prts_s { 21668c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 21678c2ecf20Sopenharmony_ci uint64_t reserved_5_63:59; 21688c2ecf20Sopenharmony_ci uint64_t prts:5; 21698c2ecf20Sopenharmony_ci#else 21708c2ecf20Sopenharmony_ci uint64_t prts:5; 21718c2ecf20Sopenharmony_ci uint64_t reserved_5_63:59; 21728c2ecf20Sopenharmony_ci#endif 21738c2ecf20Sopenharmony_ci } s; 21748c2ecf20Sopenharmony_ci}; 21758c2ecf20Sopenharmony_ci 21768c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_spi_ctl { 21778c2ecf20Sopenharmony_ci uint64_t u64; 21788c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_spi_ctl_s { 21798c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 21808c2ecf20Sopenharmony_ci uint64_t reserved_2_63:62; 21818c2ecf20Sopenharmony_ci uint64_t tpa_clr:1; 21828c2ecf20Sopenharmony_ci uint64_t cont_pkt:1; 21838c2ecf20Sopenharmony_ci#else 21848c2ecf20Sopenharmony_ci uint64_t cont_pkt:1; 21858c2ecf20Sopenharmony_ci uint64_t tpa_clr:1; 21868c2ecf20Sopenharmony_ci uint64_t reserved_2_63:62; 21878c2ecf20Sopenharmony_ci#endif 21888c2ecf20Sopenharmony_ci } s; 21898c2ecf20Sopenharmony_ci}; 21908c2ecf20Sopenharmony_ci 21918c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_spi_max { 21928c2ecf20Sopenharmony_ci uint64_t u64; 21938c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_spi_max_s { 21948c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 21958c2ecf20Sopenharmony_ci uint64_t reserved_23_63:41; 21968c2ecf20Sopenharmony_ci uint64_t slice:7; 21978c2ecf20Sopenharmony_ci uint64_t max2:8; 21988c2ecf20Sopenharmony_ci uint64_t max1:8; 21998c2ecf20Sopenharmony_ci#else 22008c2ecf20Sopenharmony_ci uint64_t max1:8; 22018c2ecf20Sopenharmony_ci uint64_t max2:8; 22028c2ecf20Sopenharmony_ci uint64_t slice:7; 22038c2ecf20Sopenharmony_ci uint64_t reserved_23_63:41; 22048c2ecf20Sopenharmony_ci#endif 22058c2ecf20Sopenharmony_ci } s; 22068c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_spi_max_cn38xx { 22078c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 22088c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 22098c2ecf20Sopenharmony_ci uint64_t max2:8; 22108c2ecf20Sopenharmony_ci uint64_t max1:8; 22118c2ecf20Sopenharmony_ci#else 22128c2ecf20Sopenharmony_ci uint64_t max1:8; 22138c2ecf20Sopenharmony_ci uint64_t max2:8; 22148c2ecf20Sopenharmony_ci uint64_t reserved_16_63:48; 22158c2ecf20Sopenharmony_ci#endif 22168c2ecf20Sopenharmony_ci } cn38xx; 22178c2ecf20Sopenharmony_ci}; 22188c2ecf20Sopenharmony_ci 22198c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_spi_thresh { 22208c2ecf20Sopenharmony_ci uint64_t u64; 22218c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_spi_thresh_s { 22228c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 22238c2ecf20Sopenharmony_ci uint64_t reserved_6_63:58; 22248c2ecf20Sopenharmony_ci uint64_t thresh:6; 22258c2ecf20Sopenharmony_ci#else 22268c2ecf20Sopenharmony_ci uint64_t thresh:6; 22278c2ecf20Sopenharmony_ci uint64_t reserved_6_63:58; 22288c2ecf20Sopenharmony_ci#endif 22298c2ecf20Sopenharmony_ci } s; 22308c2ecf20Sopenharmony_ci}; 22318c2ecf20Sopenharmony_ci 22328c2ecf20Sopenharmony_ciunion cvmx_gmxx_tx_xaui_ctl { 22338c2ecf20Sopenharmony_ci uint64_t u64; 22348c2ecf20Sopenharmony_ci struct cvmx_gmxx_tx_xaui_ctl_s { 22358c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN_BITFIELD 22368c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 22378c2ecf20Sopenharmony_ci uint64_t hg_pause_hgi:2; 22388c2ecf20Sopenharmony_ci uint64_t hg_en:1; 22398c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 22408c2ecf20Sopenharmony_ci uint64_t ls_byp:1; 22418c2ecf20Sopenharmony_ci uint64_t ls:2; 22428c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 22438c2ecf20Sopenharmony_ci uint64_t uni_en:1; 22448c2ecf20Sopenharmony_ci uint64_t dic_en:1; 22458c2ecf20Sopenharmony_ci#else 22468c2ecf20Sopenharmony_ci uint64_t dic_en:1; 22478c2ecf20Sopenharmony_ci uint64_t uni_en:1; 22488c2ecf20Sopenharmony_ci uint64_t reserved_2_3:2; 22498c2ecf20Sopenharmony_ci uint64_t ls:2; 22508c2ecf20Sopenharmony_ci uint64_t ls_byp:1; 22518c2ecf20Sopenharmony_ci uint64_t reserved_7_7:1; 22528c2ecf20Sopenharmony_ci uint64_t hg_en:1; 22538c2ecf20Sopenharmony_ci uint64_t hg_pause_hgi:2; 22548c2ecf20Sopenharmony_ci uint64_t reserved_11_63:53; 22558c2ecf20Sopenharmony_ci#endif 22568c2ecf20Sopenharmony_ci } s; 22578c2ecf20Sopenharmony_ci}; 22588c2ecf20Sopenharmony_ci 22598c2ecf20Sopenharmony_ci#endif 2260