18c2ecf20Sopenharmony_ci#ifndef DEF_CHIP_REG 28c2ecf20Sopenharmony_ci#define DEF_CHIP_REG 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci/* 58c2ecf20Sopenharmony_ci * Copyright(c) 2015, 2016 Intel Corporation. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * This file is provided under a dual BSD/GPLv2 license. When using or 88c2ecf20Sopenharmony_ci * redistributing this file, you may do so under either license. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * GPL LICENSE SUMMARY 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify 138c2ecf20Sopenharmony_ci * it under the terms of version 2 of the GNU General Public License as 148c2ecf20Sopenharmony_ci * published by the Free Software Foundation. 158c2ecf20Sopenharmony_ci * 168c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful, but 178c2ecf20Sopenharmony_ci * WITHOUT ANY WARRANTY; without even the implied warranty of 188c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 198c2ecf20Sopenharmony_ci * General Public License for more details. 208c2ecf20Sopenharmony_ci * 218c2ecf20Sopenharmony_ci * BSD LICENSE 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 248c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions 258c2ecf20Sopenharmony_ci * are met: 268c2ecf20Sopenharmony_ci * 278c2ecf20Sopenharmony_ci * - Redistributions of source code must retain the above copyright 288c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 298c2ecf20Sopenharmony_ci * - Redistributions in binary form must reproduce the above copyright 308c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer in 318c2ecf20Sopenharmony_ci * the documentation and/or other materials provided with the 328c2ecf20Sopenharmony_ci * distribution. 338c2ecf20Sopenharmony_ci * - Neither the name of Intel Corporation nor the names of its 348c2ecf20Sopenharmony_ci * contributors may be used to endorse or promote products derived 358c2ecf20Sopenharmony_ci * from this software without specific prior written permission. 368c2ecf20Sopenharmony_ci * 378c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 388c2ecf20Sopenharmony_ci * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 398c2ecf20Sopenharmony_ci * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 408c2ecf20Sopenharmony_ci * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 418c2ecf20Sopenharmony_ci * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 428c2ecf20Sopenharmony_ci * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 438c2ecf20Sopenharmony_ci * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 448c2ecf20Sopenharmony_ci * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 458c2ecf20Sopenharmony_ci * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 468c2ecf20Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 478c2ecf20Sopenharmony_ci * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 488c2ecf20Sopenharmony_ci * 498c2ecf20Sopenharmony_ci */ 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci#define CORE 0x000000000000 528c2ecf20Sopenharmony_ci#define CCE (CORE + 0x000000000000) 538c2ecf20Sopenharmony_ci#define ASIC (CORE + 0x000000400000) 548c2ecf20Sopenharmony_ci#define MISC (CORE + 0x000000500000) 558c2ecf20Sopenharmony_ci#define DC_TOP_CSRS (CORE + 0x000000600000) 568c2ecf20Sopenharmony_ci#define CHIP_DEBUG (CORE + 0x000000700000) 578c2ecf20Sopenharmony_ci#define RXE (CORE + 0x000001000000) 588c2ecf20Sopenharmony_ci#define TXE (CORE + 0x000001800000) 598c2ecf20Sopenharmony_ci#define DCC_CSRS (DC_TOP_CSRS + 0x000000000000) 608c2ecf20Sopenharmony_ci#define DC_LCB_CSRS (DC_TOP_CSRS + 0x000000001000) 618c2ecf20Sopenharmony_ci#define DC_8051_CSRS (DC_TOP_CSRS + 0x000000002000) 628c2ecf20Sopenharmony_ci#define PCIE 0 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#define ASIC_NUM_SCRATCH 4 658c2ecf20Sopenharmony_ci#define CCE_ERR_INT_CNT 0 668c2ecf20Sopenharmony_ci#define CCE_MISC_INT_CNT 2 678c2ecf20Sopenharmony_ci#define CCE_NUM_32_BIT_COUNTERS 3 688c2ecf20Sopenharmony_ci#define CCE_NUM_32_BIT_INT_COUNTERS 6 698c2ecf20Sopenharmony_ci#define CCE_NUM_INT_CSRS 12 708c2ecf20Sopenharmony_ci#define CCE_NUM_INT_MAP_CSRS 96 718c2ecf20Sopenharmony_ci#define CCE_NUM_MSIX_PBAS 4 728c2ecf20Sopenharmony_ci#define CCE_NUM_MSIX_VECTORS 256 738c2ecf20Sopenharmony_ci#define CCE_NUM_SCRATCH 4 748c2ecf20Sopenharmony_ci#define CCE_PCIE_POSTED_CRDT_STALL_CNT 2 758c2ecf20Sopenharmony_ci#define CCE_PCIE_TRGT_STALL_CNT 0 768c2ecf20Sopenharmony_ci#define CCE_PIO_WR_STALL_CNT 1 778c2ecf20Sopenharmony_ci#define CCE_RCV_AVAIL_INT_CNT 3 788c2ecf20Sopenharmony_ci#define CCE_RCV_URGENT_INT_CNT 4 798c2ecf20Sopenharmony_ci#define CCE_SDMA_INT_CNT 1 808c2ecf20Sopenharmony_ci#define CCE_SEND_CREDIT_INT_CNT 5 818c2ecf20Sopenharmony_ci#define DCC_CFG_LED_CNTRL (DCC_CSRS + 0x000000000040) 828c2ecf20Sopenharmony_ci#define DCC_CFG_LED_CNTRL_LED_CNTRL_SMASK 0x10ull 838c2ecf20Sopenharmony_ci#define DCC_CFG_LED_CNTRL_LED_SW_BLINK_RATE_SHIFT 0 848c2ecf20Sopenharmony_ci#define DCC_CFG_LED_CNTRL_LED_SW_BLINK_RATE_SMASK 0xFull 858c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG (DCC_CSRS + 0x000000000008) 868c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1 (DCC_CSRS + 0x000000000010) 878c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK 0xFFFFull 888c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT 16 898c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK 0xFFFF0000ull 908c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK 0xFFFFull 918c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT 0 928c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK 0xFFFFull 938c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_LINK_STATE_MASK 0x7ull 948c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_LINK_STATE_SHIFT 48 958c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_LINK_STATE_SMASK 0x7000000000000ull 968c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_MTU_CAP_MASK 0x7ull 978c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_MTU_CAP_SHIFT 32 988c2ecf20Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_MTU_CAP_SMASK 0x700000000ull 998c2ecf20Sopenharmony_ci#define DCC_CFG_RESET (DCC_CSRS + 0x000000000000) 1008c2ecf20Sopenharmony_ci#define DCC_CFG_RESET_RESET_LCB BIT_ULL(0) 1018c2ecf20Sopenharmony_ci#define DCC_CFG_RESET_RESET_TX_FPE BIT_ULL(1) 1028c2ecf20Sopenharmony_ci#define DCC_CFG_RESET_RESET_RX_FPE BIT_ULL(2) 1038c2ecf20Sopenharmony_ci#define DCC_CFG_RESET_RESET_8051 BIT_ULL(3) 1048c2ecf20Sopenharmony_ci#define DCC_CFG_RESET_ENABLE_CCLK_BCC BIT_ULL(4) 1058c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0 (DCC_CSRS + 0x000000000028) 1068c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY0_SHIFT 0 1078c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY10_SHIFT 40 1088c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY11_SHIFT 44 1098c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY12_SHIFT 48 1108c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY13_SHIFT 52 1118c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY14_SHIFT 56 1128c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY15_SHIFT 60 1138c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY1_SHIFT 4 1148c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY2_SHIFT 8 1158c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY3_SHIFT 12 1168c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY4_SHIFT 16 1178c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY5_SHIFT 20 1188c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY6_SHIFT 24 1198c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY7_SHIFT 28 1208c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY8_SHIFT 32 1218c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY9_SHIFT 36 1228c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16 (DCC_CSRS + 0x000000000030) 1238c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY16_SHIFT 0 1248c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY17_SHIFT 4 1258c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY18_SHIFT 8 1268c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY19_SHIFT 12 1278c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY20_SHIFT 16 1288c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY21_SHIFT 20 1298c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY22_SHIFT 24 1308c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY23_SHIFT 28 1318c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY24_SHIFT 32 1328c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY25_SHIFT 36 1338c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY26_SHIFT 40 1348c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY27_SHIFT 44 1358c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY28_SHIFT 48 1368c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY29_SHIFT 52 1378c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY30_SHIFT 56 1388c2ecf20Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY31_SHIFT 60 1398c2ecf20Sopenharmony_ci#define DCC_ERR_DROPPED_PKT_CNT (DCC_CSRS + 0x000000000120) 1408c2ecf20Sopenharmony_ci#define DCC_ERR_FLG (DCC_CSRS + 0x000000000050) 1418c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_CRDT_ACK_ERR_SMASK 0x4000ull 1428c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_CTRL_DIST_ERR_SMASK 0x200000ull 1438c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_CTRL_FLIT_ERR_SMASK 0x10000ull 1448c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_DLID_TARGET_ERR_SMASK 0x200ull 1458c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_HEAD_DIST_ERR_SMASK 0x800000ull 1468c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_L2_ERR_SMASK 0x2ull 1478c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_LVER_ERR_SMASK 0x400ull 1488c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_MID_TAIL_ERR_SMASK 0x8ull 1498c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_PKT_LENGTH_ERR_SMASK 0x4000000ull 1508c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_PREEMPTION_ERR_SMASK 0x10ull 1518c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_SC_ERR_SMASK 0x4ull 1528c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_TAIL_DIST_ERR_SMASK 0x400000ull 1538c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_BAD_VL_MARKER_ERR_SMASK 0x80ull 1548c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_CLR (DCC_CSRS + 0x000000000060) 1558c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_CSR_ACCESS_BLOCKED_HOST_SMASK 0x8000000000ull 1568c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_CSR_ACCESS_BLOCKED_UC_SMASK 0x10000000000ull 1578c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_CSR_INVAL_ADDR_SMASK 0x400000000000ull 1588c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_CSR_PARITY_ERR_SMASK 0x200000000000ull 1598c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_DLID_ZERO_ERR_SMASK 0x40000000ull 1608c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_EN (DCC_CSRS + 0x000000000058) 1618c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_EN_CSR_ACCESS_BLOCKED_HOST_SMASK 0x8000000000ull 1628c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_EN_CSR_ACCESS_BLOCKED_UC_SMASK 0x10000000000ull 1638c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_EVENT_CNTR_PARITY_ERR_SMASK 0x20000ull 1648c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_EVENT_CNTR_ROLLOVER_ERR_SMASK 0x40000ull 1658c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_FMCONFIG_ERR_SMASK 0x40000000000000ull 1668c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_FPE_TX_FIFO_OVFLW_ERR_SMASK 0x2000000000ull 1678c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_FPE_TX_FIFO_UNFLW_ERR_SMASK 0x4000000000ull 1688c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_LATE_EBP_ERR_SMASK 0x1000000000ull 1698c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_LATE_LONG_ERR_SMASK 0x800000000ull 1708c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_LATE_SHORT_ERR_SMASK 0x400000000ull 1718c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_LENGTH_MTU_ERR_SMASK 0x80000000ull 1728c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_LINK_ERR_SMASK 0x80000ull 1738c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_MISC_CNTR_ROLLOVER_ERR_SMASK 0x100000ull 1748c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_NONVL15_STATE_ERR_SMASK 0x1000000ull 1758c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_PERM_NVL15_ERR_SMASK 0x10000000ull 1768c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_PREEMPTION_ERR_SMASK 0x20ull 1778c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_PREEMPTIONVL15_ERR_SMASK 0x40ull 1788c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_RCVPORT_ERR_SMASK 0x80000000000000ull 1798c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_RX_BYTE_SHFT_PARITY_ERR_SMASK 0x1000000000000ull 1808c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_RX_CTRL_PARITY_MBE_ERR_SMASK 0x100000000000ull 1818c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_RX_EARLY_DROP_ERR_SMASK 0x200000000ull 1828c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_SLID_ZERO_ERR_SMASK 0x20000000ull 1838c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_TX_BYTE_SHFT_PARITY_ERR_SMASK 0x800000000000ull 1848c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_TX_CTRL_PARITY_ERR_SMASK 0x20000000000ull 1858c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_TX_CTRL_PARITY_MBE_ERR_SMASK 0x40000000000ull 1868c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_TX_SC_PARITY_ERR_SMASK 0x80000000000ull 1878c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_UNCORRECTABLE_ERR_SMASK 0x2000ull 1888c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_UNSUP_PKT_TYPE_SMASK 0x8000ull 1898c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_UNSUP_VL_ERR_SMASK 0x8000000ull 1908c2ecf20Sopenharmony_ci#define DCC_ERR_FLG_VL15_MULTI_ERR_SMASK 0x2000000ull 1918c2ecf20Sopenharmony_ci#define DCC_ERR_FMCONFIG_ERR_CNT (DCC_CSRS + 0x000000000110) 1928c2ecf20Sopenharmony_ci#define DCC_ERR_INFO_FMCONFIG (DCC_CSRS + 0x000000000090) 1938c2ecf20Sopenharmony_ci#define DCC_ERR_INFO_PORTRCV (DCC_CSRS + 0x000000000078) 1948c2ecf20Sopenharmony_ci#define DCC_ERR_INFO_PORTRCV_HDR0 (DCC_CSRS + 0x000000000080) 1958c2ecf20Sopenharmony_ci#define DCC_ERR_INFO_PORTRCV_HDR1 (DCC_CSRS + 0x000000000088) 1968c2ecf20Sopenharmony_ci#define DCC_ERR_INFO_UNCORRECTABLE (DCC_CSRS + 0x000000000098) 1978c2ecf20Sopenharmony_ci#define DCC_ERR_PORTRCV_ERR_CNT (DCC_CSRS + 0x000000000108) 1988c2ecf20Sopenharmony_ci#define DCC_ERR_RCVREMOTE_PHY_ERR_CNT (DCC_CSRS + 0x000000000118) 1998c2ecf20Sopenharmony_ci#define DCC_ERR_UNCORRECTABLE_CNT (DCC_CSRS + 0x000000000100) 2008c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_MARK_FECN_CNT (DCC_CSRS + 0x000000000330) 2018c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_BECN_CNT (DCC_CSRS + 0x000000000290) 2028c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_BUBBLE_CNT (DCC_CSRS + 0x0000000002E0) 2038c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_CORRECTABLE_CNT (DCC_CSRS + 0x000000000140) 2048c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_DATA_CNT (DCC_CSRS + 0x000000000198) 2058c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_FECN_CNT (DCC_CSRS + 0x000000000240) 2068c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_MULTICAST_PKT_CNT (DCC_CSRS + 0x000000000130) 2078c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_RCV_PKTS_CNT (DCC_CSRS + 0x0000000001A8) 2088c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_VL_MARK_FECN_CNT (DCC_CSRS + 0x000000000338) 2098c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_BECN_CNT (DCC_CSRS + 0x000000000298) 2108c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_BUBBLE_CNT (DCC_CSRS + 0x0000000002E8) 2118c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_DATA_CNT (DCC_CSRS + 0x0000000001B0) 2128c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_FECN_CNT (DCC_CSRS + 0x000000000248) 2138c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_PKTS_CNT (DCC_CSRS + 0x0000000001F8) 2148c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_XMIT_CORRECTABLE_CNT (DCC_CSRS + 0x000000000138) 2158c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_XMIT_DATA_CNT (DCC_CSRS + 0x000000000190) 2168c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_XMIT_MULTICAST_CNT (DCC_CSRS + 0x000000000128) 2178c2ecf20Sopenharmony_ci#define DCC_PRF_PORT_XMIT_PKTS_CNT (DCC_CSRS + 0x0000000001A0) 2188c2ecf20Sopenharmony_ci#define DCC_PRF_RX_FLOW_CRTL_CNT (DCC_CSRS + 0x000000000180) 2198c2ecf20Sopenharmony_ci#define DCC_PRF_TX_FLOW_CRTL_CNT (DCC_CSRS + 0x000000000188) 2208c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_CSR_ACCESS_SEL (DC_8051_CSRS + 0x000000000110) 2218c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_CSR_ACCESS_SEL_DCC_SMASK 0x2ull 2228c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_CSR_ACCESS_SEL_LCB_SMASK 0x1ull 2238c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0 (DC_8051_CSRS + 0x000000000118) 2248c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0_COMPLETED_SMASK 0x1ull 2258c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0_RETURN_CODE_SHIFT 8 2268c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0_RSP_DATA_SHIFT 16 2278c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1 (DC_8051_CSRS + 0x000000000120) 2288c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK 0xFFFFull 2298c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT 16 2308c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SMASK 0xFFFF0000ull 2318c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK 0x1ull 2328c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK 0xFFull 2338c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT 8 2348c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0 (DC_8051_CSRS + 0x000000000028) 2358c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_DATA_MASK 0xFFFFFFFFFFFFull 2368c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_DATA_SHIFT 16 2378c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_NEW_SMASK 0x1ull 2388c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_TYPE_MASK 0xFFull 2398c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_TYPE_SHIFT 8 2408c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1 (DC_8051_CSRS + 0x000000000030) 2418c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_COMPLETED_SMASK 0x1ull 2428c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RETURN_CODE_MASK 0xFFull 2438c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RETURN_CODE_SHIFT 8 2448c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RSP_DATA_MASK 0xFFFFFFFFFFFFull 2458c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RSP_DATA_SHIFT 16 2468c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_LOCAL_GUID (DC_8051_CSRS + 0x000000000038) 2478c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_MODE (DC_8051_CSRS + 0x000000000070) 2488c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL (DC_8051_CSRS + 0x000000000008) 2498c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_ADDRESS_MASK 0x7FFFull 2508c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_ADDRESS_SHIFT 0 2518c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_WRITE_ENA_SMASK 0x1000000ull 2528c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_READ_ENA_SMASK 0x10000ull 2538c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_SETUP (DC_8051_CSRS + 0x000000000000) 2548c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_SETUP_AUTO_INCR_ADDR_SMASK 0x100ull 2558c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_SETUP_RAM_SEL_SMASK 0x1ull 2568c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_STATUS (DC_8051_CSRS + 0x000000000018) 2578c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_STATUS_ACCESS_COMPLETED_SMASK 0x10000ull 2588c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_WR_DATA (DC_8051_CSRS + 0x000000000010) 2598c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_RD_DATA (DC_8051_CSRS + 0x000000000020) 2608c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RST (DC_8051_CSRS + 0x000000000068) 2618c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RST_CRAM_SMASK 0x2ull 2628c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RST_DRAM_SMASK 0x4ull 2638c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RST_IRAM_SMASK 0x8ull 2648c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RST_M8051W_SMASK 0x1ull 2658c2ecf20Sopenharmony_ci#define DC_DC8051_CFG_RST_SFR_SMASK 0x10ull 2668c2ecf20Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051 (DC_8051_CSRS + 0x0000000000D8) 2678c2ecf20Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_ERROR_MASK 0xFFFFFFFFull 2688c2ecf20Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_ERROR_SHIFT 16 2698c2ecf20Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_HOST_MSG_MASK 0xFFFFull 2708c2ecf20Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_HOST_MSG_SHIFT 0 2718c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_CLR (DC_8051_CSRS + 0x0000000000E8) 2728c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_EN (DC_8051_CSRS + 0x0000000000F0) 2738c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_EN_LOST_8051_HEART_BEAT_SMASK 0x2ull 2748c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG (DC_8051_CSRS + 0x0000000000E0) 2758c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_CRAM_MBE_SMASK 0x4ull 2768c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_CRAM_SBE_SMASK 0x8ull 2778c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_DRAM_MBE_SMASK 0x10ull 2788c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_DRAM_SBE_SMASK 0x20ull 2798c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_INVALID_CSR_ADDR_SMASK 0x400ull 2808c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_IRAM_MBE_SMASK 0x40ull 2818c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_IRAM_SBE_SMASK 0x80ull 2828c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_LOST_8051_HEART_BEAT_SMASK 0x2ull 2838c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_SET_BY_8051_SMASK 0x1ull 2848c2ecf20Sopenharmony_ci#define DC_DC8051_ERR_FLG_UNMATCHED_SECURE_MSG_ACROSS_BCC_LANES_SMASK 0x100ull 2858c2ecf20Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE (DC_8051_CSRS + 0x000000000060) 2868c2ecf20Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_FIRMWARE_MASK 0xFFull 2878c2ecf20Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_FIRMWARE_SHIFT 16 2888c2ecf20Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_PORT_MASK 0xFFull 2898c2ecf20Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_PORT_SHIFT 0 2908c2ecf20Sopenharmony_ci#define DC_DC8051_STS_LOCAL_FM_SECURITY (DC_8051_CSRS + 0x000000000050) 2918c2ecf20Sopenharmony_ci#define DC_DC8051_STS_LOCAL_FM_SECURITY_DISABLED_MASK 0x1ull 2928c2ecf20Sopenharmony_ci#define DC_DC8051_STS_REMOTE_FM_SECURITY (DC_8051_CSRS + 0x000000000058) 2938c2ecf20Sopenharmony_ci#define DC_DC8051_STS_REMOTE_GUID (DC_8051_CSRS + 0x000000000040) 2948c2ecf20Sopenharmony_ci#define DC_DC8051_STS_REMOTE_NODE_TYPE (DC_8051_CSRS + 0x000000000048) 2958c2ecf20Sopenharmony_ci#define DC_DC8051_STS_REMOTE_NODE_TYPE_VAL_MASK 0x3ull 2968c2ecf20Sopenharmony_ci#define DC_DC8051_STS_REMOTE_PORT_NO (DC_8051_CSRS + 0x000000000130) 2978c2ecf20Sopenharmony_ci#define DC_DC8051_STS_REMOTE_PORT_NO_VAL_SMASK 0xFFull 2988c2ecf20Sopenharmony_ci#define DC_LCB_CFG_ALLOW_LINK_UP (DC_LCB_CSRS + 0x000000000128) 2998c2ecf20Sopenharmony_ci#define DC_LCB_CFG_ALLOW_LINK_UP_VAL_SHIFT 0 3008c2ecf20Sopenharmony_ci#define DC_LCB_CFG_CRC_MODE (DC_LCB_CSRS + 0x000000000058) 3018c2ecf20Sopenharmony_ci#define DC_LCB_CFG_CRC_MODE_TX_VAL_SHIFT 0 3028c2ecf20Sopenharmony_ci#define DC_LCB_CFG_IGNORE_LOST_RCLK (DC_LCB_CSRS + 0x000000000020) 3038c2ecf20Sopenharmony_ci#define DC_LCB_CFG_IGNORE_LOST_RCLK_EN_SMASK 0x1ull 3048c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LANE_WIDTH (DC_LCB_CSRS + 0x000000000100) 3058c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LINK_KILL_EN (DC_LCB_CSRS + 0x000000000120) 3068c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LINK_KILL_EN_FLIT_INPUT_BUF_MBE_SMASK 0x100000ull 3078c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LINK_KILL_EN_REPLAY_BUF_MBE_SMASK 0x400000ull 3088c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LN_DCLK (DC_LCB_CSRS + 0x000000000060) 3098c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LOOPBACK (DC_LCB_CSRS + 0x0000000000F8) 3108c2ecf20Sopenharmony_ci#define DC_LCB_CFG_LOOPBACK_VAL_SHIFT 0 3118c2ecf20Sopenharmony_ci#define DC_LCB_CFG_RUN (DC_LCB_CSRS + 0x000000000000) 3128c2ecf20Sopenharmony_ci#define DC_LCB_CFG_RUN_EN_SHIFT 0 3138c2ecf20Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR (DC_LCB_CSRS + 0x000000000018) 3148c2ecf20Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR_DO_NOT_JUMP_VAL_SHIFT 8 3158c2ecf20Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR_OK_TO_JUMP_VAL_SHIFT 4 3168c2ecf20Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR_RST_VAL_SHIFT 0 3178c2ecf20Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RADR (DC_LCB_CSRS + 0x000000000010) 3188c2ecf20Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RADR_RST_VAL_SHIFT 0 3198c2ecf20Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RESET (DC_LCB_CSRS + 0x000000000008) 3208c2ecf20Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RESET_VAL_SHIFT 0 3218c2ecf20Sopenharmony_ci#define DC_LCB_CFG_REINIT_AS_SLAVE (DC_LCB_CSRS + 0x000000000030) 3228c2ecf20Sopenharmony_ci#define DC_LCB_CFG_CNT_FOR_SKIP_STALL (DC_LCB_CSRS + 0x000000000040) 3238c2ecf20Sopenharmony_ci#define DC_LCB_CFG_CLK_CNTR (DC_LCB_CSRS + 0x000000000110) 3248c2ecf20Sopenharmony_ci#define DC_LCB_ERR_CLR (DC_LCB_CSRS + 0x000000000308) 3258c2ecf20Sopenharmony_ci#define DC_LCB_ERR_EN (DC_LCB_CSRS + 0x000000000310) 3268c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG (DC_LCB_CSRS + 0x000000000300) 3278c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_REDUNDANT_FLIT_PARITY_ERR_SMASK 0x20000000ull 3288c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_NEG_EDGE_LINK_TRANSFER_ACTIVE_SMASK 0x10000000ull 3298c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_HOLD_REINIT_SMASK 0x8000000ull 3308c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_RST_FOR_INCOMPLT_RND_TRIP_SMASK 0x4000000ull 3318c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_RST_FOR_LINK_TIMEOUT_SMASK 0x2000000ull 3328c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_CREDIT_RETURN_FLIT_MBE_SMASK 0x1000000ull 3338c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_REPLAY_BUF_SBE_SMASK 0x800000ull 3348c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_REPLAY_BUF_MBE_SMASK 0x400000ull 3358c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_FLIT_INPUT_BUF_SBE_SMASK 0x200000ull 3368c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_FLIT_INPUT_BUF_MBE_SMASK 0x100000ull 3378c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_VL_ACK_INPUT_WRONG_CRC_MODE_SMASK 0x80000ull 3388c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_VL_ACK_INPUT_PARITY_ERR_SMASK 0x40000ull 3398c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_VL_ACK_INPUT_BUF_OFLW_SMASK 0x20000ull 3408c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_FLIT_INPUT_BUF_OFLW_SMASK 0x10000ull 3418c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_ILLEGAL_FLIT_ENCODING_SMASK 0x8000ull 3428c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_ILLEGAL_NULL_LTP_SMASK 0x4000ull 3438c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_UNEXPECTED_ROUND_TRIP_MARKER_SMASK 0x2000ull 3448c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_UNEXPECTED_REPLAY_MARKER_SMASK 0x1000ull 3458c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_RCLK_STOPPED_SMASK 0x800ull 3468c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_CRC_ERR_CNT_HIT_LIMIT_SMASK 0x400ull 3478c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_REINIT_FOR_LN_DEGRADE_SMASK 0x200ull 3488c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_REINIT_FROM_PEER_SMASK 0x100ull 3498c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_SEQ_CRC_ERR_SMASK 0x80ull 3508c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_RX_LESS_THAN_FOUR_LNS_SMASK 0x40ull 3518c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_TX_LESS_THAN_FOUR_LNS_SMASK 0x20ull 3528c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_LOST_REINIT_STALL_OR_TOS_SMASK 0x10ull 3538c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_ALL_LNS_FAILED_REINIT_TEST_SMASK 0x8ull 3548c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_RST_FOR_FAILED_DESKEW_SMASK 0x4ull 3558c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_INVALID_CSR_ADDR_SMASK 0x2ull 3568c2ecf20Sopenharmony_ci#define DC_LCB_ERR_FLG_CSR_PARITY_ERR_SMASK 0x1ull 3578c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN0 (DC_LCB_CSRS + 0x000000000328) 3588c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN1 (DC_LCB_CSRS + 0x000000000330) 3598c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN2 (DC_LCB_CSRS + 0x000000000338) 3608c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN3 (DC_LCB_CSRS + 0x000000000340) 3618c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_MULTI_LN (DC_LCB_CSRS + 0x000000000348) 3628c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_ESCAPE_0_ONLY_CNT (DC_LCB_CSRS + 0x000000000368) 3638c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_ESCAPE_0_PLUS1_CNT (DC_LCB_CSRS + 0x000000000370) 3648c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_ESCAPE_0_PLUS2_CNT (DC_LCB_CSRS + 0x000000000378) 3658c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_MISC_FLG_CNT (DC_LCB_CSRS + 0x000000000390) 3668c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_REINIT_FROM_PEER_CNT (DC_LCB_CSRS + 0x000000000380) 3678c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_RX_REPLAY_CNT (DC_LCB_CSRS + 0x000000000358) 3688c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_SBE_CNT (DC_LCB_CSRS + 0x000000000388) 3698c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_SEQ_CRC_CNT (DC_LCB_CSRS + 0x000000000360) 3708c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_TOTAL_CRC_ERR (DC_LCB_CSRS + 0x000000000320) 3718c2ecf20Sopenharmony_ci#define DC_LCB_ERR_INFO_TX_REPLAY_CNT (DC_LCB_CSRS + 0x000000000350) 3728c2ecf20Sopenharmony_ci#define DC_LCB_PG_DBG_FLIT_CRDTS_CNT (DC_LCB_CSRS + 0x000000000580) 3738c2ecf20Sopenharmony_ci#define DC_LCB_PG_STS_PAUSE_COMPLETE_CNT (DC_LCB_CSRS + 0x0000000005F8) 3748c2ecf20Sopenharmony_ci#define DC_LCB_PG_STS_TX_MBE_CNT (DC_LCB_CSRS + 0x000000000608) 3758c2ecf20Sopenharmony_ci#define DC_LCB_PG_STS_TX_SBE_CNT (DC_LCB_CSRS + 0x000000000600) 3768c2ecf20Sopenharmony_ci#define DC_LCB_PRF_ACCEPTED_LTP_CNT (DC_LCB_CSRS + 0x000000000408) 3778c2ecf20Sopenharmony_ci#define DC_LCB_PRF_CLK_CNTR (DC_LCB_CSRS + 0x000000000420) 3788c2ecf20Sopenharmony_ci#define DC_LCB_PRF_GOOD_LTP_CNT (DC_LCB_CSRS + 0x000000000400) 3798c2ecf20Sopenharmony_ci#define DC_LCB_PRF_RX_FLIT_CNT (DC_LCB_CSRS + 0x000000000410) 3808c2ecf20Sopenharmony_ci#define DC_LCB_PRF_TX_FLIT_CNT (DC_LCB_CSRS + 0x000000000418) 3818c2ecf20Sopenharmony_ci#define DC_LCB_STS_LINK_TRANSFER_ACTIVE (DC_LCB_CSRS + 0x000000000468) 3828c2ecf20Sopenharmony_ci#define DC_LCB_STS_ROUND_TRIP_LTP_CNT (DC_LCB_CSRS + 0x0000000004B0) 3838c2ecf20Sopenharmony_ci#define RCV_LENGTH_ERR_CNT 0 3848c2ecf20Sopenharmony_ci#define RCV_SHORT_ERR_CNT 2 3858c2ecf20Sopenharmony_ci#define RCV_ICRC_ERR_CNT 6 3868c2ecf20Sopenharmony_ci#define RCV_EBP_CNT 9 3878c2ecf20Sopenharmony_ci#define RCV_BUF_OVFL_CNT 10 3888c2ecf20Sopenharmony_ci#define RCV_CONTEXT_EGR_STALL 22 3898c2ecf20Sopenharmony_ci#define RCV_DATA_PKT_CNT 0 3908c2ecf20Sopenharmony_ci#define RCV_DWORD_CNT 1 3918c2ecf20Sopenharmony_ci#define RCV_TID_FLOW_GEN_MISMATCH_CNT 20 3928c2ecf20Sopenharmony_ci#define RCV_TID_FLOW_SEQ_MISMATCH_CNT 23 3938c2ecf20Sopenharmony_ci#define RCV_TID_FULL_ERR_CNT 18 3948c2ecf20Sopenharmony_ci#define RCV_TID_VALID_ERR_CNT 19 3958c2ecf20Sopenharmony_ci#define RXE_NUM_32_BIT_COUNTERS 24 3968c2ecf20Sopenharmony_ci#define RXE_NUM_64_BIT_COUNTERS 2 3978c2ecf20Sopenharmony_ci#define RXE_NUM_RSM_INSTANCES 4 3988c2ecf20Sopenharmony_ci#define RXE_NUM_TID_FLOWS 32 3998c2ecf20Sopenharmony_ci#define RXE_PER_CONTEXT_OFFSET 0x0300000 4008c2ecf20Sopenharmony_ci#define SEND_DATA_PKT_CNT 0 4018c2ecf20Sopenharmony_ci#define SEND_DATA_PKT_VL0_CNT 12 4028c2ecf20Sopenharmony_ci#define SEND_DATA_VL0_CNT 3 4038c2ecf20Sopenharmony_ci#define SEND_DROPPED_PKT_CNT 5 4048c2ecf20Sopenharmony_ci#define SEND_DWORD_CNT 1 4058c2ecf20Sopenharmony_ci#define SEND_FLOW_STALL_CNT 4 4068c2ecf20Sopenharmony_ci#define SEND_HEADERS_ERR_CNT 6 4078c2ecf20Sopenharmony_ci#define SEND_LEN_ERR_CNT 1 4088c2ecf20Sopenharmony_ci#define SEND_MAX_MIN_LEN_ERR_CNT 2 4098c2ecf20Sopenharmony_ci#define SEND_UNDERRUN_CNT 3 4108c2ecf20Sopenharmony_ci#define SEND_UNSUP_VL_ERR_CNT 0 4118c2ecf20Sopenharmony_ci#define SEND_WAIT_CNT 2 4128c2ecf20Sopenharmony_ci#define SEND_WAIT_VL0_CNT 21 4138c2ecf20Sopenharmony_ci#define TXE_PIO_SEND_OFFSET 0x0800000 4148c2ecf20Sopenharmony_ci#define ASIC_CFG_DRV_STR (ASIC + 0x000000000048) 4158c2ecf20Sopenharmony_ci#define ASIC_CFG_MUTEX (ASIC + 0x000000000040) 4168c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_EXECUTE (ASIC + 0x000000000008) 4178c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK 0x1ull 4188c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_EXECUTE_FAST_MODE_SMASK 0x2ull 4198c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST (ASIC + 0x000000000000) 4208c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_COMMAND_SHIFT 16 4218c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_DATA_ADDR_SHIFT 8 4228c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_DATA_IN_SHIFT 32 4238c2ecf20Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_RECEIVER_ADDR_SHIFT 0 4248c2ecf20Sopenharmony_ci#define ASIC_CFG_SCRATCH (ASIC + 0x000000000020) 4258c2ecf20Sopenharmony_ci#define ASIC_CFG_SCRATCH_1 (ASIC_CFG_SCRATCH + 0x08) 4268c2ecf20Sopenharmony_ci#define ASIC_CFG_SCRATCH_2 (ASIC_CFG_SCRATCH + 0x10) 4278c2ecf20Sopenharmony_ci#define ASIC_CFG_SCRATCH_3 (ASIC_CFG_SCRATCH + 0x18) 4288c2ecf20Sopenharmony_ci#define ASIC_CFG_THERM_POLL_EN (ASIC + 0x000000000050) 4298c2ecf20Sopenharmony_ci#define ASIC_EEP_ADDR_CMD (ASIC + 0x000000000308) 4308c2ecf20Sopenharmony_ci#define ASIC_EEP_ADDR_CMD_EP_ADDR_MASK 0xFFFFFFull 4318c2ecf20Sopenharmony_ci#define ASIC_EEP_CTL_STAT (ASIC + 0x000000000300) 4328c2ecf20Sopenharmony_ci#define ASIC_EEP_CTL_STAT_EP_RESET_SMASK 0x4ull 4338c2ecf20Sopenharmony_ci#define ASIC_EEP_CTL_STAT_RATE_SPI_SHIFT 8 4348c2ecf20Sopenharmony_ci#define ASIC_EEP_CTL_STAT_RESETCSR 0x0000000083818000ull 4358c2ecf20Sopenharmony_ci#define ASIC_EEP_DATA (ASIC + 0x000000000310) 4368c2ecf20Sopenharmony_ci#define ASIC_GPIO_CLEAR (ASIC + 0x000000000230) 4378c2ecf20Sopenharmony_ci#define ASIC_GPIO_FORCE (ASIC + 0x000000000238) 4388c2ecf20Sopenharmony_ci#define ASIC_GPIO_IN (ASIC + 0x000000000200) 4398c2ecf20Sopenharmony_ci#define ASIC_GPIO_INVERT (ASIC + 0x000000000210) 4408c2ecf20Sopenharmony_ci#define ASIC_GPIO_MASK (ASIC + 0x000000000220) 4418c2ecf20Sopenharmony_ci#define ASIC_GPIO_OE (ASIC + 0x000000000208) 4428c2ecf20Sopenharmony_ci#define ASIC_GPIO_OUT (ASIC + 0x000000000218) 4438c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD (ASIC + 0x000000000100) 4448c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_INTRPT_CMD_SHIFT 0 4458c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_SBR_MODE_SMASK 0x400ull 4468c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_SBUS_RCVR_ADDR_SHIFT 2 4478c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_TIMER_MASK 0xFFFFFull 4488c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_TIMER_SHIFT 12 4498c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS (ASIC + 0x000000000108) 4508c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_ERR_MASK 0x7ull 4518c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_ERR_SHIFT 2 4528c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_STS_MASK 0x3ull 4538c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_STS_SHIFT 0 4548c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_DATA_CODE (ASIC + 0x000000000110) 4558c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_ENABLE (ASIC + 0x000000000118) 4568c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_LIST (ASIC + 0x000000000180) 4578c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_LIST_INTRPT_CODE_SHIFT 16 4588c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_LIST_INTRPT_DATA_SHIFT 0 4598c2ecf20Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_STATUS (ASIC + 0x000000000128) 4608c2ecf20Sopenharmony_ci#define ASIC_QSFP1_CLEAR (ASIC + 0x000000000270) 4618c2ecf20Sopenharmony_ci#define ASIC_QSFP1_FORCE (ASIC + 0x000000000278) 4628c2ecf20Sopenharmony_ci#define ASIC_QSFP1_IN (ASIC + 0x000000000240) 4638c2ecf20Sopenharmony_ci#define ASIC_QSFP1_INVERT (ASIC + 0x000000000250) 4648c2ecf20Sopenharmony_ci#define ASIC_QSFP1_MASK (ASIC + 0x000000000260) 4658c2ecf20Sopenharmony_ci#define ASIC_QSFP1_OE (ASIC + 0x000000000248) 4668c2ecf20Sopenharmony_ci#define ASIC_QSFP1_OUT (ASIC + 0x000000000258) 4678c2ecf20Sopenharmony_ci#define ASIC_QSFP1_STATUS (ASIC + 0x000000000268) 4688c2ecf20Sopenharmony_ci#define ASIC_QSFP2_CLEAR (ASIC + 0x0000000002B0) 4698c2ecf20Sopenharmony_ci#define ASIC_QSFP2_FORCE (ASIC + 0x0000000002B8) 4708c2ecf20Sopenharmony_ci#define ASIC_QSFP2_IN (ASIC + 0x000000000280) 4718c2ecf20Sopenharmony_ci#define ASIC_QSFP2_INVERT (ASIC + 0x000000000290) 4728c2ecf20Sopenharmony_ci#define ASIC_QSFP2_MASK (ASIC + 0x0000000002A0) 4738c2ecf20Sopenharmony_ci#define ASIC_QSFP2_OE (ASIC + 0x000000000288) 4748c2ecf20Sopenharmony_ci#define ASIC_QSFP2_OUT (ASIC + 0x000000000298) 4758c2ecf20Sopenharmony_ci#define ASIC_QSFP2_STATUS (ASIC + 0x0000000002A8) 4768c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS (ASIC + 0x000000000018) 4778c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_EXECUTE_CNT_MASK 0xFFFFull 4788c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_EXECUTE_CNT_SHIFT 0 4798c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_RCV_DATA_VALID_CNT_MASK 0xFFFFull 4808c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_RCV_DATA_VALID_CNT_SHIFT 16 4818c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT (ASIC + 0x000000000010) 4828c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_DONE_SMASK 0x1ull 4838c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK 0x2ull 4848c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_RESULT_CODE_SHIFT 2 4858c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_RESULT_CODE_MASK 0x7ull 4868c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_DATA_OUT_SHIFT 32 4878c2ecf20Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_DATA_OUT_MASK 0xFFFFFFFFull 4888c2ecf20Sopenharmony_ci#define ASIC_STS_THERM (ASIC + 0x000000000058) 4898c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_CRIT_TEMP_MASK 0x7FFull 4908c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_CRIT_TEMP_SHIFT 18 4918c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_CURR_TEMP_MASK 0x7FFull 4928c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_CURR_TEMP_SHIFT 2 4938c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_HI_TEMP_MASK 0x7FFull 4948c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_HI_TEMP_SHIFT 50 4958c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_LO_TEMP_MASK 0x7FFull 4968c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_LO_TEMP_SHIFT 34 4978c2ecf20Sopenharmony_ci#define ASIC_STS_THERM_LOW_SHIFT 13 4988c2ecf20Sopenharmony_ci#define CCE_COUNTER_ARRAY32 (CCE + 0x000000000060) 4998c2ecf20Sopenharmony_ci#define CCE_CTRL (CCE + 0x000000000010) 5008c2ecf20Sopenharmony_ci#define CCE_CTRL_RXE_RESUME_SMASK 0x800ull 5018c2ecf20Sopenharmony_ci#define CCE_CTRL_SPC_FREEZE_SMASK 0x100ull 5028c2ecf20Sopenharmony_ci#define CCE_CTRL_SPC_UNFREEZE_SMASK 0x200ull 5038c2ecf20Sopenharmony_ci#define CCE_CTRL_TXE_RESUME_SMASK 0x2000ull 5048c2ecf20Sopenharmony_ci#define CCE_DC_CTRL (CCE + 0x0000000000B8) 5058c2ecf20Sopenharmony_ci#define CCE_DC_CTRL_DC_RESET_SMASK 0x1ull 5068c2ecf20Sopenharmony_ci#define CCE_DC_CTRL_RESETCSR 0x0000000000000001ull 5078c2ecf20Sopenharmony_ci#define CCE_ERR_CLEAR (CCE + 0x000000000050) 5088c2ecf20Sopenharmony_ci#define CCE_ERR_MASK (CCE + 0x000000000048) 5098c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS (CCE + 0x000000000040) 5108c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI0_ASYNC_FIFO_PARITY_ERR_SMASK 0x40ull 5118c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_DBG_PARITY_ERROR_SMASK 0x1000ull 5128c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_PIO_CRDT_PARITY_ERR_SMASK \ 5138c2ecf20Sopenharmony_ci 0x200ull 5148c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_RXDMA_PARITY_ERROR_SMASK \ 5158c2ecf20Sopenharmony_ci 0x800ull 5168c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_SDMA_HD_PARITY_ERR_SMASK \ 5178c2ecf20Sopenharmony_ci 0x400ull 5188c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI2_ASYNC_FIFO_PARITY_ERR_SMASK 0x100ull 5198c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_CFG_BUS_PARITY_ERR_SMASK 0x80ull 5208c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_PARITY_ERR_SMASK 0x1ull 5218c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_READ_BAD_ADDR_ERR_SMASK 0x2ull 5228c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_WRITE_BAD_ADDR_ERR_SMASK 0x4ull 5238c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_INT_MAP_COR_ERR_SMASK 0x4000000000ull 5248c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_INT_MAP_UNC_ERR_SMASK 0x8000000000ull 5258c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_MSIX_CSR_PARITY_ERR_SMASK 0x10000000000ull 5268c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_MSIX_TABLE_COR_ERR_SMASK 0x1000000000ull 5278c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_MSIX_TABLE_UNC_ERR_SMASK 0x2000000000ull 5288c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_RCPL_ASYNC_FIFO_PARITY_ERR_SMASK 0x400000000ull 5298c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_RSPD_DATA_PARITY_ERR_SMASK 0x20ull 5308c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_RXDMA_CONV_FIFO_PARITY_ERR_SMASK 0x800000000ull 5318c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_SEG_READ_BAD_ADDR_ERR_SMASK 0x100000000ull 5328c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_SEG_WRITE_BAD_ADDR_ERR_SMASK 0x200000000ull 5338c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_TRGT_ACCESS_ERR_SMASK 0x10ull 5348c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_TRGT_ASYNC_FIFO_PARITY_ERR_SMASK 0x8ull 5358c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_CCE_TRGT_CPL_TIMEOUT_ERR_SMASK 0x40000000ull 5368c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_LA_TRIGGERED_SMASK 0x80000000ull 5378c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_DAT_QCOR_ERR_SMASK 0x40000ull 5388c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_DAT_QUNC_ERR_SMASK 0x4000000ull 5398c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_HD_QCOR_ERR_SMASK 0x20000ull 5408c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_HD_QUNC_ERR_SMASK 0x2000000ull 5418c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_NPOST_DAT_QPARITY_ERR_SMASK 0x100000ull 5428c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_NPOST_HQ_PARITY_ERR_SMASK 0x80000ull 5438c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_DAT_QCOR_ERR_SMASK 0x10000ull 5448c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_DAT_QUNC_ERR_SMASK 0x1000000ull 5458c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_HD_QCOR_ERR_SMASK 0x8000ull 5468c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_HD_QUNC_ERR_SMASK 0x800000ull 5478c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RECEIVE_PARITY_ERR_SMASK 0x20000000ull 5488c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_MEM_COR_ERR_SMASK 0x2000ull 5498c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_MEM_UNC_ERR_SMASK 0x200000ull 5508c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_SOT_MEM_COR_ERR_SMASK 0x4000ull 5518c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_SOT_MEM_UNC_ERR_SMASK 0x400000ull 5528c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_TRANSMIT_BACK_PARITY_ERR_SMASK 0x10000000ull 5538c2ecf20Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_TRANSMIT_FRONT_PARITY_ERR_SMASK 0x8000000ull 5548c2ecf20Sopenharmony_ci#define CCE_INT_CLEAR (CCE + 0x000000110A00) 5558c2ecf20Sopenharmony_ci#define CCE_INT_COUNTER_ARRAY32 (CCE + 0x000000110D00) 5568c2ecf20Sopenharmony_ci#define CCE_INT_FORCE (CCE + 0x000000110B00) 5578c2ecf20Sopenharmony_ci#define CCE_INT_MAP (CCE + 0x000000110500) 5588c2ecf20Sopenharmony_ci#define CCE_INT_MASK (CCE + 0x000000110900) 5598c2ecf20Sopenharmony_ci#define CCE_INT_STATUS (CCE + 0x000000110800) 5608c2ecf20Sopenharmony_ci#define CCE_MSIX_INT_GRANTED (CCE + 0x000000110200) 5618c2ecf20Sopenharmony_ci#define CCE_MSIX_TABLE_LOWER (CCE + 0x000000100000) 5628c2ecf20Sopenharmony_ci#define CCE_MSIX_TABLE_UPPER (CCE + 0x000000100008) 5638c2ecf20Sopenharmony_ci#define CCE_MSIX_TABLE_UPPER_RESETCSR 0x0000000100000000ull 5648c2ecf20Sopenharmony_ci#define CCE_MSIX_VEC_CLR_WITHOUT_INT (CCE + 0x000000110400) 5658c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL (CCE + 0x0000000000C0) 5668c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_BUNDLE_MASK 0x3ull 5678c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_BUNDLE_SHIFT 0 5688c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_DELAY_MASK 0xFull 5698c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_DELAY_SHIFT 2 5708c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_OVERWRITE_ENABLE_SHIFT 8 5718c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_SHIFT 9 5728c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_OVERWRITE_ENABLE_MASK 0x1ull 5738c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_OVERWRITE_ENABLE_SHIFT 12 5748c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_MASK 0x7ull 5758c2ecf20Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_SHIFT 13 5768c2ecf20Sopenharmony_ci#define CCE_REVISION (CCE + 0x000000000000) 5778c2ecf20Sopenharmony_ci#define CCE_REVISION2 (CCE + 0x000000000008) 5788c2ecf20Sopenharmony_ci#define CCE_REVISION2_HFI_ID_MASK 0x1ull 5798c2ecf20Sopenharmony_ci#define CCE_REVISION2_HFI_ID_SHIFT 0 5808c2ecf20Sopenharmony_ci#define CCE_REVISION2_IMPL_CODE_SHIFT 8 5818c2ecf20Sopenharmony_ci#define CCE_REVISION2_IMPL_REVISION_SHIFT 16 5828c2ecf20Sopenharmony_ci#define CCE_REVISION_BOARD_ID_LOWER_NIBBLE_MASK 0xFull 5838c2ecf20Sopenharmony_ci#define CCE_REVISION_BOARD_ID_LOWER_NIBBLE_SHIFT 32 5848c2ecf20Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MAJOR_MASK 0xFFull 5858c2ecf20Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MAJOR_SHIFT 8 5868c2ecf20Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MINOR_MASK 0xFFull 5878c2ecf20Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MINOR_SHIFT 0 5888c2ecf20Sopenharmony_ci#define CCE_REVISION_SW_MASK 0xFFull 5898c2ecf20Sopenharmony_ci#define CCE_REVISION_SW_SHIFT 24 5908c2ecf20Sopenharmony_ci#define CCE_SCRATCH (CCE + 0x000000000020) 5918c2ecf20Sopenharmony_ci#define CCE_STATUS (CCE + 0x000000000018) 5928c2ecf20Sopenharmony_ci#define CCE_STATUS_RXE_FROZE_SMASK 0x2ull 5938c2ecf20Sopenharmony_ci#define CCE_STATUS_RXE_PAUSED_SMASK 0x20ull 5948c2ecf20Sopenharmony_ci#define CCE_STATUS_SDMA_FROZE_SMASK 0x1ull 5958c2ecf20Sopenharmony_ci#define CCE_STATUS_SDMA_PAUSED_SMASK 0x10ull 5968c2ecf20Sopenharmony_ci#define CCE_STATUS_TXE_FROZE_SMASK 0x4ull 5978c2ecf20Sopenharmony_ci#define CCE_STATUS_TXE_PAUSED_SMASK 0x40ull 5988c2ecf20Sopenharmony_ci#define CCE_STATUS_TXE_PIO_FROZE_SMASK 0x8ull 5998c2ecf20Sopenharmony_ci#define CCE_STATUS_TXE_PIO_PAUSED_SMASK 0x80ull 6008c2ecf20Sopenharmony_ci#define MISC_CFG_FW_CTRL (MISC + 0x000000001000) 6018c2ecf20Sopenharmony_ci#define MISC_CFG_FW_CTRL_FW_8051_LOADED_SMASK 0x2ull 6028c2ecf20Sopenharmony_ci#define MISC_CFG_FW_CTRL_RSA_STATUS_SHIFT 2 6038c2ecf20Sopenharmony_ci#define MISC_CFG_FW_CTRL_RSA_STATUS_SMASK 0xCull 6048c2ecf20Sopenharmony_ci#define MISC_CFG_RSA_CMD (MISC + 0x000000000A08) 6058c2ecf20Sopenharmony_ci#define MISC_CFG_RSA_MODULUS (MISC + 0x000000000400) 6068c2ecf20Sopenharmony_ci#define MISC_CFG_RSA_MU (MISC + 0x000000000A10) 6078c2ecf20Sopenharmony_ci#define MISC_CFG_RSA_R2 (MISC + 0x000000000000) 6088c2ecf20Sopenharmony_ci#define MISC_CFG_RSA_SIGNATURE (MISC + 0x000000000200) 6098c2ecf20Sopenharmony_ci#define MISC_CFG_SHA_PRELOAD (MISC + 0x000000000A00) 6108c2ecf20Sopenharmony_ci#define MISC_ERR_CLEAR (MISC + 0x000000002010) 6118c2ecf20Sopenharmony_ci#define MISC_ERR_MASK (MISC + 0x000000002008) 6128c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS (MISC + 0x000000002000) 6138c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_PLL_LOCK_FAIL_ERR_SMASK 0x1000ull 6148c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_MBIST_FAIL_ERR_SMASK 0x800ull 6158c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_INVALID_EEP_CMD_ERR_SMASK 0x400ull 6168c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_DONE_PARITY_ERR_SMASK 0x200ull 6178c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_WRITE_ERR_SMASK 0x100ull 6188c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_READ_BAD_ADDR_ERR_SMASK 0x80ull 6198c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_CSR_PARITY_ERR_SMASK 0x40ull 6208c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_FW_AUTH_FAILED_ERR_SMASK 0x20ull 6218c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_KEY_MISMATCH_ERR_SMASK 0x10ull 6228c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_SBUS_WRITE_FAILED_ERR_SMASK 0x8ull 6238c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_CSR_WRITE_BAD_ADDR_ERR_SMASK 0x4ull 6248c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_CSR_READ_BAD_ADDR_ERR_SMASK 0x2ull 6258c2ecf20Sopenharmony_ci#define MISC_ERR_STATUS_MISC_CSR_PARITY_ERR_SMASK 0x1ull 6268c2ecf20Sopenharmony_ci#define PCI_CFG_MSIX0 (PCIE + 0x0000000000B0) 6278c2ecf20Sopenharmony_ci#define PCI_CFG_REG1 (PCIE + 0x000000000004) 6288c2ecf20Sopenharmony_ci#define PCI_CFG_REG11 (PCIE + 0x00000000002C) 6298c2ecf20Sopenharmony_ci#define PCIE_CFG_SPCIE1 (PCIE + 0x00000000014C) 6308c2ecf20Sopenharmony_ci#define PCIE_CFG_SPCIE2 (PCIE + 0x000000000150) 6318c2ecf20Sopenharmony_ci#define PCIE_CFG_TPH2 (PCIE + 0x000000000180) 6328c2ecf20Sopenharmony_ci#define RCV_ARRAY (RXE + 0x000000200000) 6338c2ecf20Sopenharmony_ci#define RCV_ARRAY_CNT (RXE + 0x000000000018) 6348c2ecf20Sopenharmony_ci#define RCV_ARRAY_RT_ADDR_MASK 0xFFFFFFFFFull 6358c2ecf20Sopenharmony_ci#define RCV_ARRAY_RT_ADDR_SHIFT 0 6368c2ecf20Sopenharmony_ci#define RCV_ARRAY_RT_BUF_SIZE_SHIFT 36 6378c2ecf20Sopenharmony_ci#define RCV_ARRAY_RT_WRITE_ENABLE_SMASK 0x8000000000000000ull 6388c2ecf20Sopenharmony_ci#define RCV_AVAIL_TIME_OUT (RXE + 0x000000100050) 6398c2ecf20Sopenharmony_ci#define RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_MASK 0xFFull 6408c2ecf20Sopenharmony_ci#define RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT 0 6418c2ecf20Sopenharmony_ci#define RCV_BTH_QP (RXE + 0x000000000028) 6428c2ecf20Sopenharmony_ci#define RCV_BTH_QP_KDETH_QP_MASK 0xFFull 6438c2ecf20Sopenharmony_ci#define RCV_BTH_QP_KDETH_QP_SHIFT 16 6448c2ecf20Sopenharmony_ci#define RCV_BYPASS (RXE + 0x000000000038) 6458c2ecf20Sopenharmony_ci#define RCV_BYPASS_HDR_SIZE_SHIFT 16 6468c2ecf20Sopenharmony_ci#define RCV_BYPASS_HDR_SIZE_MASK 0x1Full 6478c2ecf20Sopenharmony_ci#define RCV_BYPASS_HDR_SIZE_SMASK 0x1F0000ull 6488c2ecf20Sopenharmony_ci#define RCV_BYPASS_BYPASS_CONTEXT_SHIFT 0 6498c2ecf20Sopenharmony_ci#define RCV_BYPASS_BYPASS_CONTEXT_MASK 0xFFull 6508c2ecf20Sopenharmony_ci#define RCV_BYPASS_BYPASS_CONTEXT_SMASK 0xFFull 6518c2ecf20Sopenharmony_ci#define RCV_CONTEXTS (RXE + 0x000000000010) 6528c2ecf20Sopenharmony_ci#define RCV_COUNTER_ARRAY32 (RXE + 0x000000000400) 6538c2ecf20Sopenharmony_ci#define RCV_COUNTER_ARRAY64 (RXE + 0x000000000500) 6548c2ecf20Sopenharmony_ci#define RCV_CTRL (RXE + 0x000000000000) 6558c2ecf20Sopenharmony_ci#define RCV_CTRL_RCV_BYPASS_ENABLE_SMASK 0x10ull 6568c2ecf20Sopenharmony_ci#define RCV_CTRL_RCV_EXTENDED_PSN_ENABLE_SMASK 0x40ull 6578c2ecf20Sopenharmony_ci#define RCV_CTRL_RCV_PARTITION_KEY_ENABLE_SMASK 0x4ull 6588c2ecf20Sopenharmony_ci#define RCV_CTRL_RCV_PORT_ENABLE_SMASK 0x1ull 6598c2ecf20Sopenharmony_ci#define RCV_CTRL_RCV_QP_MAP_ENABLE_SMASK 0x2ull 6608c2ecf20Sopenharmony_ci#define RCV_CTRL_RCV_RSM_ENABLE_SMASK 0x20ull 6618c2ecf20Sopenharmony_ci#define RCV_CTRL_RX_RBUF_INIT_SMASK 0x200ull 6628c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL (RXE + 0x000000100000) 6638c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK 0x4ull 6648c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK 0x8ull 6658c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK 0x7ull 6668c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT 8 6678c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK 0x700ull 6688c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_ENABLE_SMASK 0x1ull 6698c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_INTR_AVAIL_SMASK 0x20ull 6708c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK 0x2ull 6718c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_TAIL_UPD_SMASK 0x40ull 6728c2ecf20Sopenharmony_ci#define RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK 0x10ull 6738c2ecf20Sopenharmony_ci#define RCV_CTXT_STATUS (RXE + 0x000000100008) 6748c2ecf20Sopenharmony_ci#define RCV_EGR_CTRL (RXE + 0x000000100010) 6758c2ecf20Sopenharmony_ci#define RCV_EGR_CTRL_EGR_BASE_INDEX_MASK 0x1FFFull 6768c2ecf20Sopenharmony_ci#define RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT 0 6778c2ecf20Sopenharmony_ci#define RCV_EGR_CTRL_EGR_CNT_MASK 0x1FFull 6788c2ecf20Sopenharmony_ci#define RCV_EGR_CTRL_EGR_CNT_SHIFT 32 6798c2ecf20Sopenharmony_ci#define RCV_EGR_INDEX_HEAD (RXE + 0x000000300018) 6808c2ecf20Sopenharmony_ci#define RCV_EGR_INDEX_HEAD_HEAD_MASK 0x7FFull 6818c2ecf20Sopenharmony_ci#define RCV_EGR_INDEX_HEAD_HEAD_SHIFT 0 6828c2ecf20Sopenharmony_ci#define RCV_ERR_CLEAR (RXE + 0x000000000070) 6838c2ecf20Sopenharmony_ci#define RCV_ERR_INFO (RXE + 0x000000000050) 6848c2ecf20Sopenharmony_ci#define RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SC_SMASK 0x1Full 6858c2ecf20Sopenharmony_ci#define RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK 0x20ull 6868c2ecf20Sopenharmony_ci#define RCV_ERR_MASK (RXE + 0x000000000068) 6878c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS (RXE + 0x000000000060) 6888c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_CSR_PARITY_ERR_SMASK 0x8000000000000000ull 6898c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_CSR_READ_BAD_ADDR_ERR_SMASK 0x2000000000000000ull 6908c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_CSR_WRITE_BAD_ADDR_ERR_SMASK \ 6918c2ecf20Sopenharmony_ci 0x4000000000000000ull 6928c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DC_INTF_PARITY_ERR_SMASK 0x2ull 6938c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DC_SOP_EOP_PARITY_ERR_SMASK 0x200ull 6948c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_CSR_COR_ERR_SMASK 0x1ull 6958c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_CSR_PARITY_ERR_SMASK 0x200000000000000ull 6968c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_CSR_UNC_ERR_SMASK 0x1000000000000000ull 6978c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_DATA_FIFO_RD_COR_ERR_SMASK \ 6988c2ecf20Sopenharmony_ci 0x40000000000000ull 6998c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_DATA_FIFO_RD_UNC_ERR_SMASK \ 7008c2ecf20Sopenharmony_ci 0x20000000000000ull 7018c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_DQ_FSM_ENCODING_ERR_SMASK \ 7028c2ecf20Sopenharmony_ci 0x800000000000000ull 7038c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_EQ_FSM_ENCODING_ERR_SMASK \ 7048c2ecf20Sopenharmony_ci 0x400000000000000ull 7058c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_FLAG_COR_ERR_SMASK 0x800ull 7068c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_FLAG_UNC_ERR_SMASK 0x400ull 7078c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_HDR_FIFO_RD_COR_ERR_SMASK 0x10000000000000ull 7088c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_HDR_FIFO_RD_UNC_ERR_SMASK 0x8000000000000ull 7098c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_HQ_INTR_CSR_PARITY_ERR_SMASK 0x200000000000ull 7108c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_HQ_INTR_FSM_ERR_SMASK 0x400000000000ull 7118c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_CSR_PARITY_ERR_SMASK 0x100000000000ull 7128c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_DES_PART1_UNC_COR_ERR_SMASK \ 7138c2ecf20Sopenharmony_ci 0x10000000000ull 7148c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_DES_PART1_UNC_ERR_SMASK 0x8000000000ull 7158c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_DES_PART2_PARITY_ERR_SMASK \ 7168c2ecf20Sopenharmony_ci 0x20000000000ull 7178c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_RCV_ARRAY_COR_ERR_SMASK 0x80000000000ull 7188c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_RCV_ARRAY_UNC_ERR_SMASK 0x40000000000ull 7198c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_BAD_LOOKUP_ERR_SMASK 0x40000000ull 7208c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_BLOCK_LIST_READ_COR_ERR_SMASK 0x100000ull 7218c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_BLOCK_LIST_READ_UNC_ERR_SMASK 0x80000ull 7228c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QENT_CNT_PARITY_ERR_SMASK 0x400000ull 7238c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QEOPDW_PARITY_ERR_SMASK 0x10000000ull 7248c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QHD_PTR_PARITY_ERR_SMASK 0x2000000ull 7258c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QHEAD_BUF_NUM_PARITY_ERR_SMASK \ 7268c2ecf20Sopenharmony_ci 0x200000ull 7278c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QNEXT_BUF_PARITY_ERR_SMASK 0x800000ull 7288c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QNUM_OF_PKT_PARITY_ERR_SMASK \ 7298c2ecf20Sopenharmony_ci 0x8000000ull 7308c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QTL_PTR_PARITY_ERR_SMASK 0x4000000ull 7318c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QVLD_BIT_PARITY_ERR_SMASK 0x1000000ull 7328c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CTX_ID_PARITY_ERR_SMASK 0x20000000ull 7338c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DATA_COR_ERR_SMASK 0x100000000000000ull 7348c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DATA_UNC_ERR_SMASK 0x80000000000000ull 7358c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART1_COR_ERR_SMASK 0x1000000000000ull 7368c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART1_UNC_ERR_SMASK 0x800000000000ull 7378c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART2_COR_ERR_SMASK 0x4000000000000ull 7388c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART2_UNC_ERR_SMASK 0x2000000000000ull 7398c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_EMPTY_ERR_SMASK 0x100000000ull 7408c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_INITDONE_PARITY_ERR_SMASK 0x800000000ull 7418c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_INIT_WR_ADDR_PARITY_ERR_SMASK \ 7428c2ecf20Sopenharmony_ci 0x1000000000ull 7438c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_RD_ADDR_PARITY_ERR_SMASK 0x200000000ull 7448c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_WR_ADDR_PARITY_ERR_SMASK 0x400000000ull 7458c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FREE_LIST_COR_ERR_SMASK 0x4000ull 7468c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FREE_LIST_UNC_ERR_SMASK 0x2000ull 7478c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FULL_ERR_SMASK 0x80000000ull 7488c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_COR_ERR_SMASK 0x40000ull 7498c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_REG_UNC_COR_ERR_SMASK 0x10000ull 7508c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_REG_UNC_ERR_SMASK 0x8000ull 7518c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_UNC_ERR_SMASK 0x20000ull 7528c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_NEXT_FREE_BUF_COR_ERR_SMASK 0x4000000000ull 7538c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_NEXT_FREE_BUF_UNC_ERR_SMASK 0x2000000000ull 7548c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_CSR_PARITY_ERR_SMASK 0x100ull 7558c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_DATA_COR_ERR_SMASK 0x20ull 7568c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_DATA_UNC_ERR_SMASK 0x10ull 7578c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_FSM_ENCODING_ERR_SMASK 0x1000ull 7588c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_HDR_COR_ERR_SMASK 0x8ull 7598c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_HDR_UNC_ERR_SMASK 0x4ull 7608c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_QP_MAP_TABLE_COR_ERR_SMASK 0x80ull 7618c2ecf20Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_QP_MAP_TABLE_UNC_ERR_SMASK 0x40ull 7628c2ecf20Sopenharmony_ci#define RCV_HDR_ADDR (RXE + 0x000000100028) 7638c2ecf20Sopenharmony_ci#define RCV_HDR_CNT (RXE + 0x000000100030) 7648c2ecf20Sopenharmony_ci#define RCV_HDR_CNT_CNT_MASK 0x1FFull 7658c2ecf20Sopenharmony_ci#define RCV_HDR_CNT_CNT_SHIFT 0 7668c2ecf20Sopenharmony_ci#define RCV_HDR_ENT_SIZE (RXE + 0x000000100038) 7678c2ecf20Sopenharmony_ci#define RCV_HDR_ENT_SIZE_ENT_SIZE_MASK 0x7ull 7688c2ecf20Sopenharmony_ci#define RCV_HDR_ENT_SIZE_ENT_SIZE_SHIFT 0 7698c2ecf20Sopenharmony_ci#define RCV_HDR_HEAD (RXE + 0x000000300008) 7708c2ecf20Sopenharmony_ci#define RCV_HDR_HEAD_COUNTER_MASK 0xFFull 7718c2ecf20Sopenharmony_ci#define RCV_HDR_HEAD_COUNTER_SHIFT 32 7728c2ecf20Sopenharmony_ci#define RCV_HDR_HEAD_HEAD_MASK 0x7FFFFull 7738c2ecf20Sopenharmony_ci#define RCV_HDR_HEAD_HEAD_SHIFT 0 7748c2ecf20Sopenharmony_ci#define RCV_HDR_HEAD_HEAD_SMASK 0x7FFFFull 7758c2ecf20Sopenharmony_ci#define RCV_HDR_OVFL_CNT (RXE + 0x000000100058) 7768c2ecf20Sopenharmony_ci#define RCV_HDR_SIZE (RXE + 0x000000100040) 7778c2ecf20Sopenharmony_ci#define RCV_HDR_SIZE_HDR_SIZE_MASK 0x1Full 7788c2ecf20Sopenharmony_ci#define RCV_HDR_SIZE_HDR_SIZE_SHIFT 0 7798c2ecf20Sopenharmony_ci#define RCV_HDR_TAIL (RXE + 0x000000300000) 7808c2ecf20Sopenharmony_ci#define RCV_HDR_TAIL_ADDR (RXE + 0x000000100048) 7818c2ecf20Sopenharmony_ci#define RCV_KEY_CTRL (RXE + 0x000000100020) 7828c2ecf20Sopenharmony_ci#define RCV_KEY_CTRL_JOB_KEY_ENABLE_SMASK 0x200000000ull 7838c2ecf20Sopenharmony_ci#define RCV_KEY_CTRL_JOB_KEY_VALUE_MASK 0xFFFFull 7848c2ecf20Sopenharmony_ci#define RCV_KEY_CTRL_JOB_KEY_VALUE_SHIFT 0 7858c2ecf20Sopenharmony_ci#define RCV_MULTICAST (RXE + 0x000000000030) 7868c2ecf20Sopenharmony_ci#define RCV_PARTITION_KEY (RXE + 0x000000000200) 7878c2ecf20Sopenharmony_ci#define RCV_PARTITION_KEY_PARTITION_KEY_A_MASK 0xFFFFull 7888c2ecf20Sopenharmony_ci#define RCV_PARTITION_KEY_PARTITION_KEY_B_SHIFT 16 7898c2ecf20Sopenharmony_ci#define RCV_QP_MAP_TABLE (RXE + 0x000000000100) 7908c2ecf20Sopenharmony_ci#define RCV_RSM_CFG (RXE + 0x000000000600) 7918c2ecf20Sopenharmony_ci#define RCV_RSM_CFG_ENABLE_OR_CHAIN_RSM0_MASK 0x1ull 7928c2ecf20Sopenharmony_ci#define RCV_RSM_CFG_ENABLE_OR_CHAIN_RSM0_SHIFT 0 7938c2ecf20Sopenharmony_ci#define RCV_RSM_CFG_PACKET_TYPE_SHIFT 60 7948c2ecf20Sopenharmony_ci#define RCV_RSM_CFG_OFFSET_SHIFT 32 7958c2ecf20Sopenharmony_ci#define RCV_RSM_MAP_TABLE (RXE + 0x000000000900) 7968c2ecf20Sopenharmony_ci#define RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK 0xFFull 7978c2ecf20Sopenharmony_ci#define RCV_RSM_MATCH (RXE + 0x000000000800) 7988c2ecf20Sopenharmony_ci#define RCV_RSM_MATCH_MASK1_SHIFT 0 7998c2ecf20Sopenharmony_ci#define RCV_RSM_MATCH_MASK2_SHIFT 16 8008c2ecf20Sopenharmony_ci#define RCV_RSM_MATCH_VALUE1_SHIFT 8 8018c2ecf20Sopenharmony_ci#define RCV_RSM_MATCH_VALUE2_SHIFT 24 8028c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT (RXE + 0x000000000700) 8038c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT 0 8048c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT 16 8058c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT 32 8068c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT 44 8078c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT 48 8088c2ecf20Sopenharmony_ci#define RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT 60 8098c2ecf20Sopenharmony_ci#define RCV_STATUS (RXE + 0x000000000008) 8108c2ecf20Sopenharmony_ci#define RCV_STATUS_RX_PKT_IN_PROGRESS_SMASK 0x1ull 8118c2ecf20Sopenharmony_ci#define RCV_STATUS_RX_RBUF_INIT_DONE_SMASK 0x200ull 8128c2ecf20Sopenharmony_ci#define RCV_STATUS_RX_RBUF_PKT_PENDING_SMASK 0x40ull 8138c2ecf20Sopenharmony_ci#define RCV_TID_CTRL (RXE + 0x000000100018) 8148c2ecf20Sopenharmony_ci#define RCV_TID_CTRL_TID_BASE_INDEX_MASK 0x1FFFull 8158c2ecf20Sopenharmony_ci#define RCV_TID_CTRL_TID_BASE_INDEX_SHIFT 0 8168c2ecf20Sopenharmony_ci#define RCV_TID_CTRL_TID_PAIR_CNT_MASK 0x1FFull 8178c2ecf20Sopenharmony_ci#define RCV_TID_CTRL_TID_PAIR_CNT_SHIFT 32 8188c2ecf20Sopenharmony_ci#define RCV_TID_FLOW_TABLE (RXE + 0x000000300800) 8198c2ecf20Sopenharmony_ci#define RCV_VL15 (RXE + 0x000000000048) 8208c2ecf20Sopenharmony_ci#define SEND_BTH_QP (TXE + 0x0000000000A0) 8218c2ecf20Sopenharmony_ci#define SEND_BTH_QP_KDETH_QP_MASK 0xFFull 8228c2ecf20Sopenharmony_ci#define SEND_BTH_QP_KDETH_QP_SHIFT 16 8238c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS (TXE + 0x000000000510) 8248c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL0_RETURN_CREDIT_STATUS_SMASK \ 8258c2ecf20Sopenharmony_ci 0x1000000000000ull 8268c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL15_RETURN_CREDIT_STATUS_SMASK \ 8278c2ecf20Sopenharmony_ci 0x8000000000000000ull 8288c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL1_RETURN_CREDIT_STATUS_SMASK \ 8298c2ecf20Sopenharmony_ci 0x2000000000000ull 8308c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL2_RETURN_CREDIT_STATUS_SMASK \ 8318c2ecf20Sopenharmony_ci 0x4000000000000ull 8328c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL3_RETURN_CREDIT_STATUS_SMASK \ 8338c2ecf20Sopenharmony_ci 0x8000000000000ull 8348c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL4_RETURN_CREDIT_STATUS_SMASK \ 8358c2ecf20Sopenharmony_ci 0x10000000000000ull 8368c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL5_RETURN_CREDIT_STATUS_SMASK \ 8378c2ecf20Sopenharmony_ci 0x20000000000000ull 8388c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL6_RETURN_CREDIT_STATUS_SMASK \ 8398c2ecf20Sopenharmony_ci 0x40000000000000ull 8408c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL7_RETURN_CREDIT_STATUS_SMASK \ 8418c2ecf20Sopenharmony_ci 0x80000000000000ull 8428c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL (TXE + 0x000000000600) 8438c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL15 (TXE + 0x000000000678) 8448c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT 0 8458c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL_DEDICATED_LIMIT_VL_MASK 0xFFFFull 8468c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL_DEDICATED_LIMIT_VL_SHIFT 0 8478c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL_DEDICATED_LIMIT_VL_SMASK 0xFFFFull 8488c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL_SHARED_LIMIT_VL_MASK 0xFFFFull 8498c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL_SHARED_LIMIT_VL_SHIFT 16 8508c2ecf20Sopenharmony_ci#define SEND_CM_CREDIT_VL_SHARED_LIMIT_VL_SMASK 0xFFFF0000ull 8518c2ecf20Sopenharmony_ci#define SEND_CM_CTRL (TXE + 0x000000000500) 8528c2ecf20Sopenharmony_ci#define SEND_CM_CTRL_FORCE_CREDIT_MODE_SMASK 0x8ull 8538c2ecf20Sopenharmony_ci#define SEND_CM_CTRL_RESETCSR 0x0000000000000020ull 8548c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT (TXE + 0x000000000508) 8558c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_AU_MASK 0x7ull 8568c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_AU_SHIFT 16 8578c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_AU_SMASK 0x70000ull 8588c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_RESETCSR 0x0000094000030000ull 8598c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_MASK 0xFFFFull 8608c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SHIFT 0 8618c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK 0xFFFFull 8628c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_MASK 0xFFFFull 8638c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT 32 8648c2ecf20Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK 0xFFFF00000000ull 8658c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3 (TXE + 0x000000000520) 8668c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE0_SHIFT 0 8678c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE1_SHIFT 16 8688c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE2_SHIFT 32 8698c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE3_SHIFT 48 8708c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7 (TXE + 0x000000000528) 8718c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE4_SHIFT 0 8728c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE5_SHIFT 16 8738c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE6_SHIFT 32 8748c2ecf20Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE7_SHIFT 48 8758c2ecf20Sopenharmony_ci#define SEND_CM_REMOTE_AU_TABLE0_TO3 (TXE + 0x000000000530) 8768c2ecf20Sopenharmony_ci#define SEND_CM_REMOTE_AU_TABLE4_TO7 (TXE + 0x000000000538) 8778c2ecf20Sopenharmony_ci#define SEND_CM_TIMER_CTRL (TXE + 0x000000000518) 8788c2ecf20Sopenharmony_ci#define SEND_CONTEXTS (TXE + 0x000000000010) 8798c2ecf20Sopenharmony_ci#define SEND_CONTEXT_SET_CTRL (TXE + 0x000000000200) 8808c2ecf20Sopenharmony_ci#define SEND_COUNTER_ARRAY32 (TXE + 0x000000000300) 8818c2ecf20Sopenharmony_ci#define SEND_COUNTER_ARRAY64 (TXE + 0x000000000400) 8828c2ecf20Sopenharmony_ci#define SEND_CTRL (TXE + 0x000000000000) 8838c2ecf20Sopenharmony_ci#define SEND_CTRL_CM_RESET_SMASK 0x4ull 8848c2ecf20Sopenharmony_ci#define SEND_CTRL_SEND_ENABLE_SMASK 0x1ull 8858c2ecf20Sopenharmony_ci#define SEND_CTRL_UNSUPPORTED_VL_SHIFT 3 8868c2ecf20Sopenharmony_ci#define SEND_CTRL_UNSUPPORTED_VL_MASK 0xFFull 8878c2ecf20Sopenharmony_ci#define SEND_CTRL_UNSUPPORTED_VL_SMASK (SEND_CTRL_UNSUPPORTED_VL_MASK \ 8888c2ecf20Sopenharmony_ci << SEND_CTRL_UNSUPPORTED_VL_SHIFT) 8898c2ecf20Sopenharmony_ci#define SEND_CTRL_VL_ARBITER_ENABLE_SMASK 0x2ull 8908c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE (TXE + 0x000000100080) 8918c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_BYPASS_VL_MAPPING_SMASK 0x80ull 8928c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_ENABLE_SMASK 0x1ull 8938c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_JOB_KEY_SMASK 0x4ull 8948c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_OPCODE_SMASK 0x20ull 8958c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_PARTITION_KEY_SMASK 0x8ull 8968c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_SLID_SMASK 0x10ull 8978c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_VL_MAPPING_SMASK 0x40ull 8988c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_VL_SMASK 0x2ull 8998c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_BAD_PKT_LEN_SMASK 0x20000ull 9008c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_BYPASS_BAD_PKT_LEN_SMASK \ 9018c2ecf20Sopenharmony_ci 0x200000ull 9028c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_BYPASS_SMASK 0x800ull 9038c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_GRH_SMASK 0x400ull 9048c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_KDETH_PACKETS_SMASK 0x1000ull 9058c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_NON_KDETH_PACKETS_SMASK 0x2000ull 9068c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_PBC_STATIC_RATE_CONTROL_SMASK \ 9078c2ecf20Sopenharmony_ci 0x100000ull 9088c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_PBC_TEST_SMASK 0x10000ull 9098c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_RAW_IPV6_SMASK 0x200ull 9108c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_RAW_SMASK 0x100ull 9118c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_LONG_BYPASS_PACKETS_SMASK \ 9128c2ecf20Sopenharmony_ci 0x80000ull 9138c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_LONG_IB_PACKETS_SMASK \ 9148c2ecf20Sopenharmony_ci 0x40000ull 9158c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_SMALL_BYPASS_PACKETS_SMASK \ 9168c2ecf20Sopenharmony_ci 0x8000ull 9178c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_SMALL_IB_PACKETS_SMASK \ 9188c2ecf20Sopenharmony_ci 0x4000ull 9198c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY (TXE + 0x000000100090) 9208c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_ALLOW_PERMISSIVE_SMASK 0x100000000ull 9218c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_MASK_SMASK 0xFFFF0000ull 9228c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_VALUE_MASK 0xFFFFull 9238c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_VALUE_SHIFT 0 9248c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_OPCODE (TXE + 0x0000001000A8) 9258c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_OPCODE_MASK_SHIFT 8 9268c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_OPCODE_VALUE_SHIFT 0 9278c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_PARTITION_KEY (TXE + 0x000000100098) 9288c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_PARTITION_KEY_VALUE_MASK 0xFFFFull 9298c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_PARTITION_KEY_VALUE_SHIFT 0 9308c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_SLID (TXE + 0x0000001000A0) 9318c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_MASK_MASK 0xFFFFull 9328c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_MASK_SHIFT 16 9338c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_VALUE_MASK 0xFFFFull 9348c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_VALUE_SHIFT 0 9358c2ecf20Sopenharmony_ci#define SEND_CTXT_CHECK_VL (TXE + 0x000000100088) 9368c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL (TXE + 0x000000100010) 9378c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_CREDIT_INTR_SMASK 0x20000ull 9388c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_EARLY_RETURN_SMASK 0x10000ull 9398c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_THRESHOLD_MASK 0x7FFull 9408c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_THRESHOLD_SHIFT 0 9418c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_THRESHOLD_SMASK 0x7FFull 9428c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS (TXE + 0x000000100018) 9438c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS_CURRENT_FREE_COUNTER_MASK 0x7FFull 9448c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS_CURRENT_FREE_COUNTER_SHIFT 32 9458c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS_LAST_RETURNED_COUNTER_SMASK 0x7FFull 9468c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_FORCE (TXE + 0x000000100028) 9478c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_FORCE_FORCE_RETURN_SMASK 0x1ull 9488c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_RETURN_ADDR (TXE + 0x000000100020) 9498c2ecf20Sopenharmony_ci#define SEND_CTXT_CREDIT_RETURN_ADDR_ADDRESS_SMASK 0xFFFFFFFFFFC0ull 9508c2ecf20Sopenharmony_ci#define SEND_CTXT_CTRL (TXE + 0x000000100000) 9518c2ecf20Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_BASE_MASK 0x3FFFull 9528c2ecf20Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_BASE_SHIFT 32 9538c2ecf20Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_DEPTH_MASK 0x7FFull 9548c2ecf20Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_DEPTH_SHIFT 48 9558c2ecf20Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_ENABLE_SMASK 0x1ull 9568c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_CLEAR (TXE + 0x000000100050) 9578c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_MASK (TXE + 0x000000100048) 9588c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_STATUS (TXE + 0x000000100040) 9598c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_DISALLOWED_PACKET_ERR_SMASK 0x2ull 9608c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_INCONSISTENT_SOP_ERR_SMASK 0x1ull 9618c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_WRITE_CROSSES_BOUNDARY_ERR_SMASK 0x4ull 9628c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_WRITE_OUT_OF_BOUNDS_ERR_SMASK 0x10ull 9638c2ecf20Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_WRITE_OVERFLOW_ERR_SMASK 0x8ull 9648c2ecf20Sopenharmony_ci#define SEND_CTXT_STATUS (TXE + 0x000000100008) 9658c2ecf20Sopenharmony_ci#define SEND_CTXT_STATUS_CTXT_HALTED_SMASK 0x1ull 9668c2ecf20Sopenharmony_ci#define SEND_DMA_BASE_ADDR (TXE + 0x000000200010) 9678c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE (TXE + 0x000000200080) 9688c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_BYPASS_VL_MAPPING_SMASK 0x80ull 9698c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_ENABLE_SMASK 0x1ull 9708c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_JOB_KEY_SMASK 0x4ull 9718c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_OPCODE_SMASK 0x20ull 9728c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_PARTITION_KEY_SMASK 0x8ull 9738c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_SLID_SMASK 0x10ull 9748c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_VL_MAPPING_SMASK 0x40ull 9758c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_VL_SMASK 0x2ull 9768c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_BAD_PKT_LEN_SMASK 0x20000ull 9778c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_BYPASS_BAD_PKT_LEN_SMASK 0x200000ull 9788c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_PBC_STATIC_RATE_CONTROL_SMASK \ 9798c2ecf20Sopenharmony_ci 0x100000ull 9808c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_RAW_IPV6_SMASK 0x200ull 9818c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_RAW_SMASK 0x100ull 9828c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_LONG_BYPASS_PACKETS_SMASK \ 9838c2ecf20Sopenharmony_ci 0x80000ull 9848c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_LONG_IB_PACKETS_SMASK 0x40000ull 9858c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_SMALL_BYPASS_PACKETS_SMASK \ 9868c2ecf20Sopenharmony_ci 0x8000ull 9878c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_SMALL_IB_PACKETS_SMASK 0x4000ull 9888c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_JOB_KEY (TXE + 0x000000200090) 9898c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_OPCODE (TXE + 0x0000002000A8) 9908c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_PARTITION_KEY (TXE + 0x000000200098) 9918c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_SLID (TXE + 0x0000002000A0) 9928c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_SLID_MASK_MASK 0xFFFFull 9938c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_SLID_MASK_SHIFT 16 9948c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_SLID_VALUE_MASK 0xFFFFull 9958c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_SLID_VALUE_SHIFT 0 9968c2ecf20Sopenharmony_ci#define SEND_DMA_CHECK_VL (TXE + 0x000000200088) 9978c2ecf20Sopenharmony_ci#define SEND_DMA_CTRL (TXE + 0x000000200000) 9988c2ecf20Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_CLEANUP_SMASK 0x4ull 9998c2ecf20Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_ENABLE_SMASK 0x1ull 10008c2ecf20Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_HALT_SMASK 0x2ull 10018c2ecf20Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_INT_ENABLE_SMASK 0x8ull 10028c2ecf20Sopenharmony_ci#define SEND_DMA_DESC_CNT (TXE + 0x000000200050) 10038c2ecf20Sopenharmony_ci#define SEND_DMA_DESC_CNT_CNT_MASK 0xFFFFull 10048c2ecf20Sopenharmony_ci#define SEND_DMA_DESC_CNT_CNT_SHIFT 0 10058c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_CLEAR (TXE + 0x000000200070) 10068c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_CLEAR_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_MASK 0x1ull 10078c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_CLEAR_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_SHIFT 18 10088c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_MASK (TXE + 0x000000200068) 10098c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS (TXE + 0x000000200060) 10108c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_ASSEMBLY_UNC_ERR_SMASK 0x8000ull 10118c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_DESC_TABLE_UNC_ERR_SMASK 0x4000ull 10128c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_FIRST_DESC_ERR_SMASK 0x10ull 10138c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_GEN_MISMATCH_ERR_SMASK 0x2ull 10148c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HALT_ERR_SMASK 0x40ull 10158c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_ADDRESS_ERR_SMASK 0x800ull 10168c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_LENGTH_ERR_SMASK 0x1000ull 10178c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_SMASK \ 10188c2ecf20Sopenharmony_ci 0x40000ull 10198c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_SELECT_ERR_SMASK 0x400ull 10208c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_STORAGE_UNC_ERR_SMASK \ 10218c2ecf20Sopenharmony_ci 0x20000ull 10228c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_LENGTH_MISMATCH_ERR_SMASK 0x80ull 10238c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_MEM_READ_ERR_SMASK 0x20ull 10248c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_PACKET_DESC_OVERFLOW_ERR_SMASK \ 10258c2ecf20Sopenharmony_ci 0x100ull 10268c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_PACKET_TRACKING_UNC_ERR_SMASK \ 10278c2ecf20Sopenharmony_ci 0x10000ull 10288c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_TAIL_OUT_OF_BOUNDS_ERR_SMASK 0x8ull 10298c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_TIMEOUT_ERR_SMASK 0x2000ull 10308c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_TOO_LONG_ERR_SMASK 0x4ull 10318c2ecf20Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_WRONG_DW_ERR_SMASK 0x1ull 10328c2ecf20Sopenharmony_ci#define SEND_DMA_ENGINES (TXE + 0x000000000018) 10338c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_CLEAR (TXE + 0x000000000070) 10348c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_MASK (TXE + 0x000000000068) 10358c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_STATUS (TXE + 0x000000000060) 10368c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_CSR_PARITY_ERR_SMASK 0x2ull 10378c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_PCIE_REQ_TRACKING_COR_ERR_SMASK 0x8ull 10388c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_PCIE_REQ_TRACKING_UNC_ERR_SMASK 0x4ull 10398c2ecf20Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_RPY_TAG_ERR_SMASK 0x1ull 10408c2ecf20Sopenharmony_ci#define SEND_DMA_HEAD (TXE + 0x000000200028) 10418c2ecf20Sopenharmony_ci#define SEND_DMA_HEAD_ADDR (TXE + 0x000000200030) 10428c2ecf20Sopenharmony_ci#define SEND_DMA_LEN_GEN (TXE + 0x000000200018) 10438c2ecf20Sopenharmony_ci#define SEND_DMA_LEN_GEN_GENERATION_SHIFT 16 10448c2ecf20Sopenharmony_ci#define SEND_DMA_LEN_GEN_LENGTH_SHIFT 6 10458c2ecf20Sopenharmony_ci#define SEND_DMA_MEMORY (TXE + 0x0000002000B0) 10468c2ecf20Sopenharmony_ci#define SEND_DMA_MEMORY_SDMA_MEMORY_CNT_SHIFT 16 10478c2ecf20Sopenharmony_ci#define SEND_DMA_MEMORY_SDMA_MEMORY_INDEX_SHIFT 0 10488c2ecf20Sopenharmony_ci#define SEND_DMA_MEM_SIZE (TXE + 0x000000000028) 10498c2ecf20Sopenharmony_ci#define SEND_DMA_PRIORITY_THLD (TXE + 0x000000200038) 10508c2ecf20Sopenharmony_ci#define SEND_DMA_RELOAD_CNT (TXE + 0x000000200048) 10518c2ecf20Sopenharmony_ci#define SEND_DMA_STATUS (TXE + 0x000000200008) 10528c2ecf20Sopenharmony_ci#define SEND_DMA_STATUS_ENG_CLEANED_UP_SMASK 0x200000000000000ull 10538c2ecf20Sopenharmony_ci#define SEND_DMA_STATUS_ENG_HALTED_SMASK 0x100000000000000ull 10548c2ecf20Sopenharmony_ci#define SEND_DMA_TAIL (TXE + 0x000000200020) 10558c2ecf20Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS (TXE + 0x000000000800) 10568c2ecf20Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS_CTXT_EGRESS_HALT_STATUS_SMASK 0x10000ull 10578c2ecf20Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS_CTXT_EGRESS_PACKET_OCCUPANCY_SHIFT 0 10588c2ecf20Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS_CTXT_EGRESS_PACKET_OCCUPANCY_SMASK \ 10598c2ecf20Sopenharmony_ci 0x3FFFull 10608c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_CLEAR (TXE + 0x000000000090) 10618c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO (TXE + 0x000000000F00) 10628c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_BAD_PKT_LEN_ERR_SMASK 0x20000ull 10638c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_BYPASS_ERR_SMASK 0x800ull 10648c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_GRH_ERR_SMASK 0x400ull 10658c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_JOB_KEY_ERR_SMASK 0x4ull 10668c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_KDETH_PACKETS_ERR_SMASK 0x1000ull 10678c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_NON_KDETH_PACKETS_ERR_SMASK 0x2000ull 10688c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_OPCODE_ERR_SMASK 0x20ull 10698c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_PARTITION_KEY_ERR_SMASK 0x8ull 10708c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_PBC_STATIC_RATE_CONTROL_ERR_SMASK 0x100000ull 10718c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_PBC_TEST_ERR_SMASK 0x10000ull 10728c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_RAW_ERR_SMASK 0x100ull 10738c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_RAW_IPV6_ERR_SMASK 0x200ull 10748c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_SLID_ERR_SMASK 0x10ull 10758c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_LONG_BYPASS_PACKETS_ERR_SMASK 0x80000ull 10768c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_LONG_IB_PACKET_ERR_SMASK 0x40000ull 10778c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_SMALL_BYPASS_PACKETS_ERR_SMASK 0x8000ull 10788c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_SMALL_IB_PACKETS_ERR_SMASK 0x4000ull 10798c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_VL_ERR_SMASK 0x2ull 10808c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_VL_MAPPING_ERR_SMASK 0x40ull 10818c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_MASK (TXE + 0x000000000088) 10828c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_SOURCE (TXE + 0x000000000F08) 10838c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS (TXE + 0x000000000080) 10848c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CONFIG_PARITY_ERR_SMASK 0x8000ull 10858c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CREDIT_OVERRUN_ERR_SMASK \ 10868c2ecf20Sopenharmony_ci 0x200000000000000ull 10878c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CREDIT_RETURN_PARITY_ERR_SMASK \ 10888c2ecf20Sopenharmony_ci 0x20000000000ull 10898c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CREDIT_RETURN_VL_ERR_SMASK \ 10908c2ecf20Sopenharmony_ci 0x800000000000ull 10918c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_EGRESS_FIFO_COR_ERR_SMASK \ 10928c2ecf20Sopenharmony_ci 0x2000000000000000ull 10938c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_EGRESS_FIFO_UNC_ERR_SMASK \ 10948c2ecf20Sopenharmony_ci 0x200000000000ull 10958c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_EGRESS_FIFO_UNDERRUN_OR_PARITY_ERR_SMASK \ 10968c2ecf20Sopenharmony_ci 0x8ull 10978c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_HCRC_INSERTION_ERR_SMASK \ 10988c2ecf20Sopenharmony_ci 0x400000000000ull 10998c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_ILLEGAL_VL_ERR_SMASK 0x1000ull 11008c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_INCORRECT_LINK_STATE_ERR_SMASK 0x20ull 11018c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_CSR_PARITY_ERR_SMASK 0x2000ull 11028c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO0_COR_ERR_SMASK \ 11038c2ecf20Sopenharmony_ci 0x1000000000000ull 11048c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO0_UNC_OR_PARITY_ERR_SMASK \ 11058c2ecf20Sopenharmony_ci 0x100000000ull 11068c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO1_COR_ERR_SMASK \ 11078c2ecf20Sopenharmony_ci 0x2000000000000ull 11088c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO1_UNC_OR_PARITY_ERR_SMASK \ 11098c2ecf20Sopenharmony_ci 0x200000000ull 11108c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO2_COR_ERR_SMASK \ 11118c2ecf20Sopenharmony_ci 0x4000000000000ull 11128c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO2_UNC_OR_PARITY_ERR_SMASK \ 11138c2ecf20Sopenharmony_ci 0x400000000ull 11148c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO3_COR_ERR_SMASK \ 11158c2ecf20Sopenharmony_ci 0x8000000000000ull 11168c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO3_UNC_OR_PARITY_ERR_SMASK \ 11178c2ecf20Sopenharmony_ci 0x800000000ull 11188c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO4_COR_ERR_SMASK \ 11198c2ecf20Sopenharmony_ci 0x10000000000000ull 11208c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO4_UNC_OR_PARITY_ERR_SMASK \ 11218c2ecf20Sopenharmony_ci 0x1000000000ull 11228c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO5_COR_ERR_SMASK \ 11238c2ecf20Sopenharmony_ci 0x20000000000000ull 11248c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO5_UNC_OR_PARITY_ERR_SMASK \ 11258c2ecf20Sopenharmony_ci 0x2000000000ull 11268c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO6_COR_ERR_SMASK \ 11278c2ecf20Sopenharmony_ci 0x40000000000000ull 11288c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO6_UNC_OR_PARITY_ERR_SMASK \ 11298c2ecf20Sopenharmony_ci 0x4000000000ull 11308c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO7_COR_ERR_SMASK \ 11318c2ecf20Sopenharmony_ci 0x80000000000000ull 11328c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO7_UNC_OR_PARITY_ERR_SMASK \ 11338c2ecf20Sopenharmony_ci 0x8000000000ull 11348c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO8_COR_ERR_SMASK \ 11358c2ecf20Sopenharmony_ci 0x100000000000000ull 11368c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO8_UNC_OR_PARITY_ERR_SMASK \ 11378c2ecf20Sopenharmony_ci 0x10000000000ull 11388c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LINKDOWN_ERR_SMASK 0x10ull 11398c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_PIO_LAUNCH_INTF_PARITY_ERR_SMASK 0x80ull 11408c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_PKT_INTEGRITY_MEM_COR_ERR_SMASK 0x1ull 11418c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_PKT_INTEGRITY_MEM_UNC_ERR_SMASK 0x2ull 11428c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_PIO_MEMORY_COR_ERR_SMASK \ 11438c2ecf20Sopenharmony_ci 0x1000000000000000ull 11448c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_PIO_MEMORY_CSR_UNC_ERR_SMASK \ 11458c2ecf20Sopenharmony_ci 0x8000000000000000ull 11468c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_PIO_MEMORY_UNC_ERR_SMASK \ 11478c2ecf20Sopenharmony_ci 0x100000000000ull 11488c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_SDMA_MEMORY_COR_ERR_SMASK \ 11498c2ecf20Sopenharmony_ci 0x800000000000000ull 11508c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_SDMA_MEMORY_CSR_UNC_ERR_SMASK \ 11518c2ecf20Sopenharmony_ci 0x4000000000000000ull 11528c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_SDMA_MEMORY_UNC_ERR_SMASK \ 11538c2ecf20Sopenharmony_ci 0x80000000000ull 11548c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SB_HDR_COR_ERR_SMASK 0x400000000000000ull 11558c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SB_HDR_UNC_ERR_SMASK 0x40000000000ull 11568c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SBRD_CTL_CSR_PARITY_ERR_SMASK 0x4000ull 11578c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SBRD_CTL_STATE_MACHINE_PARITY_ERR_SMASK \ 11588c2ecf20Sopenharmony_ci 0x800ull 11598c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA0_DISALLOWED_PACKET_ERR_SMASK \ 11608c2ecf20Sopenharmony_ci 0x10000ull 11618c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA10_DISALLOWED_PACKET_ERR_SMASK \ 11628c2ecf20Sopenharmony_ci 0x4000000ull 11638c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA11_DISALLOWED_PACKET_ERR_SMASK \ 11648c2ecf20Sopenharmony_ci 0x8000000ull 11658c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA12_DISALLOWED_PACKET_ERR_SMASK \ 11668c2ecf20Sopenharmony_ci 0x10000000ull 11678c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA13_DISALLOWED_PACKET_ERR_SMASK \ 11688c2ecf20Sopenharmony_ci 0x20000000ull 11698c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA14_DISALLOWED_PACKET_ERR_SMASK \ 11708c2ecf20Sopenharmony_ci 0x40000000ull 11718c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA15_DISALLOWED_PACKET_ERR_SMASK \ 11728c2ecf20Sopenharmony_ci 0x80000000ull 11738c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA1_DISALLOWED_PACKET_ERR_SMASK \ 11748c2ecf20Sopenharmony_ci 0x20000ull 11758c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA2_DISALLOWED_PACKET_ERR_SMASK \ 11768c2ecf20Sopenharmony_ci 0x40000ull 11778c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA3_DISALLOWED_PACKET_ERR_SMASK \ 11788c2ecf20Sopenharmony_ci 0x80000ull 11798c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA4_DISALLOWED_PACKET_ERR_SMASK \ 11808c2ecf20Sopenharmony_ci 0x100000ull 11818c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA5_DISALLOWED_PACKET_ERR_SMASK \ 11828c2ecf20Sopenharmony_ci 0x200000ull 11838c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA6_DISALLOWED_PACKET_ERR_SMASK \ 11848c2ecf20Sopenharmony_ci 0x400000ull 11858c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA7_DISALLOWED_PACKET_ERR_SMASK \ 11868c2ecf20Sopenharmony_ci 0x800000ull 11878c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA8_DISALLOWED_PACKET_ERR_SMASK \ 11888c2ecf20Sopenharmony_ci 0x1000000ull 11898c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA9_DISALLOWED_PACKET_ERR_SMASK \ 11908c2ecf20Sopenharmony_ci 0x2000000ull 11918c2ecf20Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA_LAUNCH_INTF_PARITY_ERR_SMASK \ 11928c2ecf20Sopenharmony_ci 0x100ull 11938c2ecf20Sopenharmony_ci#define SEND_EGRESS_SEND_DMA_STATUS (TXE + 0x000000000E00) 11948c2ecf20Sopenharmony_ci#define SEND_EGRESS_SEND_DMA_STATUS_SDMA_EGRESS_PACKET_OCCUPANCY_SHIFT 0 11958c2ecf20Sopenharmony_ci#define SEND_EGRESS_SEND_DMA_STATUS_SDMA_EGRESS_PACKET_OCCUPANCY_SMASK \ 11968c2ecf20Sopenharmony_ci 0x3FFFull 11978c2ecf20Sopenharmony_ci#define SEND_ERR_CLEAR (TXE + 0x0000000000F0) 11988c2ecf20Sopenharmony_ci#define SEND_ERR_MASK (TXE + 0x0000000000E8) 11998c2ecf20Sopenharmony_ci#define SEND_ERR_STATUS (TXE + 0x0000000000E0) 12008c2ecf20Sopenharmony_ci#define SEND_ERR_STATUS_SEND_CSR_PARITY_ERR_SMASK 0x1ull 12018c2ecf20Sopenharmony_ci#define SEND_ERR_STATUS_SEND_CSR_READ_BAD_ADDR_ERR_SMASK 0x2ull 12028c2ecf20Sopenharmony_ci#define SEND_ERR_STATUS_SEND_CSR_WRITE_BAD_ADDR_ERR_SMASK 0x4ull 12038c2ecf20Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIMIT (TXE + 0x000000000030) 12048c2ecf20Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIMIT_LIMIT_MASK 0x3FFFull 12058c2ecf20Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIMIT_LIMIT_SHIFT 0 12068c2ecf20Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIST (TXE + 0x000000000180) 12078c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK0 (TXE + 0x0000000000D0) 12088c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK0_LEN_VL0_MASK 0xFFFull 12098c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK0_LEN_VL1_SHIFT 12 12108c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK1 (TXE + 0x0000000000D8) 12118c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL15_MASK 0xFFFull 12128c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL15_SHIFT 48 12138c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL4_MASK 0xFFFull 12148c2ecf20Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL5_SHIFT 12 12158c2ecf20Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST (TXE + 0x000000000100) 12168c2ecf20Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_VL_MASK 0x7ull 12178c2ecf20Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_VL_SHIFT 16 12188c2ecf20Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_WEIGHT_MASK 0xFFull 12198c2ecf20Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_WEIGHT_SHIFT 0 12208c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_CLEAR (TXE + 0x000000000050) 12218c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK 0x20000ull 12228c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_MASK (TXE + 0x000000000048) 12238c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS (TXE + 0x000000000040) 12248c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_BLOCK_QW_COUNT_PARITY_ERR_SMASK \ 12258c2ecf20Sopenharmony_ci 0x1000000ull 12268c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_CREDIT_RET_FIFO_PARITY_ERR_SMASK 0x8000ull 12278c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_CSR_PARITY_ERR_SMASK 0x4ull 12288c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_CURRENT_FREE_CNT_PARITY_ERR_SMASK \ 12298c2ecf20Sopenharmony_ci 0x100000000ull 12308c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_HOST_ADDR_MEM_COR_ERR_SMASK 0x100000ull 12318c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_HOST_ADDR_MEM_UNC_ERR_SMASK 0x80000ull 12328c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_INIT_SM_IN_ERR_SMASK 0x20000ull 12338c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_LAST_RETURNED_CNT_PARITY_ERR_SMASK \ 12348c2ecf20Sopenharmony_ci 0x200000000ull 12358c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PCC_FIFO_PARITY_ERR_SMASK 0x20ull 12368c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PCC_SOP_HEAD_PARITY_ERR_SMASK \ 12378c2ecf20Sopenharmony_ci 0x400000000ull 12388c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PEC_FIFO_PARITY_ERR_SMASK 0x40ull 12398c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PEC_SOP_HEAD_PARITY_ERR_SMASK \ 12408c2ecf20Sopenharmony_ci 0x800000000ull 12418c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PKT_EVICT_FIFO_PARITY_ERR_SMASK 0x200ull 12428c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PKT_EVICT_SM_OR_ARB_SM_ERR_SMASK 0x40000ull 12438c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PPMC_BQC_MEM_PARITY_ERR_SMASK 0x10000000ull 12448c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PPMC_PBL_FIFO_ERR_SMASK 0x10000ull 12458c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PPMC_SOP_LEN_ERR_SMASK 0x20000000ull 12468c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SB_MEM_FIFO0_ERR_SMASK 0x8ull 12478c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SB_MEM_FIFO1_ERR_SMASK 0x10ull 12488c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SBRDCTL_CRREL_PARITY_ERR_SMASK 0x80ull 12498c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SBRDCTRL_CRREL_FIFO_PARITY_ERR_SMASK \ 12508c2ecf20Sopenharmony_ci 0x100ull 12518c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SM_PKT_RESET_PARITY_ERR_SMASK 0x400ull 12528c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_STATE_MACHINE_ERR_SMASK 0x400000ull 12538c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_FIFO_PARITY_ERR_SMASK 0x8000000ull 12548c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VLF_SOP_PARITY_ERR_SMASK 0x4000000ull 12558c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VLF_VL_LEN_PARITY_ERR_SMASK 0x2000000ull 12568c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK0_COR_ERR_SMASK 0x2000ull 12578c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK0_UNC_ERR_SMASK 0x800ull 12588c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK1_COR_ERR_SMASK 0x4000ull 12598c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK1_UNC_ERR_SMASK 0x1000ull 12608c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_ADDR_PARITY_ERR_SMASK 0x2ull 12618c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_BAD_CTXT_ERR_SMASK 0x1ull 12628c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_DATA_PARITY_ERR_SMASK 0x200000ull 12638c2ecf20Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_QW_VALID_PARITY_ERR_SMASK 0x800000ull 12648c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT (TXE + 0x000000000038) 12658c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK 0x1ull 12668c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_CTXT_NUM_MASK 0xFFull 12678c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_CTXT_NUM_SHIFT 8 12688c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK 0x8ull 12698c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK 0x4ull 12708c2ecf20Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_SINGLE_CTXT_INIT_SMASK 0x2ull 12718c2ecf20Sopenharmony_ci#define SEND_PIO_MEM_SIZE (TXE + 0x000000000020) 12728c2ecf20Sopenharmony_ci#define SEND_SC2VLT0 (TXE + 0x0000000000B0) 12738c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC0_SHIFT 0 12748c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC1_SHIFT 8 12758c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC2_SHIFT 16 12768c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC3_SHIFT 24 12778c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC4_SHIFT 32 12788c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC5_SHIFT 40 12798c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC6_SHIFT 48 12808c2ecf20Sopenharmony_ci#define SEND_SC2VLT0_SC7_SHIFT 56 12818c2ecf20Sopenharmony_ci#define SEND_SC2VLT1 (TXE + 0x0000000000B8) 12828c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC10_SHIFT 16 12838c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC11_SHIFT 24 12848c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC12_SHIFT 32 12858c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC13_SHIFT 40 12868c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC14_SHIFT 48 12878c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC15_SHIFT 56 12888c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC8_SHIFT 0 12898c2ecf20Sopenharmony_ci#define SEND_SC2VLT1_SC9_SHIFT 8 12908c2ecf20Sopenharmony_ci#define SEND_SC2VLT2 (TXE + 0x0000000000C0) 12918c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC16_SHIFT 0 12928c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC17_SHIFT 8 12938c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC18_SHIFT 16 12948c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC19_SHIFT 24 12958c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC20_SHIFT 32 12968c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC21_SHIFT 40 12978c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC22_SHIFT 48 12988c2ecf20Sopenharmony_ci#define SEND_SC2VLT2_SC23_SHIFT 56 12998c2ecf20Sopenharmony_ci#define SEND_SC2VLT3 (TXE + 0x0000000000C8) 13008c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC24_SHIFT 0 13018c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC25_SHIFT 8 13028c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC26_SHIFT 16 13038c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC27_SHIFT 24 13048c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC28_SHIFT 32 13058c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC29_SHIFT 40 13068c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC30_SHIFT 48 13078c2ecf20Sopenharmony_ci#define SEND_SC2VLT3_SC31_SHIFT 56 13088c2ecf20Sopenharmony_ci#define SEND_STATIC_RATE_CONTROL (TXE + 0x0000000000A8) 13098c2ecf20Sopenharmony_ci#define SEND_STATIC_RATE_CONTROL_CSR_SRC_RELOAD_SHIFT 0 13108c2ecf20Sopenharmony_ci#define SEND_STATIC_RATE_CONTROL_CSR_SRC_RELOAD_SMASK 0xFFFFull 13118c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL2 (PCIE + 0x000000000708) 13128c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL3 (PCIE + 0x00000000070C) 13138c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL3_L1_ENT_LATENCY_SHIFT 27 13148c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL3_L1_ENT_LATENCY_SMASK 0x38000000 13158c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL102 (PCIE + 0x000000000898) 13168c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL102_GEN3_EQ_POST_CURSOR_PSET_SHIFT 12 13178c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL102_GEN3_EQ_CURSOR_PSET_SHIFT 6 13188c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL102_GEN3_EQ_PRE_CURSOR_PSET_SHIFT 0 13198c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL103 (PCIE + 0x00000000089C) 13208c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL105 (PCIE + 0x0000000008A4) 13218c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL105_GEN3_EQ_VIOLATE_COEF_RULES_SMASK 0x1ull 13228c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL2_LOW_PWR_ENT_CNT_SHIFT 24 13238c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL100 (PCIE + 0x000000000890) 13248c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL100_EQ_EIEOS_CNT_SMASK 0x400ull 13258c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL101 (PCIE + 0x000000000894) 13268c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL101_GEN3_EQ_LOCAL_FS_SHIFT 6 13278c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL101_GEN3_EQ_LOCAL_LF_SHIFT 0 13288c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL106 (PCIE + 0x0000000008A8) 13298c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL106_GEN3_EQ_PSET_REQ_VEC_SHIFT 8 13308c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL106_GEN3_EQ_EVAL2MS_DISABLE_SMASK 0x20ull 13318c2ecf20Sopenharmony_ci#define PCIE_CFG_REG_PL106_GEN3_EQ_PHASE23_EXIT_MODE_SMASK 0x10ull 13328c2ecf20Sopenharmony_ci#define CCE_INT_BLOCKED (CCE + 0x000000110C00) 13338c2ecf20Sopenharmony_ci#define SEND_DMA_IDLE_CNT (TXE + 0x000000200040) 13348c2ecf20Sopenharmony_ci#define SEND_DMA_DESC_FETCHED_CNT (TXE + 0x000000200058) 13358c2ecf20Sopenharmony_ci#define CCE_MSIX_PBA_OFFSET 0X0110000 13368c2ecf20Sopenharmony_ci 13378c2ecf20Sopenharmony_ci#endif /* DEF_CHIP_REG */ 1338