162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright(c) 2015, 2016 Intel Corporation. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef DEF_CHIP_REG 762306a36Sopenharmony_ci#define DEF_CHIP_REG 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define CORE 0x000000000000 1062306a36Sopenharmony_ci#define CCE (CORE + 0x000000000000) 1162306a36Sopenharmony_ci#define ASIC (CORE + 0x000000400000) 1262306a36Sopenharmony_ci#define MISC (CORE + 0x000000500000) 1362306a36Sopenharmony_ci#define DC_TOP_CSRS (CORE + 0x000000600000) 1462306a36Sopenharmony_ci#define CHIP_DEBUG (CORE + 0x000000700000) 1562306a36Sopenharmony_ci#define RXE (CORE + 0x000001000000) 1662306a36Sopenharmony_ci#define TXE (CORE + 0x000001800000) 1762306a36Sopenharmony_ci#define DCC_CSRS (DC_TOP_CSRS + 0x000000000000) 1862306a36Sopenharmony_ci#define DC_LCB_CSRS (DC_TOP_CSRS + 0x000000001000) 1962306a36Sopenharmony_ci#define DC_8051_CSRS (DC_TOP_CSRS + 0x000000002000) 2062306a36Sopenharmony_ci#define PCIE 0 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define ASIC_NUM_SCRATCH 4 2362306a36Sopenharmony_ci#define CCE_ERR_INT_CNT 0 2462306a36Sopenharmony_ci#define CCE_MISC_INT_CNT 2 2562306a36Sopenharmony_ci#define CCE_NUM_32_BIT_COUNTERS 3 2662306a36Sopenharmony_ci#define CCE_NUM_32_BIT_INT_COUNTERS 6 2762306a36Sopenharmony_ci#define CCE_NUM_INT_CSRS 12 2862306a36Sopenharmony_ci#define CCE_NUM_INT_MAP_CSRS 96 2962306a36Sopenharmony_ci#define CCE_NUM_MSIX_PBAS 4 3062306a36Sopenharmony_ci#define CCE_NUM_MSIX_VECTORS 256 3162306a36Sopenharmony_ci#define CCE_NUM_SCRATCH 4 3262306a36Sopenharmony_ci#define CCE_PCIE_POSTED_CRDT_STALL_CNT 2 3362306a36Sopenharmony_ci#define CCE_PCIE_TRGT_STALL_CNT 0 3462306a36Sopenharmony_ci#define CCE_PIO_WR_STALL_CNT 1 3562306a36Sopenharmony_ci#define CCE_RCV_AVAIL_INT_CNT 3 3662306a36Sopenharmony_ci#define CCE_RCV_URGENT_INT_CNT 4 3762306a36Sopenharmony_ci#define CCE_SDMA_INT_CNT 1 3862306a36Sopenharmony_ci#define CCE_SEND_CREDIT_INT_CNT 5 3962306a36Sopenharmony_ci#define DCC_CFG_LED_CNTRL (DCC_CSRS + 0x000000000040) 4062306a36Sopenharmony_ci#define DCC_CFG_LED_CNTRL_LED_CNTRL_SMASK 0x10ull 4162306a36Sopenharmony_ci#define DCC_CFG_LED_CNTRL_LED_SW_BLINK_RATE_SHIFT 0 4262306a36Sopenharmony_ci#define DCC_CFG_LED_CNTRL_LED_SW_BLINK_RATE_SMASK 0xFull 4362306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG (DCC_CSRS + 0x000000000008) 4462306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1 (DCC_CSRS + 0x000000000010) 4562306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_DLID_MASK_MASK 0xFFFFull 4662306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_DLID_MASK_SHIFT 16 4762306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_DLID_MASK_SMASK 0xFFFF0000ull 4862306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_TARGET_DLID_MASK 0xFFFFull 4962306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_TARGET_DLID_SHIFT 0 5062306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG1_TARGET_DLID_SMASK 0xFFFFull 5162306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_LINK_STATE_MASK 0x7ull 5262306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_LINK_STATE_SHIFT 48 5362306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_LINK_STATE_SMASK 0x7000000000000ull 5462306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_MTU_CAP_MASK 0x7ull 5562306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_MTU_CAP_SHIFT 32 5662306a36Sopenharmony_ci#define DCC_CFG_PORT_CONFIG_MTU_CAP_SMASK 0x700000000ull 5762306a36Sopenharmony_ci#define DCC_CFG_RESET (DCC_CSRS + 0x000000000000) 5862306a36Sopenharmony_ci#define DCC_CFG_RESET_RESET_LCB BIT_ULL(0) 5962306a36Sopenharmony_ci#define DCC_CFG_RESET_RESET_TX_FPE BIT_ULL(1) 6062306a36Sopenharmony_ci#define DCC_CFG_RESET_RESET_RX_FPE BIT_ULL(2) 6162306a36Sopenharmony_ci#define DCC_CFG_RESET_RESET_8051 BIT_ULL(3) 6262306a36Sopenharmony_ci#define DCC_CFG_RESET_ENABLE_CCLK_BCC BIT_ULL(4) 6362306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0 (DCC_CSRS + 0x000000000028) 6462306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY0_SHIFT 0 6562306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY10_SHIFT 40 6662306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY11_SHIFT 44 6762306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY12_SHIFT 48 6862306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY13_SHIFT 52 6962306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY14_SHIFT 56 7062306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY15_SHIFT 60 7162306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY1_SHIFT 4 7262306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY2_SHIFT 8 7362306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY3_SHIFT 12 7462306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY4_SHIFT 16 7562306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY5_SHIFT 20 7662306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY6_SHIFT 24 7762306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY7_SHIFT 28 7862306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY8_SHIFT 32 7962306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_15_0_ENTRY9_SHIFT 36 8062306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16 (DCC_CSRS + 0x000000000030) 8162306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY16_SHIFT 0 8262306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY17_SHIFT 4 8362306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY18_SHIFT 8 8462306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY19_SHIFT 12 8562306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY20_SHIFT 16 8662306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY21_SHIFT 20 8762306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY22_SHIFT 24 8862306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY23_SHIFT 28 8962306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY24_SHIFT 32 9062306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY25_SHIFT 36 9162306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY26_SHIFT 40 9262306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY27_SHIFT 44 9362306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY28_SHIFT 48 9462306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY29_SHIFT 52 9562306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY30_SHIFT 56 9662306a36Sopenharmony_ci#define DCC_CFG_SC_VL_TABLE_31_16_ENTRY31_SHIFT 60 9762306a36Sopenharmony_ci#define DCC_ERR_DROPPED_PKT_CNT (DCC_CSRS + 0x000000000120) 9862306a36Sopenharmony_ci#define DCC_ERR_FLG (DCC_CSRS + 0x000000000050) 9962306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_CRDT_ACK_ERR_SMASK 0x4000ull 10062306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_CTRL_DIST_ERR_SMASK 0x200000ull 10162306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_CTRL_FLIT_ERR_SMASK 0x10000ull 10262306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_DLID_TARGET_ERR_SMASK 0x200ull 10362306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_HEAD_DIST_ERR_SMASK 0x800000ull 10462306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_L2_ERR_SMASK 0x2ull 10562306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_LVER_ERR_SMASK 0x400ull 10662306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_MID_TAIL_ERR_SMASK 0x8ull 10762306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_PKT_LENGTH_ERR_SMASK 0x4000000ull 10862306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_PREEMPTION_ERR_SMASK 0x10ull 10962306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_SC_ERR_SMASK 0x4ull 11062306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_TAIL_DIST_ERR_SMASK 0x400000ull 11162306a36Sopenharmony_ci#define DCC_ERR_FLG_BAD_VL_MARKER_ERR_SMASK 0x80ull 11262306a36Sopenharmony_ci#define DCC_ERR_FLG_CLR (DCC_CSRS + 0x000000000060) 11362306a36Sopenharmony_ci#define DCC_ERR_FLG_CSR_ACCESS_BLOCKED_HOST_SMASK 0x8000000000ull 11462306a36Sopenharmony_ci#define DCC_ERR_FLG_CSR_ACCESS_BLOCKED_UC_SMASK 0x10000000000ull 11562306a36Sopenharmony_ci#define DCC_ERR_FLG_CSR_INVAL_ADDR_SMASK 0x400000000000ull 11662306a36Sopenharmony_ci#define DCC_ERR_FLG_CSR_PARITY_ERR_SMASK 0x200000000000ull 11762306a36Sopenharmony_ci#define DCC_ERR_FLG_DLID_ZERO_ERR_SMASK 0x40000000ull 11862306a36Sopenharmony_ci#define DCC_ERR_FLG_EN (DCC_CSRS + 0x000000000058) 11962306a36Sopenharmony_ci#define DCC_ERR_FLG_EN_CSR_ACCESS_BLOCKED_HOST_SMASK 0x8000000000ull 12062306a36Sopenharmony_ci#define DCC_ERR_FLG_EN_CSR_ACCESS_BLOCKED_UC_SMASK 0x10000000000ull 12162306a36Sopenharmony_ci#define DCC_ERR_FLG_EVENT_CNTR_PARITY_ERR_SMASK 0x20000ull 12262306a36Sopenharmony_ci#define DCC_ERR_FLG_EVENT_CNTR_ROLLOVER_ERR_SMASK 0x40000ull 12362306a36Sopenharmony_ci#define DCC_ERR_FLG_FMCONFIG_ERR_SMASK 0x40000000000000ull 12462306a36Sopenharmony_ci#define DCC_ERR_FLG_FPE_TX_FIFO_OVFLW_ERR_SMASK 0x2000000000ull 12562306a36Sopenharmony_ci#define DCC_ERR_FLG_FPE_TX_FIFO_UNFLW_ERR_SMASK 0x4000000000ull 12662306a36Sopenharmony_ci#define DCC_ERR_FLG_LATE_EBP_ERR_SMASK 0x1000000000ull 12762306a36Sopenharmony_ci#define DCC_ERR_FLG_LATE_LONG_ERR_SMASK 0x800000000ull 12862306a36Sopenharmony_ci#define DCC_ERR_FLG_LATE_SHORT_ERR_SMASK 0x400000000ull 12962306a36Sopenharmony_ci#define DCC_ERR_FLG_LENGTH_MTU_ERR_SMASK 0x80000000ull 13062306a36Sopenharmony_ci#define DCC_ERR_FLG_LINK_ERR_SMASK 0x80000ull 13162306a36Sopenharmony_ci#define DCC_ERR_FLG_MISC_CNTR_ROLLOVER_ERR_SMASK 0x100000ull 13262306a36Sopenharmony_ci#define DCC_ERR_FLG_NONVL15_STATE_ERR_SMASK 0x1000000ull 13362306a36Sopenharmony_ci#define DCC_ERR_FLG_PERM_NVL15_ERR_SMASK 0x10000000ull 13462306a36Sopenharmony_ci#define DCC_ERR_FLG_PREEMPTION_ERR_SMASK 0x20ull 13562306a36Sopenharmony_ci#define DCC_ERR_FLG_PREEMPTIONVL15_ERR_SMASK 0x40ull 13662306a36Sopenharmony_ci#define DCC_ERR_FLG_RCVPORT_ERR_SMASK 0x80000000000000ull 13762306a36Sopenharmony_ci#define DCC_ERR_FLG_RX_BYTE_SHFT_PARITY_ERR_SMASK 0x1000000000000ull 13862306a36Sopenharmony_ci#define DCC_ERR_FLG_RX_CTRL_PARITY_MBE_ERR_SMASK 0x100000000000ull 13962306a36Sopenharmony_ci#define DCC_ERR_FLG_RX_EARLY_DROP_ERR_SMASK 0x200000000ull 14062306a36Sopenharmony_ci#define DCC_ERR_FLG_SLID_ZERO_ERR_SMASK 0x20000000ull 14162306a36Sopenharmony_ci#define DCC_ERR_FLG_TX_BYTE_SHFT_PARITY_ERR_SMASK 0x800000000000ull 14262306a36Sopenharmony_ci#define DCC_ERR_FLG_TX_CTRL_PARITY_ERR_SMASK 0x20000000000ull 14362306a36Sopenharmony_ci#define DCC_ERR_FLG_TX_CTRL_PARITY_MBE_ERR_SMASK 0x40000000000ull 14462306a36Sopenharmony_ci#define DCC_ERR_FLG_TX_SC_PARITY_ERR_SMASK 0x80000000000ull 14562306a36Sopenharmony_ci#define DCC_ERR_FLG_UNCORRECTABLE_ERR_SMASK 0x2000ull 14662306a36Sopenharmony_ci#define DCC_ERR_FLG_UNSUP_PKT_TYPE_SMASK 0x8000ull 14762306a36Sopenharmony_ci#define DCC_ERR_FLG_UNSUP_VL_ERR_SMASK 0x8000000ull 14862306a36Sopenharmony_ci#define DCC_ERR_FLG_VL15_MULTI_ERR_SMASK 0x2000000ull 14962306a36Sopenharmony_ci#define DCC_ERR_FMCONFIG_ERR_CNT (DCC_CSRS + 0x000000000110) 15062306a36Sopenharmony_ci#define DCC_ERR_INFO_FMCONFIG (DCC_CSRS + 0x000000000090) 15162306a36Sopenharmony_ci#define DCC_ERR_INFO_PORTRCV (DCC_CSRS + 0x000000000078) 15262306a36Sopenharmony_ci#define DCC_ERR_INFO_PORTRCV_HDR0 (DCC_CSRS + 0x000000000080) 15362306a36Sopenharmony_ci#define DCC_ERR_INFO_PORTRCV_HDR1 (DCC_CSRS + 0x000000000088) 15462306a36Sopenharmony_ci#define DCC_ERR_INFO_UNCORRECTABLE (DCC_CSRS + 0x000000000098) 15562306a36Sopenharmony_ci#define DCC_ERR_PORTRCV_ERR_CNT (DCC_CSRS + 0x000000000108) 15662306a36Sopenharmony_ci#define DCC_ERR_RCVREMOTE_PHY_ERR_CNT (DCC_CSRS + 0x000000000118) 15762306a36Sopenharmony_ci#define DCC_ERR_UNCORRECTABLE_CNT (DCC_CSRS + 0x000000000100) 15862306a36Sopenharmony_ci#define DCC_PRF_PORT_MARK_FECN_CNT (DCC_CSRS + 0x000000000330) 15962306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_BECN_CNT (DCC_CSRS + 0x000000000290) 16062306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_BUBBLE_CNT (DCC_CSRS + 0x0000000002E0) 16162306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_CORRECTABLE_CNT (DCC_CSRS + 0x000000000140) 16262306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_DATA_CNT (DCC_CSRS + 0x000000000198) 16362306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_FECN_CNT (DCC_CSRS + 0x000000000240) 16462306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_MULTICAST_PKT_CNT (DCC_CSRS + 0x000000000130) 16562306a36Sopenharmony_ci#define DCC_PRF_PORT_RCV_PKTS_CNT (DCC_CSRS + 0x0000000001A8) 16662306a36Sopenharmony_ci#define DCC_PRF_PORT_VL_MARK_FECN_CNT (DCC_CSRS + 0x000000000338) 16762306a36Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_BECN_CNT (DCC_CSRS + 0x000000000298) 16862306a36Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_BUBBLE_CNT (DCC_CSRS + 0x0000000002E8) 16962306a36Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_DATA_CNT (DCC_CSRS + 0x0000000001B0) 17062306a36Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_FECN_CNT (DCC_CSRS + 0x000000000248) 17162306a36Sopenharmony_ci#define DCC_PRF_PORT_VL_RCV_PKTS_CNT (DCC_CSRS + 0x0000000001F8) 17262306a36Sopenharmony_ci#define DCC_PRF_PORT_XMIT_CORRECTABLE_CNT (DCC_CSRS + 0x000000000138) 17362306a36Sopenharmony_ci#define DCC_PRF_PORT_XMIT_DATA_CNT (DCC_CSRS + 0x000000000190) 17462306a36Sopenharmony_ci#define DCC_PRF_PORT_XMIT_MULTICAST_CNT (DCC_CSRS + 0x000000000128) 17562306a36Sopenharmony_ci#define DCC_PRF_PORT_XMIT_PKTS_CNT (DCC_CSRS + 0x0000000001A0) 17662306a36Sopenharmony_ci#define DCC_PRF_RX_FLOW_CRTL_CNT (DCC_CSRS + 0x000000000180) 17762306a36Sopenharmony_ci#define DCC_PRF_TX_FLOW_CRTL_CNT (DCC_CSRS + 0x000000000188) 17862306a36Sopenharmony_ci#define DC_DC8051_CFG_CSR_ACCESS_SEL (DC_8051_CSRS + 0x000000000110) 17962306a36Sopenharmony_ci#define DC_DC8051_CFG_CSR_ACCESS_SEL_DCC_SMASK 0x2ull 18062306a36Sopenharmony_ci#define DC_DC8051_CFG_CSR_ACCESS_SEL_LCB_SMASK 0x1ull 18162306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0 (DC_8051_CSRS + 0x000000000118) 18262306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0_COMPLETED_SMASK 0x1ull 18362306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0_RETURN_CODE_SHIFT 8 18462306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_0_RSP_DATA_SHIFT 16 18562306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1 (DC_8051_CSRS + 0x000000000120) 18662306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_MASK 0xFFFFull 18762306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SHIFT 16 18862306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_DATA_SMASK 0xFFFF0000ull 18962306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_NEW_SMASK 0x1ull 19062306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_MASK 0xFFull 19162306a36Sopenharmony_ci#define DC_DC8051_CFG_EXT_DEV_1_REQ_TYPE_SHIFT 8 19262306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0 (DC_8051_CSRS + 0x000000000028) 19362306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_DATA_MASK 0xFFFFFFFFFFFFull 19462306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_DATA_SHIFT 16 19562306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_NEW_SMASK 0x1ull 19662306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_TYPE_MASK 0xFFull 19762306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_0_REQ_TYPE_SHIFT 8 19862306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1 (DC_8051_CSRS + 0x000000000030) 19962306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_COMPLETED_SMASK 0x1ull 20062306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RETURN_CODE_MASK 0xFFull 20162306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RETURN_CODE_SHIFT 8 20262306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RSP_DATA_MASK 0xFFFFFFFFFFFFull 20362306a36Sopenharmony_ci#define DC_DC8051_CFG_HOST_CMD_1_RSP_DATA_SHIFT 16 20462306a36Sopenharmony_ci#define DC_DC8051_CFG_LOCAL_GUID (DC_8051_CSRS + 0x000000000038) 20562306a36Sopenharmony_ci#define DC_DC8051_CFG_MODE (DC_8051_CSRS + 0x000000000070) 20662306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL (DC_8051_CSRS + 0x000000000008) 20762306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_ADDRESS_MASK 0x7FFFull 20862306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_ADDRESS_SHIFT 0 20962306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_WRITE_ENA_SMASK 0x1000000ull 21062306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_CTRL_READ_ENA_SMASK 0x10000ull 21162306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_SETUP (DC_8051_CSRS + 0x000000000000) 21262306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_SETUP_AUTO_INCR_ADDR_SMASK 0x100ull 21362306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_SETUP_RAM_SEL_SMASK 0x1ull 21462306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_STATUS (DC_8051_CSRS + 0x000000000018) 21562306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_STATUS_ACCESS_COMPLETED_SMASK 0x10000ull 21662306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_WR_DATA (DC_8051_CSRS + 0x000000000010) 21762306a36Sopenharmony_ci#define DC_DC8051_CFG_RAM_ACCESS_RD_DATA (DC_8051_CSRS + 0x000000000020) 21862306a36Sopenharmony_ci#define DC_DC8051_CFG_RST (DC_8051_CSRS + 0x000000000068) 21962306a36Sopenharmony_ci#define DC_DC8051_CFG_RST_CRAM_SMASK 0x2ull 22062306a36Sopenharmony_ci#define DC_DC8051_CFG_RST_DRAM_SMASK 0x4ull 22162306a36Sopenharmony_ci#define DC_DC8051_CFG_RST_IRAM_SMASK 0x8ull 22262306a36Sopenharmony_ci#define DC_DC8051_CFG_RST_M8051W_SMASK 0x1ull 22362306a36Sopenharmony_ci#define DC_DC8051_CFG_RST_SFR_SMASK 0x10ull 22462306a36Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051 (DC_8051_CSRS + 0x0000000000D8) 22562306a36Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_ERROR_MASK 0xFFFFFFFFull 22662306a36Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_ERROR_SHIFT 16 22762306a36Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_HOST_MSG_MASK 0xFFFFull 22862306a36Sopenharmony_ci#define DC_DC8051_DBG_ERR_INFO_SET_BY_8051_HOST_MSG_SHIFT 0 22962306a36Sopenharmony_ci#define DC_DC8051_ERR_CLR (DC_8051_CSRS + 0x0000000000E8) 23062306a36Sopenharmony_ci#define DC_DC8051_ERR_EN (DC_8051_CSRS + 0x0000000000F0) 23162306a36Sopenharmony_ci#define DC_DC8051_ERR_EN_LOST_8051_HEART_BEAT_SMASK 0x2ull 23262306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG (DC_8051_CSRS + 0x0000000000E0) 23362306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_CRAM_MBE_SMASK 0x4ull 23462306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_CRAM_SBE_SMASK 0x8ull 23562306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_DRAM_MBE_SMASK 0x10ull 23662306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_DRAM_SBE_SMASK 0x20ull 23762306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_INVALID_CSR_ADDR_SMASK 0x400ull 23862306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_IRAM_MBE_SMASK 0x40ull 23962306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_IRAM_SBE_SMASK 0x80ull 24062306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_LOST_8051_HEART_BEAT_SMASK 0x2ull 24162306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_SET_BY_8051_SMASK 0x1ull 24262306a36Sopenharmony_ci#define DC_DC8051_ERR_FLG_UNMATCHED_SECURE_MSG_ACROSS_BCC_LANES_SMASK 0x100ull 24362306a36Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE (DC_8051_CSRS + 0x000000000060) 24462306a36Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_FIRMWARE_MASK 0xFFull 24562306a36Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_FIRMWARE_SHIFT 16 24662306a36Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_PORT_MASK 0xFFull 24762306a36Sopenharmony_ci#define DC_DC8051_STS_CUR_STATE_PORT_SHIFT 0 24862306a36Sopenharmony_ci#define DC_DC8051_STS_LOCAL_FM_SECURITY (DC_8051_CSRS + 0x000000000050) 24962306a36Sopenharmony_ci#define DC_DC8051_STS_LOCAL_FM_SECURITY_DISABLED_MASK 0x1ull 25062306a36Sopenharmony_ci#define DC_DC8051_STS_REMOTE_FM_SECURITY (DC_8051_CSRS + 0x000000000058) 25162306a36Sopenharmony_ci#define DC_DC8051_STS_REMOTE_GUID (DC_8051_CSRS + 0x000000000040) 25262306a36Sopenharmony_ci#define DC_DC8051_STS_REMOTE_NODE_TYPE (DC_8051_CSRS + 0x000000000048) 25362306a36Sopenharmony_ci#define DC_DC8051_STS_REMOTE_NODE_TYPE_VAL_MASK 0x3ull 25462306a36Sopenharmony_ci#define DC_DC8051_STS_REMOTE_PORT_NO (DC_8051_CSRS + 0x000000000130) 25562306a36Sopenharmony_ci#define DC_DC8051_STS_REMOTE_PORT_NO_VAL_SMASK 0xFFull 25662306a36Sopenharmony_ci#define DC_LCB_CFG_ALLOW_LINK_UP (DC_LCB_CSRS + 0x000000000128) 25762306a36Sopenharmony_ci#define DC_LCB_CFG_ALLOW_LINK_UP_VAL_SHIFT 0 25862306a36Sopenharmony_ci#define DC_LCB_CFG_CRC_MODE (DC_LCB_CSRS + 0x000000000058) 25962306a36Sopenharmony_ci#define DC_LCB_CFG_CRC_MODE_TX_VAL_SHIFT 0 26062306a36Sopenharmony_ci#define DC_LCB_CFG_IGNORE_LOST_RCLK (DC_LCB_CSRS + 0x000000000020) 26162306a36Sopenharmony_ci#define DC_LCB_CFG_IGNORE_LOST_RCLK_EN_SMASK 0x1ull 26262306a36Sopenharmony_ci#define DC_LCB_CFG_LANE_WIDTH (DC_LCB_CSRS + 0x000000000100) 26362306a36Sopenharmony_ci#define DC_LCB_CFG_LINK_KILL_EN (DC_LCB_CSRS + 0x000000000120) 26462306a36Sopenharmony_ci#define DC_LCB_CFG_LINK_KILL_EN_FLIT_INPUT_BUF_MBE_SMASK 0x100000ull 26562306a36Sopenharmony_ci#define DC_LCB_CFG_LINK_KILL_EN_REPLAY_BUF_MBE_SMASK 0x400000ull 26662306a36Sopenharmony_ci#define DC_LCB_CFG_LN_DCLK (DC_LCB_CSRS + 0x000000000060) 26762306a36Sopenharmony_ci#define DC_LCB_CFG_LOOPBACK (DC_LCB_CSRS + 0x0000000000F8) 26862306a36Sopenharmony_ci#define DC_LCB_CFG_LOOPBACK_VAL_SHIFT 0 26962306a36Sopenharmony_ci#define DC_LCB_CFG_RUN (DC_LCB_CSRS + 0x000000000000) 27062306a36Sopenharmony_ci#define DC_LCB_CFG_RUN_EN_SHIFT 0 27162306a36Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR (DC_LCB_CSRS + 0x000000000018) 27262306a36Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR_DO_NOT_JUMP_VAL_SHIFT 8 27362306a36Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR_OK_TO_JUMP_VAL_SHIFT 4 27462306a36Sopenharmony_ci#define DC_LCB_CFG_RX_FIFOS_RADR_RST_VAL_SHIFT 0 27562306a36Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RADR (DC_LCB_CSRS + 0x000000000010) 27662306a36Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RADR_RST_VAL_SHIFT 0 27762306a36Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RESET (DC_LCB_CSRS + 0x000000000008) 27862306a36Sopenharmony_ci#define DC_LCB_CFG_TX_FIFOS_RESET_VAL_SHIFT 0 27962306a36Sopenharmony_ci#define DC_LCB_CFG_REINIT_AS_SLAVE (DC_LCB_CSRS + 0x000000000030) 28062306a36Sopenharmony_ci#define DC_LCB_CFG_CNT_FOR_SKIP_STALL (DC_LCB_CSRS + 0x000000000040) 28162306a36Sopenharmony_ci#define DC_LCB_CFG_CLK_CNTR (DC_LCB_CSRS + 0x000000000110) 28262306a36Sopenharmony_ci#define DC_LCB_ERR_CLR (DC_LCB_CSRS + 0x000000000308) 28362306a36Sopenharmony_ci#define DC_LCB_ERR_EN (DC_LCB_CSRS + 0x000000000310) 28462306a36Sopenharmony_ci#define DC_LCB_ERR_FLG (DC_LCB_CSRS + 0x000000000300) 28562306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_REDUNDANT_FLIT_PARITY_ERR_SMASK 0x20000000ull 28662306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_NEG_EDGE_LINK_TRANSFER_ACTIVE_SMASK 0x10000000ull 28762306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_HOLD_REINIT_SMASK 0x8000000ull 28862306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_RST_FOR_INCOMPLT_RND_TRIP_SMASK 0x4000000ull 28962306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_RST_FOR_LINK_TIMEOUT_SMASK 0x2000000ull 29062306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_CREDIT_RETURN_FLIT_MBE_SMASK 0x1000000ull 29162306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_REPLAY_BUF_SBE_SMASK 0x800000ull 29262306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_REPLAY_BUF_MBE_SMASK 0x400000ull 29362306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_FLIT_INPUT_BUF_SBE_SMASK 0x200000ull 29462306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_FLIT_INPUT_BUF_MBE_SMASK 0x100000ull 29562306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_VL_ACK_INPUT_WRONG_CRC_MODE_SMASK 0x80000ull 29662306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_VL_ACK_INPUT_PARITY_ERR_SMASK 0x40000ull 29762306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_VL_ACK_INPUT_BUF_OFLW_SMASK 0x20000ull 29862306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_FLIT_INPUT_BUF_OFLW_SMASK 0x10000ull 29962306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_ILLEGAL_FLIT_ENCODING_SMASK 0x8000ull 30062306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_ILLEGAL_NULL_LTP_SMASK 0x4000ull 30162306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_UNEXPECTED_ROUND_TRIP_MARKER_SMASK 0x2000ull 30262306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_UNEXPECTED_REPLAY_MARKER_SMASK 0x1000ull 30362306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_RCLK_STOPPED_SMASK 0x800ull 30462306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_CRC_ERR_CNT_HIT_LIMIT_SMASK 0x400ull 30562306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_REINIT_FOR_LN_DEGRADE_SMASK 0x200ull 30662306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_REINIT_FROM_PEER_SMASK 0x100ull 30762306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_SEQ_CRC_ERR_SMASK 0x80ull 30862306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_RX_LESS_THAN_FOUR_LNS_SMASK 0x40ull 30962306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_TX_LESS_THAN_FOUR_LNS_SMASK 0x20ull 31062306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_LOST_REINIT_STALL_OR_TOS_SMASK 0x10ull 31162306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_ALL_LNS_FAILED_REINIT_TEST_SMASK 0x8ull 31262306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_RST_FOR_FAILED_DESKEW_SMASK 0x4ull 31362306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_INVALID_CSR_ADDR_SMASK 0x2ull 31462306a36Sopenharmony_ci#define DC_LCB_ERR_FLG_CSR_PARITY_ERR_SMASK 0x1ull 31562306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN0 (DC_LCB_CSRS + 0x000000000328) 31662306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN1 (DC_LCB_CSRS + 0x000000000330) 31762306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN2 (DC_LCB_CSRS + 0x000000000338) 31862306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_LN3 (DC_LCB_CSRS + 0x000000000340) 31962306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_CRC_ERR_MULTI_LN (DC_LCB_CSRS + 0x000000000348) 32062306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_ESCAPE_0_ONLY_CNT (DC_LCB_CSRS + 0x000000000368) 32162306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_ESCAPE_0_PLUS1_CNT (DC_LCB_CSRS + 0x000000000370) 32262306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_ESCAPE_0_PLUS2_CNT (DC_LCB_CSRS + 0x000000000378) 32362306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_MISC_FLG_CNT (DC_LCB_CSRS + 0x000000000390) 32462306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_REINIT_FROM_PEER_CNT (DC_LCB_CSRS + 0x000000000380) 32562306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_RX_REPLAY_CNT (DC_LCB_CSRS + 0x000000000358) 32662306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_SBE_CNT (DC_LCB_CSRS + 0x000000000388) 32762306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_SEQ_CRC_CNT (DC_LCB_CSRS + 0x000000000360) 32862306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_TOTAL_CRC_ERR (DC_LCB_CSRS + 0x000000000320) 32962306a36Sopenharmony_ci#define DC_LCB_ERR_INFO_TX_REPLAY_CNT (DC_LCB_CSRS + 0x000000000350) 33062306a36Sopenharmony_ci#define DC_LCB_PG_DBG_FLIT_CRDTS_CNT (DC_LCB_CSRS + 0x000000000580) 33162306a36Sopenharmony_ci#define DC_LCB_PG_STS_PAUSE_COMPLETE_CNT (DC_LCB_CSRS + 0x0000000005F8) 33262306a36Sopenharmony_ci#define DC_LCB_PG_STS_TX_MBE_CNT (DC_LCB_CSRS + 0x000000000608) 33362306a36Sopenharmony_ci#define DC_LCB_PG_STS_TX_SBE_CNT (DC_LCB_CSRS + 0x000000000600) 33462306a36Sopenharmony_ci#define DC_LCB_PRF_ACCEPTED_LTP_CNT (DC_LCB_CSRS + 0x000000000408) 33562306a36Sopenharmony_ci#define DC_LCB_PRF_CLK_CNTR (DC_LCB_CSRS + 0x000000000420) 33662306a36Sopenharmony_ci#define DC_LCB_PRF_GOOD_LTP_CNT (DC_LCB_CSRS + 0x000000000400) 33762306a36Sopenharmony_ci#define DC_LCB_PRF_RX_FLIT_CNT (DC_LCB_CSRS + 0x000000000410) 33862306a36Sopenharmony_ci#define DC_LCB_PRF_TX_FLIT_CNT (DC_LCB_CSRS + 0x000000000418) 33962306a36Sopenharmony_ci#define DC_LCB_STS_LINK_TRANSFER_ACTIVE (DC_LCB_CSRS + 0x000000000468) 34062306a36Sopenharmony_ci#define DC_LCB_STS_ROUND_TRIP_LTP_CNT (DC_LCB_CSRS + 0x0000000004B0) 34162306a36Sopenharmony_ci#define RCV_LENGTH_ERR_CNT 0 34262306a36Sopenharmony_ci#define RCV_SHORT_ERR_CNT 2 34362306a36Sopenharmony_ci#define RCV_ICRC_ERR_CNT 6 34462306a36Sopenharmony_ci#define RCV_EBP_CNT 9 34562306a36Sopenharmony_ci#define RCV_BUF_OVFL_CNT 10 34662306a36Sopenharmony_ci#define RCV_CONTEXT_EGR_STALL 22 34762306a36Sopenharmony_ci#define RCV_DATA_PKT_CNT 0 34862306a36Sopenharmony_ci#define RCV_DWORD_CNT 1 34962306a36Sopenharmony_ci#define RCV_TID_FLOW_GEN_MISMATCH_CNT 20 35062306a36Sopenharmony_ci#define RCV_TID_FLOW_SEQ_MISMATCH_CNT 23 35162306a36Sopenharmony_ci#define RCV_TID_FULL_ERR_CNT 18 35262306a36Sopenharmony_ci#define RCV_TID_VALID_ERR_CNT 19 35362306a36Sopenharmony_ci#define RXE_NUM_32_BIT_COUNTERS 24 35462306a36Sopenharmony_ci#define RXE_NUM_64_BIT_COUNTERS 2 35562306a36Sopenharmony_ci#define RXE_NUM_RSM_INSTANCES 4 35662306a36Sopenharmony_ci#define RXE_NUM_TID_FLOWS 32 35762306a36Sopenharmony_ci#define RXE_PER_CONTEXT_OFFSET 0x0300000 35862306a36Sopenharmony_ci#define SEND_DATA_PKT_CNT 0 35962306a36Sopenharmony_ci#define SEND_DATA_PKT_VL0_CNT 12 36062306a36Sopenharmony_ci#define SEND_DATA_VL0_CNT 3 36162306a36Sopenharmony_ci#define SEND_DROPPED_PKT_CNT 5 36262306a36Sopenharmony_ci#define SEND_DWORD_CNT 1 36362306a36Sopenharmony_ci#define SEND_FLOW_STALL_CNT 4 36462306a36Sopenharmony_ci#define SEND_HEADERS_ERR_CNT 6 36562306a36Sopenharmony_ci#define SEND_LEN_ERR_CNT 1 36662306a36Sopenharmony_ci#define SEND_MAX_MIN_LEN_ERR_CNT 2 36762306a36Sopenharmony_ci#define SEND_UNDERRUN_CNT 3 36862306a36Sopenharmony_ci#define SEND_UNSUP_VL_ERR_CNT 0 36962306a36Sopenharmony_ci#define SEND_WAIT_CNT 2 37062306a36Sopenharmony_ci#define SEND_WAIT_VL0_CNT 21 37162306a36Sopenharmony_ci#define TXE_PIO_SEND_OFFSET 0x0800000 37262306a36Sopenharmony_ci#define ASIC_CFG_DRV_STR (ASIC + 0x000000000048) 37362306a36Sopenharmony_ci#define ASIC_CFG_MUTEX (ASIC + 0x000000000040) 37462306a36Sopenharmony_ci#define ASIC_CFG_SBUS_EXECUTE (ASIC + 0x000000000008) 37562306a36Sopenharmony_ci#define ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK 0x1ull 37662306a36Sopenharmony_ci#define ASIC_CFG_SBUS_EXECUTE_FAST_MODE_SMASK 0x2ull 37762306a36Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST (ASIC + 0x000000000000) 37862306a36Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_COMMAND_SHIFT 16 37962306a36Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_DATA_ADDR_SHIFT 8 38062306a36Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_DATA_IN_SHIFT 32 38162306a36Sopenharmony_ci#define ASIC_CFG_SBUS_REQUEST_RECEIVER_ADDR_SHIFT 0 38262306a36Sopenharmony_ci#define ASIC_CFG_SCRATCH (ASIC + 0x000000000020) 38362306a36Sopenharmony_ci#define ASIC_CFG_SCRATCH_1 (ASIC_CFG_SCRATCH + 0x08) 38462306a36Sopenharmony_ci#define ASIC_CFG_SCRATCH_2 (ASIC_CFG_SCRATCH + 0x10) 38562306a36Sopenharmony_ci#define ASIC_CFG_SCRATCH_3 (ASIC_CFG_SCRATCH + 0x18) 38662306a36Sopenharmony_ci#define ASIC_CFG_THERM_POLL_EN (ASIC + 0x000000000050) 38762306a36Sopenharmony_ci#define ASIC_EEP_ADDR_CMD (ASIC + 0x000000000308) 38862306a36Sopenharmony_ci#define ASIC_EEP_ADDR_CMD_EP_ADDR_MASK 0xFFFFFFull 38962306a36Sopenharmony_ci#define ASIC_EEP_CTL_STAT (ASIC + 0x000000000300) 39062306a36Sopenharmony_ci#define ASIC_EEP_CTL_STAT_EP_RESET_SMASK 0x4ull 39162306a36Sopenharmony_ci#define ASIC_EEP_CTL_STAT_RATE_SPI_SHIFT 8 39262306a36Sopenharmony_ci#define ASIC_EEP_CTL_STAT_RESETCSR 0x0000000083818000ull 39362306a36Sopenharmony_ci#define ASIC_EEP_DATA (ASIC + 0x000000000310) 39462306a36Sopenharmony_ci#define ASIC_GPIO_CLEAR (ASIC + 0x000000000230) 39562306a36Sopenharmony_ci#define ASIC_GPIO_FORCE (ASIC + 0x000000000238) 39662306a36Sopenharmony_ci#define ASIC_GPIO_IN (ASIC + 0x000000000200) 39762306a36Sopenharmony_ci#define ASIC_GPIO_INVERT (ASIC + 0x000000000210) 39862306a36Sopenharmony_ci#define ASIC_GPIO_MASK (ASIC + 0x000000000220) 39962306a36Sopenharmony_ci#define ASIC_GPIO_OE (ASIC + 0x000000000208) 40062306a36Sopenharmony_ci#define ASIC_GPIO_OUT (ASIC + 0x000000000218) 40162306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD (ASIC + 0x000000000100) 40262306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_INTRPT_CMD_SHIFT 0 40362306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_SBR_MODE_SMASK 0x400ull 40462306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_SBUS_RCVR_ADDR_SHIFT 2 40562306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_TIMER_MASK 0xFFFFFull 40662306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_CMD_TIMER_SHIFT 12 40762306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS (ASIC + 0x000000000108) 40862306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_ERR_MASK 0x7ull 40962306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_ERR_SHIFT 2 41062306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_STS_MASK 0x3ull 41162306a36Sopenharmony_ci#define ASIC_PCIE_SD_HOST_STATUS_FW_DNLD_STS_SHIFT 0 41262306a36Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_DATA_CODE (ASIC + 0x000000000110) 41362306a36Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_ENABLE (ASIC + 0x000000000118) 41462306a36Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_LIST (ASIC + 0x000000000180) 41562306a36Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_LIST_INTRPT_CODE_SHIFT 16 41662306a36Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_LIST_INTRPT_DATA_SHIFT 0 41762306a36Sopenharmony_ci#define ASIC_PCIE_SD_INTRPT_STATUS (ASIC + 0x000000000128) 41862306a36Sopenharmony_ci#define ASIC_QSFP1_CLEAR (ASIC + 0x000000000270) 41962306a36Sopenharmony_ci#define ASIC_QSFP1_FORCE (ASIC + 0x000000000278) 42062306a36Sopenharmony_ci#define ASIC_QSFP1_IN (ASIC + 0x000000000240) 42162306a36Sopenharmony_ci#define ASIC_QSFP1_INVERT (ASIC + 0x000000000250) 42262306a36Sopenharmony_ci#define ASIC_QSFP1_MASK (ASIC + 0x000000000260) 42362306a36Sopenharmony_ci#define ASIC_QSFP1_OE (ASIC + 0x000000000248) 42462306a36Sopenharmony_ci#define ASIC_QSFP1_OUT (ASIC + 0x000000000258) 42562306a36Sopenharmony_ci#define ASIC_QSFP1_STATUS (ASIC + 0x000000000268) 42662306a36Sopenharmony_ci#define ASIC_QSFP2_CLEAR (ASIC + 0x0000000002B0) 42762306a36Sopenharmony_ci#define ASIC_QSFP2_FORCE (ASIC + 0x0000000002B8) 42862306a36Sopenharmony_ci#define ASIC_QSFP2_IN (ASIC + 0x000000000280) 42962306a36Sopenharmony_ci#define ASIC_QSFP2_INVERT (ASIC + 0x000000000290) 43062306a36Sopenharmony_ci#define ASIC_QSFP2_MASK (ASIC + 0x0000000002A0) 43162306a36Sopenharmony_ci#define ASIC_QSFP2_OE (ASIC + 0x000000000288) 43262306a36Sopenharmony_ci#define ASIC_QSFP2_OUT (ASIC + 0x000000000298) 43362306a36Sopenharmony_ci#define ASIC_QSFP2_STATUS (ASIC + 0x0000000002A8) 43462306a36Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS (ASIC + 0x000000000018) 43562306a36Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_EXECUTE_CNT_MASK 0xFFFFull 43662306a36Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_EXECUTE_CNT_SHIFT 0 43762306a36Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_RCV_DATA_VALID_CNT_MASK 0xFFFFull 43862306a36Sopenharmony_ci#define ASIC_STS_SBUS_COUNTERS_RCV_DATA_VALID_CNT_SHIFT 16 43962306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT (ASIC + 0x000000000010) 44062306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_DONE_SMASK 0x1ull 44162306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK 0x2ull 44262306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_RESULT_CODE_SHIFT 2 44362306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_RESULT_CODE_MASK 0x7ull 44462306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_DATA_OUT_SHIFT 32 44562306a36Sopenharmony_ci#define ASIC_STS_SBUS_RESULT_DATA_OUT_MASK 0xFFFFFFFFull 44662306a36Sopenharmony_ci#define ASIC_STS_THERM (ASIC + 0x000000000058) 44762306a36Sopenharmony_ci#define ASIC_STS_THERM_CRIT_TEMP_MASK 0x7FFull 44862306a36Sopenharmony_ci#define ASIC_STS_THERM_CRIT_TEMP_SHIFT 18 44962306a36Sopenharmony_ci#define ASIC_STS_THERM_CURR_TEMP_MASK 0x7FFull 45062306a36Sopenharmony_ci#define ASIC_STS_THERM_CURR_TEMP_SHIFT 2 45162306a36Sopenharmony_ci#define ASIC_STS_THERM_HI_TEMP_MASK 0x7FFull 45262306a36Sopenharmony_ci#define ASIC_STS_THERM_HI_TEMP_SHIFT 50 45362306a36Sopenharmony_ci#define ASIC_STS_THERM_LO_TEMP_MASK 0x7FFull 45462306a36Sopenharmony_ci#define ASIC_STS_THERM_LO_TEMP_SHIFT 34 45562306a36Sopenharmony_ci#define ASIC_STS_THERM_LOW_SHIFT 13 45662306a36Sopenharmony_ci#define CCE_COUNTER_ARRAY32 (CCE + 0x000000000060) 45762306a36Sopenharmony_ci#define CCE_CTRL (CCE + 0x000000000010) 45862306a36Sopenharmony_ci#define CCE_CTRL_RXE_RESUME_SMASK 0x800ull 45962306a36Sopenharmony_ci#define CCE_CTRL_SPC_FREEZE_SMASK 0x100ull 46062306a36Sopenharmony_ci#define CCE_CTRL_SPC_UNFREEZE_SMASK 0x200ull 46162306a36Sopenharmony_ci#define CCE_CTRL_TXE_RESUME_SMASK 0x2000ull 46262306a36Sopenharmony_ci#define CCE_DC_CTRL (CCE + 0x0000000000B8) 46362306a36Sopenharmony_ci#define CCE_DC_CTRL_DC_RESET_SMASK 0x1ull 46462306a36Sopenharmony_ci#define CCE_DC_CTRL_RESETCSR 0x0000000000000001ull 46562306a36Sopenharmony_ci#define CCE_ERR_CLEAR (CCE + 0x000000000050) 46662306a36Sopenharmony_ci#define CCE_ERR_MASK (CCE + 0x000000000048) 46762306a36Sopenharmony_ci#define CCE_ERR_STATUS (CCE + 0x000000000040) 46862306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI0_ASYNC_FIFO_PARITY_ERR_SMASK 0x40ull 46962306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_DBG_PARITY_ERROR_SMASK 0x1000ull 47062306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_PIO_CRDT_PARITY_ERR_SMASK \ 47162306a36Sopenharmony_ci 0x200ull 47262306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_RXDMA_PARITY_ERROR_SMASK \ 47362306a36Sopenharmony_ci 0x800ull 47462306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI1_ASYNC_FIFO_SDMA_HD_PARITY_ERR_SMASK \ 47562306a36Sopenharmony_ci 0x400ull 47662306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CLI2_ASYNC_FIFO_PARITY_ERR_SMASK 0x100ull 47762306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_CFG_BUS_PARITY_ERR_SMASK 0x80ull 47862306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_PARITY_ERR_SMASK 0x1ull 47962306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_READ_BAD_ADDR_ERR_SMASK 0x2ull 48062306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_CSR_WRITE_BAD_ADDR_ERR_SMASK 0x4ull 48162306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_INT_MAP_COR_ERR_SMASK 0x4000000000ull 48262306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_INT_MAP_UNC_ERR_SMASK 0x8000000000ull 48362306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_MSIX_CSR_PARITY_ERR_SMASK 0x10000000000ull 48462306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_MSIX_TABLE_COR_ERR_SMASK 0x1000000000ull 48562306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_MSIX_TABLE_UNC_ERR_SMASK 0x2000000000ull 48662306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_RCPL_ASYNC_FIFO_PARITY_ERR_SMASK 0x400000000ull 48762306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_RSPD_DATA_PARITY_ERR_SMASK 0x20ull 48862306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_RXDMA_CONV_FIFO_PARITY_ERR_SMASK 0x800000000ull 48962306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_SEG_READ_BAD_ADDR_ERR_SMASK 0x100000000ull 49062306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_SEG_WRITE_BAD_ADDR_ERR_SMASK 0x200000000ull 49162306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_TRGT_ACCESS_ERR_SMASK 0x10ull 49262306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_TRGT_ASYNC_FIFO_PARITY_ERR_SMASK 0x8ull 49362306a36Sopenharmony_ci#define CCE_ERR_STATUS_CCE_TRGT_CPL_TIMEOUT_ERR_SMASK 0x40000000ull 49462306a36Sopenharmony_ci#define CCE_ERR_STATUS_LA_TRIGGERED_SMASK 0x80000000ull 49562306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_DAT_QCOR_ERR_SMASK 0x40000ull 49662306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_DAT_QUNC_ERR_SMASK 0x4000000ull 49762306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_HD_QCOR_ERR_SMASK 0x20000ull 49862306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_CPL_HD_QUNC_ERR_SMASK 0x2000000ull 49962306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_NPOST_DAT_QPARITY_ERR_SMASK 0x100000ull 50062306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_NPOST_HQ_PARITY_ERR_SMASK 0x80000ull 50162306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_DAT_QCOR_ERR_SMASK 0x10000ull 50262306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_DAT_QUNC_ERR_SMASK 0x1000000ull 50362306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_HD_QCOR_ERR_SMASK 0x8000ull 50462306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_POST_HD_QUNC_ERR_SMASK 0x800000ull 50562306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RECEIVE_PARITY_ERR_SMASK 0x20000000ull 50662306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_MEM_COR_ERR_SMASK 0x2000ull 50762306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_MEM_UNC_ERR_SMASK 0x200000ull 50862306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_SOT_MEM_COR_ERR_SMASK 0x4000ull 50962306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_RETRY_SOT_MEM_UNC_ERR_SMASK 0x400000ull 51062306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_TRANSMIT_BACK_PARITY_ERR_SMASK 0x10000000ull 51162306a36Sopenharmony_ci#define CCE_ERR_STATUS_PCIC_TRANSMIT_FRONT_PARITY_ERR_SMASK 0x8000000ull 51262306a36Sopenharmony_ci#define CCE_INT_CLEAR (CCE + 0x000000110A00) 51362306a36Sopenharmony_ci#define CCE_INT_COUNTER_ARRAY32 (CCE + 0x000000110D00) 51462306a36Sopenharmony_ci#define CCE_INT_FORCE (CCE + 0x000000110B00) 51562306a36Sopenharmony_ci#define CCE_INT_MAP (CCE + 0x000000110500) 51662306a36Sopenharmony_ci#define CCE_INT_MASK (CCE + 0x000000110900) 51762306a36Sopenharmony_ci#define CCE_INT_STATUS (CCE + 0x000000110800) 51862306a36Sopenharmony_ci#define CCE_MSIX_INT_GRANTED (CCE + 0x000000110200) 51962306a36Sopenharmony_ci#define CCE_MSIX_TABLE_LOWER (CCE + 0x000000100000) 52062306a36Sopenharmony_ci#define CCE_MSIX_TABLE_UPPER (CCE + 0x000000100008) 52162306a36Sopenharmony_ci#define CCE_MSIX_TABLE_UPPER_RESETCSR 0x0000000100000000ull 52262306a36Sopenharmony_ci#define CCE_MSIX_VEC_CLR_WITHOUT_INT (CCE + 0x000000110400) 52362306a36Sopenharmony_ci#define CCE_PCIE_CTRL (CCE + 0x0000000000C0) 52462306a36Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_BUNDLE_MASK 0x3ull 52562306a36Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_BUNDLE_SHIFT 0 52662306a36Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_DELAY_MASK 0xFull 52762306a36Sopenharmony_ci#define CCE_PCIE_CTRL_PCIE_LANE_DELAY_SHIFT 2 52862306a36Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_OVERWRITE_ENABLE_SHIFT 8 52962306a36Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_SHIFT 9 53062306a36Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_OVERWRITE_ENABLE_MASK 0x1ull 53162306a36Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_OVERWRITE_ENABLE_SHIFT 12 53262306a36Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_MASK 0x7ull 53362306a36Sopenharmony_ci#define CCE_PCIE_CTRL_XMT_MARGIN_GEN1_GEN2_SHIFT 13 53462306a36Sopenharmony_ci#define CCE_REVISION (CCE + 0x000000000000) 53562306a36Sopenharmony_ci#define CCE_REVISION2 (CCE + 0x000000000008) 53662306a36Sopenharmony_ci#define CCE_REVISION2_HFI_ID_MASK 0x1ull 53762306a36Sopenharmony_ci#define CCE_REVISION2_HFI_ID_SHIFT 0 53862306a36Sopenharmony_ci#define CCE_REVISION2_IMPL_CODE_SHIFT 8 53962306a36Sopenharmony_ci#define CCE_REVISION2_IMPL_REVISION_SHIFT 16 54062306a36Sopenharmony_ci#define CCE_REVISION_BOARD_ID_LOWER_NIBBLE_MASK 0xFull 54162306a36Sopenharmony_ci#define CCE_REVISION_BOARD_ID_LOWER_NIBBLE_SHIFT 32 54262306a36Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MAJOR_MASK 0xFFull 54362306a36Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MAJOR_SHIFT 8 54462306a36Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MINOR_MASK 0xFFull 54562306a36Sopenharmony_ci#define CCE_REVISION_CHIP_REV_MINOR_SHIFT 0 54662306a36Sopenharmony_ci#define CCE_REVISION_SW_MASK 0xFFull 54762306a36Sopenharmony_ci#define CCE_REVISION_SW_SHIFT 24 54862306a36Sopenharmony_ci#define CCE_SCRATCH (CCE + 0x000000000020) 54962306a36Sopenharmony_ci#define CCE_STATUS (CCE + 0x000000000018) 55062306a36Sopenharmony_ci#define CCE_STATUS_RXE_FROZE_SMASK 0x2ull 55162306a36Sopenharmony_ci#define CCE_STATUS_RXE_PAUSED_SMASK 0x20ull 55262306a36Sopenharmony_ci#define CCE_STATUS_SDMA_FROZE_SMASK 0x1ull 55362306a36Sopenharmony_ci#define CCE_STATUS_SDMA_PAUSED_SMASK 0x10ull 55462306a36Sopenharmony_ci#define CCE_STATUS_TXE_FROZE_SMASK 0x4ull 55562306a36Sopenharmony_ci#define CCE_STATUS_TXE_PAUSED_SMASK 0x40ull 55662306a36Sopenharmony_ci#define CCE_STATUS_TXE_PIO_FROZE_SMASK 0x8ull 55762306a36Sopenharmony_ci#define CCE_STATUS_TXE_PIO_PAUSED_SMASK 0x80ull 55862306a36Sopenharmony_ci#define MISC_CFG_FW_CTRL (MISC + 0x000000001000) 55962306a36Sopenharmony_ci#define MISC_CFG_FW_CTRL_FW_8051_LOADED_SMASK 0x2ull 56062306a36Sopenharmony_ci#define MISC_CFG_FW_CTRL_RSA_STATUS_SHIFT 2 56162306a36Sopenharmony_ci#define MISC_CFG_FW_CTRL_RSA_STATUS_SMASK 0xCull 56262306a36Sopenharmony_ci#define MISC_CFG_RSA_CMD (MISC + 0x000000000A08) 56362306a36Sopenharmony_ci#define MISC_CFG_RSA_MODULUS (MISC + 0x000000000400) 56462306a36Sopenharmony_ci#define MISC_CFG_RSA_MU (MISC + 0x000000000A10) 56562306a36Sopenharmony_ci#define MISC_CFG_RSA_R2 (MISC + 0x000000000000) 56662306a36Sopenharmony_ci#define MISC_CFG_RSA_SIGNATURE (MISC + 0x000000000200) 56762306a36Sopenharmony_ci#define MISC_CFG_SHA_PRELOAD (MISC + 0x000000000A00) 56862306a36Sopenharmony_ci#define MISC_ERR_CLEAR (MISC + 0x000000002010) 56962306a36Sopenharmony_ci#define MISC_ERR_MASK (MISC + 0x000000002008) 57062306a36Sopenharmony_ci#define MISC_ERR_STATUS (MISC + 0x000000002000) 57162306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_PLL_LOCK_FAIL_ERR_SMASK 0x1000ull 57262306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_MBIST_FAIL_ERR_SMASK 0x800ull 57362306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_INVALID_EEP_CMD_ERR_SMASK 0x400ull 57462306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_DONE_PARITY_ERR_SMASK 0x200ull 57562306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_WRITE_ERR_SMASK 0x100ull 57662306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_READ_BAD_ADDR_ERR_SMASK 0x80ull 57762306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_EFUSE_CSR_PARITY_ERR_SMASK 0x40ull 57862306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_FW_AUTH_FAILED_ERR_SMASK 0x20ull 57962306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_KEY_MISMATCH_ERR_SMASK 0x10ull 58062306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_SBUS_WRITE_FAILED_ERR_SMASK 0x8ull 58162306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_CSR_WRITE_BAD_ADDR_ERR_SMASK 0x4ull 58262306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_CSR_READ_BAD_ADDR_ERR_SMASK 0x2ull 58362306a36Sopenharmony_ci#define MISC_ERR_STATUS_MISC_CSR_PARITY_ERR_SMASK 0x1ull 58462306a36Sopenharmony_ci#define PCI_CFG_MSIX0 (PCIE + 0x0000000000B0) 58562306a36Sopenharmony_ci#define PCI_CFG_REG1 (PCIE + 0x000000000004) 58662306a36Sopenharmony_ci#define PCI_CFG_REG11 (PCIE + 0x00000000002C) 58762306a36Sopenharmony_ci#define PCIE_CFG_SPCIE1 (PCIE + 0x00000000014C) 58862306a36Sopenharmony_ci#define PCIE_CFG_SPCIE2 (PCIE + 0x000000000150) 58962306a36Sopenharmony_ci#define PCIE_CFG_TPH2 (PCIE + 0x000000000180) 59062306a36Sopenharmony_ci#define RCV_ARRAY (RXE + 0x000000200000) 59162306a36Sopenharmony_ci#define RCV_ARRAY_CNT (RXE + 0x000000000018) 59262306a36Sopenharmony_ci#define RCV_ARRAY_RT_ADDR_MASK 0xFFFFFFFFFull 59362306a36Sopenharmony_ci#define RCV_ARRAY_RT_ADDR_SHIFT 0 59462306a36Sopenharmony_ci#define RCV_ARRAY_RT_BUF_SIZE_SHIFT 36 59562306a36Sopenharmony_ci#define RCV_ARRAY_RT_WRITE_ENABLE_SMASK 0x8000000000000000ull 59662306a36Sopenharmony_ci#define RCV_AVAIL_TIME_OUT (RXE + 0x000000100050) 59762306a36Sopenharmony_ci#define RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_MASK 0xFFull 59862306a36Sopenharmony_ci#define RCV_AVAIL_TIME_OUT_TIME_OUT_RELOAD_SHIFT 0 59962306a36Sopenharmony_ci#define RCV_BTH_QP (RXE + 0x000000000028) 60062306a36Sopenharmony_ci#define RCV_BTH_QP_KDETH_QP_MASK 0xFFull 60162306a36Sopenharmony_ci#define RCV_BTH_QP_KDETH_QP_SHIFT 16 60262306a36Sopenharmony_ci#define RCV_BYPASS (RXE + 0x000000000038) 60362306a36Sopenharmony_ci#define RCV_BYPASS_HDR_SIZE_SHIFT 16 60462306a36Sopenharmony_ci#define RCV_BYPASS_HDR_SIZE_MASK 0x1Full 60562306a36Sopenharmony_ci#define RCV_BYPASS_HDR_SIZE_SMASK 0x1F0000ull 60662306a36Sopenharmony_ci#define RCV_BYPASS_BYPASS_CONTEXT_SHIFT 0 60762306a36Sopenharmony_ci#define RCV_BYPASS_BYPASS_CONTEXT_MASK 0xFFull 60862306a36Sopenharmony_ci#define RCV_BYPASS_BYPASS_CONTEXT_SMASK 0xFFull 60962306a36Sopenharmony_ci#define RCV_CONTEXTS (RXE + 0x000000000010) 61062306a36Sopenharmony_ci#define RCV_COUNTER_ARRAY32 (RXE + 0x000000000400) 61162306a36Sopenharmony_ci#define RCV_COUNTER_ARRAY64 (RXE + 0x000000000500) 61262306a36Sopenharmony_ci#define RCV_CTRL (RXE + 0x000000000000) 61362306a36Sopenharmony_ci#define RCV_CTRL_RCV_BYPASS_ENABLE_SMASK 0x10ull 61462306a36Sopenharmony_ci#define RCV_CTRL_RCV_EXTENDED_PSN_ENABLE_SMASK 0x40ull 61562306a36Sopenharmony_ci#define RCV_CTRL_RCV_PARTITION_KEY_ENABLE_SMASK 0x4ull 61662306a36Sopenharmony_ci#define RCV_CTRL_RCV_PORT_ENABLE_SMASK 0x1ull 61762306a36Sopenharmony_ci#define RCV_CTRL_RCV_QP_MAP_ENABLE_SMASK 0x2ull 61862306a36Sopenharmony_ci#define RCV_CTRL_RCV_RSM_ENABLE_SMASK 0x20ull 61962306a36Sopenharmony_ci#define RCV_CTRL_RX_RBUF_INIT_SMASK 0x200ull 62062306a36Sopenharmony_ci#define RCV_CTXT_CTRL (RXE + 0x000000100000) 62162306a36Sopenharmony_ci#define RCV_CTXT_CTRL_DONT_DROP_EGR_FULL_SMASK 0x4ull 62262306a36Sopenharmony_ci#define RCV_CTXT_CTRL_DONT_DROP_RHQ_FULL_SMASK 0x8ull 62362306a36Sopenharmony_ci#define RCV_CTXT_CTRL_EGR_BUF_SIZE_MASK 0x7ull 62462306a36Sopenharmony_ci#define RCV_CTXT_CTRL_EGR_BUF_SIZE_SHIFT 8 62562306a36Sopenharmony_ci#define RCV_CTXT_CTRL_EGR_BUF_SIZE_SMASK 0x700ull 62662306a36Sopenharmony_ci#define RCV_CTXT_CTRL_ENABLE_SMASK 0x1ull 62762306a36Sopenharmony_ci#define RCV_CTXT_CTRL_INTR_AVAIL_SMASK 0x20ull 62862306a36Sopenharmony_ci#define RCV_CTXT_CTRL_ONE_PACKET_PER_EGR_BUFFER_SMASK 0x2ull 62962306a36Sopenharmony_ci#define RCV_CTXT_CTRL_TAIL_UPD_SMASK 0x40ull 63062306a36Sopenharmony_ci#define RCV_CTXT_CTRL_TID_FLOW_ENABLE_SMASK 0x10ull 63162306a36Sopenharmony_ci#define RCV_CTXT_STATUS (RXE + 0x000000100008) 63262306a36Sopenharmony_ci#define RCV_EGR_CTRL (RXE + 0x000000100010) 63362306a36Sopenharmony_ci#define RCV_EGR_CTRL_EGR_BASE_INDEX_MASK 0x1FFFull 63462306a36Sopenharmony_ci#define RCV_EGR_CTRL_EGR_BASE_INDEX_SHIFT 0 63562306a36Sopenharmony_ci#define RCV_EGR_CTRL_EGR_CNT_MASK 0x1FFull 63662306a36Sopenharmony_ci#define RCV_EGR_CTRL_EGR_CNT_SHIFT 32 63762306a36Sopenharmony_ci#define RCV_EGR_INDEX_HEAD (RXE + 0x000000300018) 63862306a36Sopenharmony_ci#define RCV_EGR_INDEX_HEAD_HEAD_MASK 0x7FFull 63962306a36Sopenharmony_ci#define RCV_EGR_INDEX_HEAD_HEAD_SHIFT 0 64062306a36Sopenharmony_ci#define RCV_ERR_CLEAR (RXE + 0x000000000070) 64162306a36Sopenharmony_ci#define RCV_ERR_INFO (RXE + 0x000000000050) 64262306a36Sopenharmony_ci#define RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SC_SMASK 0x1Full 64362306a36Sopenharmony_ci#define RCV_ERR_INFO_RCV_EXCESS_BUFFER_OVERRUN_SMASK 0x20ull 64462306a36Sopenharmony_ci#define RCV_ERR_MASK (RXE + 0x000000000068) 64562306a36Sopenharmony_ci#define RCV_ERR_STATUS (RXE + 0x000000000060) 64662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_CSR_PARITY_ERR_SMASK 0x8000000000000000ull 64762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_CSR_READ_BAD_ADDR_ERR_SMASK 0x2000000000000000ull 64862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_CSR_WRITE_BAD_ADDR_ERR_SMASK \ 64962306a36Sopenharmony_ci 0x4000000000000000ull 65062306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DC_INTF_PARITY_ERR_SMASK 0x2ull 65162306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DC_SOP_EOP_PARITY_ERR_SMASK 0x200ull 65262306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_CSR_COR_ERR_SMASK 0x1ull 65362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_CSR_PARITY_ERR_SMASK 0x200000000000000ull 65462306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_CSR_UNC_ERR_SMASK 0x1000000000000000ull 65562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_DATA_FIFO_RD_COR_ERR_SMASK \ 65662306a36Sopenharmony_ci 0x40000000000000ull 65762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_DATA_FIFO_RD_UNC_ERR_SMASK \ 65862306a36Sopenharmony_ci 0x20000000000000ull 65962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_DQ_FSM_ENCODING_ERR_SMASK \ 66062306a36Sopenharmony_ci 0x800000000000000ull 66162306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_EQ_FSM_ENCODING_ERR_SMASK \ 66262306a36Sopenharmony_ci 0x400000000000000ull 66362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_FLAG_COR_ERR_SMASK 0x800ull 66462306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_FLAG_UNC_ERR_SMASK 0x400ull 66562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_HDR_FIFO_RD_COR_ERR_SMASK 0x10000000000000ull 66662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_DMA_HDR_FIFO_RD_UNC_ERR_SMASK 0x8000000000000ull 66762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_HQ_INTR_CSR_PARITY_ERR_SMASK 0x200000000000ull 66862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_HQ_INTR_FSM_ERR_SMASK 0x400000000000ull 66962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_CSR_PARITY_ERR_SMASK 0x100000000000ull 67062306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_DES_PART1_UNC_COR_ERR_SMASK \ 67162306a36Sopenharmony_ci 0x10000000000ull 67262306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_DES_PART1_UNC_ERR_SMASK 0x8000000000ull 67362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_DES_PART2_PARITY_ERR_SMASK \ 67462306a36Sopenharmony_ci 0x20000000000ull 67562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_RCV_ARRAY_COR_ERR_SMASK 0x80000000000ull 67662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_LOOKUP_RCV_ARRAY_UNC_ERR_SMASK 0x40000000000ull 67762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_BAD_LOOKUP_ERR_SMASK 0x40000000ull 67862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_BLOCK_LIST_READ_COR_ERR_SMASK 0x100000ull 67962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_BLOCK_LIST_READ_UNC_ERR_SMASK 0x80000ull 68062306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QENT_CNT_PARITY_ERR_SMASK 0x400000ull 68162306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QEOPDW_PARITY_ERR_SMASK 0x10000000ull 68262306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QHD_PTR_PARITY_ERR_SMASK 0x2000000ull 68362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QHEAD_BUF_NUM_PARITY_ERR_SMASK \ 68462306a36Sopenharmony_ci 0x200000ull 68562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QNEXT_BUF_PARITY_ERR_SMASK 0x800000ull 68662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QNUM_OF_PKT_PARITY_ERR_SMASK \ 68762306a36Sopenharmony_ci 0x8000000ull 68862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QTL_PTR_PARITY_ERR_SMASK 0x4000000ull 68962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CSR_QVLD_BIT_PARITY_ERR_SMASK 0x1000000ull 69062306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_CTX_ID_PARITY_ERR_SMASK 0x20000000ull 69162306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DATA_COR_ERR_SMASK 0x100000000000000ull 69262306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DATA_UNC_ERR_SMASK 0x80000000000000ull 69362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART1_COR_ERR_SMASK 0x1000000000000ull 69462306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART1_UNC_ERR_SMASK 0x800000000000ull 69562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART2_COR_ERR_SMASK 0x4000000000000ull 69662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_DESC_PART2_UNC_ERR_SMASK 0x2000000000000ull 69762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_EMPTY_ERR_SMASK 0x100000000ull 69862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_INITDONE_PARITY_ERR_SMASK 0x800000000ull 69962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_INIT_WR_ADDR_PARITY_ERR_SMASK \ 70062306a36Sopenharmony_ci 0x1000000000ull 70162306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_RD_ADDR_PARITY_ERR_SMASK 0x200000000ull 70262306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FL_WR_ADDR_PARITY_ERR_SMASK 0x400000000ull 70362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FREE_LIST_COR_ERR_SMASK 0x4000ull 70462306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FREE_LIST_UNC_ERR_SMASK 0x2000ull 70562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_FULL_ERR_SMASK 0x80000000ull 70662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_COR_ERR_SMASK 0x40000ull 70762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_REG_UNC_COR_ERR_SMASK 0x10000ull 70862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_REG_UNC_ERR_SMASK 0x8000ull 70962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_LOOKUP_DES_UNC_ERR_SMASK 0x20000ull 71062306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_NEXT_FREE_BUF_COR_ERR_SMASK 0x4000000000ull 71162306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RBUF_NEXT_FREE_BUF_UNC_ERR_SMASK 0x2000000000ull 71262306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_CSR_PARITY_ERR_SMASK 0x100ull 71362306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_DATA_COR_ERR_SMASK 0x20ull 71462306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_DATA_UNC_ERR_SMASK 0x10ull 71562306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_FSM_ENCODING_ERR_SMASK 0x1000ull 71662306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_HDR_COR_ERR_SMASK 0x8ull 71762306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_HDR_UNC_ERR_SMASK 0x4ull 71862306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_QP_MAP_TABLE_COR_ERR_SMASK 0x80ull 71962306a36Sopenharmony_ci#define RCV_ERR_STATUS_RX_RCV_QP_MAP_TABLE_UNC_ERR_SMASK 0x40ull 72062306a36Sopenharmony_ci#define RCV_HDR_ADDR (RXE + 0x000000100028) 72162306a36Sopenharmony_ci#define RCV_HDR_CNT (RXE + 0x000000100030) 72262306a36Sopenharmony_ci#define RCV_HDR_CNT_CNT_MASK 0x1FFull 72362306a36Sopenharmony_ci#define RCV_HDR_CNT_CNT_SHIFT 0 72462306a36Sopenharmony_ci#define RCV_HDR_ENT_SIZE (RXE + 0x000000100038) 72562306a36Sopenharmony_ci#define RCV_HDR_ENT_SIZE_ENT_SIZE_MASK 0x7ull 72662306a36Sopenharmony_ci#define RCV_HDR_ENT_SIZE_ENT_SIZE_SHIFT 0 72762306a36Sopenharmony_ci#define RCV_HDR_HEAD (RXE + 0x000000300008) 72862306a36Sopenharmony_ci#define RCV_HDR_HEAD_COUNTER_MASK 0xFFull 72962306a36Sopenharmony_ci#define RCV_HDR_HEAD_COUNTER_SHIFT 32 73062306a36Sopenharmony_ci#define RCV_HDR_HEAD_HEAD_MASK 0x7FFFFull 73162306a36Sopenharmony_ci#define RCV_HDR_HEAD_HEAD_SHIFT 0 73262306a36Sopenharmony_ci#define RCV_HDR_HEAD_HEAD_SMASK 0x7FFFFull 73362306a36Sopenharmony_ci#define RCV_HDR_OVFL_CNT (RXE + 0x000000100058) 73462306a36Sopenharmony_ci#define RCV_HDR_SIZE (RXE + 0x000000100040) 73562306a36Sopenharmony_ci#define RCV_HDR_SIZE_HDR_SIZE_MASK 0x1Full 73662306a36Sopenharmony_ci#define RCV_HDR_SIZE_HDR_SIZE_SHIFT 0 73762306a36Sopenharmony_ci#define RCV_HDR_TAIL (RXE + 0x000000300000) 73862306a36Sopenharmony_ci#define RCV_HDR_TAIL_ADDR (RXE + 0x000000100048) 73962306a36Sopenharmony_ci#define RCV_KEY_CTRL (RXE + 0x000000100020) 74062306a36Sopenharmony_ci#define RCV_KEY_CTRL_JOB_KEY_ENABLE_SMASK 0x200000000ull 74162306a36Sopenharmony_ci#define RCV_KEY_CTRL_JOB_KEY_VALUE_MASK 0xFFFFull 74262306a36Sopenharmony_ci#define RCV_KEY_CTRL_JOB_KEY_VALUE_SHIFT 0 74362306a36Sopenharmony_ci#define RCV_MULTICAST (RXE + 0x000000000030) 74462306a36Sopenharmony_ci#define RCV_PARTITION_KEY (RXE + 0x000000000200) 74562306a36Sopenharmony_ci#define RCV_PARTITION_KEY_PARTITION_KEY_A_MASK 0xFFFFull 74662306a36Sopenharmony_ci#define RCV_PARTITION_KEY_PARTITION_KEY_B_SHIFT 16 74762306a36Sopenharmony_ci#define RCV_QP_MAP_TABLE (RXE + 0x000000000100) 74862306a36Sopenharmony_ci#define RCV_RSM_CFG (RXE + 0x000000000600) 74962306a36Sopenharmony_ci#define RCV_RSM_CFG_ENABLE_OR_CHAIN_RSM0_MASK 0x1ull 75062306a36Sopenharmony_ci#define RCV_RSM_CFG_ENABLE_OR_CHAIN_RSM0_SHIFT 0 75162306a36Sopenharmony_ci#define RCV_RSM_CFG_PACKET_TYPE_SHIFT 60 75262306a36Sopenharmony_ci#define RCV_RSM_CFG_OFFSET_SHIFT 32 75362306a36Sopenharmony_ci#define RCV_RSM_MAP_TABLE (RXE + 0x000000000900) 75462306a36Sopenharmony_ci#define RCV_RSM_MAP_TABLE_RCV_CONTEXT_A_MASK 0xFFull 75562306a36Sopenharmony_ci#define RCV_RSM_MATCH (RXE + 0x000000000800) 75662306a36Sopenharmony_ci#define RCV_RSM_MATCH_MASK1_SHIFT 0 75762306a36Sopenharmony_ci#define RCV_RSM_MATCH_MASK2_SHIFT 16 75862306a36Sopenharmony_ci#define RCV_RSM_MATCH_VALUE1_SHIFT 8 75962306a36Sopenharmony_ci#define RCV_RSM_MATCH_VALUE2_SHIFT 24 76062306a36Sopenharmony_ci#define RCV_RSM_SELECT (RXE + 0x000000000700) 76162306a36Sopenharmony_ci#define RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT 0 76262306a36Sopenharmony_ci#define RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT 16 76362306a36Sopenharmony_ci#define RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT 32 76462306a36Sopenharmony_ci#define RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT 44 76562306a36Sopenharmony_ci#define RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT 48 76662306a36Sopenharmony_ci#define RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT 60 76762306a36Sopenharmony_ci#define RCV_STATUS (RXE + 0x000000000008) 76862306a36Sopenharmony_ci#define RCV_STATUS_RX_PKT_IN_PROGRESS_SMASK 0x1ull 76962306a36Sopenharmony_ci#define RCV_STATUS_RX_RBUF_INIT_DONE_SMASK 0x200ull 77062306a36Sopenharmony_ci#define RCV_STATUS_RX_RBUF_PKT_PENDING_SMASK 0x40ull 77162306a36Sopenharmony_ci#define RCV_TID_CTRL (RXE + 0x000000100018) 77262306a36Sopenharmony_ci#define RCV_TID_CTRL_TID_BASE_INDEX_MASK 0x1FFFull 77362306a36Sopenharmony_ci#define RCV_TID_CTRL_TID_BASE_INDEX_SHIFT 0 77462306a36Sopenharmony_ci#define RCV_TID_CTRL_TID_PAIR_CNT_MASK 0x1FFull 77562306a36Sopenharmony_ci#define RCV_TID_CTRL_TID_PAIR_CNT_SHIFT 32 77662306a36Sopenharmony_ci#define RCV_TID_FLOW_TABLE (RXE + 0x000000300800) 77762306a36Sopenharmony_ci#define RCV_VL15 (RXE + 0x000000000048) 77862306a36Sopenharmony_ci#define SEND_BTH_QP (TXE + 0x0000000000A0) 77962306a36Sopenharmony_ci#define SEND_BTH_QP_KDETH_QP_MASK 0xFFull 78062306a36Sopenharmony_ci#define SEND_BTH_QP_KDETH_QP_SHIFT 16 78162306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS (TXE + 0x000000000510) 78262306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL0_RETURN_CREDIT_STATUS_SMASK \ 78362306a36Sopenharmony_ci 0x1000000000000ull 78462306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL15_RETURN_CREDIT_STATUS_SMASK \ 78562306a36Sopenharmony_ci 0x8000000000000000ull 78662306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL1_RETURN_CREDIT_STATUS_SMASK \ 78762306a36Sopenharmony_ci 0x2000000000000ull 78862306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL2_RETURN_CREDIT_STATUS_SMASK \ 78962306a36Sopenharmony_ci 0x4000000000000ull 79062306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL3_RETURN_CREDIT_STATUS_SMASK \ 79162306a36Sopenharmony_ci 0x8000000000000ull 79262306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL4_RETURN_CREDIT_STATUS_SMASK \ 79362306a36Sopenharmony_ci 0x10000000000000ull 79462306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL5_RETURN_CREDIT_STATUS_SMASK \ 79562306a36Sopenharmony_ci 0x20000000000000ull 79662306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL6_RETURN_CREDIT_STATUS_SMASK \ 79762306a36Sopenharmony_ci 0x40000000000000ull 79862306a36Sopenharmony_ci#define SEND_CM_CREDIT_USED_STATUS_VL7_RETURN_CREDIT_STATUS_SMASK \ 79962306a36Sopenharmony_ci 0x80000000000000ull 80062306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL (TXE + 0x000000000600) 80162306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL15 (TXE + 0x000000000678) 80262306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT 0 80362306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL_DEDICATED_LIMIT_VL_MASK 0xFFFFull 80462306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL_DEDICATED_LIMIT_VL_SHIFT 0 80562306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL_DEDICATED_LIMIT_VL_SMASK 0xFFFFull 80662306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL_SHARED_LIMIT_VL_MASK 0xFFFFull 80762306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL_SHARED_LIMIT_VL_SHIFT 16 80862306a36Sopenharmony_ci#define SEND_CM_CREDIT_VL_SHARED_LIMIT_VL_SMASK 0xFFFF0000ull 80962306a36Sopenharmony_ci#define SEND_CM_CTRL (TXE + 0x000000000500) 81062306a36Sopenharmony_ci#define SEND_CM_CTRL_FORCE_CREDIT_MODE_SMASK 0x8ull 81162306a36Sopenharmony_ci#define SEND_CM_CTRL_RESETCSR 0x0000000000000020ull 81262306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT (TXE + 0x000000000508) 81362306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_AU_MASK 0x7ull 81462306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_AU_SHIFT 16 81562306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_AU_SMASK 0x70000ull 81662306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_RESETCSR 0x0000094000030000ull 81762306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_MASK 0xFFFFull 81862306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SHIFT 0 81962306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK 0xFFFFull 82062306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_MASK 0xFFFFull 82162306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT 32 82262306a36Sopenharmony_ci#define SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK 0xFFFF00000000ull 82362306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3 (TXE + 0x000000000520) 82462306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE0_SHIFT 0 82562306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE1_SHIFT 16 82662306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE2_SHIFT 32 82762306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE0_TO3_LOCAL_AU_TABLE3_SHIFT 48 82862306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7 (TXE + 0x000000000528) 82962306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE4_SHIFT 0 83062306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE5_SHIFT 16 83162306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE6_SHIFT 32 83262306a36Sopenharmony_ci#define SEND_CM_LOCAL_AU_TABLE4_TO7_LOCAL_AU_TABLE7_SHIFT 48 83362306a36Sopenharmony_ci#define SEND_CM_REMOTE_AU_TABLE0_TO3 (TXE + 0x000000000530) 83462306a36Sopenharmony_ci#define SEND_CM_REMOTE_AU_TABLE4_TO7 (TXE + 0x000000000538) 83562306a36Sopenharmony_ci#define SEND_CM_TIMER_CTRL (TXE + 0x000000000518) 83662306a36Sopenharmony_ci#define SEND_CONTEXTS (TXE + 0x000000000010) 83762306a36Sopenharmony_ci#define SEND_CONTEXT_SET_CTRL (TXE + 0x000000000200) 83862306a36Sopenharmony_ci#define SEND_COUNTER_ARRAY32 (TXE + 0x000000000300) 83962306a36Sopenharmony_ci#define SEND_COUNTER_ARRAY64 (TXE + 0x000000000400) 84062306a36Sopenharmony_ci#define SEND_CTRL (TXE + 0x000000000000) 84162306a36Sopenharmony_ci#define SEND_CTRL_CM_RESET_SMASK 0x4ull 84262306a36Sopenharmony_ci#define SEND_CTRL_SEND_ENABLE_SMASK 0x1ull 84362306a36Sopenharmony_ci#define SEND_CTRL_UNSUPPORTED_VL_SHIFT 3 84462306a36Sopenharmony_ci#define SEND_CTRL_UNSUPPORTED_VL_MASK 0xFFull 84562306a36Sopenharmony_ci#define SEND_CTRL_UNSUPPORTED_VL_SMASK (SEND_CTRL_UNSUPPORTED_VL_MASK \ 84662306a36Sopenharmony_ci << SEND_CTRL_UNSUPPORTED_VL_SHIFT) 84762306a36Sopenharmony_ci#define SEND_CTRL_VL_ARBITER_ENABLE_SMASK 0x2ull 84862306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE (TXE + 0x000000100080) 84962306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_BYPASS_VL_MAPPING_SMASK 0x80ull 85062306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_ENABLE_SMASK 0x1ull 85162306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_JOB_KEY_SMASK 0x4ull 85262306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_OPCODE_SMASK 0x20ull 85362306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_PARTITION_KEY_SMASK 0x8ull 85462306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_SLID_SMASK 0x10ull 85562306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_VL_MAPPING_SMASK 0x40ull 85662306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_CHECK_VL_SMASK 0x2ull 85762306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_BAD_PKT_LEN_SMASK 0x20000ull 85862306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_BYPASS_BAD_PKT_LEN_SMASK \ 85962306a36Sopenharmony_ci 0x200000ull 86062306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_BYPASS_SMASK 0x800ull 86162306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_GRH_SMASK 0x400ull 86262306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_KDETH_PACKETS_SMASK 0x1000ull 86362306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_NON_KDETH_PACKETS_SMASK 0x2000ull 86462306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_PBC_STATIC_RATE_CONTROL_SMASK \ 86562306a36Sopenharmony_ci 0x100000ull 86662306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_PBC_TEST_SMASK 0x10000ull 86762306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_RAW_IPV6_SMASK 0x200ull 86862306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_RAW_SMASK 0x100ull 86962306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_LONG_BYPASS_PACKETS_SMASK \ 87062306a36Sopenharmony_ci 0x80000ull 87162306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_LONG_IB_PACKETS_SMASK \ 87262306a36Sopenharmony_ci 0x40000ull 87362306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_SMALL_BYPASS_PACKETS_SMASK \ 87462306a36Sopenharmony_ci 0x8000ull 87562306a36Sopenharmony_ci#define SEND_CTXT_CHECK_ENABLE_DISALLOW_TOO_SMALL_IB_PACKETS_SMASK \ 87662306a36Sopenharmony_ci 0x4000ull 87762306a36Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY (TXE + 0x000000100090) 87862306a36Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_ALLOW_PERMISSIVE_SMASK 0x100000000ull 87962306a36Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_MASK_SMASK 0xFFFF0000ull 88062306a36Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_VALUE_MASK 0xFFFFull 88162306a36Sopenharmony_ci#define SEND_CTXT_CHECK_JOB_KEY_VALUE_SHIFT 0 88262306a36Sopenharmony_ci#define SEND_CTXT_CHECK_OPCODE (TXE + 0x0000001000A8) 88362306a36Sopenharmony_ci#define SEND_CTXT_CHECK_OPCODE_MASK_SHIFT 8 88462306a36Sopenharmony_ci#define SEND_CTXT_CHECK_OPCODE_VALUE_SHIFT 0 88562306a36Sopenharmony_ci#define SEND_CTXT_CHECK_PARTITION_KEY (TXE + 0x000000100098) 88662306a36Sopenharmony_ci#define SEND_CTXT_CHECK_PARTITION_KEY_VALUE_MASK 0xFFFFull 88762306a36Sopenharmony_ci#define SEND_CTXT_CHECK_PARTITION_KEY_VALUE_SHIFT 0 88862306a36Sopenharmony_ci#define SEND_CTXT_CHECK_SLID (TXE + 0x0000001000A0) 88962306a36Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_MASK_MASK 0xFFFFull 89062306a36Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_MASK_SHIFT 16 89162306a36Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_VALUE_MASK 0xFFFFull 89262306a36Sopenharmony_ci#define SEND_CTXT_CHECK_SLID_VALUE_SHIFT 0 89362306a36Sopenharmony_ci#define SEND_CTXT_CHECK_VL (TXE + 0x000000100088) 89462306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL (TXE + 0x000000100010) 89562306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_CREDIT_INTR_SMASK 0x20000ull 89662306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_EARLY_RETURN_SMASK 0x10000ull 89762306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_THRESHOLD_MASK 0x7FFull 89862306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_THRESHOLD_SHIFT 0 89962306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_CTRL_THRESHOLD_SMASK 0x7FFull 90062306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS (TXE + 0x000000100018) 90162306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS_CURRENT_FREE_COUNTER_MASK 0x7FFull 90262306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS_CURRENT_FREE_COUNTER_SHIFT 32 90362306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_STATUS_LAST_RETURNED_COUNTER_SMASK 0x7FFull 90462306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_FORCE (TXE + 0x000000100028) 90562306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_FORCE_FORCE_RETURN_SMASK 0x1ull 90662306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_RETURN_ADDR (TXE + 0x000000100020) 90762306a36Sopenharmony_ci#define SEND_CTXT_CREDIT_RETURN_ADDR_ADDRESS_SMASK 0xFFFFFFFFFFC0ull 90862306a36Sopenharmony_ci#define SEND_CTXT_CTRL (TXE + 0x000000100000) 90962306a36Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_BASE_MASK 0x3FFFull 91062306a36Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_BASE_SHIFT 32 91162306a36Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_DEPTH_MASK 0x7FFull 91262306a36Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_DEPTH_SHIFT 48 91362306a36Sopenharmony_ci#define SEND_CTXT_CTRL_CTXT_ENABLE_SMASK 0x1ull 91462306a36Sopenharmony_ci#define SEND_CTXT_ERR_CLEAR (TXE + 0x000000100050) 91562306a36Sopenharmony_ci#define SEND_CTXT_ERR_MASK (TXE + 0x000000100048) 91662306a36Sopenharmony_ci#define SEND_CTXT_ERR_STATUS (TXE + 0x000000100040) 91762306a36Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_DISALLOWED_PACKET_ERR_SMASK 0x2ull 91862306a36Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_INCONSISTENT_SOP_ERR_SMASK 0x1ull 91962306a36Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_WRITE_CROSSES_BOUNDARY_ERR_SMASK 0x4ull 92062306a36Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_WRITE_OUT_OF_BOUNDS_ERR_SMASK 0x10ull 92162306a36Sopenharmony_ci#define SEND_CTXT_ERR_STATUS_PIO_WRITE_OVERFLOW_ERR_SMASK 0x8ull 92262306a36Sopenharmony_ci#define SEND_CTXT_STATUS (TXE + 0x000000100008) 92362306a36Sopenharmony_ci#define SEND_CTXT_STATUS_CTXT_HALTED_SMASK 0x1ull 92462306a36Sopenharmony_ci#define SEND_DMA_BASE_ADDR (TXE + 0x000000200010) 92562306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE (TXE + 0x000000200080) 92662306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_BYPASS_VL_MAPPING_SMASK 0x80ull 92762306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_ENABLE_SMASK 0x1ull 92862306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_JOB_KEY_SMASK 0x4ull 92962306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_OPCODE_SMASK 0x20ull 93062306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_PARTITION_KEY_SMASK 0x8ull 93162306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_SLID_SMASK 0x10ull 93262306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_VL_MAPPING_SMASK 0x40ull 93362306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_CHECK_VL_SMASK 0x2ull 93462306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_BAD_PKT_LEN_SMASK 0x20000ull 93562306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_BYPASS_BAD_PKT_LEN_SMASK 0x200000ull 93662306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_PBC_STATIC_RATE_CONTROL_SMASK \ 93762306a36Sopenharmony_ci 0x100000ull 93862306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_RAW_IPV6_SMASK 0x200ull 93962306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_RAW_SMASK 0x100ull 94062306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_LONG_BYPASS_PACKETS_SMASK \ 94162306a36Sopenharmony_ci 0x80000ull 94262306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_LONG_IB_PACKETS_SMASK 0x40000ull 94362306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_SMALL_BYPASS_PACKETS_SMASK \ 94462306a36Sopenharmony_ci 0x8000ull 94562306a36Sopenharmony_ci#define SEND_DMA_CHECK_ENABLE_DISALLOW_TOO_SMALL_IB_PACKETS_SMASK 0x4000ull 94662306a36Sopenharmony_ci#define SEND_DMA_CHECK_JOB_KEY (TXE + 0x000000200090) 94762306a36Sopenharmony_ci#define SEND_DMA_CHECK_OPCODE (TXE + 0x0000002000A8) 94862306a36Sopenharmony_ci#define SEND_DMA_CHECK_PARTITION_KEY (TXE + 0x000000200098) 94962306a36Sopenharmony_ci#define SEND_DMA_CHECK_SLID (TXE + 0x0000002000A0) 95062306a36Sopenharmony_ci#define SEND_DMA_CHECK_SLID_MASK_MASK 0xFFFFull 95162306a36Sopenharmony_ci#define SEND_DMA_CHECK_SLID_MASK_SHIFT 16 95262306a36Sopenharmony_ci#define SEND_DMA_CHECK_SLID_VALUE_MASK 0xFFFFull 95362306a36Sopenharmony_ci#define SEND_DMA_CHECK_SLID_VALUE_SHIFT 0 95462306a36Sopenharmony_ci#define SEND_DMA_CHECK_VL (TXE + 0x000000200088) 95562306a36Sopenharmony_ci#define SEND_DMA_CTRL (TXE + 0x000000200000) 95662306a36Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_CLEANUP_SMASK 0x4ull 95762306a36Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_ENABLE_SMASK 0x1ull 95862306a36Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_HALT_SMASK 0x2ull 95962306a36Sopenharmony_ci#define SEND_DMA_CTRL_SDMA_INT_ENABLE_SMASK 0x8ull 96062306a36Sopenharmony_ci#define SEND_DMA_DESC_CNT (TXE + 0x000000200050) 96162306a36Sopenharmony_ci#define SEND_DMA_DESC_CNT_CNT_MASK 0xFFFFull 96262306a36Sopenharmony_ci#define SEND_DMA_DESC_CNT_CNT_SHIFT 0 96362306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_CLEAR (TXE + 0x000000200070) 96462306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_CLEAR_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_MASK 0x1ull 96562306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_CLEAR_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_SHIFT 18 96662306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_MASK (TXE + 0x000000200068) 96762306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS (TXE + 0x000000200060) 96862306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_ASSEMBLY_UNC_ERR_SMASK 0x8000ull 96962306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_DESC_TABLE_UNC_ERR_SMASK 0x4000ull 97062306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_FIRST_DESC_ERR_SMASK 0x10ull 97162306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_GEN_MISMATCH_ERR_SMASK 0x2ull 97262306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HALT_ERR_SMASK 0x40ull 97362306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_ADDRESS_ERR_SMASK 0x800ull 97462306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_LENGTH_ERR_SMASK 0x1000ull 97562306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_REQUEST_FIFO_UNC_ERR_SMASK \ 97662306a36Sopenharmony_ci 0x40000ull 97762306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_SELECT_ERR_SMASK 0x400ull 97862306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_HEADER_STORAGE_UNC_ERR_SMASK \ 97962306a36Sopenharmony_ci 0x20000ull 98062306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_LENGTH_MISMATCH_ERR_SMASK 0x80ull 98162306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_MEM_READ_ERR_SMASK 0x20ull 98262306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_PACKET_DESC_OVERFLOW_ERR_SMASK \ 98362306a36Sopenharmony_ci 0x100ull 98462306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_PACKET_TRACKING_UNC_ERR_SMASK \ 98562306a36Sopenharmony_ci 0x10000ull 98662306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_TAIL_OUT_OF_BOUNDS_ERR_SMASK 0x8ull 98762306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_TIMEOUT_ERR_SMASK 0x2000ull 98862306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_TOO_LONG_ERR_SMASK 0x4ull 98962306a36Sopenharmony_ci#define SEND_DMA_ENG_ERR_STATUS_SDMA_WRONG_DW_ERR_SMASK 0x1ull 99062306a36Sopenharmony_ci#define SEND_DMA_ENGINES (TXE + 0x000000000018) 99162306a36Sopenharmony_ci#define SEND_DMA_ERR_CLEAR (TXE + 0x000000000070) 99262306a36Sopenharmony_ci#define SEND_DMA_ERR_MASK (TXE + 0x000000000068) 99362306a36Sopenharmony_ci#define SEND_DMA_ERR_STATUS (TXE + 0x000000000060) 99462306a36Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_CSR_PARITY_ERR_SMASK 0x2ull 99562306a36Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_PCIE_REQ_TRACKING_COR_ERR_SMASK 0x8ull 99662306a36Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_PCIE_REQ_TRACKING_UNC_ERR_SMASK 0x4ull 99762306a36Sopenharmony_ci#define SEND_DMA_ERR_STATUS_SDMA_RPY_TAG_ERR_SMASK 0x1ull 99862306a36Sopenharmony_ci#define SEND_DMA_HEAD (TXE + 0x000000200028) 99962306a36Sopenharmony_ci#define SEND_DMA_HEAD_ADDR (TXE + 0x000000200030) 100062306a36Sopenharmony_ci#define SEND_DMA_LEN_GEN (TXE + 0x000000200018) 100162306a36Sopenharmony_ci#define SEND_DMA_LEN_GEN_GENERATION_SHIFT 16 100262306a36Sopenharmony_ci#define SEND_DMA_LEN_GEN_LENGTH_SHIFT 6 100362306a36Sopenharmony_ci#define SEND_DMA_MEMORY (TXE + 0x0000002000B0) 100462306a36Sopenharmony_ci#define SEND_DMA_MEMORY_SDMA_MEMORY_CNT_SHIFT 16 100562306a36Sopenharmony_ci#define SEND_DMA_MEMORY_SDMA_MEMORY_INDEX_SHIFT 0 100662306a36Sopenharmony_ci#define SEND_DMA_MEM_SIZE (TXE + 0x000000000028) 100762306a36Sopenharmony_ci#define SEND_DMA_PRIORITY_THLD (TXE + 0x000000200038) 100862306a36Sopenharmony_ci#define SEND_DMA_RELOAD_CNT (TXE + 0x000000200048) 100962306a36Sopenharmony_ci#define SEND_DMA_STATUS (TXE + 0x000000200008) 101062306a36Sopenharmony_ci#define SEND_DMA_STATUS_ENG_CLEANED_UP_SMASK 0x200000000000000ull 101162306a36Sopenharmony_ci#define SEND_DMA_STATUS_ENG_HALTED_SMASK 0x100000000000000ull 101262306a36Sopenharmony_ci#define SEND_DMA_TAIL (TXE + 0x000000200020) 101362306a36Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS (TXE + 0x000000000800) 101462306a36Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS_CTXT_EGRESS_HALT_STATUS_SMASK 0x10000ull 101562306a36Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS_CTXT_EGRESS_PACKET_OCCUPANCY_SHIFT 0 101662306a36Sopenharmony_ci#define SEND_EGRESS_CTXT_STATUS_CTXT_EGRESS_PACKET_OCCUPANCY_SMASK \ 101762306a36Sopenharmony_ci 0x3FFFull 101862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_CLEAR (TXE + 0x000000000090) 101962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO (TXE + 0x000000000F00) 102062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_BAD_PKT_LEN_ERR_SMASK 0x20000ull 102162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_BYPASS_ERR_SMASK 0x800ull 102262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_GRH_ERR_SMASK 0x400ull 102362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_JOB_KEY_ERR_SMASK 0x4ull 102462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_KDETH_PACKETS_ERR_SMASK 0x1000ull 102562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_NON_KDETH_PACKETS_ERR_SMASK 0x2000ull 102662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_OPCODE_ERR_SMASK 0x20ull 102762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_PARTITION_KEY_ERR_SMASK 0x8ull 102862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_PBC_STATIC_RATE_CONTROL_ERR_SMASK 0x100000ull 102962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_PBC_TEST_ERR_SMASK 0x10000ull 103062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_RAW_ERR_SMASK 0x100ull 103162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_RAW_IPV6_ERR_SMASK 0x200ull 103262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_SLID_ERR_SMASK 0x10ull 103362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_LONG_BYPASS_PACKETS_ERR_SMASK 0x80000ull 103462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_LONG_IB_PACKET_ERR_SMASK 0x40000ull 103562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_SMALL_BYPASS_PACKETS_ERR_SMASK 0x8000ull 103662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_TOO_SMALL_IB_PACKETS_ERR_SMASK 0x4000ull 103762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_VL_ERR_SMASK 0x2ull 103862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_INFO_VL_MAPPING_ERR_SMASK 0x40ull 103962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_MASK (TXE + 0x000000000088) 104062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_SOURCE (TXE + 0x000000000F08) 104162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS (TXE + 0x000000000080) 104262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CONFIG_PARITY_ERR_SMASK 0x8000ull 104362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CREDIT_OVERRUN_ERR_SMASK \ 104462306a36Sopenharmony_ci 0x200000000000000ull 104562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CREDIT_RETURN_PARITY_ERR_SMASK \ 104662306a36Sopenharmony_ci 0x20000000000ull 104762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_CREDIT_RETURN_VL_ERR_SMASK \ 104862306a36Sopenharmony_ci 0x800000000000ull 104962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_EGRESS_FIFO_COR_ERR_SMASK \ 105062306a36Sopenharmony_ci 0x2000000000000000ull 105162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_EGRESS_FIFO_UNC_ERR_SMASK \ 105262306a36Sopenharmony_ci 0x200000000000ull 105362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_EGRESS_FIFO_UNDERRUN_OR_PARITY_ERR_SMASK \ 105462306a36Sopenharmony_ci 0x8ull 105562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_HCRC_INSERTION_ERR_SMASK \ 105662306a36Sopenharmony_ci 0x400000000000ull 105762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_ILLEGAL_VL_ERR_SMASK 0x1000ull 105862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_INCORRECT_LINK_STATE_ERR_SMASK 0x20ull 105962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_CSR_PARITY_ERR_SMASK 0x2000ull 106062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO0_COR_ERR_SMASK \ 106162306a36Sopenharmony_ci 0x1000000000000ull 106262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO0_UNC_OR_PARITY_ERR_SMASK \ 106362306a36Sopenharmony_ci 0x100000000ull 106462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO1_COR_ERR_SMASK \ 106562306a36Sopenharmony_ci 0x2000000000000ull 106662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO1_UNC_OR_PARITY_ERR_SMASK \ 106762306a36Sopenharmony_ci 0x200000000ull 106862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO2_COR_ERR_SMASK \ 106962306a36Sopenharmony_ci 0x4000000000000ull 107062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO2_UNC_OR_PARITY_ERR_SMASK \ 107162306a36Sopenharmony_ci 0x400000000ull 107262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO3_COR_ERR_SMASK \ 107362306a36Sopenharmony_ci 0x8000000000000ull 107462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO3_UNC_OR_PARITY_ERR_SMASK \ 107562306a36Sopenharmony_ci 0x800000000ull 107662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO4_COR_ERR_SMASK \ 107762306a36Sopenharmony_ci 0x10000000000000ull 107862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO4_UNC_OR_PARITY_ERR_SMASK \ 107962306a36Sopenharmony_ci 0x1000000000ull 108062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO5_COR_ERR_SMASK \ 108162306a36Sopenharmony_ci 0x20000000000000ull 108262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO5_UNC_OR_PARITY_ERR_SMASK \ 108362306a36Sopenharmony_ci 0x2000000000ull 108462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO6_COR_ERR_SMASK \ 108562306a36Sopenharmony_ci 0x40000000000000ull 108662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO6_UNC_OR_PARITY_ERR_SMASK \ 108762306a36Sopenharmony_ci 0x4000000000ull 108862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO7_COR_ERR_SMASK \ 108962306a36Sopenharmony_ci 0x80000000000000ull 109062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO7_UNC_OR_PARITY_ERR_SMASK \ 109162306a36Sopenharmony_ci 0x8000000000ull 109262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO8_COR_ERR_SMASK \ 109362306a36Sopenharmony_ci 0x100000000000000ull 109462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LAUNCH_FIFO8_UNC_OR_PARITY_ERR_SMASK \ 109562306a36Sopenharmony_ci 0x10000000000ull 109662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_LINKDOWN_ERR_SMASK 0x10ull 109762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_PIO_LAUNCH_INTF_PARITY_ERR_SMASK 0x80ull 109862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_PKT_INTEGRITY_MEM_COR_ERR_SMASK 0x1ull 109962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_PKT_INTEGRITY_MEM_UNC_ERR_SMASK 0x2ull 110062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_PIO_MEMORY_COR_ERR_SMASK \ 110162306a36Sopenharmony_ci 0x1000000000000000ull 110262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_PIO_MEMORY_CSR_UNC_ERR_SMASK \ 110362306a36Sopenharmony_ci 0x8000000000000000ull 110462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_PIO_MEMORY_UNC_ERR_SMASK \ 110562306a36Sopenharmony_ci 0x100000000000ull 110662306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_SDMA_MEMORY_COR_ERR_SMASK \ 110762306a36Sopenharmony_ci 0x800000000000000ull 110862306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_SDMA_MEMORY_CSR_UNC_ERR_SMASK \ 110962306a36Sopenharmony_ci 0x4000000000000000ull 111062306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_READ_SDMA_MEMORY_UNC_ERR_SMASK \ 111162306a36Sopenharmony_ci 0x80000000000ull 111262306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SB_HDR_COR_ERR_SMASK 0x400000000000000ull 111362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SB_HDR_UNC_ERR_SMASK 0x40000000000ull 111462306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SBRD_CTL_CSR_PARITY_ERR_SMASK 0x4000ull 111562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SBRD_CTL_STATE_MACHINE_PARITY_ERR_SMASK \ 111662306a36Sopenharmony_ci 0x800ull 111762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA0_DISALLOWED_PACKET_ERR_SMASK \ 111862306a36Sopenharmony_ci 0x10000ull 111962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA10_DISALLOWED_PACKET_ERR_SMASK \ 112062306a36Sopenharmony_ci 0x4000000ull 112162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA11_DISALLOWED_PACKET_ERR_SMASK \ 112262306a36Sopenharmony_ci 0x8000000ull 112362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA12_DISALLOWED_PACKET_ERR_SMASK \ 112462306a36Sopenharmony_ci 0x10000000ull 112562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA13_DISALLOWED_PACKET_ERR_SMASK \ 112662306a36Sopenharmony_ci 0x20000000ull 112762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA14_DISALLOWED_PACKET_ERR_SMASK \ 112862306a36Sopenharmony_ci 0x40000000ull 112962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA15_DISALLOWED_PACKET_ERR_SMASK \ 113062306a36Sopenharmony_ci 0x80000000ull 113162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA1_DISALLOWED_PACKET_ERR_SMASK \ 113262306a36Sopenharmony_ci 0x20000ull 113362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA2_DISALLOWED_PACKET_ERR_SMASK \ 113462306a36Sopenharmony_ci 0x40000ull 113562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA3_DISALLOWED_PACKET_ERR_SMASK \ 113662306a36Sopenharmony_ci 0x80000ull 113762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA4_DISALLOWED_PACKET_ERR_SMASK \ 113862306a36Sopenharmony_ci 0x100000ull 113962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA5_DISALLOWED_PACKET_ERR_SMASK \ 114062306a36Sopenharmony_ci 0x200000ull 114162306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA6_DISALLOWED_PACKET_ERR_SMASK \ 114262306a36Sopenharmony_ci 0x400000ull 114362306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA7_DISALLOWED_PACKET_ERR_SMASK \ 114462306a36Sopenharmony_ci 0x800000ull 114562306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA8_DISALLOWED_PACKET_ERR_SMASK \ 114662306a36Sopenharmony_ci 0x1000000ull 114762306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA9_DISALLOWED_PACKET_ERR_SMASK \ 114862306a36Sopenharmony_ci 0x2000000ull 114962306a36Sopenharmony_ci#define SEND_EGRESS_ERR_STATUS_TX_SDMA_LAUNCH_INTF_PARITY_ERR_SMASK \ 115062306a36Sopenharmony_ci 0x100ull 115162306a36Sopenharmony_ci#define SEND_EGRESS_SEND_DMA_STATUS (TXE + 0x000000000E00) 115262306a36Sopenharmony_ci#define SEND_EGRESS_SEND_DMA_STATUS_SDMA_EGRESS_PACKET_OCCUPANCY_SHIFT 0 115362306a36Sopenharmony_ci#define SEND_EGRESS_SEND_DMA_STATUS_SDMA_EGRESS_PACKET_OCCUPANCY_SMASK \ 115462306a36Sopenharmony_ci 0x3FFFull 115562306a36Sopenharmony_ci#define SEND_ERR_CLEAR (TXE + 0x0000000000F0) 115662306a36Sopenharmony_ci#define SEND_ERR_MASK (TXE + 0x0000000000E8) 115762306a36Sopenharmony_ci#define SEND_ERR_STATUS (TXE + 0x0000000000E0) 115862306a36Sopenharmony_ci#define SEND_ERR_STATUS_SEND_CSR_PARITY_ERR_SMASK 0x1ull 115962306a36Sopenharmony_ci#define SEND_ERR_STATUS_SEND_CSR_READ_BAD_ADDR_ERR_SMASK 0x2ull 116062306a36Sopenharmony_ci#define SEND_ERR_STATUS_SEND_CSR_WRITE_BAD_ADDR_ERR_SMASK 0x4ull 116162306a36Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIMIT (TXE + 0x000000000030) 116262306a36Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIMIT_LIMIT_MASK 0x3FFFull 116362306a36Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIMIT_LIMIT_SHIFT 0 116462306a36Sopenharmony_ci#define SEND_HIGH_PRIORITY_LIST (TXE + 0x000000000180) 116562306a36Sopenharmony_ci#define SEND_LEN_CHECK0 (TXE + 0x0000000000D0) 116662306a36Sopenharmony_ci#define SEND_LEN_CHECK0_LEN_VL0_MASK 0xFFFull 116762306a36Sopenharmony_ci#define SEND_LEN_CHECK0_LEN_VL1_SHIFT 12 116862306a36Sopenharmony_ci#define SEND_LEN_CHECK1 (TXE + 0x0000000000D8) 116962306a36Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL15_MASK 0xFFFull 117062306a36Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL15_SHIFT 48 117162306a36Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL4_MASK 0xFFFull 117262306a36Sopenharmony_ci#define SEND_LEN_CHECK1_LEN_VL5_SHIFT 12 117362306a36Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST (TXE + 0x000000000100) 117462306a36Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_VL_MASK 0x7ull 117562306a36Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_VL_SHIFT 16 117662306a36Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_WEIGHT_MASK 0xFFull 117762306a36Sopenharmony_ci#define SEND_LOW_PRIORITY_LIST_WEIGHT_SHIFT 0 117862306a36Sopenharmony_ci#define SEND_PIO_ERR_CLEAR (TXE + 0x000000000050) 117962306a36Sopenharmony_ci#define SEND_PIO_ERR_CLEAR_PIO_INIT_SM_IN_ERR_SMASK 0x20000ull 118062306a36Sopenharmony_ci#define SEND_PIO_ERR_MASK (TXE + 0x000000000048) 118162306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS (TXE + 0x000000000040) 118262306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_BLOCK_QW_COUNT_PARITY_ERR_SMASK \ 118362306a36Sopenharmony_ci 0x1000000ull 118462306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_CREDIT_RET_FIFO_PARITY_ERR_SMASK 0x8000ull 118562306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_CSR_PARITY_ERR_SMASK 0x4ull 118662306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_CURRENT_FREE_CNT_PARITY_ERR_SMASK \ 118762306a36Sopenharmony_ci 0x100000000ull 118862306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_HOST_ADDR_MEM_COR_ERR_SMASK 0x100000ull 118962306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_HOST_ADDR_MEM_UNC_ERR_SMASK 0x80000ull 119062306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_INIT_SM_IN_ERR_SMASK 0x20000ull 119162306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_LAST_RETURNED_CNT_PARITY_ERR_SMASK \ 119262306a36Sopenharmony_ci 0x200000000ull 119362306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PCC_FIFO_PARITY_ERR_SMASK 0x20ull 119462306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PCC_SOP_HEAD_PARITY_ERR_SMASK \ 119562306a36Sopenharmony_ci 0x400000000ull 119662306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PEC_FIFO_PARITY_ERR_SMASK 0x40ull 119762306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PEC_SOP_HEAD_PARITY_ERR_SMASK \ 119862306a36Sopenharmony_ci 0x800000000ull 119962306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PKT_EVICT_FIFO_PARITY_ERR_SMASK 0x200ull 120062306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PKT_EVICT_SM_OR_ARB_SM_ERR_SMASK 0x40000ull 120162306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PPMC_BQC_MEM_PARITY_ERR_SMASK 0x10000000ull 120262306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PPMC_PBL_FIFO_ERR_SMASK 0x10000ull 120362306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_PPMC_SOP_LEN_ERR_SMASK 0x20000000ull 120462306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SB_MEM_FIFO0_ERR_SMASK 0x8ull 120562306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SB_MEM_FIFO1_ERR_SMASK 0x10ull 120662306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SBRDCTL_CRREL_PARITY_ERR_SMASK 0x80ull 120762306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SBRDCTRL_CRREL_FIFO_PARITY_ERR_SMASK \ 120862306a36Sopenharmony_ci 0x100ull 120962306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_SM_PKT_RESET_PARITY_ERR_SMASK 0x400ull 121062306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_STATE_MACHINE_ERR_SMASK 0x400000ull 121162306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_FIFO_PARITY_ERR_SMASK 0x8000000ull 121262306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VLF_SOP_PARITY_ERR_SMASK 0x4000000ull 121362306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VLF_VL_LEN_PARITY_ERR_SMASK 0x2000000ull 121462306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK0_COR_ERR_SMASK 0x2000ull 121562306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK0_UNC_ERR_SMASK 0x800ull 121662306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK1_COR_ERR_SMASK 0x4000ull 121762306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_VL_LEN_MEM_BANK1_UNC_ERR_SMASK 0x1000ull 121862306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_ADDR_PARITY_ERR_SMASK 0x2ull 121962306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_BAD_CTXT_ERR_SMASK 0x1ull 122062306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_DATA_PARITY_ERR_SMASK 0x200000ull 122162306a36Sopenharmony_ci#define SEND_PIO_ERR_STATUS_PIO_WRITE_QW_VALID_PARITY_ERR_SMASK 0x800000ull 122262306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT (TXE + 0x000000000038) 122362306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_ALL_CTXT_INIT_SMASK 0x1ull 122462306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_CTXT_NUM_MASK 0xFFull 122562306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_CTXT_NUM_SHIFT 8 122662306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_INIT_ERR_SMASK 0x8ull 122762306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_INIT_IN_PROGRESS_SMASK 0x4ull 122862306a36Sopenharmony_ci#define SEND_PIO_INIT_CTXT_PIO_SINGLE_CTXT_INIT_SMASK 0x2ull 122962306a36Sopenharmony_ci#define SEND_PIO_MEM_SIZE (TXE + 0x000000000020) 123062306a36Sopenharmony_ci#define SEND_SC2VLT0 (TXE + 0x0000000000B0) 123162306a36Sopenharmony_ci#define SEND_SC2VLT0_SC0_SHIFT 0 123262306a36Sopenharmony_ci#define SEND_SC2VLT0_SC1_SHIFT 8 123362306a36Sopenharmony_ci#define SEND_SC2VLT0_SC2_SHIFT 16 123462306a36Sopenharmony_ci#define SEND_SC2VLT0_SC3_SHIFT 24 123562306a36Sopenharmony_ci#define SEND_SC2VLT0_SC4_SHIFT 32 123662306a36Sopenharmony_ci#define SEND_SC2VLT0_SC5_SHIFT 40 123762306a36Sopenharmony_ci#define SEND_SC2VLT0_SC6_SHIFT 48 123862306a36Sopenharmony_ci#define SEND_SC2VLT0_SC7_SHIFT 56 123962306a36Sopenharmony_ci#define SEND_SC2VLT1 (TXE + 0x0000000000B8) 124062306a36Sopenharmony_ci#define SEND_SC2VLT1_SC10_SHIFT 16 124162306a36Sopenharmony_ci#define SEND_SC2VLT1_SC11_SHIFT 24 124262306a36Sopenharmony_ci#define SEND_SC2VLT1_SC12_SHIFT 32 124362306a36Sopenharmony_ci#define SEND_SC2VLT1_SC13_SHIFT 40 124462306a36Sopenharmony_ci#define SEND_SC2VLT1_SC14_SHIFT 48 124562306a36Sopenharmony_ci#define SEND_SC2VLT1_SC15_SHIFT 56 124662306a36Sopenharmony_ci#define SEND_SC2VLT1_SC8_SHIFT 0 124762306a36Sopenharmony_ci#define SEND_SC2VLT1_SC9_SHIFT 8 124862306a36Sopenharmony_ci#define SEND_SC2VLT2 (TXE + 0x0000000000C0) 124962306a36Sopenharmony_ci#define SEND_SC2VLT2_SC16_SHIFT 0 125062306a36Sopenharmony_ci#define SEND_SC2VLT2_SC17_SHIFT 8 125162306a36Sopenharmony_ci#define SEND_SC2VLT2_SC18_SHIFT 16 125262306a36Sopenharmony_ci#define SEND_SC2VLT2_SC19_SHIFT 24 125362306a36Sopenharmony_ci#define SEND_SC2VLT2_SC20_SHIFT 32 125462306a36Sopenharmony_ci#define SEND_SC2VLT2_SC21_SHIFT 40 125562306a36Sopenharmony_ci#define SEND_SC2VLT2_SC22_SHIFT 48 125662306a36Sopenharmony_ci#define SEND_SC2VLT2_SC23_SHIFT 56 125762306a36Sopenharmony_ci#define SEND_SC2VLT3 (TXE + 0x0000000000C8) 125862306a36Sopenharmony_ci#define SEND_SC2VLT3_SC24_SHIFT 0 125962306a36Sopenharmony_ci#define SEND_SC2VLT3_SC25_SHIFT 8 126062306a36Sopenharmony_ci#define SEND_SC2VLT3_SC26_SHIFT 16 126162306a36Sopenharmony_ci#define SEND_SC2VLT3_SC27_SHIFT 24 126262306a36Sopenharmony_ci#define SEND_SC2VLT3_SC28_SHIFT 32 126362306a36Sopenharmony_ci#define SEND_SC2VLT3_SC29_SHIFT 40 126462306a36Sopenharmony_ci#define SEND_SC2VLT3_SC30_SHIFT 48 126562306a36Sopenharmony_ci#define SEND_SC2VLT3_SC31_SHIFT 56 126662306a36Sopenharmony_ci#define SEND_STATIC_RATE_CONTROL (TXE + 0x0000000000A8) 126762306a36Sopenharmony_ci#define SEND_STATIC_RATE_CONTROL_CSR_SRC_RELOAD_SHIFT 0 126862306a36Sopenharmony_ci#define SEND_STATIC_RATE_CONTROL_CSR_SRC_RELOAD_SMASK 0xFFFFull 126962306a36Sopenharmony_ci#define PCIE_CFG_REG_PL2 (PCIE + 0x000000000708) 127062306a36Sopenharmony_ci#define PCIE_CFG_REG_PL3 (PCIE + 0x00000000070C) 127162306a36Sopenharmony_ci#define PCIE_CFG_REG_PL3_L1_ENT_LATENCY_SHIFT 27 127262306a36Sopenharmony_ci#define PCIE_CFG_REG_PL3_L1_ENT_LATENCY_SMASK 0x38000000 127362306a36Sopenharmony_ci#define PCIE_CFG_REG_PL102 (PCIE + 0x000000000898) 127462306a36Sopenharmony_ci#define PCIE_CFG_REG_PL102_GEN3_EQ_POST_CURSOR_PSET_SHIFT 12 127562306a36Sopenharmony_ci#define PCIE_CFG_REG_PL102_GEN3_EQ_CURSOR_PSET_SHIFT 6 127662306a36Sopenharmony_ci#define PCIE_CFG_REG_PL102_GEN3_EQ_PRE_CURSOR_PSET_SHIFT 0 127762306a36Sopenharmony_ci#define PCIE_CFG_REG_PL103 (PCIE + 0x00000000089C) 127862306a36Sopenharmony_ci#define PCIE_CFG_REG_PL105 (PCIE + 0x0000000008A4) 127962306a36Sopenharmony_ci#define PCIE_CFG_REG_PL105_GEN3_EQ_VIOLATE_COEF_RULES_SMASK 0x1ull 128062306a36Sopenharmony_ci#define PCIE_CFG_REG_PL2_LOW_PWR_ENT_CNT_SHIFT 24 128162306a36Sopenharmony_ci#define PCIE_CFG_REG_PL100 (PCIE + 0x000000000890) 128262306a36Sopenharmony_ci#define PCIE_CFG_REG_PL100_EQ_EIEOS_CNT_SMASK 0x400ull 128362306a36Sopenharmony_ci#define PCIE_CFG_REG_PL101 (PCIE + 0x000000000894) 128462306a36Sopenharmony_ci#define PCIE_CFG_REG_PL101_GEN3_EQ_LOCAL_FS_SHIFT 6 128562306a36Sopenharmony_ci#define PCIE_CFG_REG_PL101_GEN3_EQ_LOCAL_LF_SHIFT 0 128662306a36Sopenharmony_ci#define PCIE_CFG_REG_PL106 (PCIE + 0x0000000008A8) 128762306a36Sopenharmony_ci#define PCIE_CFG_REG_PL106_GEN3_EQ_PSET_REQ_VEC_SHIFT 8 128862306a36Sopenharmony_ci#define PCIE_CFG_REG_PL106_GEN3_EQ_EVAL2MS_DISABLE_SMASK 0x20ull 128962306a36Sopenharmony_ci#define PCIE_CFG_REG_PL106_GEN3_EQ_PHASE23_EXIT_MODE_SMASK 0x10ull 129062306a36Sopenharmony_ci#define CCE_INT_BLOCKED (CCE + 0x000000110C00) 129162306a36Sopenharmony_ci#define SEND_DMA_IDLE_CNT (TXE + 0x000000200040) 129262306a36Sopenharmony_ci#define SEND_DMA_DESC_FETCHED_CNT (TXE + 0x000000200058) 129362306a36Sopenharmony_ci#define CCE_MSIX_PBA_OFFSET 0X0110000 129462306a36Sopenharmony_ci 129562306a36Sopenharmony_ci#endif /* DEF_CHIP_REG */ 1296