From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0B56AA2EDB for ; Fri, 6 Sep 2019 09:27:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E44C81F168; Fri, 6 Sep 2019 09:26:36 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1EAEE1F153 for ; Fri, 6 Sep 2019 09:26:27 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x867KYL7031883; Fri, 6 Sep 2019 00:26:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=8YyyJOad8zNu/PtNcTCOcv2Rv7np61Qo7xY6Ku3ioj0=; b=fMDu0WnaLtRu137ttURKmwpcUuUTrNM5axrPtqjjUMWnzMK2bc6Y5wJjSyTvodIwDteg XiTV/4EoLMKknYo1ipUrfKUcyQgHnYhWohXciH6iHt6T//bMWdm7/6uDy8HkhgGivf4l 8Ia2b2daPR1bTy2oqfgX5H/aOv+midH0nVbIgv58+2X8XQ9c2JvTva79PhdvE2FbWDDA eqUCFNKS3wE6ZIb4+O9KmhheDMGuzv391SETSekABpzjD4743FJXBQKwsWJF1J0h7Z/a Wd7Wz2s39UIAZazZkE6324Jk3D28DX90s3IOTCQ3aLjm/e1HpeSDbAibeiS+hOIiQwht DA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2uqrdmp2tb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 06 Sep 2019 00:26:25 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 6 Sep 2019 00:26:20 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 6 Sep 2019 00:26:20 -0700 Received: from irv1user08.caveonetworks.com (unknown [10.104.116.105]) by maili.marvell.com (Postfix) with ESMTP id A74683F703F; Fri, 6 Sep 2019 00:26:19 -0700 (PDT) Received: (from rmody@localhost) by irv1user08.caveonetworks.com (8.14.4/8.14.4/Submit) id x867QJl9012388; Fri, 6 Sep 2019 00:26:19 -0700 X-Authentication-Warning: irv1user08.caveonetworks.com: rmody set sender to rmody@marvell.com using -f From: Rasesh Mody To: CC: Rasesh Mody , , , Date: Fri, 6 Sep 2019 00:25:44 -0700 Message-ID: <20190906072548.12304-2-rmody@marvell.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190906072548.12304-1-rmody@marvell.com> References: <20190906072548.12304-1-rmody@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-06_03:2019-09-04,2019-09-06 signatures=0 Subject: [dpdk-dev] [PATCH 1/5] net/bnx2x: update and reorganize HW registers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Update and reorganize HW registers in preparation to update the firmware to version 7.13.11. Move HW_INTERRUT_ASSERT_SET_0 out from ecore_reg.h to bnx2x.h. Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x.c | 3 +- drivers/net/bnx2x/bnx2x.h | 67 + drivers/net/bnx2x/ecore_reg.h | 6246 ++++++++++++++++++++++----------- 3 files changed, 4183 insertions(+), 2133 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index 1a088269f..47972cd73 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -4095,7 +4095,7 @@ static void bnx2x_attn_int_deasserted0(struct bnx2x_softc *sc, uint32_t attn) REG_WR(sc, reg_offset, val); rte_panic("FATAL HW block attention set0 0x%lx", - (attn & HW_INTERRUT_ASSERT_SET_0)); + (attn & (long unsigned)HW_INTERRUT_ASSERT_SET_0)); } } @@ -10394,7 +10394,6 @@ static int bnx2x_init_hw_common(struct bnx2x_softc *sc) ecore_init_block(sc, BLOCK_TM, PHASE_COMMON); ecore_init_block(sc, BLOCK_DORQ, PHASE_COMMON); - REG_WR(sc, DORQ_REG_DPM_CID_OFST, BNX2X_DB_SHIFT); if (!CHIP_REV_IS_SLOW(sc)) { /* enable hw interrupt from doorbell Q */ diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index ceaecb031..1ea8b55c9 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h @@ -1714,6 +1714,73 @@ static const uint32_t dmae_reg_go_c[] = { GENERAL_ATTEN_OFFSET(LATCHED_ATTN_RBCP) | \ GENERAL_ATTEN_OFFSET(LATCHED_ATTN_RSVD_GRC)) +#define HW_INTERRUT_ASSERT_SET_0 \ + (AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT) +#define HW_PRTY_ASSERT_SET_0 (AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR) +#define HW_INTERRUT_ASSERT_SET_1 \ + (AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT) +#define HW_PRTY_ASSERT_SET_1 (AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR) +#define HW_INTERRUT_ASSERT_SET_2 \ + (AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT | \ + AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT |\ + AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT) +#define HW_PRTY_ASSERT_SET_2 (AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR |\ + AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR) + +#define HW_PRTY_ASSERT_SET_3_WITHOUT_SCPAD \ + (AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY | \ + AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY | \ + AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY) + +#define HW_PRTY_ASSERT_SET_3 (HW_PRTY_ASSERT_SET_3_WITHOUT_SCPAD | \ + AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY) + +#define HW_PRTY_ASSERT_SET_4 (AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR | \ + AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR) + #define MULTI_MASK 0x7f #define PFS_PER_PORT(sc) \ diff --git a/drivers/net/bnx2x/ecore_reg.h b/drivers/net/bnx2x/ecore_reg.h index 7af9a2d81..57ef5007e 100644 --- a/drivers/net/bnx2x/ecore_reg.h +++ b/drivers/net/bnx2x/ecore_reg.h @@ -13,2105 +13,3991 @@ #ifndef ECORE_REG_H #define ECORE_REG_H - -#define ATC_ATC_INT_STS_REG_ADDRESS_ERROR \ - (0x1<<0) -#define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS \ - (0x1<<2) -#define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU \ - (0x1<<5) -#define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT \ - (0x1<<3) -#define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR \ - (0x1<<4) -#define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND \ - (0x1<<1) -#define ATC_REG_ATC_INIT_DONE \ - 0x1100bcUL -#define ATC_REG_ATC_INT_STS_CLR \ - 0x1101c0UL -#define ATC_REG_ATC_PRTY_MASK \ - 0x1101d8UL -#define ATC_REG_ATC_PRTY_STS_CLR \ - 0x1101d0UL -#define BRB1_REG_BRB1_INT_MASK \ - 0x60128UL -#define BRB1_REG_BRB1_PRTY_MASK \ - 0x60138UL -#define BRB1_REG_BRB1_PRTY_STS_CLR \ - 0x60130UL -#define BRB1_REG_MAC_GUARANTIED_0 \ - 0x601e8UL -#define BRB1_REG_MAC_GUARANTIED_1 \ - 0x60240UL -#define BRB1_REG_NUM_OF_FULL_BLOCKS \ - 0x60090UL -#define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 \ - 0x60078UL -#define BRB1_REG_PAUSE_LOW_THRESHOLD_0 \ - 0x60068UL -#define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 \ - 0x60094UL -#define CCM_REG_CCM_INT_MASK \ - 0xd01e4UL -#define CCM_REG_CCM_PRTY_MASK \ - 0xd01f4UL -#define CCM_REG_CCM_PRTY_STS_CLR \ - 0xd01ecUL -#define CDU_REG_CDU_GLOBAL_PARAMS \ - 0x101020UL -#define CDU_REG_CDU_INT_MASK \ - 0x10103cUL -#define CDU_REG_CDU_PRTY_MASK \ - 0x10104cUL -#define CDU_REG_CDU_PRTY_STS_CLR \ - 0x101044UL -#define CFC_REG_AC_INIT_DONE \ - 0x104078UL -#define CFC_REG_CAM_INIT_DONE \ - 0x10407cUL -#define CFC_REG_CFC_INT_MASK \ - 0x104108UL -#define CFC_REG_CFC_INT_STS_CLR \ - 0x104100UL -#define CFC_REG_CFC_PRTY_MASK \ - 0x104118UL -#define CFC_REG_CFC_PRTY_STS_CLR \ - 0x104110UL -#define CFC_REG_DEBUG0 \ - 0x104050UL -#define CFC_REG_INIT_REG \ - 0x10404cUL -#define CFC_REG_LL_INIT_DONE \ - 0x104074UL -#define CFC_REG_NUM_LCIDS_INSIDE_PF \ - 0x104120UL -#define CFC_REG_STRONG_ENABLE_PF \ - 0x104128UL -#define CFC_REG_WEAK_ENABLE_PF \ - 0x104124UL -#define CSDM_REG_CSDM_INT_MASK_0 \ - 0xc229cUL -#define CSDM_REG_CSDM_INT_MASK_1 \ - 0xc22acUL -#define CSDM_REG_CSDM_PRTY_MASK \ - 0xc22bcUL -#define CSDM_REG_CSDM_PRTY_STS_CLR \ - 0xc22b4UL -#define CSEM_REG_CSEM_INT_MASK_0 \ - 0x200110UL -#define CSEM_REG_CSEM_INT_MASK_1 \ - 0x200120UL -#define CSEM_REG_CSEM_PRTY_MASK_0 \ - 0x200130UL -#define CSEM_REG_CSEM_PRTY_MASK_1 \ - 0x200140UL -#define CSEM_REG_CSEM_PRTY_STS_CLR_0 \ - 0x200128UL -#define CSEM_REG_CSEM_PRTY_STS_CLR_1 \ - 0x200138UL -#define CSEM_REG_FAST_MEMORY \ - 0x220000UL -#define CSEM_REG_INT_TABLE \ - 0x200400UL -#define CSEM_REG_PASSIVE_BUFFER \ - 0x202000UL -#define CSEM_REG_PRAM \ - 0x240000UL -#define CSEM_REG_VFPF_ERR_NUM \ - 0x200380UL -#define DBG_REG_DBG_PRTY_MASK \ - 0xc0a8UL -#define DBG_REG_DBG_PRTY_STS_CLR \ - 0xc0a0UL -#define DMAE_REG_BACKWARD_COMP_EN \ - 0x10207cUL -#define DMAE_REG_CMD_MEM \ - 0x102400UL -#define DMAE_REG_DMAE_INT_MASK \ - 0x102054UL -#define DMAE_REG_DMAE_PRTY_MASK \ - 0x102064UL -#define DMAE_REG_DMAE_PRTY_STS_CLR \ - 0x10205cUL -#define DMAE_REG_GO_C0 \ - 0x102080UL -#define DMAE_REG_GO_C1 \ - 0x102084UL -#define DMAE_REG_GO_C10 \ - 0x102088UL -#define DMAE_REG_GO_C11 \ - 0x10208cUL -#define DMAE_REG_GO_C12 \ - 0x102090UL -#define DMAE_REG_GO_C13 \ - 0x102094UL -#define DMAE_REG_GO_C14 \ - 0x102098UL -#define DMAE_REG_GO_C15 \ - 0x10209cUL -#define DMAE_REG_GO_C2 \ - 0x1020a0UL -#define DMAE_REG_GO_C3 \ - 0x1020a4UL -#define DMAE_REG_GO_C4 \ - 0x1020a8UL -#define DMAE_REG_GO_C5 \ - 0x1020acUL -#define DMAE_REG_GO_C6 \ - 0x1020b0UL -#define DMAE_REG_GO_C7 \ - 0x1020b4UL -#define DMAE_REG_GO_C8 \ - 0x1020b8UL -#define DMAE_REG_GO_C9 \ - 0x1020bcUL -#define DORQ_REG_DORQ_INT_MASK \ - 0x170180UL -#define DORQ_REG_DORQ_INT_STS_CLR \ - 0x170178UL -#define DORQ_REG_DORQ_PRTY_MASK \ - 0x170190UL -#define DORQ_REG_DORQ_PRTY_STS_CLR \ - 0x170188UL -#define DORQ_REG_DPM_CID_OFST \ - 0x170030UL -#define DORQ_REG_MAX_RVFID_SIZE \ - 0x1701ecUL -#define DORQ_REG_NORM_CID_OFST \ - 0x17002cUL -#define DORQ_REG_PF_USAGE_CNT \ - 0x1701d0UL -#define DORQ_REG_VF_NORM_CID_BASE \ - 0x1701a0UL -#define DORQ_REG_VF_NORM_CID_OFST \ - 0x1701f4UL -#define DORQ_REG_VF_NORM_CID_WND_SIZE \ - 0x1701a4UL -#define DORQ_REG_VF_NORM_MAX_CID_COUNT \ - 0x1701e4UL -#define DORQ_REG_VF_NORM_VF_BASE \ - 0x1701a8UL -#define DORQ_REG_VF_TYPE_MASK_0 \ - 0x170218UL -#define DORQ_REG_VF_TYPE_MAX_MCID_0 \ - 0x1702d8UL -#define DORQ_REG_VF_TYPE_MIN_MCID_0 \ - 0x170298UL -#define DORQ_REG_VF_TYPE_VALUE_0 \ - 0x170258UL -#define DORQ_REG_VF_USAGE_CNT \ - 0x170320UL -#define DORQ_REG_VF_USAGE_CT_LIMIT \ - 0x170340UL -#define HC_CONFIG_0_REG_ATTN_BIT_EN_0 \ - (0x1<<4) -#define HC_CONFIG_0_REG_BLOCK_DISABLE_0 \ - (0x1<<0) -#define HC_CONFIG_0_REG_INT_LINE_EN_0 \ - (0x1<<3) -#define HC_CONFIG_0_REG_MSI_ATTN_EN_0 \ - (0x1<<7) -#define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 \ - (0x1<<2) -#define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 \ - (0x1<<1) -#define HC_CONFIG_1_REG_BLOCK_DISABLE_1 \ - (0x1<<0) -#define HC_REG_ATTN_MSG0_ADDR_L \ - 0x108018UL -#define HC_REG_ATTN_MSG1_ADDR_L \ - 0x108020UL -#define HC_REG_COMMAND_REG \ - 0x108180UL -#define HC_REG_CONFIG_0 \ - 0x108000UL -#define HC_REG_CONFIG_1 \ - 0x108004UL -#define HC_REG_HC_PRTY_MASK \ - 0x1080a0UL -#define HC_REG_HC_PRTY_STS_CLR \ - 0x108098UL -#define HC_REG_INT_MASK \ - 0x108108UL -#define HC_REG_LEADING_EDGE_0 \ - 0x108040UL -#define HC_REG_MAIN_MEMORY \ - 0x108800UL -#define HC_REG_MAIN_MEMORY_SIZE \ - 152 -#define HC_REG_TRAILING_EDGE_0 \ - 0x108044UL -#define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN \ - (0x1<<1) -#define IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE \ - (0x1<<0) -#define IGU_REG_ATTENTION_ACK_BITS \ - 0x130108UL -#define IGU_REG_ATTN_MSG_ADDR_H \ - 0x13011cUL -#define IGU_REG_ATTN_MSG_ADDR_L \ - 0x130120UL -#define IGU_REG_BLOCK_CONFIGURATION \ - 0x130000UL -#define IGU_REG_COMMAND_REG_32LSB_DATA \ - 0x130124UL -#define IGU_REG_COMMAND_REG_CTRL \ - 0x13012cUL -#define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP \ - 0x130200UL -#define IGU_REG_IGU_PRTY_MASK \ - 0x1300a8UL -#define IGU_REG_IGU_PRTY_STS_CLR \ - 0x1300a0UL -#define IGU_REG_LEADING_EDGE_LATCH \ - 0x130134UL -#define IGU_REG_MAPPING_MEMORY \ - 0x131000UL -#define IGU_REG_MAPPING_MEMORY_SIZE \ - 136 -#define IGU_REG_PBA_STATUS_LSB \ - 0x130138UL -#define IGU_REG_PBA_STATUS_MSB \ - 0x13013cUL -#define IGU_REG_PCI_PF_MSIX_EN \ - 0x130144UL -#define IGU_REG_PCI_PF_MSIX_FUNC_MASK \ - 0x130148UL -#define IGU_REG_PCI_PF_MSI_EN \ - 0x130140UL -#define IGU_REG_PENDING_BITS_STATUS \ - 0x130300UL -#define IGU_REG_PF_CONFIGURATION \ - 0x130154UL -#define IGU_REG_PROD_CONS_MEMORY \ - 0x132000UL -#define IGU_REG_RESET_MEMORIES \ - 0x130158UL -#define IGU_REG_SB_INT_BEFORE_MASK_LSB \ - 0x13015cUL -#define IGU_REG_SB_INT_BEFORE_MASK_MSB \ - 0x130160UL -#define IGU_REG_SB_MASK_LSB \ - 0x130164UL -#define IGU_REG_SB_MASK_MSB \ - 0x130168UL -#define IGU_REG_STATISTIC_NUM_MESSAGE_SENT \ - 0x130800UL -#define IGU_REG_TRAILING_EDGE_LATCH \ - 0x130104UL -#define IGU_REG_VF_CONFIGURATION \ - 0x130170UL -#define MCP_REG_MCPR_ACCESS_LOCK \ - 0x8009c -#define MCP_REG_MCPR_GP_INPUTS \ - 0x800c0 -#define MCP_REG_MCPR_GP_OENABLE \ - 0x800c8 -#define MCP_REG_MCPR_GP_OUTPUTS \ - 0x800c4 -#define MCP_REG_MCPR_IMC_COMMAND \ - 0x85900 -#define MCP_REG_MCPR_IMC_DATAREG0 \ - 0x85920 -#define MCP_REG_MCPR_IMC_SLAVE_CONTROL \ - 0x85904 -#define MCP_REG_MCPR_NVM_ACCESS_ENABLE \ - 0x86424 -#define MCP_REG_MCPR_NVM_ADDR \ - 0x8640c -#define MCP_REG_MCPR_NVM_CFG4 \ - 0x8642c -#define MCP_REG_MCPR_NVM_COMMAND \ - 0x86400 -#define MCP_REG_MCPR_NVM_READ \ - 0x86410 -#define MCP_REG_MCPR_NVM_SW_ARB \ - 0x86420 -#define MCP_REG_MCPR_NVM_WRITE \ - 0x86408 -#define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK \ - (0x1<<1) -#define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK \ - (0x1<<0) -#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 \ - 0xa42cUL -#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 \ - 0xa438UL -#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 \ - 0xa444UL -#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 \ - 0xa450UL -#define MISC_REG_AEU_AFTER_INVERT_4_MCP \ - 0xa458UL -#define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 \ - 0xa700UL -#define MISC_REG_AEU_CLR_LATCH_SIGNAL \ - 0xa45cUL -#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 \ - 0xa06cUL -#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 \ - 0xa07cUL -#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 \ - 0xa08cUL -#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 \ - 0xa10cUL -#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 \ - 0xa11cUL -#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 \ - 0xa12cUL -#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 \ - 0xa078UL -#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 \ - 0xa118UL -#define MISC_REG_AEU_ENABLE4_NIG_0 \ - 0xa0f8UL -#define MISC_REG_AEU_ENABLE4_NIG_1 \ - 0xa198UL -#define MISC_REG_AEU_ENABLE4_PXP_0 \ - 0xa108UL -#define MISC_REG_AEU_ENABLE4_PXP_1 \ - 0xa1a8UL -#define MISC_REG_AEU_ENABLE5_FUNC_0_OUT_0 \ - 0xa688UL -#define MISC_REG_AEU_ENABLE5_FUNC_1_OUT_0 \ - 0xa6b0UL -#define MISC_REG_AEU_GENERAL_ATTN_0 \ - 0xa000UL -#define MISC_REG_AEU_GENERAL_ATTN_1 \ - 0xa004UL -#define MISC_REG_AEU_GENERAL_ATTN_10 \ - 0xa028UL -#define MISC_REG_AEU_GENERAL_ATTN_11 \ - 0xa02cUL -#define MISC_REG_AEU_GENERAL_ATTN_12 \ - 0xa030UL -#define MISC_REG_AEU_GENERAL_ATTN_2 \ - 0xa008UL -#define MISC_REG_AEU_GENERAL_ATTN_3 \ - 0xa00cUL -#define MISC_REG_AEU_GENERAL_ATTN_4 \ - 0xa010UL -#define MISC_REG_AEU_GENERAL_ATTN_5 \ - 0xa014UL -#define MISC_REG_AEU_GENERAL_ATTN_6 \ - 0xa018UL -#define MISC_REG_AEU_GENERAL_ATTN_7 \ - 0xa01cUL -#define MISC_REG_AEU_GENERAL_ATTN_8 \ - 0xa020UL -#define MISC_REG_AEU_GENERAL_ATTN_9 \ - 0xa024UL -#define MISC_REG_AEU_GENERAL_MASK \ - 0xa61cUL -#define MISC_REG_AEU_MASK_ATTN_FUNC_0 \ - 0xa060UL -#define MISC_REG_AEU_MASK_ATTN_FUNC_1 \ - 0xa064UL -#define MISC_REG_BOND_ID \ - 0xa400UL -#define MISC_REG_CHIP_NUM \ - 0xa408UL -#define MISC_REG_CHIP_REV \ - 0xa40cUL -#define MISC_REG_CHIP_TYPE \ - 0xac60UL -#define MISC_REG_CHIP_TYPE_57811_MASK \ - (1<<1) -#define MISC_REG_CPMU_LP_DR_ENABLE \ - 0xa858UL -#define MISC_REG_CPMU_LP_FW_ENABLE_P0 \ - 0xa84cUL -#define MISC_REG_CPMU_LP_IDLE_THR_P0 \ - 0xa8a0UL -#define MISC_REG_CPMU_LP_MASK_ENT_P0 \ - 0xa880UL -#define MISC_REG_CPMU_LP_MASK_EXT_P0 \ - 0xa888UL -#define MISC_REG_CPMU_LP_SM_ENT_CNT_P0 \ - 0xa8b8UL -#define MISC_REG_CPMU_LP_SM_ENT_CNT_P1 \ - 0xa8bcUL -#define MISC_REG_DRIVER_CONTROL_1 \ - 0xa510UL -#define MISC_REG_DRIVER_CONTROL_7 \ - 0xa3c8UL -#define MISC_REG_FOUR_PORT_PATH_SWAP \ - 0xa75cUL -#define MISC_REG_FOUR_PORT_PATH_SWAP_OVWR \ - 0xa738UL -#define MISC_REG_FOUR_PORT_PORT_SWAP \ - 0xa754UL -#define MISC_REG_FOUR_PORT_PORT_SWAP_OVWR \ - 0xa734UL -#define MISC_REG_GENERIC_CR_0 \ - 0xa460UL -#define MISC_REG_GENERIC_CR_1 \ - 0xa464UL -#define MISC_REG_GENERIC_POR_1 \ - 0xa474UL -#define MISC_REG_GEN_PURP_HWG \ - 0xa9a0UL -#define MISC_REG_GPIO \ - 0xa490UL -#define MISC_REG_GPIO_EVENT_EN \ - 0xa2bcUL -#define MISC_REG_GPIO_INT \ - 0xa494UL -#define MISC_REG_GRC_RSV_ATTN \ - 0xa3c0UL -#define MISC_REG_GRC_TIMEOUT_ATTN \ - 0xa3c4UL -#define MISC_REG_LCPLL_E40_PWRDWN \ - 0xaa74UL -#define MISC_REG_LCPLL_E40_RESETB_ANA \ - 0xaa78UL -#define MISC_REG_LCPLL_E40_RESETB_DIG \ - 0xaa7cUL -#define MISC_REG_MISC_INT_MASK \ - 0xa388UL -#define MISC_REG_MISC_PRTY_MASK \ - 0xa398UL -#define MISC_REG_MISC_PRTY_STS_CLR \ - 0xa390UL -#define MISC_REG_PORT4MODE_EN \ - 0xa750UL -#define MISC_REG_PORT4MODE_EN_OVWR \ - 0xa720UL -#define MISC_REG_RESET_REG_1 \ - 0xa580UL -#define MISC_REG_RESET_REG_2 \ - 0xa590UL -#define MISC_REG_SHARED_MEM_ADDR \ - 0xa2b4UL -#define MISC_REG_SPIO \ - 0xa4fcUL -#define MISC_REG_SPIO_EVENT_EN \ - 0xa2b8UL -#define MISC_REG_SPIO_INT \ - 0xa500UL -#define MISC_REG_TWO_PORT_PATH_SWAP \ - 0xa758UL -#define MISC_REG_TWO_PORT_PATH_SWAP_OVWR \ - 0xa72cUL -#define MISC_REG_UNPREPARED \ - 0xa424UL -#define MISC_REG_WC0_CTRL_PHY_ADDR \ - 0xa9ccUL -#define MISC_REG_WC0_RESET \ - 0xac30UL -#define MISC_REG_XMAC_CORE_PORT_MODE \ - 0xa964UL -#define MISC_REG_XMAC_PHY_PORT_MODE \ - 0xa960UL -#define MSTAT_REG_RX_STAT_GR64_LO \ - 0x200UL -#define MSTAT_REG_TX_STAT_GTXPOK_LO \ - 0UL -#define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN \ - (0x1<<0) -#define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN \ - (0x1<<0) -#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT \ - (0x1<<0) -#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS \ - (0x1<<9) -#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G \ - (0x1<<15) -#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS \ - (0xf<<18) -#define NIG_REG_BMAC0_IN_EN \ - 0x100acUL -#define NIG_REG_BMAC0_OUT_EN \ - 0x100e0UL -#define NIG_REG_BMAC0_PAUSE_OUT_EN \ - 0x10110UL -#define NIG_REG_BMAC0_REGS_OUT_EN \ - 0x100e8UL -#define NIG_REG_BRB0_PAUSE_IN_EN \ - 0x100c4UL -#define NIG_REG_BRB1_PAUSE_IN_EN \ - 0x100c8UL -#define NIG_REG_DEBUG_PACKET_LB \ - 0x10800UL -#define NIG_REG_EGRESS_DRAIN0_MODE \ - 0x10060UL -#define NIG_REG_EGRESS_EMAC0_OUT_EN \ - 0x10120UL -#define NIG_REG_EGRESS_EMAC0_PORT \ - 0x10058UL -#define NIG_REG_EMAC0_IN_EN \ - 0x100a4UL -#define NIG_REG_EMAC0_PAUSE_OUT_EN \ - 0x10118UL -#define NIG_REG_EMAC0_STATUS_MISC_MI_INT \ - 0x10494UL -#define NIG_REG_INGRESS_BMAC0_MEM \ - 0x10c00UL -#define NIG_REG_INGRESS_BMAC1_MEM \ - 0x11000UL -#define NIG_REG_INGRESS_EOP_LB_EMPTY \ - 0x104e0UL -#define NIG_REG_INGRESS_EOP_LB_FIFO \ - 0x104e4UL -#define NIG_REG_LATCH_BC_0 \ - 0x16210UL -#define NIG_REG_LATCH_STATUS_0 \ - 0x18000UL -#define NIG_REG_LED_10G_P0 \ - 0x10320UL -#define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 \ - 0x10318UL -#define NIG_REG_LED_CONTROL_BLINK_RATE_P0 \ - 0x10310UL -#define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 \ - 0x10308UL -#define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 \ - 0x102f8UL -#define NIG_REG_LED_CONTROL_TRAFFIC_P0 \ - 0x10300UL -#define NIG_REG_LED_MODE_P0 \ - 0x102f0UL -#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 \ - 0x16070UL -#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 \ - 0x16074UL -#define NIG_REG_LLFC_ENABLE_0 \ - 0x16208UL -#define NIG_REG_LLFC_ENABLE_1 \ - 0x1620cUL -#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 \ - 0x16058UL -#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1 \ - 0x1605cUL -#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 \ - 0x16060UL -#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1 \ - 0x16064UL -#define NIG_REG_LLFC_OUT_EN_0 \ - 0x160c8UL -#define NIG_REG_LLFC_OUT_EN_1 \ - 0x160ccUL -#define NIG_REG_LLH0_BRB1_DRV_MASK \ - 0x10244UL -#define NIG_REG_LLH0_BRB1_DRV_MASK_MF \ - 0x16048UL -#define NIG_REG_LLH0_BRB1_NOT_MCP \ - 0x1025cUL -#define NIG_REG_LLH0_CLS_TYPE \ - 0x16080UL -#define NIG_REG_LLH0_FUNC_EN \ - 0x160fcUL -#define NIG_REG_LLH0_FUNC_MEM \ - 0x16180UL -#define NIG_REG_LLH0_FUNC_MEM_ENABLE \ - 0x16140UL -#define NIG_REG_LLH0_FUNC_VLAN_ID \ - 0x16100UL -#define NIG_REG_LLH0_XCM_MASK \ - 0x10130UL -#define NIG_REG_LLH1_BRB1_NOT_MCP \ - 0x102dcUL -#define NIG_REG_LLH1_CLS_TYPE \ - 0x16084UL -#define NIG_REG_LLH1_FUNC_MEM \ - 0x161c0UL -#define NIG_REG_LLH1_FUNC_MEM_ENABLE \ - 0x16160UL -#define NIG_REG_LLH1_FUNC_MEM_SIZE \ - 16 -#define NIG_REG_LLH1_MF_MODE \ - 0x18614UL -#define NIG_REG_LLH1_XCM_MASK \ - 0x10134UL -#define NIG_REG_LLH_E1HOV_MODE \ - 0x160d8UL -#define NIG_REG_LLH_MF_MODE \ - 0x16024UL -#define NIG_REG_MASK_INTERRUPT_PORT0 \ - 0x10330UL -#define NIG_REG_MASK_INTERRUPT_PORT1 \ - 0x10334UL -#define NIG_REG_NIG_EMAC0_EN \ - 0x1003cUL -#define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC \ - 0x10044UL -#define NIG_REG_NIG_INT_STS_CLR_0 \ - 0x103b4UL -#define NIG_REG_NIG_PRTY_MASK \ - 0x103dcUL -#define NIG_REG_NIG_PRTY_MASK_0 \ - 0x183c8UL -#define NIG_REG_NIG_PRTY_MASK_1 \ - 0x183d8UL -#define NIG_REG_NIG_PRTY_STS_CLR \ - 0x103d4UL -#define NIG_REG_NIG_PRTY_STS_CLR_0 \ - 0x183c0UL -#define NIG_REG_NIG_PRTY_STS_CLR_1 \ - 0x183d0UL -#define NIG_REG_P0_HDRS_AFTER_BASIC \ - 0x18038UL -#define NIG_REG_P0_HWPFC_ENABLE \ - 0x18078UL -#define NIG_REG_P0_LLH_FUNC_MEM2 \ - 0x18480UL -#define NIG_REG_P0_MAC_IN_EN \ - 0x185acUL -#define NIG_REG_P0_MAC_OUT_EN \ - 0x185b0UL -#define NIG_REG_P0_MAC_PAUSE_OUT_EN \ - 0x185b4UL -#define NIG_REG_P0_PKT_PRIORITY_TO_COS \ - 0x18054UL -#define NIG_REG_P0_RX_COS0_PRIORITY_MASK \ - 0x18058UL -#define NIG_REG_P0_RX_COS1_PRIORITY_MASK \ - 0x1805cUL -#define NIG_REG_P0_RX_COS2_PRIORITY_MASK \ - 0x186b0UL -#define NIG_REG_P0_RX_COS3_PRIORITY_MASK \ - 0x186b4UL -#define NIG_REG_P0_RX_COS4_PRIORITY_MASK \ - 0x186b8UL -#define NIG_REG_P0_RX_COS5_PRIORITY_MASK \ - 0x186bcUL -#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP \ - 0x180f0UL -#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_LSB \ - 0x18688UL -#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_MSB \ - 0x1868cUL -#define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT \ - 0x180e8UL -#define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ \ - 0x180ecUL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 \ - 0x1810cUL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 \ - 0x18110UL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_2 \ - 0x18114UL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_3 \ - 0x18118UL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_4 \ - 0x1811cUL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_5 \ - 0x186a0UL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_6 \ - 0x186a4UL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_7 \ - 0x186a8UL -#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_8 \ - 0x186acUL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 \ - 0x180f8UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 \ - 0x180fcUL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2 \ - 0x18100UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3 \ - 0x18104UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4 \ - 0x18108UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5 \ - 0x18690UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_6 \ - 0x18694UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_7 \ - 0x18698UL -#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_8 \ - 0x1869cUL -#define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS \ - 0x180f4UL -#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT \ - 0x180e4UL -#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_LSB \ - 0x18680UL -#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_MSB \ - 0x18684UL -#define NIG_REG_P1_HDRS_AFTER_BASIC \ - 0x1818cUL -#define NIG_REG_P1_HWPFC_ENABLE \ - 0x181d0UL -#define NIG_REG_P1_LLH_FUNC_MEM2 \ - 0x184c0UL -#define NIG_REG_P1_MAC_IN_EN \ - 0x185c0UL -#define NIG_REG_P1_MAC_OUT_EN \ - 0x185c4UL -#define NIG_REG_P1_MAC_PAUSE_OUT_EN \ - 0x185c8UL -#define NIG_REG_P1_PKT_PRIORITY_TO_COS \ - 0x181a8UL -#define NIG_REG_P1_RX_COS0_PRIORITY_MASK \ - 0x181acUL -#define NIG_REG_P1_RX_COS1_PRIORITY_MASK \ - 0x181b0UL -#define NIG_REG_P1_RX_COS2_PRIORITY_MASK \ - 0x186f8UL -#define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_LSB \ - 0x186e8UL -#define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_MSB \ - 0x186ecUL -#define NIG_REG_P1_TX_ARB_CLIENT_IS_STRICT \ - 0x18234UL -#define NIG_REG_P1_TX_ARB_CLIENT_IS_SUBJECT2WFQ \ - 0x18238UL -#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_0 \ - 0x18258UL -#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_1 \ - 0x1825cUL -#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_2 \ - 0x18260UL -#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_3 \ - 0x18264UL -#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_4 \ - 0x18268UL -#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_5 \ - 0x186f4UL -#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0 \ - 0x18244UL -#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1 \ - 0x18248UL -#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2 \ - 0x1824cUL -#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_3 \ - 0x18250UL -#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_4 \ - 0x18254UL -#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_5 \ - 0x186f0UL -#define NIG_REG_P1_TX_ARB_NUM_STRICT_ARB_SLOTS \ - 0x18240UL -#define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_LSB \ - 0x186e0UL -#define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_MSB \ - 0x186e4UL -#define NIG_REG_PAUSE_ENABLE_0 \ - 0x160c0UL -#define NIG_REG_PAUSE_ENABLE_1 \ - 0x160c4UL -#define NIG_REG_PORT_SWAP \ - 0x10394UL -#define NIG_REG_PPP_ENABLE_0 \ - 0x160b0UL -#define NIG_REG_PPP_ENABLE_1 \ - 0x160b4UL -#define NIG_REG_PRS_REQ_IN_EN \ - 0x100b8UL -#define NIG_REG_SERDES0_CTRL_MD_DEVAD \ - 0x10370UL -#define NIG_REG_SERDES0_CTRL_MD_ST \ - 0x1036cUL -#define NIG_REG_SERDES0_CTRL_PHY_ADDR \ - 0x10374UL -#define NIG_REG_SERDES0_STATUS_LINK_STATUS \ - 0x10578UL -#define NIG_REG_STAT0_BRB_DISCARD \ - 0x105f0UL -#define NIG_REG_STAT0_BRB_TRUNCATE \ - 0x105f8UL -#define NIG_REG_STAT0_EGRESS_MAC_PKT0 \ - 0x10750UL -#define NIG_REG_STAT0_EGRESS_MAC_PKT1 \ - 0x10760UL -#define NIG_REG_STAT1_BRB_DISCARD \ - 0x10628UL -#define NIG_REG_STAT1_EGRESS_MAC_PKT0 \ - 0x107a0UL -#define NIG_REG_STAT1_EGRESS_MAC_PKT1 \ - 0x107b0UL -#define NIG_REG_STAT2_BRB_OCTET \ - 0x107e0UL -#define NIG_REG_STATUS_INTERRUPT_PORT0 \ - 0x10328UL -#define NIG_REG_STRAP_OVERRIDE \ - 0x10398UL -#define NIG_REG_XCM0_OUT_EN \ - 0x100f0UL -#define NIG_REG_XCM1_OUT_EN \ - 0x100f4UL -#define NIG_REG_XGXS0_CTRL_MD_DEVAD \ - 0x1033cUL -#define NIG_REG_XGXS0_CTRL_MD_ST \ - 0x10338UL -#define NIG_REG_XGXS0_CTRL_PHY_ADDR \ - 0x10340UL -#define NIG_REG_XGXS0_STATUS_LINK10G \ - 0x10680UL -#define NIG_REG_XGXS0_STATUS_LINK_STATUS \ - 0x10684UL -#define NIG_REG_XGXS_LANE_SEL_P0 \ - 0x102e8UL -#define NIG_REG_XGXS_SERDES0_MODE_SEL \ - 0x102e0UL -#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT \ - (0x1<<0) -#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS \ - (0x1<<9) -#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G \ - (0x1<<15) -#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS \ - (0xf<<18) -#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE \ - 18 -#define PBF_REG_COS0_UPPER_BOUND \ - 0x15c05cUL -#define PBF_REG_COS0_UPPER_BOUND_P0 \ - 0x15c2ccUL -#define PBF_REG_COS0_UPPER_BOUND_P1 \ - 0x15c2e4UL -#define PBF_REG_COS0_WEIGHT \ - 0x15c054UL -#define PBF_REG_COS0_WEIGHT_P0 \ - 0x15c2a8UL -#define PBF_REG_COS0_WEIGHT_P1 \ - 0x15c2c0UL -#define PBF_REG_COS1_UPPER_BOUND \ - 0x15c060UL -#define PBF_REG_COS1_WEIGHT \ - 0x15c058UL -#define PBF_REG_COS1_WEIGHT_P0 \ - 0x15c2acUL -#define PBF_REG_COS1_WEIGHT_P1 \ - 0x15c2c4UL -#define PBF_REG_COS2_WEIGHT_P0 \ - 0x15c2b0UL -#define PBF_REG_COS2_WEIGHT_P1 \ - 0x15c2c8UL -#define PBF_REG_COS3_WEIGHT_P0 \ - 0x15c2b4UL -#define PBF_REG_COS4_WEIGHT_P0 \ - 0x15c2b8UL -#define PBF_REG_COS5_WEIGHT_P0 \ - 0x15c2bcUL -#define PBF_REG_CREDIT_LB_Q \ - 0x140338UL -#define PBF_REG_CREDIT_Q0 \ - 0x14033cUL -#define PBF_REG_CREDIT_Q1 \ - 0x140340UL -#define PBF_REG_DISABLE_NEW_TASK_PROC_P0 \ - 0x14005cUL -#define PBF_REG_DISABLE_PF \ - 0x1402e8UL -#define PBF_REG_DISABLE_VF \ - 0x1402ecUL -#define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P0 \ - 0x15c288UL -#define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P1 \ - 0x15c28cUL -#define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P0 \ - 0x15c278UL -#define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P1 \ - 0x15c27cUL -#define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P0 \ - 0x15c280UL -#define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P1 \ - 0x15c284UL -#define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P0 \ - 0x15c2a0UL -#define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P1 \ - 0x15c2a4UL -#define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P0 \ - 0x15c270UL -#define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P1 \ - 0x15c274UL -#define PBF_REG_ETS_ENABLED \ - 0x15c050UL -#define PBF_REG_HDRS_AFTER_BASIC \ - 0x15c0a8UL -#define PBF_REG_HDRS_AFTER_TAG_0 \ - 0x15c0b8UL -#define PBF_REG_HIGH_PRIORITY_COS_NUM \ - 0x15c04cUL -#define PBF_REG_INIT_CRD_LB_Q \ - 0x15c248UL -#define PBF_REG_INIT_CRD_Q0 \ - 0x15c230UL -#define PBF_REG_INIT_CRD_Q1 \ - 0x15c234UL -#define PBF_REG_INIT_P0 \ - 0x140004UL -#define PBF_REG_INTERNAL_CRD_FREED_CNT_LB_Q \ - 0x140354UL -#define PBF_REG_INTERNAL_CRD_FREED_CNT_Q0 \ - 0x140358UL -#define PBF_REG_INTERNAL_CRD_FREED_CNT_Q1 \ - 0x14035cUL -#define PBF_REG_MUST_HAVE_HDRS \ - 0x15c0c4UL -#define PBF_REG_NUM_STRICT_ARB_SLOTS \ - 0x15c064UL -#define PBF_REG_P0_ARB_THRSH \ - 0x1400e4UL -#define PBF_REG_P0_CREDIT \ - 0x140200UL -#define PBF_REG_P0_INIT_CRD \ - 0x1400d0UL -#define PBF_REG_P0_INTERNAL_CRD_FREED_CNT \ - 0x140308UL -#define PBF_REG_P0_PAUSE_ENABLE \ - 0x140014UL -#define PBF_REG_P0_TQ_LINES_FREED_CNT \ - 0x1402f0UL -#define PBF_REG_P0_TQ_OCCUPANCY \ - 0x1402fcUL -#define PBF_REG_P1_CREDIT \ - 0x140208UL -#define PBF_REG_P1_INIT_CRD \ - 0x1400d4UL -#define PBF_REG_P1_INTERNAL_CRD_FREED_CNT \ - 0x14030cUL -#define PBF_REG_P1_TQ_LINES_FREED_CNT \ - 0x1402f4UL -#define PBF_REG_P1_TQ_OCCUPANCY \ - 0x140300UL -#define PBF_REG_P4_CREDIT \ - 0x140210UL -#define PBF_REG_P4_INIT_CRD \ - 0x1400e0UL -#define PBF_REG_P4_INTERNAL_CRD_FREED_CNT \ - 0x140310UL -#define PBF_REG_P4_TQ_LINES_FREED_CNT \ - 0x1402f8UL -#define PBF_REG_P4_TQ_OCCUPANCY \ - 0x140304UL -#define PBF_REG_PBF_INT_MASK \ - 0x1401d4UL -#define PBF_REG_PBF_PRTY_MASK \ - 0x1401e4UL -#define PBF_REG_PBF_PRTY_STS_CLR \ - 0x1401dcUL -#define PBF_REG_TAG_ETHERTYPE_0 \ - 0x15c090UL -#define PBF_REG_TAG_LEN_0 \ - 0x15c09cUL -#define PBF_REG_TQ_LINES_FREED_CNT_LB_Q \ - 0x14038cUL -#define PBF_REG_TQ_LINES_FREED_CNT_Q0 \ - 0x140390UL -#define PBF_REG_TQ_LINES_FREED_CNT_Q1 \ - 0x140394UL -#define PBF_REG_TQ_OCCUPANCY_LB_Q \ - 0x1403a8UL -#define PBF_REG_TQ_OCCUPANCY_Q0 \ - 0x1403acUL -#define PBF_REG_TQ_OCCUPANCY_Q1 \ - 0x1403b0UL -#define PB_REG_PB_INT_MASK \ - 0x28UL -#define PB_REG_PB_PRTY_MASK \ - 0x38UL -#define PB_REG_PB_PRTY_STS_CLR \ - 0x30UL -#define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR \ - (0x1<<0) -#define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW \ - (0x1<<8) -#define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR \ - (0x1<<1) -#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN \ - (0x1<<6) -#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN \ - (0x1<<7) -#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN \ - (0x1<<4) -#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN \ - (0x1<<3) -#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN \ - (0x1<<5) -#define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN \ - (0x1<<2) -#define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR \ - 0x9418UL -#define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR \ - 0x9478UL -#define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR \ - 0x947cUL -#define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR \ - 0x9480UL -#define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR \ - 0x9474UL -#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER \ - 0x942cUL -#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ \ - 0x9430UL -#define PGLUE_B_REG_INTERNAL_VFID_ENABLE \ - 0x9438UL -#define PGLUE_B_REG_PGLUE_B_INT_STS \ - 0x9298UL -#define PGLUE_B_REG_PGLUE_B_INT_STS_CLR \ - 0x929cUL -#define PGLUE_B_REG_PGLUE_B_PRTY_MASK \ - 0x92b4UL -#define PGLUE_B_REG_PGLUE_B_PRTY_STS_CLR \ - 0x92acUL -#define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR \ - 0x9458UL -#define PGLUE_B_REG_TAGS_63_32 \ - 0x9244UL -#define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR \ - 0x9470UL -#define PRS_REG_A_PRSU_20 \ - 0x40134UL -#define PRS_REG_CFC_SEARCH_INITIAL_CREDIT \ - 0x4011cUL -#define PRS_REG_E1HOV_MODE \ - 0x401c8UL -#define PRS_REG_HDRS_AFTER_BASIC \ - 0x40238UL -#define PRS_REG_HDRS_AFTER_BASIC_PORT_0 \ - 0x40270UL -#define PRS_REG_HDRS_AFTER_BASIC_PORT_1 \ - 0x40290UL -#define PRS_REG_HDRS_AFTER_TAG_0 \ - 0x40248UL -#define PRS_REG_HDRS_AFTER_TAG_0_PORT_0 \ - 0x40280UL -#define PRS_REG_HDRS_AFTER_TAG_0_PORT_1 \ - 0x402a0UL -#define PRS_REG_MUST_HAVE_HDRS \ - 0x40254UL -#define PRS_REG_MUST_HAVE_HDRS_PORT_0 \ - 0x4028cUL -#define PRS_REG_MUST_HAVE_HDRS_PORT_1 \ - 0x402acUL -#define PRS_REG_NIC_MODE \ - 0x40138UL -#define PRS_REG_NUM_OF_PACKETS \ - 0x40124UL -#define PRS_REG_PRS_PRTY_MASK \ - 0x401a4UL -#define PRS_REG_PRS_PRTY_STS_CLR \ - 0x4019cUL -#define PRS_REG_TAG_ETHERTYPE_0 \ - 0x401d4UL -#define PRS_REG_TAG_LEN_0 \ - 0x4022cUL -#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT \ - (0x1<<19) -#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF \ - (0x1<<20) -#define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN \ - (0x1<<22) -#define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED \ - (0x1<<23) -#define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED \ - (0x1<<24) -#define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR \ - (0x1<<7) -#define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR \ - (0x1<<7) -#define PXP2_REG_PGL_ADDR_88_F0 \ - 0x120534UL -#define PXP2_REG_PGL_ADDR_88_F1 \ - 0x120544UL -#define PXP2_REG_PGL_ADDR_8C_F0 \ - 0x120538UL -#define PXP2_REG_PGL_ADDR_8C_F1 \ - 0x120548UL -#define PXP2_REG_PGL_ADDR_90_F0 \ - 0x12053cUL -#define PXP2_REG_PGL_ADDR_90_F1 \ - 0x12054cUL -#define PXP2_REG_PGL_ADDR_94_F0 \ - 0x120540UL -#define PXP2_REG_PGL_ADDR_94_F1 \ - 0x120550UL -#define PXP2_REG_PGL_EXP_ROM2 \ - 0x120808UL -#define PXP2_REG_PGL_PRETEND_FUNC_F0 \ - 0x120674UL -#define PXP2_REG_PGL_PRETEND_FUNC_F1 \ - 0x120678UL -#define PXP2_REG_PGL_TAGS_LIMIT \ - 0x1205a8UL -#define PXP2_REG_PSWRQ_BW_ADD1 \ - 0x1201c0UL -#define PXP2_REG_PSWRQ_BW_ADD10 \ - 0x1201e4UL -#define PXP2_REG_PSWRQ_BW_ADD11 \ - 0x1201e8UL -#define PXP2_REG_PSWRQ_BW_ADD2 \ - 0x1201c4UL -#define PXP2_REG_PSWRQ_BW_ADD28 \ - 0x120228UL -#define PXP2_REG_PSWRQ_BW_ADD3 \ - 0x1201c8UL -#define PXP2_REG_PSWRQ_BW_ADD6 \ - 0x1201d4UL -#define PXP2_REG_PSWRQ_BW_ADD7 \ - 0x1201d8UL -#define PXP2_REG_PSWRQ_BW_ADD8 \ - 0x1201dcUL -#define PXP2_REG_PSWRQ_BW_ADD9 \ - 0x1201e0UL -#define PXP2_REG_PSWRQ_BW_L1 \ - 0x1202b0UL -#define PXP2_REG_PSWRQ_BW_L10 \ - 0x1202d4UL -#define PXP2_REG_PSWRQ_BW_L11 \ - 0x1202d8UL -#define PXP2_REG_PSWRQ_BW_L2 \ - 0x1202b4UL -#define PXP2_REG_PSWRQ_BW_L28 \ - 0x120318UL -#define PXP2_REG_PSWRQ_BW_L3 \ - 0x1202b8UL -#define PXP2_REG_PSWRQ_BW_L6 \ - 0x1202c4UL -#define PXP2_REG_PSWRQ_BW_L7 \ - 0x1202c8UL -#define PXP2_REG_PSWRQ_BW_L8 \ - 0x1202ccUL -#define PXP2_REG_PSWRQ_BW_L9 \ - 0x1202d0UL -#define PXP2_REG_PSWRQ_BW_RD \ - 0x120324UL -#define PXP2_REG_PSWRQ_BW_UB1 \ - 0x120238UL -#define PXP2_REG_PSWRQ_BW_UB10 \ - 0x12025cUL -#define PXP2_REG_PSWRQ_BW_UB11 \ - 0x120260UL -#define PXP2_REG_PSWRQ_BW_UB2 \ - 0x12023cUL -#define PXP2_REG_PSWRQ_BW_UB28 \ - 0x1202a0UL -#define PXP2_REG_PSWRQ_BW_UB3 \ - 0x120240UL -#define PXP2_REG_PSWRQ_BW_UB6 \ - 0x12024cUL -#define PXP2_REG_PSWRQ_BW_UB7 \ - 0x120250UL -#define PXP2_REG_PSWRQ_BW_UB8 \ - 0x120254UL -#define PXP2_REG_PSWRQ_BW_UB9 \ - 0x120258UL -#define PXP2_REG_PSWRQ_BW_WR \ - 0x120328UL -#define PXP2_REG_PSWRQ_CDU0_L2P \ - 0x120000UL -#define PXP2_REG_PSWRQ_QM0_L2P \ - 0x120038UL -#define PXP2_REG_PSWRQ_SRC0_L2P \ - 0x120054UL -#define PXP2_REG_PSWRQ_TM0_L2P \ - 0x12001cUL -#define PXP2_REG_PXP2_INT_MASK_0 \ - 0x120578UL -#define PXP2_REG_PXP2_INT_MASK_1 \ - 0x120614UL -#define PXP2_REG_PXP2_INT_STS_0 \ - 0x12056cUL -#define PXP2_REG_PXP2_INT_STS_1 \ - 0x120608UL -#define PXP2_REG_PXP2_INT_STS_CLR_0 \ - 0x120570UL -#define PXP2_REG_PXP2_PRTY_MASK_0 \ - 0x120588UL -#define PXP2_REG_PXP2_PRTY_MASK_1 \ - 0x120598UL -#define PXP2_REG_PXP2_PRTY_STS_CLR_0 \ - 0x120580UL -#define PXP2_REG_PXP2_PRTY_STS_CLR_1 \ - 0x120590UL -#define PXP2_REG_RD_BLK_CNT \ - 0x120418UL -#define PXP2_REG_RD_CDURD_SWAP_MODE \ - 0x120404UL -#define PXP2_REG_RD_DISABLE_INPUTS \ - 0x120374UL -#define PXP2_REG_RD_INIT_DONE \ - 0x120370UL -#define PXP2_REG_RD_PBF_SWAP_MODE \ - 0x1203f4UL -#define PXP2_REG_RD_PORT_IS_IDLE_0 \ - 0x12041cUL -#define PXP2_REG_RD_PORT_IS_IDLE_1 \ - 0x120420UL -#define PXP2_REG_RD_QM_SWAP_MODE \ - 0x1203f8UL -#define PXP2_REG_RD_SRC_SWAP_MODE \ - 0x120400UL -#define PXP2_REG_RD_SR_CNT \ - 0x120414UL -#define PXP2_REG_RD_START_INIT \ - 0x12036cUL -#define PXP2_REG_RD_TM_SWAP_MODE \ - 0x1203fcUL -#define PXP2_REG_RQ_BW_RD_ADD0 \ - 0x1201bcUL -#define PXP2_REG_RQ_BW_RD_ADD12 \ - 0x1201ecUL -#define PXP2_REG_RQ_BW_RD_ADD13 \ - 0x1201f0UL -#define PXP2_REG_RQ_BW_RD_ADD14 \ - 0x1201f4UL -#define PXP2_REG_RQ_BW_RD_ADD15 \ - 0x1201f8UL -#define PXP2_REG_RQ_BW_RD_ADD16 \ - 0x1201fcUL -#define PXP2_REG_RQ_BW_RD_ADD17 \ - 0x120200UL -#define PXP2_REG_RQ_BW_RD_ADD18 \ - 0x120204UL -#define PXP2_REG_RQ_BW_RD_ADD19 \ - 0x120208UL -#define PXP2_REG_RQ_BW_RD_ADD20 \ - 0x12020cUL -#define PXP2_REG_RQ_BW_RD_ADD22 \ - 0x120210UL -#define PXP2_REG_RQ_BW_RD_ADD23 \ - 0x120214UL -#define PXP2_REG_RQ_BW_RD_ADD24 \ - 0x120218UL -#define PXP2_REG_RQ_BW_RD_ADD25 \ - 0x12021cUL -#define PXP2_REG_RQ_BW_RD_ADD26 \ - 0x120220UL -#define PXP2_REG_RQ_BW_RD_ADD27 \ - 0x120224UL -#define PXP2_REG_RQ_BW_RD_ADD4 \ - 0x1201ccUL -#define PXP2_REG_RQ_BW_RD_ADD5 \ - 0x1201d0UL -#define PXP2_REG_RQ_BW_RD_L0 \ - 0x1202acUL -#define PXP2_REG_RQ_BW_RD_L12 \ - 0x1202dcUL -#define PXP2_REG_RQ_BW_RD_L13 \ - 0x1202e0UL -#define PXP2_REG_RQ_BW_RD_L14 \ - 0x1202e4UL -#define PXP2_REG_RQ_BW_RD_L15 \ - 0x1202e8UL -#define PXP2_REG_RQ_BW_RD_L16 \ - 0x1202ecUL -#define PXP2_REG_RQ_BW_RD_L17 \ - 0x1202f0UL -#define PXP2_REG_RQ_BW_RD_L18 \ - 0x1202f4UL -#define PXP2_REG_RQ_BW_RD_L19 \ - 0x1202f8UL -#define PXP2_REG_RQ_BW_RD_L20 \ - 0x1202fcUL -#define PXP2_REG_RQ_BW_RD_L22 \ - 0x120300UL -#define PXP2_REG_RQ_BW_RD_L23 \ - 0x120304UL -#define PXP2_REG_RQ_BW_RD_L24 \ - 0x120308UL -#define PXP2_REG_RQ_BW_RD_L25 \ - 0x12030cUL -#define PXP2_REG_RQ_BW_RD_L26 \ - 0x120310UL -#define PXP2_REG_RQ_BW_RD_L27 \ - 0x120314UL -#define PXP2_REG_RQ_BW_RD_L4 \ - 0x1202bcUL -#define PXP2_REG_RQ_BW_RD_L5 \ - 0x1202c0UL -#define PXP2_REG_RQ_BW_RD_UBOUND0 \ - 0x120234UL -#define PXP2_REG_RQ_BW_RD_UBOUND12 \ - 0x120264UL -#define PXP2_REG_RQ_BW_RD_UBOUND13 \ - 0x120268UL -#define PXP2_REG_RQ_BW_RD_UBOUND14 \ - 0x12026cUL -#define PXP2_REG_RQ_BW_RD_UBOUND15 \ - 0x120270UL -#define PXP2_REG_RQ_BW_RD_UBOUND16 \ - 0x120274UL -#define PXP2_REG_RQ_BW_RD_UBOUND17 \ - 0x120278UL -#define PXP2_REG_RQ_BW_RD_UBOUND18 \ - 0x12027cUL -#define PXP2_REG_RQ_BW_RD_UBOUND19 \ - 0x120280UL -#define PXP2_REG_RQ_BW_RD_UBOUND20 \ - 0x120284UL -#define PXP2_REG_RQ_BW_RD_UBOUND22 \ - 0x120288UL -#define PXP2_REG_RQ_BW_RD_UBOUND23 \ - 0x12028cUL -#define PXP2_REG_RQ_BW_RD_UBOUND24 \ - 0x120290UL -#define PXP2_REG_RQ_BW_RD_UBOUND25 \ - 0x120294UL -#define PXP2_REG_RQ_BW_RD_UBOUND26 \ - 0x120298UL -#define PXP2_REG_RQ_BW_RD_UBOUND27 \ - 0x12029cUL -#define PXP2_REG_RQ_BW_RD_UBOUND4 \ - 0x120244UL -#define PXP2_REG_RQ_BW_RD_UBOUND5 \ - 0x120248UL -#define PXP2_REG_RQ_BW_WR_ADD29 \ - 0x12022cUL -#define PXP2_REG_RQ_BW_WR_ADD30 \ - 0x120230UL -#define PXP2_REG_RQ_BW_WR_L29 \ - 0x12031cUL -#define PXP2_REG_RQ_BW_WR_L30 \ - 0x120320UL -#define PXP2_REG_RQ_BW_WR_UBOUND29 \ - 0x1202a4UL -#define PXP2_REG_RQ_BW_WR_UBOUND30 \ - 0x1202a8UL -#define PXP2_REG_RQ_CDU_ENDIAN_M \ - 0x1201a0UL -#define PXP2_REG_RQ_CDU_FIRST_ILT \ - 0x12061cUL -#define PXP2_REG_RQ_CDU_LAST_ILT \ - 0x120620UL -#define PXP2_REG_RQ_CDU_P_SIZE \ - 0x120018UL -#define PXP2_REG_RQ_CFG_DONE \ - 0x1201b4UL -#define PXP2_REG_RQ_DBG_ENDIAN_M \ - 0x1201a4UL -#define PXP2_REG_RQ_DISABLE_INPUTS \ - 0x120330UL -#define PXP2_REG_RQ_DRAM_ALIGN \ - 0x1205b0UL -#define PXP2_REG_RQ_DRAM_ALIGN_RD \ - 0x12092cUL -#define PXP2_REG_RQ_DRAM_ALIGN_SEL \ - 0x120930UL -#define PXP2_REG_RQ_HC_ENDIAN_M \ - 0x1201a8UL -#define PXP2_REG_RQ_ONCHIP_AT \ - 0x122000UL -#define PXP2_REG_RQ_ONCHIP_AT_B0 \ - 0x128000UL -#define PXP2_REG_RQ_PDR_LIMIT \ - 0x12033cUL -#define PXP2_REG_RQ_QM_ENDIAN_M \ - 0x120194UL -#define PXP2_REG_RQ_QM_FIRST_ILT \ - 0x120634UL -#define PXP2_REG_RQ_QM_LAST_ILT \ - 0x120638UL -#define PXP2_REG_RQ_QM_P_SIZE \ - 0x120050UL -#define PXP2_REG_RQ_RBC_DONE \ - 0x1201b0UL -#define PXP2_REG_RQ_RD_MBS0 \ - 0x120160UL -#define PXP2_REG_RQ_RD_MBS1 \ - 0x120168UL -#define PXP2_REG_RQ_SRC_ENDIAN_M \ - 0x12019cUL -#define PXP2_REG_RQ_SRC_FIRST_ILT \ - 0x12063cUL -#define PXP2_REG_RQ_SRC_LAST_ILT \ - 0x120640UL -#define PXP2_REG_RQ_SRC_P_SIZE \ - 0x12006cUL -#define PXP2_REG_RQ_TM_ENDIAN_M \ - 0x120198UL -#define PXP2_REG_RQ_TM_FIRST_ILT \ - 0x120644UL -#define PXP2_REG_RQ_TM_LAST_ILT \ - 0x120648UL -#define PXP2_REG_RQ_TM_P_SIZE \ - 0x120034UL -#define PXP2_REG_RQ_WR_MBS0 \ - 0x12015cUL -#define PXP2_REG_RQ_WR_MBS1 \ - 0x120164UL -#define PXP2_REG_WR_CDU_MPS \ - 0x1205f0UL -#define PXP2_REG_WR_CSDM_MPS \ - 0x1205d0UL -#define PXP2_REG_WR_DBG_MPS \ - 0x1205e8UL -#define PXP2_REG_WR_DMAE_MPS \ - 0x1205ecUL -#define PXP2_REG_WR_HC_MPS \ - 0x1205c8UL -#define PXP2_REG_WR_QM_MPS \ - 0x1205dcUL -#define PXP2_REG_WR_SRC_MPS \ - 0x1205e4UL -#define PXP2_REG_WR_TM_MPS \ - 0x1205e0UL -#define PXP2_REG_WR_TSDM_MPS \ - 0x1205d4UL -#define PXP2_REG_WR_USDMDP_TH \ - 0x120348UL -#define PXP2_REG_WR_USDM_MPS \ - 0x1205ccUL -#define PXP2_REG_WR_XSDM_MPS \ - 0x1205d8UL -#define PXP_REG_HST_DISCARD_DOORBELLS \ - 0x1030a4UL -#define PXP_REG_HST_DISCARD_INTERNAL_WRITES \ - 0x1030a8UL -#define PXP_REG_HST_ZONE_PERMISSION_TABLE \ - 0x103400UL -#define PXP_REG_PXP_INT_MASK_0 \ - 0x103074UL -#define PXP_REG_PXP_INT_MASK_1 \ - 0x103084UL -#define PXP_REG_PXP_INT_STS_CLR_0 \ - 0x10306cUL -#define PXP_REG_PXP_INT_STS_CLR_1 \ - 0x10307cUL -#define PXP_REG_PXP_PRTY_MASK \ - 0x103094UL -#define PXP_REG_PXP_PRTY_STS_CLR \ - 0x10308cUL -#define QM_REG_BASEADDR \ - 0x168900UL -#define QM_REG_BASEADDR_EXT_A \ - 0x16e100UL -#define QM_REG_BYTECRDCMDQ_0 \ - 0x16e6e8UL -#define QM_REG_CONNNUM_0 \ - 0x168020UL -#define QM_REG_PF_EN \ - 0x16e70cUL -#define QM_REG_PF_USG_CNT_0 \ - 0x16e040UL -#define QM_REG_PTRTBL \ - 0x168a00UL -#define QM_REG_PTRTBL_EXT_A \ - 0x16e200UL -#define QM_REG_QM_INT_MASK \ - 0x168444UL -#define QM_REG_QM_PRTY_MASK \ - 0x168454UL -#define QM_REG_QM_PRTY_STS_CLR \ - 0x16844cUL -#define QM_REG_QVOQIDX_0 \ - 0x1680f4UL -#define QM_REG_SOFT_RESET \ - 0x168428UL -#define QM_REG_VOQQMASK_0_LSB \ - 0x168240UL -#define SEM_FAST_REG_PARITY_RST \ - 0x18840UL -#define SRC_REG_COUNTFREE0 \ - 0x40500UL -#define SRC_REG_FIRSTFREE0 \ - 0x40510UL -#define SRC_REG_KEYSEARCH_0 \ - 0x40458UL -#define SRC_REG_KEYSEARCH_1 \ - 0x4045cUL -#define SRC_REG_KEYSEARCH_2 \ - 0x40460UL -#define SRC_REG_KEYSEARCH_3 \ - 0x40464UL -#define SRC_REG_KEYSEARCH_4 \ - 0x40468UL -#define SRC_REG_KEYSEARCH_5 \ - 0x4046cUL -#define SRC_REG_KEYSEARCH_6 \ - 0x40470UL -#define SRC_REG_KEYSEARCH_7 \ - 0x40474UL -#define SRC_REG_KEYSEARCH_8 \ - 0x40478UL -#define SRC_REG_KEYSEARCH_9 \ - 0x4047cUL -#define SRC_REG_LASTFREE0 \ - 0x40530UL -#define SRC_REG_NUMBER_HASH_BITS0 \ - 0x40400UL -#define SRC_REG_SOFT_RST \ - 0x4049cUL -#define SRC_REG_SRC_PRTY_MASK \ - 0x404c8UL -#define SRC_REG_SRC_PRTY_STS_CLR \ - 0x404c0UL -#define TCM_REG_PRS_IFEN \ - 0x50020UL -#define TCM_REG_TCM_INT_MASK \ - 0x501dcUL -#define TCM_REG_TCM_PRTY_MASK \ - 0x501ecUL -#define TCM_REG_TCM_PRTY_STS_CLR \ - 0x501e4UL -#define TM_REG_EN_LINEAR0_TIMER \ - 0x164014UL -#define TM_REG_LIN0_MAX_ACTIVE_CID \ - 0x164048UL -#define TM_REG_LIN0_NUM_SCANS \ - 0x1640a0UL -#define TM_REG_LIN0_SCAN_ON \ - 0x1640d0UL -#define TM_REG_LIN0_SCAN_TIME \ - 0x16403cUL -#define TM_REG_LIN0_VNIC_UC \ - 0x164128UL -#define TM_REG_TM_INT_MASK \ - 0x1640fcUL -#define TM_REG_TM_PRTY_MASK \ - 0x16410cUL -#define TM_REG_TM_PRTY_STS_CLR \ - 0x164104UL -#define TSDM_REG_ENABLE_IN1 \ - 0x42238UL -#define TSDM_REG_TSDM_INT_MASK_0 \ - 0x4229cUL -#define TSDM_REG_TSDM_INT_MASK_1 \ - 0x422acUL -#define TSDM_REG_TSDM_PRTY_MASK \ - 0x422bcUL -#define TSDM_REG_TSDM_PRTY_STS_CLR \ - 0x422b4UL -#define TSEM_REG_FAST_MEMORY \ - 0x1a0000UL -#define TSEM_REG_INT_TABLE \ - 0x180400UL -#define TSEM_REG_PASSIVE_BUFFER \ - 0x181000UL -#define TSEM_REG_PRAM \ - 0x1c0000UL -#define TSEM_REG_TSEM_INT_MASK_0 \ - 0x180100UL -#define TSEM_REG_TSEM_INT_MASK_1 \ - 0x180110UL -#define TSEM_REG_TSEM_PRTY_MASK_0 \ - 0x180120UL -#define TSEM_REG_TSEM_PRTY_MASK_1 \ - 0x180130UL -#define TSEM_REG_TSEM_PRTY_STS_CLR_0 \ - 0x180118UL -#define TSEM_REG_TSEM_PRTY_STS_CLR_1 \ - 0x180128UL -#define TSEM_REG_VFPF_ERR_NUM \ - 0x180380UL -#define UCM_REG_UCM_INT_MASK \ - 0xe01d4UL -#define UCM_REG_UCM_PRTY_MASK \ - 0xe01e4UL -#define UCM_REG_UCM_PRTY_STS_CLR \ - 0xe01dcUL -#define UMAC_COMMAND_CONFIG_REG_HD_ENA \ - (0x1<<10) -#define UMAC_COMMAND_CONFIG_REG_IGNORE_TX_PAUSE \ - (0x1<<28) -#define UMAC_COMMAND_CONFIG_REG_LOOP_ENA \ - (0x1<<15) -#define UMAC_COMMAND_CONFIG_REG_NO_LGTH_CHECK \ - (0x1<<24) -#define UMAC_COMMAND_CONFIG_REG_PAD_EN \ - (0x1<<5) -#define UMAC_COMMAND_CONFIG_REG_PAUSE_IGNORE \ - (0x1<<8) -#define UMAC_COMMAND_CONFIG_REG_PROMIS_EN \ - (0x1<<4) -#define UMAC_COMMAND_CONFIG_REG_RX_ENA \ - (0x1<<1) -#define UMAC_COMMAND_CONFIG_REG_SW_RESET \ - (0x1<<13) -#define UMAC_COMMAND_CONFIG_REG_TX_ENA \ - (0x1<<0) -#define UMAC_REG_COMMAND_CONFIG \ - 0x8UL -#define UMAC_REG_EEE_WAKE_TIMER \ - 0x6cUL -#define UMAC_REG_MAC_ADDR0 \ - 0xcUL -#define UMAC_REG_MAC_ADDR1 \ - 0x10UL -#define UMAC_REG_MAXFR \ - 0x14UL -#define UMAC_REG_UMAC_EEE_CTRL \ - 0x64UL -#define UMAC_UMAC_EEE_CTRL_REG_EEE_EN \ - (0x1<<3) -#define USDM_REG_USDM_INT_MASK_0 \ - 0xc42a0UL -#define USDM_REG_USDM_INT_MASK_1 \ - 0xc42b0UL -#define USDM_REG_USDM_PRTY_MASK \ - 0xc42c0UL -#define USDM_REG_USDM_PRTY_STS_CLR \ - 0xc42b8UL -#define USEM_REG_FAST_MEMORY \ - 0x320000UL -#define USEM_REG_INT_TABLE \ - 0x300400UL -#define USEM_REG_PASSIVE_BUFFER \ - 0x302000UL -#define USEM_REG_PRAM \ - 0x340000UL -#define USEM_REG_USEM_INT_MASK_0 \ - 0x300110UL -#define USEM_REG_USEM_INT_MASK_1 \ - 0x300120UL -#define USEM_REG_USEM_PRTY_MASK_0 \ - 0x300130UL -#define USEM_REG_USEM_PRTY_MASK_1 \ - 0x300140UL -#define USEM_REG_USEM_PRTY_STS_CLR_0 \ - 0x300128UL -#define USEM_REG_USEM_PRTY_STS_CLR_1 \ - 0x300138UL -#define USEM_REG_VFPF_ERR_NUM \ - 0x300380UL -#define VFC_MEMORIES_RST_REG_CAM_RST \ - (0x1<<0) -#define VFC_MEMORIES_RST_REG_RAM_RST \ - (0x1<<1) -#define VFC_REG_MEMORIES_RST \ - 0x1943cUL -#define XCM_REG_XCM_INT_MASK \ - 0x202b4UL -#define XCM_REG_XCM_PRTY_MASK \ - 0x202c4UL -#define XCM_REG_XCM_PRTY_STS_CLR \ - 0x202bcUL -#define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS \ - (0x1<<0) -#define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS \ - (0x1<<1) -#define XMAC_CTRL_REG_LINE_LOCAL_LPBK \ - (0x1<<2) -#define XMAC_CTRL_REG_RX_EN \ - (0x1<<1) -#define XMAC_CTRL_REG_SOFT_RESET \ - (0x1<<6) -#define XMAC_CTRL_REG_TX_EN \ - (0x1<<0) -#define XMAC_CTRL_REG_XLGMII_ALIGN_ENB \ - (0x1<<7) -#define XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN \ - (0x1<<18) -#define XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN \ - (0x1<<17) -#define XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON \ - (0x1<<1) -#define XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN \ - (0x1<<0) -#define XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN \ - (0x1<<3) -#define XMAC_PFC_CTRL_HI_REG_RX_PFC_EN \ - (0x1<<4) -#define XMAC_PFC_CTRL_HI_REG_TX_PFC_EN \ - (0x1<<5) -#define XMAC_REG_CLEAR_RX_LSS_STATUS \ - 0x60UL -#define XMAC_REG_CTRL \ - 0UL -#define XMAC_REG_CTRL_SA_HI \ - 0x2cUL -#define XMAC_REG_CTRL_SA_LO \ - 0x28UL -#define XMAC_REG_EEE_CTRL \ - 0xd8UL -#define XMAC_REG_EEE_TIMERS_HI \ - 0xe4UL -#define XMAC_REG_PAUSE_CTRL \ - 0x68UL -#define XMAC_REG_PFC_CTRL \ - 0x70UL -#define XMAC_REG_PFC_CTRL_HI \ - 0x74UL -#define XMAC_REG_RX_LSS_CTRL \ - 0x50UL -#define XMAC_REG_RX_LSS_STATUS \ - 0x58UL -#define XMAC_REG_RX_MAX_SIZE \ - 0x40UL -#define XMAC_REG_TX_CTRL \ - 0x20UL -#define XMAC_RX_LSS_CTRL_REG_LOCAL_FAULT_DISABLE \ - (0x1<<0) -#define XMAC_RX_LSS_CTRL_REG_REMOTE_FAULT_DISABLE \ - (0x1<<1) -#define XSDM_REG_OPERATION_GEN \ - 0x1664c4UL -#define XSDM_REG_XSDM_INT_MASK_0 \ - 0x16629cUL -#define XSDM_REG_XSDM_INT_MASK_1 \ - 0x1662acUL -#define XSDM_REG_XSDM_PRTY_MASK \ - 0x1662bcUL -#define XSDM_REG_XSDM_PRTY_STS_CLR \ - 0x1662b4UL -#define XSEM_REG_FAST_MEMORY \ - 0x2a0000UL -#define XSEM_REG_INT_TABLE \ - 0x280400UL -#define XSEM_REG_PASSIVE_BUFFER \ - 0x282000UL -#define XSEM_REG_PRAM \ - 0x2c0000UL -#define XSEM_REG_VFPF_ERR_NUM \ - 0x280380UL -#define XSEM_REG_XSEM_INT_MASK_0 \ - 0x280110UL -#define XSEM_REG_XSEM_INT_MASK_1 \ - 0x280120UL -#define XSEM_REG_XSEM_PRTY_MASK_0 \ - 0x280130UL -#define XSEM_REG_XSEM_PRTY_MASK_1 \ - 0x280140UL -#define XSEM_REG_XSEM_PRTY_STS_CLR_0 \ - 0x280128UL -#define XSEM_REG_XSEM_PRTY_STS_CLR_1 \ - 0x280138UL -#define MCPR_ACCESS_LOCK_LOCK (1L<<31) -#define MCPR_IMC_COMMAND_ENABLE (1L<<31) -#define MCPR_IMC_COMMAND_IMC_STATUS_BITSHIFT 16 -#define MCPR_IMC_COMMAND_OPERATION_BITSHIFT 28 -#define MCPR_IMC_COMMAND_TRANSFER_ADDRESS_BITSHIFT 8 -#define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0) -#define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1) -#define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0) -#define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0) -#define MCPR_NVM_COMMAND_DOIT (1L<<4) -#define MCPR_NVM_COMMAND_DONE (1L<<3) -#define MCPR_NVM_COMMAND_FIRST (1L<<7) -#define MCPR_NVM_COMMAND_LAST (1L<<8) -#define MCPR_NVM_COMMAND_WR (1L<<5) -#define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9) -#define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5) -#define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1) - - -#define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3) -#define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) -#define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3) -#define BIGMAC_REGISTER_RX_CONTROL (0x21<<3) -#define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3) -#define BIGMAC_REGISTER_RX_LSS_STATUS (0x43<<3) -#define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3) -#define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3) -#define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3) -#define BIGMAC_REGISTER_TX_CONTROL (0x07<<3) -#define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3) -#define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3) -#define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3) -#define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3) -#define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3) -#define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3) -#define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) -#define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3) -#define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3) -#define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3) -#define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3) -#define BIGMAC2_REGISTER_RX_LSS_STAT (0x3E<<3) -#define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3) -#define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3) -#define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3) -#define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3) -#define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3) -#define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3) -#define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3) -#define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3) -#define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3) - - -#define EMAC_LED_1000MB_OVERRIDE (1L<<1) -#define EMAC_LED_100MB_OVERRIDE (1L<<2) -#define EMAC_LED_10MB_OVERRIDE (1L<<3) -#define EMAC_LED_OVERRIDE (1L<<0) -#define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26) -#define EMAC_MDIO_COMM_COMMAND_READ_22 (2L<<26) -#define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26) -#define EMAC_MDIO_COMM_COMMAND_WRITE_22 (1L<<26) -#define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26) -#define EMAC_MDIO_COMM_DATA (0xffffL<<0) -#define EMAC_MDIO_COMM_START_BUSY (1L<<29) -#define EMAC_MDIO_MODE_AUTO_POLL (1L<<4) -#define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31) -#define EMAC_MDIO_MODE_CLOCK_CNT (0x3ffL<<16) -#define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16 -#define EMAC_MDIO_STATUS_10MB (1L<<1) -#define EMAC_MODE_25G_MODE (1L<<5) -#define EMAC_MODE_HALF_DUPLEX (1L<<1) -#define EMAC_MODE_PORT_GMII (2L<<2) -#define EMAC_MODE_PORT_MII (1L<<2) -#define EMAC_MODE_PORT_MII_10M (3L<<2) -#define EMAC_MODE_RESET (1L<<0) -#define EMAC_REG_EMAC_LED 0xc -#define EMAC_REG_EMAC_MAC_MATCH 0x10 -#define EMAC_REG_EMAC_MDIO_COMM 0xac -#define EMAC_REG_EMAC_MDIO_MODE 0xb4 -#define EMAC_REG_EMAC_MDIO_STATUS 0xb0 -#define EMAC_REG_EMAC_MODE 0x0 -#define EMAC_REG_EMAC_RX_MODE 0xc8 -#define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c -#define EMAC_REG_EMAC_RX_STAT_AC 0x180 -#define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4 -#define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23 -#define EMAC_REG_EMAC_TX_MODE 0xbc -#define EMAC_REG_EMAC_TX_STAT_AC 0x280 -#define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22 -#define EMAC_REG_RX_PFC_MODE 0x320 -#define EMAC_REG_RX_PFC_MODE_PRIORITIES (1L<<2) -#define EMAC_REG_RX_PFC_MODE_RX_EN (1L<<1) -#define EMAC_REG_RX_PFC_MODE_TX_EN (1L<<0) -#define EMAC_REG_RX_PFC_PARAM 0x324 -#define EMAC_REG_RX_PFC_PARAM_OPCODE_BITSHIFT 0 -#define EMAC_REG_RX_PFC_PARAM_PRIORITY_EN_BITSHIFT 16 -#define EMAC_REG_RX_PFC_STATS_XOFF_RCVD 0x328 -#define EMAC_REG_RX_PFC_STATS_XOFF_RCVD_COUNT (0xffff<<0) -#define EMAC_REG_RX_PFC_STATS_XOFF_SENT 0x330 -#define EMAC_REG_RX_PFC_STATS_XOFF_SENT_COUNT (0xffff<<0) -#define EMAC_REG_RX_PFC_STATS_XON_RCVD 0x32c -#define EMAC_REG_RX_PFC_STATS_XON_RCVD_COUNT (0xffff<<0) -#define EMAC_REG_RX_PFC_STATS_XON_SENT 0x334 -#define EMAC_REG_RX_PFC_STATS_XON_SENT_COUNT (0xffff<<0) -#define EMAC_RX_MODE_FLOW_EN (1L<<2) -#define EMAC_RX_MODE_KEEP_MAC_CONTROL (1L<<3) -#define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10) -#define EMAC_RX_MODE_PROMISCUOUS (1L<<8) -#define EMAC_RX_MODE_RESET (1L<<0) -#define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) -#define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) -#define EMAC_TX_MODE_FLOW_EN (1L<<4) -#define EMAC_TX_MODE_RESET (1L<<0) - - -#define MISC_REGISTERS_GPIO_0 0 -#define MISC_REGISTERS_GPIO_1 1 -#define MISC_REGISTERS_GPIO_2 2 -#define MISC_REGISTERS_GPIO_3 3 -#define MISC_REGISTERS_GPIO_CLR_POS 16 -#define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24) -#define MISC_REGISTERS_GPIO_FLOAT_POS 24 -#define MISC_REGISTERS_GPIO_HIGH 1 -#define MISC_REGISTERS_GPIO_INPUT_HI_Z 2 -#define MISC_REGISTERS_GPIO_INT_CLR_POS 24 -#define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR 0 -#define MISC_REGISTERS_GPIO_INT_OUTPUT_SET 1 -#define MISC_REGISTERS_GPIO_INT_SET_POS 16 -#define MISC_REGISTERS_GPIO_LOW 0 -#define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1 -#define MISC_REGISTERS_GPIO_OUTPUT_LOW 0 -#define MISC_REGISTERS_GPIO_PORT_SHIFT 4 -#define MISC_REGISTERS_GPIO_SET_POS 8 -#define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 -#define MISC_REGISTERS_RESET_REG_1_RST_BRB1 (0x1<<0) -#define MISC_REGISTERS_RESET_REG_1_RST_DORQ \ - (0x1<<19) -#define MISC_REGISTERS_RESET_REG_1_RST_HC \ - (0x1<<29) -#define MISC_REGISTERS_RESET_REG_1_RST_PXP \ - (0x1<<26) -#define MISC_REGISTERS_RESET_REG_1_RST_PXPV \ - (0x1<<27) -#define MISC_REGISTERS_RESET_REG_1_RST_QM \ - (0x1<<17) -#define MISC_REGISTERS_RESET_REG_1_SET 0x584 -#define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598 -#define MISC_REGISTERS_RESET_REG_2_MSTAT0 \ - (0x1<<24) -#define MISC_REGISTERS_RESET_REG_2_MSTAT1 \ - (0x1<<25) -#define MISC_REGISTERS_RESET_REG_2_PGLC \ - (0x1<<19) -#define MISC_REGISTERS_RESET_REG_2_RST_ATC \ - (0x1<<17) -#define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0) -#define MISC_REGISTERS_RESET_REG_2_RST_BMAC1 (0x1<<1) -#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0 (0x1<<2) -#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE \ - (0x1<<14) -#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1 (0x1<<3) -#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE \ - (0x1<<15) -#define MISC_REGISTERS_RESET_REG_2_RST_GRC (0x1<<4) -#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B (0x1<<6) -#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CORE (0x1<<8) -#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CPU (0x1<<7) -#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5) -#define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE \ - (0x1<<11) -#define MISC_REGISTERS_RESET_REG_2_RST_PCI_MDIO \ - (0x1<<13) -#define MISC_REGISTERS_RESET_REG_2_RST_PXP_RQ_RD_WR \ - (0x1<<16) -#define MISC_REGISTERS_RESET_REG_2_RST_RBCN (0x1<<9) -#define MISC_REGISTERS_RESET_REG_2_SET 0x594 -#define MISC_REGISTERS_RESET_REG_2_UMAC0 \ - (0x1<<20) -#define MISC_REGISTERS_RESET_REG_2_UMAC1 \ - (0x1<<21) -#define MISC_REGISTERS_RESET_REG_2_XMAC \ - (0x1<<22) -#define MISC_REGISTERS_RESET_REG_2_XMAC_SOFT \ - (0x1<<23) -#define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8 -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4) -#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8) -#define MISC_REGISTERS_RESET_REG_3_SET 0x5a4 -#define MISC_SPIO_CLR_POS 16 -#define MISC_SPIO_FLOAT (0xffL<<24) -#define MISC_SPIO_FLOAT_POS 24 -#define MISC_SPIO_INPUT_HI_Z 2 -#define MISC_SPIO_INT_OLD_SET_POS 16 -#define MISC_SPIO_OUTPUT_HIGH 1 -#define MISC_SPIO_OUTPUT_LOW 0 -#define MISC_SPIO_SET_POS 8 -#define MISC_SPIO_SPIO4 0x10 -#define MISC_SPIO_SPIO5 0x20 -#define HW_LOCK_MAX_RESOURCE_VALUE 31 -#define HW_LOCK_RESOURCE_DRV_FLAGS 10 -#define HW_LOCK_RESOURCE_GPIO 1 -#define HW_LOCK_RESOURCE_MDIO 0 -#define HW_LOCK_RESOURCE_NVRAM 12 -#define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3 -#define HW_LOCK_RESOURCE_RECOVERY_LEADER_0 8 -#define HW_LOCK_RESOURCE_RECOVERY_LEADER_1 9 -#define HW_LOCK_RESOURCE_RECOVERY_REG 11 -#define HW_LOCK_RESOURCE_RESET 5 -#define HW_LOCK_RESOURCE_SPIO 2 - - -#define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4) -#define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5) -#define AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT (0x1<<19) -#define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (0x1<<18) -#define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (0x1U<<31) -#define AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR (0x1<<30) -#define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (0x1<<9) -#define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (0x1<<8) -#define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (0x1<<7) -#define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (0x1<<6) -#define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (0x1<<29) -#define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (0x1<<28) -#define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (0x1<<1) -#define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (0x1<<0) -#define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (0x1<<18) -#define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (0x1<<11) -#define AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR (0x1<<10) -#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (0x1<<13) -#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (0x1<<12) -#define AEU_INPUTS_ATTN_BITS_GPIO0_FUNCTION_0 (0x1<<2) -#define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (0x1<<12) -#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY (0x1<<28) -#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (0x1UL<<31) -#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY (0x1<<29) -#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY (0x1<<30) -#define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (0x1<<15) -#define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (0x1<<14) -#define AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR (0x1<<14) -#define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (0x1<<20) -#define AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT (0x1UL<<31) -#define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (0x1<<30) -#define AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR (0x1<<0) -#define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT (0x1<<2) -#define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR (0x1<<3) -#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (0x1<<5) -#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (0x1<<4) -#define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (0x1<<3) -#define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (0x1<<2) -#define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (0x1<<3) -#define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (0x1<<2) -#define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (0x1<<22) -#define AEU_INPUTS_ATTN_BITS_SPIO5 (0x1<<15) -#define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (0x1<<27) -#define AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR (0x1<<26) -#define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (0x1<<5) -#define AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR (0x1<<4) -#define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (0x1<<25) -#define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (0x1<<24) -#define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (0x1<<29) -#define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (0x1<<28) -#define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (0x1<<23) -#define AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR (0x1<<22) -#define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (0x1<<27) -#define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (0x1<<26) -#define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (0x1<<21) -#define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (0x1<<20) -#define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (0x1<<25) -#define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (0x1<<24) -#define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (0x1<<16) -#define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (0x1<<9) -#define AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR (0x1<<8) -#define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (0x1<<7) -#define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (0x1<<6) -#define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (0x1<<11) -#define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (0x1<<10) -#define HW_PRTY_ASSERT_SET_0 \ -(AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR) -#define HW_PRTY_ASSERT_SET_1 \ -(AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR) -#define HW_PRTY_ASSERT_SET_2 \ -(AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR) -#define HW_PRTY_ASSERT_SET_3 \ -(AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY | \ - AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY | \ - AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY | \ - AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY) -#define HW_PRTY_ASSERT_SET_4 \ -(AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR |\ - AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR) -#define HW_INTERRUT_ASSERT_SET_0 \ -(AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT) -#define HW_INTERRUT_ASSERT_SET_1 \ -(AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT) -#define HW_INTERRUT_ASSERT_SET_2 \ -(AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT |\ - AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT) - - +#define ATC_ATC_INT_STS_REG_ADDRESS_ERROR (0x1<<0) +#define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS (0x1<<2) +#define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU (0x1<<5) +#define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT (0x1<<3) +#define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR (0x1<<4) +#define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND (0x1<<1) +/* [R 1] ATC initalization done */ +#define ATC_REG_ATC_INIT_DONE 0x1100bc +/* [RW 6] Interrupt mask register #0 read/write */ +#define ATC_REG_ATC_INT_MASK 0x1101c8 +/* [R 6] Interrupt register #0 read */ +#define ATC_REG_ATC_INT_STS 0x1101bc +/* [RC 6] Interrupt register #0 read clear */ +#define ATC_REG_ATC_INT_STS_CLR 0x1101c0 +/* [RW 5] Parity mask register #0 read/write */ +#define ATC_REG_ATC_PRTY_MASK 0x1101d8 +/* [R 5] Parity register #0 read */ +#define ATC_REG_ATC_PRTY_STS 0x1101cc +/* [RC 5] Parity register #0 read clear */ +#define ATC_REG_ATC_PRTY_STS_CLR 0x1101d0 +/* [RW 19] Interrupt mask register #0 read/write */ +#define BRB1_REG_BRB1_INT_MASK 0x60128 +/* [R 19] Interrupt register #0 read */ +#define BRB1_REG_BRB1_INT_STS 0x6011c +/* [RC 19] Interrupt register #0 read clear */ +#define BRB1_REG_BRB1_INT_STS_CLR 0x60120 +/* [RW 4] Parity mask register #0 read/write */ +#define BRB1_REG_BRB1_PRTY_MASK 0x60138 +/* [R 4] Parity register #0 read */ +#define BRB1_REG_BRB1_PRTY_STS 0x6012c +/* [RC 4] Parity register #0 read clear */ +#define BRB1_REG_BRB1_PRTY_STS_CLR 0x60130 +/* [RW 11] The number of blocks guarantied for the MAC port. The register is + * applicable only when per_class_guaranty_mode is reset. */ +#define BRB1_REG_MAC_GUARANTIED_0 0x601e8 +#define BRB1_REG_MAC_GUARANTIED_1 0x60240 +/* [R 24] The number of full blocks. */ +#define BRB1_REG_NUM_OF_FULL_BLOCKS 0x60090 +/* [RW 10] Write client 0: De-assert pause threshold. Not Functional */ +#define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 0x60078 +/* [RW 10] Write client 0: Assert pause threshold. Not Functional */ +#define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068 +/* [R 24] The number of full blocks occpied by port. */ +#define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094 +/* [R 5] Used to read the value of the XX protection CAM occupancy counter. */ +#define CCM_REG_CAM_OCCUP 0xd0188 +/* [RW 11] Interrupt mask register #0 read/write */ +#define CCM_REG_CCM_INT_MASK 0xd01e4 +/* [R 11] Interrupt register #0 read */ +#define CCM_REG_CCM_INT_STS 0xd01d8 +/* [RC 11] Interrupt register #0 read clear */ +#define CCM_REG_CCM_INT_STS_CLR 0xd01dc +/* [RW 27] Parity mask register #0 read/write */ +#define CCM_REG_CCM_PRTY_MASK 0xd01f4 +/* [R 27] Parity register #0 read */ +#define CCM_REG_CCM_PRTY_STS 0xd01e8 +/* [RC 27] Parity register #0 read clear */ +#define CCM_REG_CCM_PRTY_STS_CLR 0xd01ec +/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 1 at start-up. */ +#define CCM_REG_CFC_INIT_CRD 0xd0204 +/* [RW 6] QM output initial credit. Max credit available - 32. Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 32 at start-up. */ +#define CCM_REG_CQM_INIT_CRD 0xd020c +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the SDM interface is detected. */ +#define CCM_REG_CSDM_LENGTH_MIS 0xd0170 +/* [RW 8] FIC0 output initial credit. Max credit available - 255. Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define CCM_REG_FIC0_INIT_CRD 0xd0210 +/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define CCM_REG_FIC1_INIT_CRD 0xd0214 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the pbf interface is detected. */ +#define CCM_REG_PBF_LENGTH_MIS 0xd0180 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the STORM interface is detected. */ +#define CCM_REG_STORM_LENGTH_MIS 0xd016c +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the tsem interface is detected. */ +#define CCM_REG_TSEM_LENGTH_MIS 0xd0174 +/* [RC 1] Set when message length mismatch (relative to last indication) at + * the usem interface is detected. */ +#define CCM_REG_USEM_LENGTH_MIS 0xd017c +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the xsem interface is detected. */ +#define CCM_REG_XSEM_LENGTH_MIS 0xd0178 +/* [RW 19] Indirect access to the descriptor table of the XX protection + * mechanism. The fields are: [5:0] - message length; [12:6] - message + * pointer; 18:13] - next pointer. */ +#define CCM_REG_XX_DESCR_TABLE 0xd0300 +#define CCM_REG_XX_DESCR_TABLE_SIZE 24 +/* [R 7] Used to read the value of XX protection Free counter. */ +#define CCM_REG_XX_FREE 0xd0184 +#define CDU_REG_CDU_GLOBAL_PARAMS 0x101020 +/* [RW 7] Interrupt mask register #0 read/write */ +#define CDU_REG_CDU_INT_MASK 0x10103c +/* [R 7] Interrupt register #0 read */ +#define CDU_REG_CDU_INT_STS 0x101030 +/* [RC 7] Interrupt register #0 read clear */ +#define CDU_REG_CDU_INT_STS_CLR 0x101034 +/* [RW 5] Parity mask register #0 read/write */ +#define CDU_REG_CDU_PRTY_MASK 0x10104c +/* [R 5] Parity register #0 read */ +#define CDU_REG_CDU_PRTY_STS 0x101040 +/* [RC 5] Parity register #0 read clear */ +#define CDU_REG_CDU_PRTY_STS_CLR 0x101044 +/* [RW 32] logging of error data in case of a CDU load error: + * {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error; + * ype_error; ctual_active; ctual_compressed_context}; */ +#define CDU_REG_ERROR_DATA 0x101014 +/* [RW 13] activity counter ram access */ +#define CFC_REG_ACTIVITY_COUNTER 0x104400 +#define CFC_REG_ACTIVITY_COUNTER_SIZE 256 +/* [R 1] indication the initializing the activity counter by the hardware + * was done. */ +#define CFC_REG_AC_INIT_DONE 0x104078 +/* [R 1] indication the initializing the cams by the hardware was done. */ +#define CFC_REG_CAM_INIT_DONE 0x10407c +/* [RW 2] Interrupt mask register #0 read/write */ +#define CFC_REG_CFC_INT_MASK 0x104108 +/* [R 2] Interrupt register #0 read */ +#define CFC_REG_CFC_INT_STS 0x1040fc +/* [RC 2] Interrupt register #0 read clear */ +#define CFC_REG_CFC_INT_STS_CLR 0x104100 +/* [RW 6] Parity mask register #0 read/write */ +#define CFC_REG_CFC_PRTY_MASK 0x104118 +/* [R 6] Parity register #0 read */ +#define CFC_REG_CFC_PRTY_STS 0x10410c +/* [RC 6] Parity register #0 read clear */ +#define CFC_REG_CFC_PRTY_STS_CLR 0x104110 +/* [RW 21] CID cam access (21:1 - Data; alid - 0) */ +#define CFC_REG_CID_CAM 0x104800 +#define CFC_REG_DEBUG0 0x104050 +/* [R 16] CFC error vector. when the CFC detects an internal error it will + * set one of these bits. the bit description can be found in CFC + * specifications */ +#define CFC_REG_ERROR_VECTOR 0x10403c +/* [WB 97] LCID info ram access = {96-vpf; 5:93-pfid; 2:89-type; + * 8:85-action; 4-paddrv; 3:20-paddr; 9:4-rstates; -lsf; :0-lstate} */ +#define CFC_REG_INFO_RAM 0x105000 +#define CFC_REG_INFO_RAM_SIZE 1024 +#define CFC_REG_INIT_REG 0x10404c +/* [RW 22] Link List ram access; data = {prev_pfid; rev_lcid; ext_pfid; + * ext_lcid} */ +#define CFC_REG_LINK_LIST 0x104c00 +#define CFC_REG_LINK_LIST_SIZE 256 +/* [R 1] indication the initializing the link list by the hardware was done. */ +#define CFC_REG_LL_INIT_DONE 0x104074 +/* [R 9] Number of allocated LCIDs which are at empty state */ +#define CFC_REG_NUM_LCIDS_ALLOC 0x104020 +/* [R 9] Number of Arriving LCIDs in Link List Block */ +#define CFC_REG_NUM_LCIDS_ARRIVING 0x104004 +#define CFC_REG_NUM_LCIDS_INSIDE_PF 0x104120 +/* [R 9] Number of Leaving LCIDs in Link List Block */ +#define CFC_REG_NUM_LCIDS_LEAVING 0x104018 +#define CFC_REG_STRONG_ENABLE_PF 0x104128 +#define CFC_REG_WEAK_ENABLE_PF 0x104124 +/* [RW 32] Interrupt mask register #0 read/write */ +#define CSDM_REG_CSDM_INT_MASK_0 0xc229c +#define CSDM_REG_CSDM_INT_MASK_1 0xc22ac +/* [R 32] Interrupt register #0 read */ +#define CSDM_REG_CSDM_INT_STS_0 0xc2290 +#define CSDM_REG_CSDM_INT_STS_1 0xc22a0 +/* [RC 32] Interrupt register #0 read clear */ +#define CSDM_REG_CSDM_INT_STS_CLR_0 0xc2294 +#define CSDM_REG_CSDM_INT_STS_CLR_1 0xc22a4 +/* [RW 11] Parity mask register #0 read/write */ +#define CSDM_REG_CSDM_PRTY_MASK 0xc22bc +/* [R 11] Parity register #0 read */ +#define CSDM_REG_CSDM_PRTY_STS 0xc22b0 +/* [RC 11] Parity register #0 read clear */ +#define CSDM_REG_CSDM_PRTY_STS_CLR 0xc22b4 +/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ +#define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc2548 +/* [R 1] parser fifo empty in sdm_sync block */ +#define CSDM_REG_SYNC_PARSER_EMPTY 0xc2550 +/* [R 1] parser serial fifo empty in sdm_sync block */ +#define CSDM_REG_SYNC_SYNC_EMPTY 0xc2558 +/* [RW 32] Interrupt mask register #0 read/write */ +#define CSEM_REG_CSEM_INT_MASK_0 0x200110 +#define CSEM_REG_CSEM_INT_MASK_1 0x200120 +/* [R 32] Interrupt register #0 read */ +#define CSEM_REG_CSEM_INT_STS_0 0x200104 +#define CSEM_REG_CSEM_INT_STS_1 0x200114 +/* [RC 32] Interrupt register #0 read clear */ +#define CSEM_REG_CSEM_INT_STS_CLR_0 0x200108 +#define CSEM_REG_CSEM_INT_STS_CLR_1 0x200118 +/* [RW 32] Parity mask register #0 read/write */ +#define CSEM_REG_CSEM_PRTY_MASK_0 0x200130 +#define CSEM_REG_CSEM_PRTY_MASK_1 0x200140 +/* [R 32] Parity register #0 read */ +#define CSEM_REG_CSEM_PRTY_STS_0 0x200124 +#define CSEM_REG_CSEM_PRTY_STS_1 0x200134 +/* [RC 32] Parity register #0 read clear */ +#define CSEM_REG_CSEM_PRTY_STS_CLR_0 0x200128 +#define CSEM_REG_CSEM_PRTY_STS_CLR_1 0x200138 +/* [RW 32] This address space contains all registers and memories that are + * placed in SEM_FAST block. The SEM_FAST registers are described in + * appendix B. In order to access the SEM_FAST registers the base address + * CSEM_REGISTERS_FAST_MEMORY (Offset: 0x220000) should be added to each + * SEM_FAST register offset. */ +#define CSEM_REG_FAST_MEMORY 0x220000 +/* [RW 15] Interrupt table Read and write access to it is not possible in + * the middle of the work */ +#define CSEM_REG_INT_TABLE 0x200400 +/* [WB 128] Debug only. Passive buffer memory */ +#define CSEM_REG_PASSIVE_BUFFER 0x202000 +/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ +#define CSEM_REG_PRAM 0x240000 +/* [R 20] Valid sleeping threads indication have bit per thread */ +#define CSEM_REG_SLEEP_THREADS_VALID 0x20026c +/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ +#define CSEM_REG_SLOW_EXT_STORE_EMPTY 0x2002a0 +/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 + * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ +#define CSEM_REG_VFPF_ERR_NUM 0x200380 +/* [RW 2] Interrupt mask register #0 read/write */ +#define DBG_REG_DBG_INT_MASK 0xc098 +/* [R 2] Interrupt register #0 read */ +#define DBG_REG_DBG_INT_STS 0xc08c +/* [RC 2] Interrupt register #0 read clear */ +#define DBG_REG_DBG_INT_STS_CLR 0xc090 +/* [RW 1] Parity mask register #0 read/write */ +#define DBG_REG_DBG_PRTY_MASK 0xc0a8 +/* [R 1] Parity register #0 read */ +#define DBG_REG_DBG_PRTY_STS 0xc09c +/* [RC 1] Parity register #0 read clear */ +#define DBG_REG_DBG_PRTY_STS_CLR 0xc0a0 +/* [RW 1] When set the DMAE will process the commands as in E1.5. 1.The + * function that is used is always SRC-PCI; 2.VF_Valid = 0; 3.VFID=0; + * 4.Completion function=0; 5.Error handling=0 */ +#define DMAE_REG_BACKWARD_COMP_EN 0x10207c +/* [RW 32] Commands memory. The address to command X; row Y is to calculated + * as 14*X+Y. */ +#define DMAE_REG_CMD_MEM 0x102400 +#define DMAE_REG_CMD_MEM_SIZE 224 +/* [RW 2] Interrupt mask register #0 read/write */ +#define DMAE_REG_DMAE_INT_MASK 0x102054 +/* [R 2] Interrupt register #0 read */ +#define DMAE_REG_DMAE_INT_STS 0x102048 +/* [RC 2] Interrupt register #0 read clear */ +#define DMAE_REG_DMAE_INT_STS_CLR 0x10204c +/* [RW 4] Parity mask register #0 read/write */ +#define DMAE_REG_DMAE_PRTY_MASK 0x102064 +/* [R 4] Parity register #0 read */ +#define DMAE_REG_DMAE_PRTY_STS 0x102058 +/* [RC 4] Parity register #0 read clear */ +#define DMAE_REG_DMAE_PRTY_STS_CLR 0x10205c +/* [RW 1] Command 0 go. */ +#define DMAE_REG_GO_C0 0x102080 +/* [RW 1] Command 1 go. */ +#define DMAE_REG_GO_C1 0x102084 +/* [RW 1] Command 10 go. */ +#define DMAE_REG_GO_C10 0x102088 +/* [RW 1] Command 11 go. */ +#define DMAE_REG_GO_C11 0x10208c +/* [RW 1] Command 12 go. */ +#define DMAE_REG_GO_C12 0x102090 +/* [RW 1] Command 13 go. */ +#define DMAE_REG_GO_C13 0x102094 +/* [RW 1] Command 14 go. */ +#define DMAE_REG_GO_C14 0x102098 +/* [RW 1] Command 15 go. */ +#define DMAE_REG_GO_C15 0x10209c +/* [RW 1] Command 2 go. */ +#define DMAE_REG_GO_C2 0x1020a0 +/* [RW 1] Command 3 go. */ +#define DMAE_REG_GO_C3 0x1020a4 +/* [RW 1] Command 4 go. */ +#define DMAE_REG_GO_C4 0x1020a8 +/* [RW 1] Command 5 go. */ +#define DMAE_REG_GO_C5 0x1020ac +/* [RW 1] Command 6 go. */ +#define DMAE_REG_GO_C6 0x1020b0 +/* [RW 1] Command 7 go. */ +#define DMAE_REG_GO_C7 0x1020b4 +/* [RW 1] Command 8 go. */ +#define DMAE_REG_GO_C8 0x1020b8 +/* [RW 1] Command 9 go. */ +#define DMAE_REG_GO_C9 0x1020bc +/* [RW 32] Doorbell address for RBC doorbells (function 0). */ +#define DORQ_REG_DB_ADDR0 0x17008c +/* [RW 6] Interrupt mask register #0 read/write */ +#define DORQ_REG_DORQ_INT_MASK 0x170180 +/* [R 6] Interrupt register #0 read */ +#define DORQ_REG_DORQ_INT_STS 0x170174 +/* [RC 6] Interrupt register #0 read clear */ +#define DORQ_REG_DORQ_INT_STS_CLR 0x170178 +/* [RW 2] Parity mask register #0 read/write */ +#define DORQ_REG_DORQ_PRTY_MASK 0x170190 +/* [R 2] Parity register #0 read */ +#define DORQ_REG_DORQ_PRTY_STS 0x170184 +/* [RC 2] Parity register #0 read clear */ +#define DORQ_REG_DORQ_PRTY_STS_CLR 0x170188 +/* [R 13] Current value of the DQ FIFO fill level according to following + * pointer. The range is 0 - 256 FIFO rows; where each row stands for the + * doorbell. */ +#define DORQ_REG_DQ_FILL_LVLF 0x1700a4 +/* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or + * equal to full threshold; reset on full clear. */ +#define DORQ_REG_DQ_FULL_ST 0x1700c0 +#define DORQ_REG_MAX_RVFID_SIZE 0x1701ec +#define DORQ_REG_MODE_ACT 0x170008 +/* [RW 5] The normal mode CID extraction offset. */ +#define DORQ_REG_NORM_CID_OFST 0x17002c +#define DORQ_REG_PF_USAGE_CNT 0x1701d0 +/* [R 4] Current value of response A counter credit. Initial credit is + * configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd + * register. */ +#define DORQ_REG_RSPA_CRD_CNT 0x1700ac +/* [R 4] Current value of response B counter credit. Initial credit is + * configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd + * register. */ +#define DORQ_REG_RSPB_CRD_CNT 0x1700b0 +#define DORQ_REG_VF_NORM_CID_BASE 0x1701a0 +#define DORQ_REG_VF_NORM_CID_OFST 0x1701f4 +#define DORQ_REG_VF_NORM_CID_WND_SIZE 0x1701a4 +#define DORQ_REG_VF_NORM_VF_BASE 0x1701a8 +/* [RW 10] VF type validation mask value */ +#define DORQ_REG_VF_TYPE_MASK_0 0x170218 +/* [RW 17] VF type validation Min MCID value */ +#define DORQ_REG_VF_TYPE_MAX_MCID_0 0x1702d8 +/* [RW 17] VF type validation Max MCID value */ +#define DORQ_REG_VF_TYPE_MIN_MCID_0 0x170298 +/* [RW 10] VF type validation comp value */ +#define DORQ_REG_VF_TYPE_VALUE_0 0x170258 +#define DORQ_REG_VF_USAGE_CNT 0x170320 +#define DORQ_REG_VF_USAGE_CT_LIMIT 0x170340 +#define HC_CONFIG_0_REG_ATTN_BIT_EN_0 (0x1<<4) +#define HC_CONFIG_0_REG_BLOCK_DISABLE_0 (0x1<<0) +#define HC_CONFIG_0_REG_INT_LINE_EN_0 (0x1<<3) +#define HC_CONFIG_0_REG_MSI_ATTN_EN_0 (0x1<<7) +#define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 (0x1<<2) +#define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 (0x1<<1) +#define HC_CONFIG_1_REG_BLOCK_DISABLE_1 (0x1<<0) +#define HC_REG_AGG_INT_0 0x108050 +#define HC_REG_ATTN_MSG0_ADDR_L 0x108018 +#define HC_REG_ATTN_MSG1_ADDR_L 0x108020 +#define HC_REG_COMMAND_REG 0x108180 +#define HC_REG_CONFIG_0 0x108000 +#define HC_REG_CONFIG_1 0x108004 +/* [RW 7] Interrupt mask register #0 read/write */ +#define HC_REG_HC_INT_MASK 0x108090 +/* [R 7] Interrupt register #0 read */ +#define HC_REG_HC_INT_STS 0x108084 +/* [RC 7] Interrupt register #0 read clear */ +#define HC_REG_HC_INT_STS_CLR 0x108088 +/* [RW 3] Parity mask register #0 read/write */ +#define HC_REG_HC_PRTY_MASK 0x1080a0 +/* [R 3] Parity register #0 read */ +#define HC_REG_HC_PRTY_STS 0x108094 +/* [RC 3] Parity register #0 read clear */ +#define HC_REG_HC_PRTY_STS_CLR 0x108098 +#define HC_REG_INT_MASK 0x108108 +#define HC_REG_LEADING_EDGE_0 0x108040 +#define HC_REG_MAIN_MEMORY 0x108800 +#define HC_REG_MAIN_MEMORY_SIZE 152 +#define HC_REG_TRAILING_EDGE_0 0x108044 +#define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN (0x1<<1) +#define IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE (0x1<<0) +#define IGU_REG_ATTENTION_ACK_BITS 0x130108 +/* [R 4] Debug: attn_fsm */ +#define IGU_REG_ATTN_FSM 0x130054 +#define IGU_REG_ATTN_MSG_ADDR_H 0x13011c +#define IGU_REG_ATTN_MSG_ADDR_L 0x130120 +/* [R 4] Debug: [3] - attention write done message is pending (0-no pending; + * 1-pending). [2:0] = PFID. Pending means attention message was sent; but + * write done didnt receive. */ +#define IGU_REG_ATTN_WRITE_DONE_PENDING 0x130030 +#define IGU_REG_BLOCK_CONFIGURATION 0x130000 +#define IGU_REG_COMMAND_REG_32LSB_DATA 0x130124 +#define IGU_REG_COMMAND_REG_CTRL 0x13012c +/* [WB_R 32] Cleanup bit status per SB. 1 = cleanup is set. 0 = cleanup bit + * is clear. The bits in this registers are set and clear via the producer + * command. Data valid only in addresses 0-4. all the rest are zero. */ +#define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP 0x130200 +/* [R 5] Debug: ctrl_fsm */ +#define IGU_REG_CTRL_FSM 0x130064 +/* [R 1] data availble for error memory. If this bit is clear do not red + * from error_handling_memory. */ +#define IGU_REG_ERROR_HANDLING_DATA_VALID 0x130130 +/* [RW 11] Interrupt mask register #0 read/write */ +#define IGU_REG_IGU_INT_MASK 0x130098 +/* [R 11] Interrupt register #0 read */ +#define IGU_REG_IGU_INT_STS 0x13008c +/* [RC 11] Interrupt register #0 read clear */ +#define IGU_REG_IGU_INT_STS_CLR 0x130090 +/* [RW 11] Parity mask register #0 read/write */ +#define IGU_REG_IGU_PRTY_MASK 0x1300a8 +/* [R 11] Parity register #0 read */ +#define IGU_REG_IGU_PRTY_STS 0x13009c +/* [RC 11] Parity register #0 read clear */ +#define IGU_REG_IGU_PRTY_STS_CLR 0x1300a0 +/* [R 4] Debug: int_handle_fsm */ +#define IGU_REG_INT_HANDLE_FSM 0x130050 +#define IGU_REG_LEADING_EDGE_LATCH 0x130134 +/* [RW 14] mapping CAM; relevant for E2 operating mode only. [0] - valid. + * [6:1] - vector number; [13:7] - FID (if VF - [13] = 0; [12:7] = VF + * number; if PF - [13] = 1; [12:10] = 0; [9:7] = PF number); */ +#define IGU_REG_MAPPING_MEMORY 0x131000 +#define IGU_REG_MAPPING_MEMORY_SIZE 136 +#define IGU_REG_PBA_STATUS_LSB 0x130138 +#define IGU_REG_PBA_STATUS_MSB 0x13013c +#define IGU_REG_PCI_PF_MSIX_EN 0x130144 +#define IGU_REG_PCI_PF_MSIX_FUNC_MASK 0x130148 +#define IGU_REG_PCI_PF_MSI_EN 0x130140 +/* [WB_R 32] Each bit represent the pending bits status for that SB. 0 = no + * pending; 1 = pending. Pendings means interrupt was asserted; and write + * done was not received. Data valid only in addresses 0-4. all the rest are + * zero. */ +#define IGU_REG_PENDING_BITS_STATUS 0x130300 +#define IGU_REG_PF_CONFIGURATION 0x130154 +/* [RW 20] producers only. E2 mode: address 0-135 match to the mapping + * memory; 136 - PF0 default prod; 137 PF1 default prod; 138 - PF2 default + * prod; 139 PF3 default prod; 140 - PF0 - ATTN prod; 141 - PF1 - ATTN prod; + * 142 - PF2 - ATTN prod; 143 - PF3 - ATTN prod; 144-147 reserved. E1.5 mode + * - In backward compatible mode; for non default SB; each even line in the + * memory holds the U producer and each odd line hold the C producer. The + * first 128 producer are for NDSB (PF0 - 0-31; PF1 - 32-63 and so on). The + * last 20 producers are for the DSB for each PF. each PF has five segments + * (the order inside each segment is PF0; PF1; PF2; PF3) - 128-131 U prods; + * 132-135 C prods; 136-139 X prods; 140-143 T prods; 144-147 ATTN prods; */ +#define IGU_REG_PROD_CONS_MEMORY 0x132000 +/* [R 3] Debug: pxp_arb_fsm */ +#define IGU_REG_PXP_ARB_FSM 0x130068 +/* [RW 6] Write one for each bit will reset the appropriate memory. When the + * memory reset finished the appropriate bit will be clear. Bit 0 - mapping + * memory; Bit 1 - SB memory; Bit 2 - SB interrupt and mask register; Bit 3 + * - MSIX memory; Bit 4 - PBA memory; Bit 5 - statistics; */ +#define IGU_REG_RESET_MEMORIES 0x130158 +/* [R 4] Debug: sb_ctrl_fsm */ +#define IGU_REG_SB_CTRL_FSM 0x13004c +#define IGU_REG_SB_INT_BEFORE_MASK_LSB 0x13015c +#define IGU_REG_SB_INT_BEFORE_MASK_MSB 0x130160 +#define IGU_REG_SB_MASK_LSB 0x130164 +#define IGU_REG_SB_MASK_MSB 0x130168 +/* [RW 16] Number of command that were dropped without causing an interrupt + * due to: read access for WO BAR address; or write access for RO BAR + * address or any access for reserved address or PCI function error is set + * and address is not MSIX; PBA or cleanup */ +#define IGU_REG_SILENT_DROP 0x13016c +/* [RW 10] Number of MSI/MSIX/ATTN messages sent for the function: 0-63 - + * number of MSIX messages per VF; 64-67 - number of MSI/MSIX messages per + * PF; 68-71 number of ATTN messages per PF */ +#define IGU_REG_STATISTIC_NUM_MESSAGE_SENT 0x130800 +#define IGU_REG_TRAILING_EDGE_LATCH 0x130104 +#define IGU_REG_VF_CONFIGURATION 0x130170 +/* [WB_R 32] Each bit represent write done pending bits status for that SB + * (MSI/MSIX message was sent and write done was not received yet). 0 = + * clear; 1 = set. Data valid only in addresses 0-4. all the rest are zero. */ +#define IGU_REG_WRITE_DONE_PENDING 0x130480 +#define MCP_A_REG_MCPR_SCRATCH 0x3a0000 +#define MCP_REG_MCPR_ACCESS_LOCK 0x8009c +#define MCP_REG_MCPR_CPU_PROGRAM_COUNTER 0x8501c +#define MCP_REG_MCPR_GP_INPUTS 0x800c0 +#define MCP_REG_MCPR_GP_OENABLE 0x800c8 +#define MCP_REG_MCPR_GP_OUTPUTS 0x800c4 +#define MCP_REG_MCPR_IMC_COMMAND 0x85900 +#define MCP_REG_MCPR_IMC_DATAREG0 0x85920 +#define MCP_REG_MCPR_IMC_SLAVE_CONTROL 0x85904 +#define MCP_REG_MCPR_NVM_ACCESS_ENABLE 0x86424 +#define MCP_REG_MCPR_NVM_ADDR 0x8640c +#define MCP_REG_MCPR_NVM_CFG4 0x8642c +#define MCP_REG_MCPR_NVM_COMMAND 0x86400 +#define MCP_REG_MCPR_NVM_READ 0x86410 +#define MCP_REG_MCPR_NVM_SW_ARB 0x86420 +#define MCP_REG_MCPR_NVM_WRITE 0x86408 +#define MCP_REG_MCPR_SCRATCH 0xa0000 +#define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK (0x1<<1) +#define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK (0x1<<0) +/* [R 32] read first 32 bit after inversion of function 0. mapped as + * follows: [0] NIG attention for function0; [1] NIG attention for + * function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; + * [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9] + * GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE + * glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0; + * [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] + * MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB + * Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw + * interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity + * error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw + * interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] + * PBClient Parity error; [31] PBClient Hw interrupt; */ +#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 0xa42c +#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1 0xa430 +/* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0] + * NIG attention for function0; [1] NIG attention for function1; [2] GPIO1 + * mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; + * [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10] + * PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event + * function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP + * Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for + * mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19] + * BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC + * Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw + * interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI + * Parity error; [29] TSEMI Hw interrupt; [30] PBClient Parity error; [31] + * PBClient Hw interrupt; */ +#define MISC_REG_AEU_AFTER_INVERT_1_MCP 0xa434 +/* [R 32] read second 32 bit after inversion of function 0. mapped as + * follows: [0] PBF Parity error; [1] PBF Hw interrupt; [2] QM Parity error; + * [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; + * [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] + * XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12] + * DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity + * error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux + * PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt; + * [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error; + * [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt; + * [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error; + * [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */ +#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 0xa438 +#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1 0xa43c +/* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0] + * PBF Parity error; [1] PBF Hw interrupt; [2] QM Parity error; [3] QM Hw + * interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM + * Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw + * interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12] + * DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity + * error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux + * PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt; + * [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error; + * [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt; + * [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error; + * [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */ +#define MISC_REG_AEU_AFTER_INVERT_2_MCP 0xa440 +/* [R 32] read third 32 bit after inversion of function 0. mapped as + * follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity + * error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5] + * PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw + * interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity + * error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) + * Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16] + * pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20] + * MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23] + * SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW + * timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 + * func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General + * attn1; */ +#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 0xa444 +#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1 0xa448 +/* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0] + * CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP + * Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient + * Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity + * error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw + * interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14] + * MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17] + * Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW + * timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3 + * func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1 + * func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW + * timers attn_4 func1; [30] General attn0; [31] General attn1; */ +#define MISC_REG_AEU_AFTER_INVERT_3_MCP 0xa44c +/* [R 32] read fourth 32 bit after inversion of function 0. mapped as + * follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] + * General attn5; [4] General attn6; [5] General attn7; [6] General attn8; + * [7] General attn9; [8] General attn10; [9] General attn11; [10] General + * attn12; [11] General attn13; [12] General attn14; [13] General attn15; + * [14] General attn16; [15] General attn17; [16] General attn18; [17] + * General attn19; [18] General attn20; [19] General attn21; [20] Main power + * interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN + * Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC + * Latched timeout attention; [27] GRC Latched reserved access attention; + * [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP + * Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ +#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 0xa450 +#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1 0xa454 +/* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0] + * General attn2; [1] General attn3; [2] General attn4; [3] General attn5; + * [4] General attn6; [5] General attn7; [6] General attn8; [7] General + * attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11] + * General attn13; [12] General attn14; [13] General attn15; [14] General + * attn16; [15] General attn17; [16] General attn18; [17] General attn19; + * [18] General attn20; [19] General attn21; [20] Main power interrupt; [21] + * RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24] + * RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout + * attention; [27] GRC Latched reserved access attention; [28] MCP Latched + * rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched + * ump_tx_parity; [31] MCP Latched scpad_parity; */ +#define MISC_REG_AEU_AFTER_INVERT_4_MCP 0xa458 +/* [R 32] Read fifth 32 bit after inversion of function 0. Mapped as + * follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC + * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6] + * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1 + * parity; [31-10] Reserved; */ +#define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 0xa700 +/* [W 14] write to this register results with the clear of the latched + * signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in + * d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP + * latch; one in d5 clears GRC Latched timeout attention; one in d6 clears + * GRC Latched reserved access attention; one in d7 clears Latched + * rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears + * Latched ump_tx_parity; one in d10 clears Latched scpad_parity (both + * ports); one in d11 clears pxpv_misc_mps_attn; one in d12 clears + * pxp_misc_exp_rom_attn0; one in d13 clears pxp_misc_exp_rom_attn1; read + * from this register return zero */ +#define MISC_REG_AEU_CLR_LATCH_SIGNAL 0xa45c +/* [RW 32] first 32b for enabling the output for function 0 output0. mapped + * as follows: [0] NIG attention for function0; [1] NIG attention for + * function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function + * 0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8] + * GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event + * function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP + * Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] + * SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X + * indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; + * [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] + * SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] + * TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] + * TSEMI Hw interrupt; [30] PBClient Parity error; [31] PBClient Hw + * interrupt; */ +#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 0xa06c +#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 0xa07c +#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 0xa08c +/* [RW 32] first 32b for enabling the output for function 1 output0. mapped + * as follows: [0] NIG attention for function0; [1] NIG attention for + * function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function + * 1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8] + * GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event + * function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP + * Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14] + * SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X + * indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; + * [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] + * SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] + * TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] + * TSEMI Hw interrupt; [30] PBClient Parity error; [31] PBClient Hw + * interrupt; */ +#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 0xa10c +#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 0xa11c +#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 0xa12c +/* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped + * as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] + * General attn5; [4] General attn6; [5] General attn7; [6] General attn8; + * [7] General attn9; [8] General attn10; [9] General attn11; [10] General + * attn12; [11] General attn13; [12] General attn14; [13] General attn15; + * [14] General attn16; [15] General attn17; [16] General attn18; [17] + * General attn19; [18] General attn20; [19] General attn21; [20] Main power + * interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN + * Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC + * Latched timeout attention; [27] GRC Latched reserved access attention; + * [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP + * Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ +#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 0xa078 +/* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped + * as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] + * General attn5; [4] General attn6; [5] General attn7; [6] General attn8; + * [7] General attn9; [8] General attn10; [9] General attn11; [10] General + * attn12; [11] General attn13; [12] General attn14; [13] General attn15; + * [14] General attn16; [15] General attn17; [16] General attn18; [17] + * General attn19; [18] General attn20; [19] General attn21; [20] Main power + * interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN + * Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC + * Latched timeout attention; [27] GRC Latched reserved access attention; + * [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP + * Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ +#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 0xa118 +/* [RW 32] fourth 32b for enabling the output for close the gate nig. Mapped + * as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] + * General attn5; [4] General attn6; [5] General attn7; [6] General attn8; + * [7] General attn9; [8] General attn10; [9] General attn11; [10] General + * attn12; [11] General attn13; [12] General attn14; [13] General attn15; + * [14] General attn16; [15] General attn17; [16] General attn18; [17] + * General attn19; [18] General attn20; [19] General attn21; [20] Main power + * interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN + * Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC + * Latched timeout attention; [27] GRC Latched reserved access attention; + * [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP + * Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ +#define MISC_REG_AEU_ENABLE4_NIG_0 0xa0f8 +#define MISC_REG_AEU_ENABLE4_NIG_1 0xa198 +/* [RW 32] fourth 32b for enabling the output for close the gate pxp. Mapped + * as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3] + * General attn5; [4] General attn6; [5] General attn7; [6] General attn8; + * [7] General attn9; [8] General attn10; [9] General attn11; [10] General + * attn12; [11] General attn13; [12] General attn14; [13] General attn15; + * [14] General attn16; [15] General attn17; [16] General attn18; [17] + * General attn19; [18] General attn20; [19] General attn21; [20] Main power + * interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN + * Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC + * Latched timeout attention; [27] GRC Latched reserved access attention; + * [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP + * Latched ump_tx_parity; [31] MCP Latched scpad_parity; */ +#define MISC_REG_AEU_ENABLE4_PXP_0 0xa108 +#define MISC_REG_AEU_ENABLE4_PXP_1 0xa1a8 +/* [RW 32] fifth 32b for enabling the output for function 0 output0. Mapped + * as follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC + * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6] + * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1 + * parity; [31-10] Reserved; */ +#define MISC_REG_AEU_ENABLE5_FUNC_0_OUT_0 0xa688 +/* [RW 32] Fifth 32b for enabling the output for function 1 output0. Mapped + * as follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC + * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6] + * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1 + * parity; [31-10] Reserved; */ +#define MISC_REG_AEU_ENABLE5_FUNC_1_OUT_0 0xa6b0 +/* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu + * 128 bit vector */ +#define MISC_REG_AEU_GENERAL_ATTN_0 0xa000 +#define MISC_REG_AEU_GENERAL_ATTN_1 0xa004 +#define MISC_REG_AEU_GENERAL_ATTN_10 0xa028 +#define MISC_REG_AEU_GENERAL_ATTN_11 0xa02c +#define MISC_REG_AEU_GENERAL_ATTN_12 0xa030 +#define MISC_REG_AEU_GENERAL_ATTN_2 0xa008 +#define MISC_REG_AEU_GENERAL_ATTN_3 0xa00c +#define MISC_REG_AEU_GENERAL_ATTN_4 0xa010 +#define MISC_REG_AEU_GENERAL_ATTN_5 0xa014 +#define MISC_REG_AEU_GENERAL_ATTN_6 0xa018 +#define MISC_REG_AEU_GENERAL_ATTN_7 0xa01c +#define MISC_REG_AEU_GENERAL_ATTN_8 0xa020 +#define MISC_REG_AEU_GENERAL_ATTN_9 0xa024 +#define MISC_REG_AEU_GENERAL_MASK 0xa61c +/* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0; + * [9:8] = reserved. 0 = mask; 1 = unmask */ +#define MISC_REG_AEU_MASK_ATTN_FUNC_0 0xa060 +#define MISC_REG_AEU_MASK_ATTN_FUNC_1 0xa064 +/* [RW 1] If set a system kill occurred. Reset on POR reset. */ +#define MISC_REG_AEU_SYS_KILL_OCCURRED 0xa610 +/* [RW 32] Represent the status of the input vector to the AEU when a system + * kill occurred. The register is reset in por reset. Mapped as follows: [0] + * NIG attention for function0; [1] NIG attention for function1; [2] GPIO1 + * mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; + * [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10] + * PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event + * function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP + * Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for + * mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19] + * BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC + * Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw + * interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI + * Parity error; [29] TSEMI Hw interrupt; [30] PBClient Parity error; [31] + * PBClient Hw interrupt. Reset on POR reset. */ +#define MISC_REG_AEU_SYS_KILL_STATUS_0 0xa600 +#define MISC_REG_AEU_SYS_KILL_STATUS_1 0xa604 +#define MISC_REG_AEU_SYS_KILL_STATUS_2 0xa608 +#define MISC_REG_AEU_SYS_KILL_STATUS_3 0xa60c +/* [R 32] This field indicates the type of the device. '0' - 2 Ports; '1' - + * 1 Port. Global register. */ +#define MISC_REG_BOND_ID 0xa400 +/* [R 16] These bits indicate the part number for the chip. Global register. */ +#define MISC_REG_CHIP_NUM 0xa408 +/* [R 4] These bits indicate the base revision of the chip. This value + * starts at 0x0 for the A0 tape-out and increments by one for each + * all-layer tape-out. Global register. */ +#define MISC_REG_CHIP_REV 0xa40c +/* [R 14] otp_misc_do[100:0] spare bits collection: 13:11- + * otp_misc_do[100:98]; 10:7 - otp_misc_do[87:84]; 6:3 - otp_misc_do[75:72]; + * 2:1 - otp_misc_do[51:50]; 0 - otp_misc_do[1]. */ +#define MISC_REG_CHIP_TYPE 0xac60 +#define MISC_REG_CHIP_TYPE_57811_MASK (1<<1) +#define MISC_REG_CPMU_LP_DR_ENABLE 0xa858 +/* [RW 1] FW EEE LPI Enable. When 1 indicates that EEE LPI mode is enabled + * by FW. When 0 indicates that the EEE LPI mode is disabled by FW. Clk + * 25MHz. Reset on hard reset. */ +#define MISC_REG_CPMU_LP_FW_ENABLE_P0 0xa84c +/* [RW 32] EEE LPI Idle Threshold. The threshold value for the idle EEE LPI + * counter. Timer tick is 1 us. Clock 25MHz. Reset on hard reset. */ +#define MISC_REG_CPMU_LP_IDLE_THR_P0 0xa8a0 +/* [RW 18] LPI entry events mask. [0] - Vmain SM Mask. When 1 indicates that + * the Vmain SM end state is disabled. When 0 indicates that the Vmain SM + * end state is enabled. [1] - FW Queues Empty Mask. When 1 indicates that + * the FW command that all Queues are empty is disabled. When 0 indicates + * that the FW command that all Queues are empty is enabled. [2] - FW Early + * Exit Mask / Reserved (Entry mask). When 1 indicates that the FW Early + * Exit command is disabled. When 0 indicates that the FW Early Exit command + * is enabled. This bit applicable only in the EXIT Events Mask registers. + * [3] - PBF Request Mask. When 1 indicates that the PBF Request indication + * is disabled. When 0 indicates that the PBF Request indication is enabled. + * [4] - Tx Request Mask. When =1 indicates that the Tx other Than PBF + * Request indication is disabled. When 0 indicates that the Tx Other Than + * PBF Request indication is enabled. [5] - Rx EEE LPI Status Mask. When 1 + * indicates that the RX EEE LPI Status indication is disabled. When 0 + * indicates that the RX EEE LPI Status indication is enabled. In the EXIT + * Events Masks registers; this bit masks the falling edge detect of the LPI + * Status (Rx LPI is on - off). [6] - Tx Pause Mask. When 1 indicates that + * the Tx Pause indication is disabled. When 0 indicates that the Tx Pause + * indication is enabled. [7] - BRB1 Empty Mask. When 1 indicates that the + * BRB1 EMPTY indication is disabled. When 0 indicates that the BRB1 EMPTY + * indication is enabled. [8] - QM Idle Mask. When 1 indicates that the QM + * IDLE indication is disabled. When 0 indicates that the QM IDLE indication + * is enabled. (One bit for both VOQ0 and VOQ1). [9] - QM LB Idle Mask. When + * 1 indicates that the QM IDLE indication for LOOPBACK is disabled. When 0 + * indicates that the QM IDLE indication for LOOPBACK is enabled. [10] - L1 + * Status Mask. When 1 indicates that the L1 Status indication from the PCIE + * CORE is disabled. When 0 indicates that the RX EEE LPI Status indication + * from the PCIE CORE is enabled. In the EXIT Events Masks registers; this + * bit masks the falling edge detect of the L1 status (L1 is on - off). [11] + * - P0 E0 EEE EEE LPI REQ Mask. When =1 indicates that the P0 E0 EEE EEE + * LPI REQ indication is disabled. When =0 indicates that the P0 E0 EEE LPI + * REQ indication is enabled. [12] - P1 E0 EEE LPI REQ Mask. When =1 + * indicates that the P0 EEE LPI REQ indication is disabled. When =0 + * indicates that the P0 EEE LPI REQ indication is enabled. [13] - P0 E1 EEE + * LPI REQ Mask. When =1 indicates that the P0 EEE LPI REQ indication is + * disabled. When =0 indicates that the P0 EEE LPI REQ indication is + * enabled. [14] - P1 E1 EEE LPI REQ Mask. When =1 indicates that the P0 EEE + * LPI REQ indication is disabled. When =0 indicates that the P0 EEE LPI REQ + * indication is enabled. [15] - L1 REQ Mask. When =1 indicates that the L1 + * REQ indication is disabled. When =0 indicates that the L1 indication is + * enabled. [16] - Rx EEE LPI Status Edge Detect Mask. When =1 indicates + * that the RX EEE LPI Status Falling Edge Detect indication is disabled (Rx + * EEE LPI is on - off). When =0 indicates that the RX EEE LPI Status + * Falling Edge Detec indication is enabled (Rx EEE LPI is on - off). This + * bit is applicable only in the EXIT Events Masks registers. [17] - L1 + * Status Edge Detect Mask. When =1 indicates that the L1 Status Falling + * Edge Detect indication from the PCIE CORE is disabled (L1 is on - off). + * When =0 indicates that the L1 Status Falling Edge Detect indication from + * the PCIE CORE is enabled (L1 is on - off). This bit is applicable only in + * the EXIT Events Masks registers. Clock 25MHz. Reset on hard reset. */ +#define MISC_REG_CPMU_LP_MASK_ENT_P0 0xa880 +/* [RW 18] EEE LPI exit events mask. [0] - Vmain SM Mask. When 1 indicates + * that the Vmain SM end state is disabled. When 0 indicates that the Vmain + * SM end state is enabled. [1] - FW Queues Empty Mask. When 1 indicates + * that the FW command that all Queues are empty is disabled. When 0 + * indicates that the FW command that all Queues are empty is enabled. [2] - + * FW Early Exit Mask / Reserved (Entry mask). When 1 indicates that the FW + * Early Exit command is disabled. When 0 indicates that the FW Early Exit + * command is enabled. This bit applicable only in the EXIT Events Mask + * registers. [3] - PBF Request Mask. When 1 indicates that the PBF Request + * indication is disabled. When 0 indicates that the PBF Request indication + * is enabled. [4] - Tx Request Mask. When =1 indicates that the Tx other + * Than PBF Request indication is disabled. When 0 indicates that the Tx + * Other Than PBF Request indication is enabled. [5] - Rx EEE LPI Status + * Mask. When 1 indicates that the RX EEE LPI Status indication is disabled. + * When 0 indicates that the RX LPI Status indication is enabled. In the + * EXIT Events Masks registers; this bit masks the falling edge detect of + * the EEE LPI Status (Rx EEE LPI is on - off). [6] - Tx Pause Mask. When 1 + * indicates that the Tx Pause indication is disabled. When 0 indicates that + * the Tx Pause indication is enabled. [7] - BRB1 Empty Mask. When 1 + * indicates that the BRB1 EMPTY indication is disabled. When 0 indicates + * that the BRB1 EMPTY indication is enabled. [8] - QM Idle Mask. When 1 + * indicates that the QM IDLE indication is disabled. When 0 indicates that + * the QM IDLE indication is enabled. (One bit for both VOQ0 and VOQ1). [9] + * - QM LB Idle Mask. When 1 indicates that the QM IDLE indication for + * LOOPBACK is disabled. When 0 indicates that the QM IDLE indication for + * LOOPBACK is enabled. [10] - L1 Status Mask. When 1 indicates that the L1 + * Status indication from the PCIE CORE is disabled. When 0 indicates that + * the RX EEE LPI Status indication from the PCIE CORE is enabled. In the + * EXIT Events Masks registers; this bit masks the falling edge detect of + * the L1 status (L1 is on - off). [11] - P0 E0 EEE EEE LPI REQ Mask. When + * =1 indicates that the P0 E0 EEE EEE LPI REQ indication is disabled. When + * =0 indicates that the P0 E0 EEE LPI REQ indication is enabled. [12] - P1 + * E0 EEE LPI REQ Mask. When =1 indicates that the P0 EEE LPI REQ indication + * is disabled. When =0 indicates that the P0 EEE LPI REQ indication is + * enabled. [13] - P0 E1 EEE LPI REQ Mask. When =1 indicates that the P0 EEE + * LPI REQ indication is disabled. When =0 indicates that the P0 EEE LPI REQ + * indication is enabled. [14] - P1 E1 EEE LPI REQ Mask. When =1 indicates + * that the P0 EEE LPI REQ indication is disabled. When =0 indicates that + * the P0 EEE LPI REQ indication is enabled. [15] - L1 REQ Mask. When =1 + * indicates that the L1 REQ indication is disabled. When =0 indicates that + * the L1 indication is enabled. [16] - Rx EEE LPI Status Edge Detect Mask. + * When =1 indicates that the RX EEE LPI Status Falling Edge Detect + * indication is disabled (Rx EEE LPI is on - off). When =0 indicates that + * the RX EEE LPI Status Falling Edge Detec indication is enabled (Rx EEE + * LPI is on - off). This bit is applicable only in the EXIT Events Masks + * registers. [17] - L1 Status Edge Detect Mask. When =1 indicates that the + * L1 Status Falling Edge Detect indication from the PCIE CORE is disabled + * (L1 is on - off). When =0 indicates that the L1 Status Falling Edge + * Detect indication from the PCIE CORE is enabled (L1 is on - off). This + * bit is applicable only in the EXIT Events Masks registers.Clock 25MHz. + * Reset on hard reset. */ +#define MISC_REG_CPMU_LP_MASK_EXT_P0 0xa888 +/* [RW 16] EEE LPI Entry Events Counter. A statistic counter with the number + * of counts that the SM entered the EEE LPI state. Clock 25MHz. Read only + * register. Reset on hard reset. */ +#define MISC_REG_CPMU_LP_SM_ENT_CNT_P0 0xa8b8 +/* [RW 16] EEE LPI Entry Events Counter. A statistic counter with the number + * of counts that the SM entered the EEE LPI state. Clock 25MHz. Read only + * register. Reset on hard reset. */ +#define MISC_REG_CPMU_LP_SM_ENT_CNT_P1 0xa8bc +/* [RW 32] The following driver registers(1...16) represent 16 drivers and + * 32 clients. Each client can be controlled by one driver only. One in each + * bit represent that this driver control the appropriate client (Ex: bit 5 + * is set means this driver control client number 5). addr1 = set; addr0 = + * clear; read from both addresses will give the same result = status. write + * to address 1 will set a request to control all the clients that their + * appropriate bit (in the write command) is set. if the client is free (the + * appropriate bit in all the other drivers is clear) one will be written to + * that driver register; if the client isn't free the bit will remain zero. + * if the appropriate bit is set (the driver request to gain control on a + * client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW + * interrupt will be asserted). write to address 0 will set a request to + * free all the clients that their appropriate bit (in the write command) is + * set. if the appropriate bit is clear (the driver request to free a client + * it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will + * be asserted). */ +#define MISC_REG_DRIVER_CONTROL_1 0xa510 +#define MISC_REG_DRIVER_CONTROL_7 0xa3c8 +/* [R 1] Status of four port mode path swap input pin. */ +#define MISC_REG_FOUR_PORT_PATH_SWAP 0xa75c +/* [RW 2] 4 port path swap overwrite.[0] - Overwrite control; if it is 0 - + * the path_swap output is equal to 4 port mode path swap input pin; if it + * is 1 - the path_swap output is equal to bit[1] of this register; [1] - + * Overwrite value. If bit[0] of this register is 1 this is the value that + * receives the path_swap output. Reset on Hard reset. */ +#define MISC_REG_FOUR_PORT_PATH_SWAP_OVWR 0xa738 +/* [R 1] Status of 4 port mode port swap input pin. */ +#define MISC_REG_FOUR_PORT_PORT_SWAP 0xa754 +/* [RW 2] 4 port port swap overwrite.[0] - Overwrite control; if it is 0 - + * the port_swap output is equal to 4 port mode port swap input pin; if it + * is 1 - the port_swap output is equal to bit[1] of this register; [1] - + * Overwrite value. If bit[0] of this register is 1 this is the value that + * receives the port_swap output. Reset on Hard reset. */ +#define MISC_REG_FOUR_PORT_PORT_SWAP_OVWR 0xa734 +/* [RW 32] Debug only: spare RW register reset by core reset. Global + * register. Reset on core reset. */ +#define MISC_REG_GENERIC_CR_0 0xa460 +#define MISC_REG_GENERIC_CR_1 0xa464 +/* [RW 32] Debug only: spare RW register reset by por reset. Global + * register. Reset on POR reset. */ +#define MISC_REG_GENERIC_POR_1 0xa474 +/* [RW 32] Bit[0]: EPIO MODE SEL: Setting this bit to 1 will allow SW/FW to + * use all of the 32 Extended GPIO pins. Without setting this bit; an EPIO + * can not be configured as an output. Each output has its output enable in + * the MCP register space; but this bit needs to be set to make use of that. + * Bit[3:1] spare. Bit[4]: WCVTMON_PWRDN: Powerdown for Warpcore VTMON. When + * set to 1 - Powerdown. Bit[5]: WCVTMON_RESETB: Reset for Warpcore VTMON. + * When set to 0 - vTMON is in reset. Bit[6]: setting this bit will change + * the i/o to an output and will drive the TimeSync output. Bit[31:7]: + * spare. Global register. Reset by hard reset. */ +#define MISC_REG_GEN_PURP_HWG 0xa9a0 +/* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of + * these bits is written as a '1'; the corresponding GPIO bit will turn off + * it's drivers and become an input. This is the reset state of all GPIO + * pins. The read value of these bits will be a '1' if that last command + * (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff). + * [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written + * as a '1'; the corresponding GPIO bit will drive low. The read value of + * these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for + * this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0; + * SET When any of these bits is written as a '1'; the corresponding GPIO + * bit will drive high (if it has that capability). The read value of these + * bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this + * bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0; + * RO; These bits indicate the read value of each of the eight GPIO pins. + * This is the result value of the pin; not the drive value. Writing these + * bits will have not effect. Global register. */ +#define MISC_REG_GPIO 0xa490 +/* [RW 8] These bits enable the GPIO_INTs to signals event to the + * IGU/MCP.according to the following map: [0] p0_gpio_0; [1] p0_gpio_1; [2] + * p0_gpio_2; [3] p0_gpio_3; [4] p1_gpio_0; [5] p1_gpio_1; [6] p1_gpio_2; + * [7] p1_gpio_3; Global register. */ +#define MISC_REG_GPIO_EVENT_EN 0xa2bc +/* [RW 32] GPIO INT. [31-28] OLD_CLR port1; [27-24] OLD_CLR port0; Writing a + * '1' to these bit clears the corresponding bit in the #OLD_VALUE register. + * This will acknowledge an interrupt on the falling edge of corresponding + * GPIO input (reset value 0). [23-16] OLD_SET [23-16] port1; OLD_SET port0; + * Writing a '1' to these bit sets the corresponding bit in the #OLD_VALUE + * register. This will acknowledge an interrupt on the rising edge of + * corresponding GPIO input (reset value 0). [15-12] OLD_VALUE [11-8] port1; + * OLD_VALUE port0; RO; These bits indicate the old value of the GPIO input + * value. When the ~INT_STATE bit is set; this bit indicates the OLD value + * of the pin such that if ~INT_STATE is set and this bit is '0'; then the + * interrupt is due to a low to high edge. If ~INT_STATE is set and this bit + * is '1'; then the interrupt is due to a high to low edge (reset value 0). + * [7-4] INT_STATE port1; [3-0] INT_STATE RO port0; These bits indicate the + * current GPIO interrupt state for each GPIO pin. This bit is cleared when + * the appropriate #OLD_SET or #OLD_CLR command bit is written. This bit is + * set when the GPIO input does not match the current value in #OLD_VALUE + * (reset value 0). Global register. */ +#define MISC_REG_GPIO_INT 0xa494 +/* [R 28] this field hold the last information that caused reserved + * attention. bits [19:0] - address; [22:20] function; [23] reserved; + * [27:24] the master that caused the attention - according to the following + * encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = + * dbu; 8 = dmae */ +#define MISC_REG_GRC_RSV_ATTN 0xa3c0 +/* [R 28] this field hold the last information that caused timeout + * attention. bits [19:0] - address; [22:20] function; [23] reserved; + * [27:24] the master that caused the attention - according to the following + * encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = + * dbu; 8 = dmae */ +#define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4 +/* [R 10] Holds the last FID that caused timeout attention. Need to be used + * in conjunction with ~misc_registers_timeout_attn; where 3 bits of + * function (3 lsb) are also represented. Bit[2:0] - PFID; bit[3] - VFID + * valid; bit[9:4] - VFID. Global register. */ +#define MISC_REG_GRC_TIMEOUT_ATTN_FULL_FID 0xa714 +/* [RW 1] LCPLL power down. Global register. Active High. Reset on POR + * reset. */ +#define MISC_REG_LCPLL_E40_PWRDWN 0xaa74 +/* [RW 1] LCPLL VCO reset. Global register. Active Low Reset on POR reset. */ +#define MISC_REG_LCPLL_E40_RESETB_ANA 0xaa78 +/* [RW 1] LCPLL post-divider reset. Global register. Active Low Reset on POR + * reset. */ +#define MISC_REG_LCPLL_E40_RESETB_DIG 0xaa7c +/* [RW 8] Interrupt mask register #0 read/write */ +#define MISC_REG_MISC_INT_MASK 0xa388 +/* [R 8] Interrupt register #0 read */ +#define MISC_REG_MISC_INT_STS 0xa37c +/* [RC 8] Interrupt register #0 read clear */ +#define MISC_REG_MISC_INT_STS_CLR 0xa380 +/* [RW 1] Parity mask register #0 read/write */ +#define MISC_REG_MISC_PRTY_MASK 0xa398 +/* [R 1] Parity register #0 read */ +#define MISC_REG_MISC_PRTY_STS 0xa38c +/* [RC 1] Parity register #0 read clear */ +#define MISC_REG_MISC_PRTY_STS_CLR 0xa390 +/* [R 1] If set indicate that the pcie_rst_b was asserted without perst + * assertion. Global register. */ +#define MISC_REG_PCIE_HOT_RESET 0xa618 +/* [R 1] Status of 4 port mode enable input pin. */ +#define MISC_REG_PORT4MODE_EN 0xa750 +/* [RW 2] 4 port mode enable overwrite.[0] - Overwrite control; if it is 0 - + * the port4mode_en output is equal to 4 port mode input pin; if it is 1 - + * the port4mode_en output is equal to bit[1] of this register; [1] - + * Overwrite value. If bit[0] of this register is 1 this is the value that + * receives the port4mode_en output. Reset on Hard reset. */ +#define MISC_REG_PORT4MODE_EN_OVWR 0xa720 +/* [RW 32] reset reg#1; rite/read one = the specific block is out of reset; + * write/read zero = the specific block is in reset; addr 0-wr- the write + * value will be written to the register; addr 1-set - one will be written + * to all the bits that have the value of one in the data written (bits that + * have the value of zero will not be change) ; addr 2-clear - zero will be + * written to all the bits that have the value of one in the data written + * (bits that have the value of zero will not be change); addr 3-ignore; + * read ignore from all addr except addr 00; inside order of the bits is: + * [0] rst_brb1; [1] rst_prs; [2] rst_src; [3] rst_tsdm; [4] rst_tsem; [5] + * rst_tcm; [6] rst_rbcr; [7] rst_nig; [8] rst_usdm; [9] rst_ucm; [10] + * rst_usem; [11] rst_upb; [12] rst_ccm; [13] rst_csem; [14] rst_csdm; [15] + * rst_rbcu; [16] rst_pbf; [17] rst_qm; [18] rst_tm; [19] rst_dorq; [20] + * rst_xcm; [21] rst_xsdm; [22] rst_xsem; [23] rst_rbct; [24] rst_cdu; [25] + * rst_cfc; [26] rst_pxp_hst; [27] rst_pxpv (global register); [28] + * rst_rbcp; [29] rst_hc; [30] rst_dmae; [31] rst_semi_rtc; */ +#define MISC_REG_RESET_REG_1 0xa580 +#define MISC_REG_RESET_REG_2 0xa590 +/* [RW 22] 22 bit GRC address where the scratch-pad of the MCP that is + * shared with the driver resides */ +#define MISC_REG_SHARED_MEM_ADDR 0xa2b4 +/* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1'; + * the corresponding SPIO bit will turn off it's drivers and become an + * input. This is the reset state of all SPIO pins. The read value of these + * bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this + * bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits + * is written as a '1'; the corresponding SPIO bit will drive low. The read + * value of these bits will be a '1' if that last command (#SET; #CLR; or + * #FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of + * these bits is written as a '1'; the corresponding SPIO bit will drive + * high (if it has that capability). The read value of these bits will be a + * '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET. + * (reset value 0). [7-0] VALUE RO; These bits indicate the read value of + * each of the eight SPIO pins. This is the result value of the pin; not the + * drive value. Writing these bits will have not effect. Each 8 bits field + * is divided as follows: [0] VAUX Enable; when pulsed low; enables supply + * from VAUX. (This is an output pin only; the FLOAT field is not applicable + * for this pin); [1] VAUX Disable; when pulsed low; disables supply form + * VAUX. (This is an output pin only; FLOAT field is not applicable for this + * pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to + * select VAUX supply. (This is an output pin only; it is not controlled by + * the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT + * field is not applicable for this pin; only the VALUE fields is relevant - + * it reflects the output value); [3] port swap [4] spio_4; [5] spio_5; [6] + * Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP + * device ID select; read by UMP firmware. Global register. */ +#define MISC_REG_SPIO 0xa4fc +/* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC. + * according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5; + * [7:6] reserved. Global register. */ +#define MISC_REG_SPIO_EVENT_EN 0xa2b8 +/* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the + * corresponding bit in the #OLD_VALUE register. This will acknowledge an + * interrupt on the falling edge of corresponding SPIO input (reset value + * 0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit + * in the #OLD_VALUE register. This will acknowledge an interrupt on the + * rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE + * RO; These bits indicate the old value of the SPIO input value. When the + * ~INT_STATE bit is set; this bit indicates the OLD value of the pin such + * that if ~INT_STATE is set and this bit is '0'; then the interrupt is due + * to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the + * interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE + * RO; These bits indicate the current SPIO interrupt state for each SPIO + * pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR + * command bit is written. This bit is set when the SPIO input does not + * match the current value in #OLD_VALUE (reset value 0). Global register. */ +#define MISC_REG_SPIO_INT 0xa500 +/* [R 1] Status of two port mode path swap input pin. */ +#define MISC_REG_TWO_PORT_PATH_SWAP 0xa758 +/* [RW 2] 2 port swap overwrite.[0] - Overwrite control; if it is 0 - the + * path_swap output is equal to 2 port mode path swap input pin; if it is 1 + * - the path_swap output is equal to bit[1] of this register; [1] - + * Overwrite value. If bit[0] of this register is 1 this is the value that + * receives the path_swap output. Reset on Hard reset. */ +#define MISC_REG_TWO_PORT_PATH_SWAP_OVWR 0xa72c +/* [RW 1] Set by the MCP to remember if one or more of the drivers is/are + * loaded; 0-prepare; -unprepare. Global register. Reset on hard reset. */ +#define MISC_REG_UNPREPARED 0xa424 +/* [RW 5] MDIO PHY Address. The WC uses this address to determine whether or + * not it is the recipient of the message on the MDIO interface. The value + * is compared to the value on ctrl_md_devad. Drives output + * misc_xgxs0_phy_addr. Global register. */ +#define MISC_REG_WC0_CTRL_PHY_ADDR 0xa9cc +/* [RW 10] reset reg#3; rite/read one = the specific block is out of reset; + * write/read zero = the specific block is in reset; addr 0-wr- the write + * value will be written to the register; addr 1-set - one will be written + * to all the bits that have the value of one in the data written (bits that + * have the value of zero will not be change) ; addr 2-clear - zero will be + * written to all the bits that have the value of one in the data written + * (bits that have the value of zero will not be change); addr 3-ignore; + * read ignore from all addr except addr 00. [0]: rstb_hw: Active low reset + * which when asserted drives entire WC into the reset state. All flops + * which within WC are driven into an initial state; as well as the analog + * core. Output clocks txck_out; rxck0_10g; and clk_25 will be driven to 0 + * upon its assertion. [1]: iddq. Enables iddq testing where the supply + * current (Idd) is measured in the quiescent state. [2]: pwrdwn: Active + * high control which forces the analog core of the WC into power-down mode; + * and forces digital logic of the WC into reset. Output clock (refclk) + * remains active. [3]: pwrdwn_sd: Power down signal detect. [4]: + * txd10g_fifo_rstb: Transmit 10Gbps FIFO reset; active low. Used to reset + * the transmit FIFO used in xlgmii operation. [8:5]: txd1g_fifo_rstb: + * Transmit 1Gbps FIFO reset; active low. Used to reset the per-lane + * transmit FIFOs used in the mii/gmii operation. [9]: + * txd10g_fifo_rstb_dxgxs1: Transmit 10Gbps DXGXS FIFO reset; active low. + * Used to reset the transmit FIFO used in the DXGXS logic in xlgmii + * operation. Global register. */ +#define MISC_REG_WC0_RESET 0xac30 +/* [RW 2] XMAC Core port mode. Indicates the number of ports on the system + * side. This should be less than or equal to phy_port_mode; if some of the + * ports are not used. This enables reduction of frequency on the core side. + * This is a strap input for the XMAC_MP core. 00 - Single Port Mode; 01 - + * Dual Port Mode; 10 - Tri Port Mode; 11 - Quad Port Mode. This is a strap + * input for the XMAC_MP core; and should be changed only while reset is + * held low. Reset on Hard reset. */ +#define MISC_REG_XMAC_CORE_PORT_MODE 0xa964 +/* [RW 2] XMAC PHY port mode. Indicates the number of ports on the Warp + * Core. This is a strap input for the XMAC_MP core. 00 - Single Port Mode; + * 01 - Dual Port Mode; 1x - Quad Port Mode; This is a strap input for the + * XMAC_MP core; and should be changed only while reset is held low. Reset + * on Hard reset. */ +#define MISC_REG_XMAC_PHY_PORT_MODE 0xa960 +/* [RW 1] Interrupt mask register #0 read/write */ +#define MSTAT_REG_MSTAT_INT_MASK 0x7fc +/* [R 1] Interrupt register #0 read */ +#define MSTAT_REG_MSTAT_INT_STS 0x7f0 +/* [RC 1] Interrupt register #0 read clear */ +#define MSTAT_REG_MSTAT_INT_STS_CLR 0x7f4 +/* [RW 32] 1 [47] Packet Size = 64 Write to this register write bits 31:0. + * Reads from this register will clear bits 31:0. */ +#define MSTAT_REG_RX_STAT_GR64_LO 0x200 +/* [RW 32] 1 [00] Tx Good Packet Count Write to this register write bits + * 31:0. Reads from this register will clear bits 31:0. */ +#define MSTAT_REG_TX_STAT_GTXPOK_LO 0 +#define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN (0x1<<0) +#define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN (0x1<<0) +#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT (0x1<<0) +#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS (0x1<<9) +#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G (0x1<<15) +#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS (0xf<<18) +/* [R 1] Input enable for RX_BMAC0 IF */ +#define NIG_REG_BMAC0_IN_EN 0x100ac +/* [R 1] output enable for TX_BMAC0 IF */ +#define NIG_REG_BMAC0_OUT_EN 0x100e0 +/* [R 1] output enable for TX BMAC pause port 0 IF */ +#define NIG_REG_BMAC0_PAUSE_OUT_EN 0x10110 +/* [R 1] output enable for RX_BMAC0_REGS IF */ +#define NIG_REG_BMAC0_REGS_OUT_EN 0x100e8 +/* [RW 1] output enable for RX BRB1 port0 IF */ +#define NIG_REG_BRB0_OUT_EN 0x100f8 +/* [RW 1] Input enable for TX BRB1 pause port 0 IF */ +#define NIG_REG_BRB0_PAUSE_IN_EN 0x100c4 +/* [RW 1] Input enable for TX BRB1 pause port 1 IF */ +#define NIG_REG_BRB1_PAUSE_IN_EN 0x100c8 +/* [WB_W 90] Debug packet to LP from RBC; Data spelling:[63:0] data; 64] + * error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush; + * 72:73]-vnic_num; 89:74]-sideband_info */ +#define NIG_REG_DEBUG_PACKET_LB 0x10800 +/* [R 1] FIFO empty in DEBUG_FIFO in NIG_TX_DBG */ +#define NIG_REG_EGRESS_DEBUG_FIFO_EMPTY 0x10418 +/* [R 1] FIFO empty in DELAY_PBF_FIFO in NIG_RX_PORT0 */ +#define NIG_REG_EGRESS_DELAY0_EMPTY 0x10420 +/* [R 1] FIFO empty in DELAY_PBF_FIFO in NIG_RX_PORT1 */ +#define NIG_REG_EGRESS_DELAY1_EMPTY 0x10428 +/* [R 1] PBF FIFO empty flag. */ +#define NIG_REG_EGRESS_DELAY2_EMPTY 0x1862c +/* [R 1] PBF FIFO empty flag. */ +#define NIG_REG_EGRESS_DELAY3_EMPTY 0x18630 +/* [R 1] PBF FIFO empty flag. */ +#define NIG_REG_EGRESS_DELAY4_EMPTY 0x18634 +/* [R 1] PBF FIFO empty flag. */ +#define NIG_REG_EGRESS_DELAY5_EMPTY 0x18638 +/* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all + * packets from PBFare not forwarded to the MAC and just deleted from FIFO. + * First packet may be deleted from the middle. And last packet will be + * always deleted till the end. */ +#define NIG_REG_EGRESS_DRAIN0_MODE 0x10060 +/* [R 1] Output enable to EMAC0 */ +#define NIG_REG_EGRESS_EMAC0_OUT_EN 0x10120 +/* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs + * to emac for port0; other way to bmac for port0 */ +#define NIG_REG_EGRESS_EMAC0_PORT 0x10058 +/* [R 1] FIFO empty in MNG_FIFO in NIG_TX_PORT0 */ +#define NIG_REG_EGRESS_MNG0_FIFO_EMPTY 0x10460 +/* [R 1] FIFO empty in MNG_FIFO in NIG_TX_PORT1 */ +#define NIG_REG_EGRESS_MNG1_FIFO_EMPTY 0x10474 +/* [RW 1] Input enable for TX UMP management packet port0 IF */ +#define NIG_REG_EGRESS_UMP0_IN_EN 0x100d4 +/* [R 1] Input enable for RX_EMAC0 IF */ +#define NIG_REG_EMAC0_IN_EN 0x100a4 +/* [R 1] output enable for TX EMAC pause port 0 IF */ +#define NIG_REG_EMAC0_PAUSE_OUT_EN 0x10118 +/* [R 1] status from emac0. This bit is set when MDINT from either the + * EXT_MDINT pin or from the Copper PHY is driven low. This condition must + * be cleared in the attached PHY device that is driving the MINT pin. */ +#define NIG_REG_EMAC0_STATUS_MISC_MI_INT 0x10494 +/* [R 48] This address space contains BMAC0 registers. The BMAC registers + * are described in appendix A. In order to access the BMAC0 registers; the + * base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be + * added to each BMAC register offset */ +#define NIG_REG_INGRESS_BMAC0_MEM 0x10c00 +/* [R 48] This address space contains BMAC1 registers. The BMAC registers + * are described in appendix A. In order to access the BMAC0 registers; the + * base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be + * added to each BMAC register offset */ +#define NIG_REG_INGRESS_BMAC1_MEM 0x11000 +/* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */ +#define NIG_REG_INGRESS_EOP_LB_EMPTY 0x104e0 +/* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data + * packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */ +#define NIG_REG_INGRESS_EOP_LB_FIFO 0x104e4 +/* [R 1] FIFO empty in EOP descriptor FIFO of port 0 in NIG_RX_EOP */ +#define NIG_REG_INGRESS_EOP_PORT0_EMPTY 0x104ec +/* [R 1] FIFO empty in EOP descriptor FIFO of port 1 in NIG_RX_EOP */ +#define NIG_REG_INGRESS_EOP_PORT1_EMPTY 0x104f8 +/* [R 1] FIFO empty in PBF_DELAY_lb_FIFO in NIG_RX_lb */ +#define NIG_REG_INGRESS_LB_PBF_DELAY_EMPTY 0x10508 +/* [R 1] FIFO empty in dscr_fifo in NIG_RX_RMP block */ +#define NIG_REG_INGRESS_RMP0_DSCR_EMPTY 0x10530 +/* [R 1] FIFO empty in dscr_fifo in NIG_RX_RMP block */ +#define NIG_REG_INGRESS_RMP1_DSCR_EMPTY 0x10538 +/* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch + * logic for interrupts must be used. Enable per bit of interrupt of + * ~latch_status.latch_status */ +#define NIG_REG_LATCH_BC_0 0x16210 +/* [RW 27] Latch for each interrupt from Unicore.b[0] + * status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete; + * b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status; + * b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn; + * b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete; + * b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status; + * b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete; + * b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet; + * b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g; + * b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact; + * b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx; + * b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx; + * b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */ +#define NIG_REG_LATCH_STATUS_0 0x18000 +/* [RW 1] led 10g for port 0 */ +#define NIG_REG_LED_10G_P0 0x10320 +/* [RW 1] Port0: This bit is set to enable the use of the + * ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field + * defined below. If this bit is cleared; then the blink rate will be about + * 8Hz. */ +#define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 0x10318 +/* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for + * Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field + * is reset to 0x080; giving a default blink period of approximately 8Hz. */ +#define NIG_REG_LED_CONTROL_BLINK_RATE_P0 0x10310 +/* [RW 1] Port0: If set along with the + * \ + s_led_control_override_traffic_p0.led_control_override_traffic_p0 + * bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED + * bit; the Traffic LED will blink with the blink rate specified in + * ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and + * ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0 + * fields. */ +#define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 0x10308 +/* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The + * Traffic LED will then be controlled via bit ~nig_registers_ + * led_control_traffic_p0.led_control_traffic_p0 and bit + * ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */ +#define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 0x102f8 +/* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit; + * turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also + * set; the LED will blink with blink rate specified in + * ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and + * ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0 + * fields. */ +#define NIG_REG_LED_CONTROL_TRAFFIC_P0 0x10300 +/* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3; + * 9-11PHY7; 12 MAC4; 13-15 PHY10; */ +#define NIG_REG_LED_MODE_P0 0x102f0 +/* [RW 3] for port0 enable for llfc ppp and pause. b0 - brb1 enable; b1- + * tsdm enable; b2- usdm enable */ +#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 0x16070 +#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 0x16074 +/* [RW 1] SAFC enable for port0. This register may get 1 only when + * ~ppp_enable.ppp_enable = 0 and pause_enable.pause_enable =0 for the same + * port */ +#define NIG_REG_LLFC_ENABLE_0 0x16208 +#define NIG_REG_LLFC_ENABLE_1 0x1620c +/* [RW 16] classes are high-priority for port0 */ +#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 0x16058 +#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1 0x1605c +/* [RW 16] classes are low-priority for port0 */ +#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 0x16060 +#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1 0x16064 +/* [RW 1] Output enable of message to LLFC BMAC IF for port0 */ +#define NIG_REG_LLFC_OUT_EN_0 0x160c8 +#define NIG_REG_LLFC_OUT_EN_1 0x160cc +#define NIG_REG_LLH0_ACPI_PAT_0_CRC 0x1015c +#define NIG_REG_LLH0_ACPI_PAT_6_LEN 0x10154 +#define NIG_REG_LLH0_BRB1_DRV_MASK 0x10244 +#define NIG_REG_LLH0_BRB1_DRV_MASK_MF 0x16048 +/* [RW 1] send to BRB1 if no match on any of RMP rules. */ +#define NIG_REG_LLH0_BRB1_NOT_MCP 0x1025c +/* [RW 2] Determine the classification participants. 0: no classification.1: + * classification upon VLAN id. 2: classification upon MAC address. 3: + * classification upon both VLAN id & MAC addr. */ +#define NIG_REG_LLH0_CLS_TYPE 0x16080 +#define NIG_REG_LLH0_DEST_IP_0_1 0x101dc +#define NIG_REG_LLH0_DEST_MAC_0_0 0x101c0 +/* [RW 16] destination TCP address 1. The LLH will look for this address in + * all incoming packets. */ +#define NIG_REG_LLH0_DEST_TCP_0 0x10220 +/* [RW 16] destination UDP address 1 The LLH will look for this address in + * all incoming packets. */ +#define NIG_REG_LLH0_DEST_UDP_0 0x10214 +/* [R 1] FIFO empty in LLH port0 */ +#define NIG_REG_LLH0_FIFO_EMPTY 0x10548 +#define NIG_REG_LLH0_FUNC_EN 0x160fc +#define NIG_REG_LLH0_FUNC_MEM 0x16180 +#define NIG_REG_LLH0_FUNC_MEM_ENABLE 0x16140 +#define NIG_REG_LLH0_FUNC_VLAN_ID 0x16100 +/* [RW 1] Determine the IP version to look for in + * ~nig_registers_llh0_dest_ip_0.llh0_dest_ip_0. 0 - IPv6; 1-IPv4 */ +#define NIG_REG_LLH0_IPV4_IPV6_0 0x10208 +/* [RW 1] t bit for llh0 */ +#define NIG_REG_LLH0_T_BIT 0x10074 +/* [RW 12] VLAN ID 1. In case of VLAN packet the LLH will look for this ID. */ +#define NIG_REG_LLH0_VLAN_ID_0 0x1022c +#define NIG_REG_LLH0_XCM_MASK 0x10130 +#define NIG_REG_LLH1_BRB1_DRV_MASK_MF 0x1604c +/* [RW 1] send to BRB1 if no match on any of RMP rules. */ +#define NIG_REG_LLH1_BRB1_NOT_MCP 0x102dc +/* [RW 2] Determine the classification participants. 0: no classification.1: + * classification upon VLAN id. 2: classification upon MAC address. 3: + * classification upon both VLAN id & MAC addr. */ +#define NIG_REG_LLH1_CLS_TYPE 0x16084 +/* [R 1] FIFO empty in LLH port1 */ +#define NIG_REG_LLH1_FIFO_EMPTY 0x10558 +#define NIG_REG_LLH1_FUNC_EN 0x16104 +#define NIG_REG_LLH1_FUNC_MEM 0x161c0 +#define NIG_REG_LLH1_FUNC_MEM_ENABLE 0x16160 +#define NIG_REG_LLH1_FUNC_MEM_SIZE 16 +/* [RW 1] When this bit is set; the LLH will classify the packet before + * sending it to the BRB or calculating WoL on it. This bit controls port 1 + * only. The legacy llh_multi_function_mode bit controls port 0. */ +#define NIG_REG_LLH1_MF_MODE 0x18614 +#define NIG_REG_LLH1_XCM_MASK 0x10134 +/* [RW 1] When this bit is set; the LLH will expect all packets to be with + * outer VLAN. This is not applicable to E2. */ +#define NIG_REG_LLH_E1HOV_MODE 0x160d8 +/* [RW 16] Outer VLAN type identifier for multi-function mode. In non + * multi-function mode; it will hold the inner VLAN type. Typically 0x8100. */ +#define NIG_REG_LLH_E1HOV_TYPE_1 0x16028 +/* [RW 1] When this bit is set; the LLH will classify the packet before + * sending it to the BRB or calculating WoL on it. This bit is applicable to + * both ports 0 and 1 for E2. This bit only controls port 0 in E3. */ +#define NIG_REG_LLH_MF_MODE 0x16024 +#define NIG_REG_MASK_INTERRUPT_PORT0 0x10330 +#define NIG_REG_MASK_INTERRUPT_PORT1 0x10334 +/* [R 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */ +#define NIG_REG_NIG_EMAC0_EN 0x1003c +/* [R 1] Output signal from NIG to TX_EMAC0. When set indicates to the EMAC0 + * to strip the CRC from the ingress packets. */ +#define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC 0x10044 +/* [RW 32] Interrupt mask register #0 read/write */ +#define NIG_REG_NIG_INT_MASK_0 0x103bc +#define NIG_REG_NIG_INT_MASK_1 0x103cc +/* [R 32] Interrupt register #0 read */ +#define NIG_REG_NIG_INT_STS_0 0x103b0 +#define NIG_REG_NIG_INT_STS_1 0x103c0 +/* [RC 32] Interrupt register #0 read clear */ +#define NIG_REG_NIG_INT_STS_CLR_0 0x103b4 +#define NIG_REG_NIG_INT_STS_CLR_1 0x103c4 +/* [R 32] Legacy E1 and E1H location for parity error mask register. */ +#define NIG_REG_NIG_PRTY_MASK 0x103dc +/* [RW 32] Parity mask register #0 read/write */ +#define NIG_REG_NIG_PRTY_MASK_0 0x183c8 +#define NIG_REG_NIG_PRTY_MASK_1 0x183d8 +/* [R 32] Legacy E1 and E1H location for parity error status register. */ +#define NIG_REG_NIG_PRTY_STS 0x103d0 +/* [R 32] Parity register #0 read */ +#define NIG_REG_NIG_PRTY_STS_0 0x183bc +#define NIG_REG_NIG_PRTY_STS_1 0x183cc +/* [R 32] Legacy E1 and E1H location for parity error status clear register. */ +#define NIG_REG_NIG_PRTY_STS_CLR 0x103d4 +/* [RC 32] Parity register #0 read clear */ +#define NIG_REG_NIG_PRTY_STS_CLR_0 0x183c0 +#define NIG_REG_NIG_PRTY_STS_CLR_1 0x183d0 +/* [R 1] Indication that HBUF descriptor FIFO is empty. */ +#define NIG_REG_P0_HBUF_DSCR_EMPTY 0x18318 +/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic + * Ethernet header. */ +#define NIG_REG_P0_HDRS_AFTER_BASIC 0x18038 +/* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in + * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be + * disabled when this bit is set. */ +#define NIG_REG_P0_HWPFC_ENABLE 0x18078 +#define NIG_REG_P0_LLH_FUNC_MEM2 0x18480 +/* [RW 17] Packet TimeSync information that is buffered in 1-deep FIFOs for + * the host. Bits [15:0] return the sequence ID of the packet. Bit 16 + * indicates the validity of the data in the buffer. Writing a 1 to bit 16 + * will clear the buffer. */ +#define NIG_REG_P0_LLH_PTP_HOST_BUF_SEQID 0x1875c +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * the host. This location returns the lower 32 bits of timestamp value. */ +#define NIG_REG_P0_LLH_PTP_HOST_BUF_TS_LSB 0x18754 +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * the host. This location returns the upper 32 bits of timestamp value. */ +#define NIG_REG_P0_LLH_PTP_HOST_BUF_TS_MSB 0x18758 +/* [RW 11] Mask register for the various parameters used in determining PTP + * packet presence. Set each bit to 1 to mask out the particular parameter. + * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of + * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP + * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC + * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of + * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable + * MAC DA 2. The reset default is set to mask out all parameters. */ +#define NIG_REG_P0_LLH_PTP_PARAM_MASK 0x187a0 +/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set + * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . + * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP + * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; + * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC + * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype + * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset + * default is to mask out all of the rules. Note that rules 0-3 are for IPv4 + * packets only and require that the packet is IPv4 for the rules to match. + * Note that rules 4-7 are for IPv6 packets only and require that the packet + * is IPv6 for the rules to match. */ +#define NIG_REG_P0_LLH_PTP_RULE_MASK 0x187a4 +/* [RW 1] Set to 1 to enable PTP packets to be forwarded to the host. */ +#define NIG_REG_P0_LLH_PTP_TO_HOST 0x187ac +/* [RW 1] Input enable for RX MAC interface. */ +#define NIG_REG_P0_MAC_IN_EN 0x185ac +/* [RW 1] Output enable for TX MAC interface */ +#define NIG_REG_P0_MAC_OUT_EN 0x185b0 +/* [RW 1] Output enable for TX PAUSE signal to the MAC. */ +#define NIG_REG_P0_MAC_PAUSE_OUT_EN 0x185b4 +/* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for + * future expansion) each priorty is to be mapped to. Bits 3:0 specify the + * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit + * priority field is extracted from the outer-most VLAN in receive packet. + * Only COS 0 and COS 1 are supported in E2. */ +#define NIG_REG_P0_PKT_PRIORITY_TO_COS 0x18054 +/* [RW 6] Enable for TimeSync feature. Bits [2:0] are for RX side. Bits + * [5:3] are for TX side. Bit 0 enables TimeSync on RX side. Bit 1 enables + * V1 frame format in timesync event detection on RX side. Bit 2 enables V2 + * frame format in timesync event detection on RX side. Bit 3 enables + * TimeSync on TX side. Bit 4 enables V1 frame format in timesync event + * detection on TX side. Bit 5 enables V2 frame format in timesync event + * detection on TX side. Note that for HW to detect PTP packet and extract + * data from the packet, at least one of the version bits of that traffic + * direction has to be enabled. */ +#define NIG_REG_P0_PTP_EN 0x18788 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A + * priority is mapped to COS 0 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P0_RX_COS0_PRIORITY_MASK 0x18058 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A + * priority is mapped to COS 1 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P0_RX_COS1_PRIORITY_MASK 0x1805c +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 2. A + * priority is mapped to COS 2 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P0_RX_COS2_PRIORITY_MASK 0x186b0 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 3. A + * priority is mapped to COS 3 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P0_RX_COS3_PRIORITY_MASK 0x186b4 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 4. A + * priority is mapped to COS 4 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P0_RX_COS4_PRIORITY_MASK 0x186b8 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 5. A + * priority is mapped to COS 5 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P0_RX_COS5_PRIORITY_MASK 0x186bc +/* [R 1] RX FIFO for receiving data from MAC is empty. */ +#define NIG_REG_P0_RX_MACFIFO_EMPTY 0x18570 +/* [R 1] TLLH FIFO is empty. */ +#define NIG_REG_P0_TLLH_FIFO_EMPTY 0x18308 +/* [RW 19] Packet TimeSync information that is buffered in 1-deep FIFOs for + * TX side. Bits [15:0] reflect the sequence ID of the packet. Bit 16 + * indicates the validity of the data in the buffer. Bit 17 indicates that + * the sequence ID is valid and it is waiting for the TX timestamp value. + * Bit 18 indicates whether the timestamp is from a SW request (value of 1) + * or HW request (value of 0). Writing a 1 to bit 16 will clear the buffer. */ +#define NIG_REG_P0_TLLH_PTP_BUF_SEQID 0x187e0 +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * MCP. This location returns the lower 32 bits of timestamp value. */ +#define NIG_REG_P0_TLLH_PTP_BUF_TS_LSB 0x187d8 +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * MCP. This location returns the upper 32 bits of timestamp value. */ +#define NIG_REG_P0_TLLH_PTP_BUF_TS_MSB 0x187dc +/* [RW 11] Mask register for the various parameters used in determining PTP + * packet presence. Set each bit to 1 to mask out the particular parameter. + * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of + * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP + * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC + * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of + * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable + * MAC DA 2. The reset default is set to mask out all parameters. */ +#define NIG_REG_P0_TLLH_PTP_PARAM_MASK 0x187f0 +/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set + * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . + * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP + * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; + * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC + * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype + * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset + * default is to mask out all of the rules. */ +#define NIG_REG_P0_TLLH_PTP_RULE_MASK 0x187f4 +/* [R 15] Specify which of the credit registers the client is to be mapped + * to. Bits[2:0] are for client 0; bits [14:12] are for client 4. For + * clients that are not subject to WFQ credit blocking - their + * specifications here are not used. */ +#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP 0x180f0 +/* [RW 32] Specify which of the credit registers the client is to be mapped + * to. This register specifies bits 31:0 of the 36-bit value. Bits[3:0] are + * for client 0; bits [35:32] are for client 8. For clients that are not + * subject to WFQ credit blocking - their specifications here are not used. + * This is a new register (with 2_) added in E3 B0 to accommodate the 9 + * input clients to ETS arbiter. The reset default is set for management and + * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to + * use credit registers 0-5 respectively (0x543210876). Note that credit + * registers can not be shared between clients. */ +#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_LSB 0x18688 +/* [RW 4] Specify which of the credit registers the client is to be mapped + * to. This register specifies bits 35:32 of the 36-bit value. Bits[3:0] are + * for client 0; bits [35:32] are for client 8. For clients that are not + * subject to WFQ credit blocking - their specifications here are not used. + * This is a new register (with 2_) added in E3 B0 to accommodate the 9 + * input clients to ETS arbiter. The reset default is set for management and + * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to + * use credit registers 0-5 respectively (0x543210876). Note that credit + * registers can not be shared between clients. */ +#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_MSB 0x1868c +/* [RW 9] Specify whether the client competes directly in the strict + * priority arbiter. The bits are mapped according to client ID (client IDs + * are defined in tx_arb_priority_client2): 0-management; 1-debug traffic + * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 + * traffic; 5-COS2 traffic; 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. + * Default value is set to enable strict priorities for all clients. */ +#define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT 0x180e8 +/* [RW 9] Specify whether the client is subject to WFQ credit blocking. The + * bits are mapped according to client ID (client IDs are defined in + * tx_arb_priority_client2): 0-management; 1-debug traffic from this port; + * 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 + * traffic; 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. Default value is + * 0 for not using WFQ credit blocking. */ +#define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ 0x180ec +/* [RW 32] Specify the upper bound that credit register 0 is allowed to + * reach. */ +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 0x1810c +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 0x18110 +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_2 0x18114 +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_3 0x18118 +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_4 0x1811c +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_5 0x186a0 +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_6 0x186a4 +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_7 0x186a8 +#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_8 0x186ac +/* [RW 32] Specify the weight (in bytes) to be added to credit register 0 + * when it is time to increment. */ +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 0x180f8 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 0x180fc +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2 0x18100 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3 0x18104 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4 0x18108 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5 0x18690 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_6 0x18694 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_7 0x18698 +#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_8 0x1869c +/* [RW 12] Specify the number of strict priority arbitration slots between + * two round-robin arbitration slots to avoid starvation. A value of 0 means + * no strict priority cycles - the strict priority with anti-starvation + * arbiter becomes a round-robin arbiter. */ +#define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS 0x180f4 +/* [R 15] Specify the client number to be assigned to each priority of the + * strict priority arbiter. Priority 0 is the highest priority. Bits [2:0] + * are for priority 0 client; bits [14:12] are for priority 4 client. The + * clients are assigned the following IDs: 0-management; 1-debug traffic + * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 + * traffic. The reset value[14:0] is set to 0x4688 (15'b100_011_010_001_000) + * for management at priority 0; debug traffic at priorities 1 and 2; COS0 + * traffic at priority 3; and COS1 traffic at priority 4. */ +#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT 0x180e4 +/* [RW 32] Specify the client number to be assigned to each priority of the + * strict priority arbiter. This register specifies bits 31:0 of the 36-bit + * value. Priority 0 is the highest priority. Bits [3:0] are for priority 0 + * client; bits [35-32] are for priority 8 client. The clients are assigned + * the following IDs: 0-management; 1-debug traffic from this port; 2-debug + * traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic; + * 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is + * set to 0x345678021. This is a new register (with 2_) added in E3 B0 to + * accommodate the 9 input clients to ETS arbiter. */ +#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_LSB 0x18680 +/* [RW 4] Specify the client number to be assigned to each priority of the + * strict priority arbiter. This register specifies bits 35:32 of the 36-bit + * value. Priority 0 is the highest priority. Bits [3:0] are for priority 0 + * client; bits [35-32] are for priority 8 client. The clients are assigned + * the following IDs: 0-management; 1-debug traffic from this port; 2-debug + * traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic; + * 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is + * set to 0x345678021. This is a new register (with 2_) added in E3 B0 to + * accommodate the 9 input clients to ETS arbiter. */ +#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_MSB 0x18684 +/* [R 1] TX FIFO for transmitting data to MAC is empty. */ +#define NIG_REG_P0_TX_MACFIFO_EMPTY 0x18578 +/* [RW 1] MCP-to-host path enable. Set this bit to enable the routing of MCP + * packets to BRB LB interface to forward the packet to the host. All + * packets from MCP are forwarded to the network when this bit is cleared - + * regardless of the configured destination in tx_mng_destination register. + * When MCP-to-host paths for both ports 0 and 1 are disabled - the arbiter + * for BRB LB interface is bypassed and PBF LB traffic is always selected to + * send to BRB LB. */ +#define NIG_REG_P0_TX_MNG_HOST_ENABLE 0x182f4 +/* [R 1] FIFO empty status of the MCP TX FIFO used for storing MCP packets + * forwarded to the host. */ +#define NIG_REG_P0_TX_MNG_HOST_FIFO_EMPTY 0x182a8 +/* [R 1] Indication that HBUF descriptor FIFO is empty. */ +#define NIG_REG_P1_HBUF_DSCR_EMPTY 0x18348 +/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic + * Ethernet header. */ +#define NIG_REG_P1_HDRS_AFTER_BASIC 0x1818c +/* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in + * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be + * disabled when this bit is set. */ +#define NIG_REG_P1_HWPFC_ENABLE 0x181d0 +#define NIG_REG_P1_LLH_FUNC_MEM2 0x184c0 +/* [RW 17] Packet TimeSync information that is buffered in 1-deep FIFOs for + * the host. Bits [15:0] return the sequence ID of the packet. Bit 16 + * indicates the validity of the data in the buffer. Writing a 1 to bit 16 + * will clear the buffer. */ +#define NIG_REG_P1_LLH_PTP_HOST_BUF_SEQID 0x18774 +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * the host. This location returns the lower 32 bits of timestamp value. */ +#define NIG_REG_P1_LLH_PTP_HOST_BUF_TS_LSB 0x1876c +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * the host. This location returns the upper 32 bits of timestamp value. */ +#define NIG_REG_P1_LLH_PTP_HOST_BUF_TS_MSB 0x18770 +/* [RW 11] Mask register for the various parameters used in determining PTP + * packet presence. Set each bit to 1 to mask out the particular parameter. + * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of + * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP + * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC + * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of + * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable + * MAC DA 2. The reset default is set to mask out all parameters. */ +#define NIG_REG_P1_LLH_PTP_PARAM_MASK 0x187c8 +/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set + * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . + * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP + * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; + * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC + * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype + * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset + * default is to mask out all of the rules. Note that rules 0-3 are for IPv4 + * packets only and require that the packet is IPv4 for the rules to match. + * Note that rules 4-7 are for IPv6 packets only and require that the packet + * is IPv6 for the rules to match. */ +#define NIG_REG_P1_LLH_PTP_RULE_MASK 0x187cc +/* [RW 1] Set to 1 to enable PTP packets to be forwarded to the host. */ +#define NIG_REG_P1_LLH_PTP_TO_HOST 0x187d4 +/* [RW 1] Input enable for RX MAC interface. */ +#define NIG_REG_P1_MAC_IN_EN 0x185c0 +/* [RW 1] Output enable for TX MAC interface */ +#define NIG_REG_P1_MAC_OUT_EN 0x185c4 +/* [RW 1] Output enable for TX PAUSE signal to the MAC. */ +#define NIG_REG_P1_MAC_PAUSE_OUT_EN 0x185c8 +/* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for + * future expansion) each priorty is to be mapped to. Bits 3:0 specify the + * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit + * priority field is extracted from the outer-most VLAN in receive packet. + * Only COS 0 and COS 1 are supported in E2. */ +#define NIG_REG_P1_PKT_PRIORITY_TO_COS 0x181a8 +/* [RW 6] Enable for TimeSync feature. Bits [2:0] are for RX side. Bits + * [5:3] are for TX side. Bit 0 enables TimeSync on RX side. Bit 1 enables + * V1 frame format in timesync event detection on RX side. Bit 2 enables V2 + * frame format in timesync event detection on RX side. Bit 3 enables + * TimeSync on TX side. Bit 4 enables V1 frame format in timesync event + * detection on TX side. Bit 5 enables V2 frame format in timesync event + * detection on TX side. Note that for HW to detect PTP packet and extract + * data from the packet, at least one of the version bits of that traffic + * direction has to be enabled. */ +#define NIG_REG_P1_PTP_EN 0x187b0 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A + * priority is mapped to COS 0 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P1_RX_COS0_PRIORITY_MASK 0x181ac +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A + * priority is mapped to COS 1 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P1_RX_COS1_PRIORITY_MASK 0x181b0 +/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 2. A + * priority is mapped to COS 2 when the corresponding mask bit is 1. More + * than one bit may be set; allowing multiple priorities to be mapped to one + * COS. */ +#define NIG_REG_P1_RX_COS2_PRIORITY_MASK 0x186f8 +/* [R 1] RX FIFO for receiving data from MAC is empty. */ +#define NIG_REG_P1_RX_MACFIFO_EMPTY 0x1858c +/* [R 1] TLLH FIFO is empty. */ +#define NIG_REG_P1_TLLH_FIFO_EMPTY 0x18338 +/* [RW 19] Packet TimeSync information that is buffered in 1-deep FIFOs for + * TX side. Bits [15:0] reflect the sequence ID of the packet. Bit 16 + * indicates the validity of the data in the buffer. Bit 17 indicates that + * the sequence ID is valid and it is waiting for the TX timestamp value. + * Bit 18 indicates whether the timestamp is from a SW request (value of 1) + * or HW request (value of 0). Writing a 1 to bit 16 will clear the buffer. */ +#define NIG_REG_P1_TLLH_PTP_BUF_SEQID 0x187ec +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * MCP. This location returns the lower 32 bits of timestamp value. */ +#define NIG_REG_P1_TLLH_PTP_BUF_TS_LSB 0x187e4 +/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for + * MCP. This location returns the upper 32 bits of timestamp value. */ +#define NIG_REG_P1_TLLH_PTP_BUF_TS_MSB 0x187e8 +/* [RW 11] Mask register for the various parameters used in determining PTP + * packet presence. Set each bit to 1 to mask out the particular parameter. + * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of + * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP + * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC + * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of + * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable + * MAC DA 2. The reset default is set to mask out all parameters. */ +#define NIG_REG_P1_TLLH_PTP_PARAM_MASK 0x187f8 +/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set + * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} . + * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP + * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1; + * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC + * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype + * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset + * default is to mask out all of the rules. */ +#define NIG_REG_P1_TLLH_PTP_RULE_MASK 0x187fc +/* [RW 32] Specify which of the credit registers the client is to be mapped + * to. This register specifies bits 31:0 of the 36-bit value. Bits[3:0] are + * for client 0; bits [35:32] are for client 8. For clients that are not + * subject to WFQ credit blocking - their specifications here are not used. + * This is a new register (with 2_) added in E3 B0 to accommodate the 9 + * input clients to ETS arbiter. The reset default is set for management and + * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to + * use credit registers 0-5 respectively (0x543210876). Note that credit + * registers can not be shared between clients. Note also that there are + * only COS0-2 in port 1- there is a total of 6 clients in port 1. Only + * credit registers 0-5 are valid. This register should be configured + * appropriately before enabling WFQ. */ +#define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_LSB 0x186e8 +/* [RW 4] Specify which of the credit registers the client is to be mapped + * to. This register specifies bits 35:32 of the 36-bit value. Bits[3:0] are + * for client 0; bits [35:32] are for client 8. For clients that are not + * subject to WFQ credit blocking - their specifications here are not used. + * This is a new register (with 2_) added in E3 B0 to accommodate the 9 + * input clients to ETS arbiter. The reset default is set for management and + * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to + * use credit registers 0-5 respectively (0x543210876). Note that credit + * registers can not be shared between clients. Note also that there are + * only COS0-2 in port 1- there is a total of 6 clients in port 1. Only + * credit registers 0-5 are valid. This register should be configured + * appropriately before enabling WFQ. */ +#define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_MSB 0x186ec +/* [RW 9] Specify whether the client competes directly in the strict + * priority arbiter. The bits are mapped according to client ID (client IDs + * are defined in tx_arb_priority_client2): 0-management; 1-debug traffic + * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 + * traffic; 5-COS2 traffic; 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. + * Default value is set to enable strict priorities for all clients. */ +#define NIG_REG_P1_TX_ARB_CLIENT_IS_STRICT 0x18234 +/* [RW 9] Specify whether the client is subject to WFQ credit blocking. The + * bits are mapped according to client ID (client IDs are defined in + * tx_arb_priority_client2): 0-management; 1-debug traffic from this port; + * 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 + * traffic; 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. Default value is + * 0 for not using WFQ credit blocking. */ +#define NIG_REG_P1_TX_ARB_CLIENT_IS_SUBJECT2WFQ 0x18238 +/* [RW 32] Specify the upper bound that credit register 0 is allowed to + * reach. */ +#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_0 0x18258 +#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_1 0x1825c +#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_2 0x18260 +#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_3 0x18264 +#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_4 0x18268 +#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_5 0x186f4 +/* [RW 32] Specify the weight (in bytes) to be added to credit register 0 + * when it is time to increment. */ +#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0 0x18244 +#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1 0x18248 +#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2 0x1824c +#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_3 0x18250 +#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_4 0x18254 +#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_5 0x186f0 +/* [RW 12] Specify the number of strict priority arbitration slots between + * two round-robin arbitration slots to avoid starvation. A value of 0 means + * no strict priority cycles - the strict priority with anti-starvation + * arbiter becomes a round-robin arbiter. */ +#define NIG_REG_P1_TX_ARB_NUM_STRICT_ARB_SLOTS 0x18240 +/* [RW 32] Specify the client number to be assigned to each priority of the + * strict priority arbiter. This register specifies bits 31:0 of the 36-bit + * value. Priority 0 is the highest priority. Bits [3:0] are for priority 0 + * client; bits [35-32] are for priority 8 client. The clients are assigned + * the following IDs: 0-management; 1-debug traffic from this port; 2-debug + * traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic; + * 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is + * set to 0x345678021. This is a new register (with 2_) added in E3 B0 to + * accommodate the 9 input clients to ETS arbiter. Note that this register + * is the same as the one for port 0, except that port 1 only has COS 0-2 + * traffic. There is no traffic for COS 3-5 of port 1. */ +#define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_LSB 0x186e0 +/* [RW 4] Specify the client number to be assigned to each priority of the + * strict priority arbiter. This register specifies bits 35:32 of the 36-bit + * value. Priority 0 is the highest priority. Bits [3:0] are for priority 0 + * client; bits [35-32] are for priority 8 client. The clients are assigned + * the following IDs: 0-management; 1-debug traffic from this port; 2-debug + * traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic; + * 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is + * set to 0x345678021. This is a new register (with 2_) added in E3 B0 to + * accommodate the 9 input clients to ETS arbiter. Note that this register + * is the same as the one for port 0, except that port 1 only has COS 0-2 + * traffic. There is no traffic for COS 3-5 of port 1. */ +#define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_MSB 0x186e4 +/* [R 1] TX FIFO for transmitting data to MAC is empty. */ +#define NIG_REG_P1_TX_MACFIFO_EMPTY 0x18594 +/* [RW 1] MCP-to-host path enable. Set this bit to enable the routing of MCP + * packets to BRB LB interface to forward the packet to the host. All + * packets from MCP are forwarded to the network when this bit is cleared - + * regardless of the configured destination in tx_mng_destination register. */ +#define NIG_REG_P1_TX_MNG_HOST_ENABLE 0x182f8 +/* [R 1] FIFO empty status of the MCP TX FIFO used for storing MCP packets + * forwarded to the host. */ +#define NIG_REG_P1_TX_MNG_HOST_FIFO_EMPTY 0x182b8 +/* [RW 1] Pause enable for port0. This register may get 1 only when + * ~safc_enable.safc_enable = 0 and ppp_enable.ppp_enable =0 for the same + * port */ +#define NIG_REG_PAUSE_ENABLE_0 0x160c0 +#define NIG_REG_PAUSE_ENABLE_1 0x160c4 +/* [RW 1] Value of this register will be transmitted to port swap when + * ~nig_registers_strap_override.strap_override =1 */ +#define NIG_REG_PORT_SWAP 0x10394 +/* [RW 1] PPP enable for port0. This register may get 1 only when + * ~safc_enable.safc_enable = 0 and pause_enable.pause_enable =0 for the + * same port */ +#define NIG_REG_PPP_ENABLE_0 0x160b0 +#define NIG_REG_PPP_ENABLE_1 0x160b4 +/* [RW 1] Input enable for RX parser request IF */ +#define NIG_REG_PRS_REQ_IN_EN 0x100b8 +/* [R 5] control to serdes - CL45 DEVAD */ +#define NIG_REG_SERDES0_CTRL_MD_DEVAD 0x10370 +/* [R 1] control to serdes; 0 - clause 45; 1 - clause 22 */ +#define NIG_REG_SERDES0_CTRL_MD_ST 0x1036c +/* [R 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */ +#define NIG_REG_SERDES0_CTRL_PHY_ADDR 0x10374 +/* [R 1] status from serdes0 that inputs to interrupt logic of link status */ +#define NIG_REG_SERDES0_STATUS_LINK_STATUS 0x10578 +/* [R 32] Rx statistics : In user packets discarded due to BRB backpressure + * for port 0 COS0 */ +#define NIG_REG_STAT0_BRB_DISCARD 0x105f0 +/* [R 32] Rx statistics : In user packets truncated due to BRB backpressure + * for port 0 COS0 */ +#define NIG_REG_STAT0_BRB_TRUNCATE 0x105f8 +/* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that + * between 1024 and 1522 bytes for port0 */ +#define NIG_REG_STAT0_EGRESS_MAC_PKT0 0x10750 +/* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that + * between 1523 bytes and above for port0 */ +#define NIG_REG_STAT0_EGRESS_MAC_PKT1 0x10760 +/* [R 32] Rx statistics : In user packets discarded due to BRB backpressure + * for port 1 COS0 */ +#define NIG_REG_STAT1_BRB_DISCARD 0x10628 +/* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that + * between 1024 and 1522 bytes for port1 */ +#define NIG_REG_STAT1_EGRESS_MAC_PKT0 0x107a0 +/* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that + * between 1523 bytes and above for port1 */ +#define NIG_REG_STAT1_EGRESS_MAC_PKT1 0x107b0 +/* [WB_R 64] Rx statistics : User octets received for LP */ +#define NIG_REG_STAT2_BRB_OCTET 0x107e0 +#define NIG_REG_STATUS_INTERRUPT_PORT0 0x10328 +/* [RW 1] port swap mux selection. If this register equal to 0 then port + * swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then + * ort swap is equal to ~nig_registers_port_swap.port_swap */ +#define NIG_REG_STRAP_OVERRIDE 0x10398 +/* [WB 64] Addresses for TimeSync related registers in the timesync + * generator sub-module. */ +#define NIG_REG_TIMESYNC_GEN_REG 0x18800 +/* [RW 1] output enable for RX_XCM0 IF */ +#define NIG_REG_XCM0_OUT_EN 0x100f0 +/* [RW 1] output enable for RX_XCM1 IF */ +#define NIG_REG_XCM1_OUT_EN 0x100f4 +/* [R 1] control to xgxs - remote PHY in-band MDIO */ +#define NIG_REG_XGXS0_CTRL_EXTREMOTEMDIOST 0x10348 +/* [R 5] control to xgxs - CL45 DEVAD */ +#define NIG_REG_XGXS0_CTRL_MD_DEVAD 0x1033c +/* [R 1] control to xgxs; 0 - clause 45; 1 - clause 22 */ +#define NIG_REG_XGXS0_CTRL_MD_ST 0x10338 +/* [R 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */ +#define NIG_REG_XGXS0_CTRL_PHY_ADDR 0x10340 +/* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */ +#define NIG_REG_XGXS0_STATUS_LINK10G 0x10680 +/* [R 4] status from xgxs0 that inputs to interrupt logic of link status */ +#define NIG_REG_XGXS0_STATUS_LINK_STATUS 0x10684 +/* [R 2] selection for XGXS lane of port 0 in NIG_MUX block */ +#define NIG_REG_XGXS_LANE_SEL_P0 0x102e8 +/* [R 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */ +#define NIG_REG_XGXS_SERDES0_MODE_SEL 0x102e0 +#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT (0x1<<0) +#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9) +#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G (0x1<<15) +#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS (0xf<<18) +#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18 +/* [RW 1] Interrupt mask register #0 read/write */ +#define NIG_TSGEN_REG_NIG_TSGEN_INT_MASK 0xcc +/* [R 1] Interrupt register #0 read */ +#define NIG_TSGEN_REG_NIG_TSGEN_INT_STS 0xc0 +/* [RC 1] Interrupt register #0 read clear */ +#define NIG_TSGEN_REG_NIG_TSGEN_INT_STS_CLR 0xc4 +/* [R 31] Removed for E3 B0 -The upper bound of the weight of COS0 in the + * ETS command arbiter. */ +#define PBF_REG_COS0_UPPER_BOUND 0x15c05c +/* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter + * of port 0. */ +#define PBF_REG_COS0_UPPER_BOUND_P0 0x15c2cc +/* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter + * of port 1. */ +#define PBF_REG_COS0_UPPER_BOUND_P1 0x15c2e4 +/* [R 31] Removed for E3 B0 - The weight of COS0 in the ETS command arbiter. */ +#define PBF_REG_COS0_WEIGHT 0x15c054 +/* [RW 31] The weight of COS0 in port 0 ETS command arbiter. */ +#define PBF_REG_COS0_WEIGHT_P0 0x15c2a8 +/* [RW 31] The weight of COS0 in port 1 ETS command arbiter. */ +#define PBF_REG_COS0_WEIGHT_P1 0x15c2c0 +/* [R 31] Removed for E3 B0 -The upper bound of the weight of COS1 in the + * ETS command arbiter. */ +#define PBF_REG_COS1_UPPER_BOUND 0x15c060 +/* [R 31] Removed for E3 B0 - The weight of COS1 in the ETS command arbiter. */ +#define PBF_REG_COS1_WEIGHT 0x15c058 +/* [RW 31] The weight of COS1 in port 0 ETS command arbiter. */ +#define PBF_REG_COS1_WEIGHT_P0 0x15c2ac +/* [RW 31] The weight of COS1 in port 1 ETS command arbiter. */ +#define PBF_REG_COS1_WEIGHT_P1 0x15c2c4 +/* [RW 31] The weight of COS2 in port 0 ETS command arbiter. */ +#define PBF_REG_COS2_WEIGHT_P0 0x15c2b0 +/* [RW 31] The weight of COS2 in port 1 ETS command arbiter. */ +#define PBF_REG_COS2_WEIGHT_P1 0x15c2c8 +/* [RW 31] The weight of COS3 in port 0 ETS command arbiter. */ +#define PBF_REG_COS3_WEIGHT_P0 0x15c2b4 +/* [RW 31] The weight of COS4 in port 0 ETS command arbiter. */ +#define PBF_REG_COS4_WEIGHT_P0 0x15c2b8 +/* [RW 31] The weight of COS5 in port 0 ETS command arbiter. */ +#define PBF_REG_COS5_WEIGHT_P0 0x15c2bc +/* [R 11] Current credit for the LB queue in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_LB_Q 0x140338 +/* [R 11] Current credit for queue 0 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_Q0 0x14033c +/* [R 11] Current credit for queue 1 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_Q1 0x140340 +/* [R 11] Current credit for queue 2 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_Q2 0x140344 +/* [R 11] Current credit for queue 3 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_Q3 0x140348 +/* [R 11] Current credit for queue 4 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_Q4 0x14034c +/* [R 11] Current credit for queue 5 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_CREDIT_Q5 0x140350 +/* [R 1] Removed for E3 B0 - Disable processing further tasks from port 0 + * (after ending the current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_P0 0x14005c +/* [R 1] Removed for E3 B0 - Disable processing further tasks from port 1 + * (after ending the current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_P1 0x140060 +/* [RW 1] Disable processing further tasks from port 0 (after ending the + * current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_Q0 0x15c1bc +/* [RW 1] Disable processing further tasks from port 0 (after ending the + * current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_Q1 0x15c1c0 +/* [RW 1] Disable processing further tasks from port 0 (after ending the + * current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_Q2 0x15c1c4 +/* [RW 1] Disable processing further tasks from port 0 (after ending the + * current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_Q3 0x15c1c8 +/* [RW 1] Disable processing further tasks from port 0 (after ending the + * current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_Q4 0x15c1cc +/* [RW 1] Disable processing further tasks from port 0 (after ending the + * current task in process). */ +#define PBF_REG_DISABLE_NEW_TASK_PROC_Q5 0x15c1d0 +#define PBF_REG_DISABLE_PF 0x1402e8 +#define PBF_REG_DISABLE_VF 0x1402ec +/* [RW 18] For port 0: For each client that is subject to WFQ (the + * corresponding bit is 1); indicates to which of the credit registers this + * client is mapped. For clients which are not credit blocked; their mapping + * is dont care. */ +#define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P0 0x15c288 +/* [RW 9] For port 1: For each client that is subject to WFQ (the + * corresponding bit is 1); indicates to which of the credit registers this + * client is mapped. For clients which are not credit blocked; their mapping + * is dont care. */ +#define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P1 0x15c28c +/* [RW 6] For port 0: Bit per client to indicate if the client competes in + * the strict priority arbiter directly (corresponding bit = 1); or first + * goes to the RR arbiter (corresponding bit = 0); and then competes in the + * lowest priority in the strict-priority arbiter. */ +#define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P0 0x15c278 +/* [RW 3] For port 1: Bit per client to indicate if the client competes in + * the strict priority arbiter directly (corresponding bit = 1); or first + * goes to the RR arbiter (corresponding bit = 0); and then competes in the + * lowest priority in the strict-priority arbiter. */ +#define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P1 0x15c27c +/* [RW 6] For port 0: Bit per client to indicate if the client is subject to + * WFQ credit blocking (corresponding bit = 1). */ +#define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P0 0x15c280 +/* [RW 3] For port 0: Bit per client to indicate if the client is subject to + * WFQ credit blocking (corresponding bit = 1). */ +#define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P1 0x15c284 +/* [RW 16] For port 0: The number of strict priority arbitration slots + * between 2 RR arbitration slots. A value of 0 means no strict priority + * cycles; i.e. the strict-priority w/ anti-starvation arbiter is a RR + * arbiter. */ +#define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P0 0x15c2a0 +/* [RW 16] For port 1: The number of strict priority arbitration slots + * between 2 RR arbitration slots. A value of 0 means no strict priority + * cycles; i.e. the strict-priority w/ anti-starvation arbiter is a RR + * arbiter. */ +#define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P1 0x15c2a4 +/* [RW 18] For port 0: Indicates which client is connected to each priority + * in the strict-priority arbiter. Priority 0 is the highest priority, and + * priority 5 is the lowest; to which the RR output is connected to (this is + * not configurable). */ +#define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P0 0x15c270 +/* [RW 9] For port 1: Indicates which client is connected to each priority + * in the strict-priority arbiter. Priority 0 is the highest priority, and + * priority 5 is the lowest; to which the RR output is connected to (this is + * not configurable). */ +#define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P1 0x15c274 +/* [R 1] Removed for E3 B0 - Indicates that ETS is performed between the + * COSes in the command arbiter. If reset strict priority w/ anti-starvation + * will be performed w/o WFQ. */ +#define PBF_REG_ETS_ENABLED 0x15c050 +/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic + * Ethernet header. */ +#define PBF_REG_HDRS_AFTER_BASIC 0x15c0a8 +/* [RW 6] Bit-map indicating which L2 hdrs may appear after L2 tag 0 */ +#define PBF_REG_HDRS_AFTER_TAG_0 0x15c0b8 +/* [R 1] Removed for E3 B0 - Indicates which COS is conncted to the highest + * priority in the command arbiter. */ +#define PBF_REG_HIGH_PRIORITY_COS_NUM 0x15c04c +/* [RW 11] Initial credit for the LB queue in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_LB_Q 0x15c248 +/* [RW 11] Initial credit for queue 0 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_Q0 0x15c230 +/* [RW 11] Initial credit for queue 1 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_Q1 0x15c234 +/* [RW 11] Initial credit for queue 2 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_Q2 0x15c238 +/* [RW 11] Initial credit for queue 3 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_Q3 0x15c23c +/* [RW 11] Initial credit for queue 4 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_Q4 0x15c240 +/* [RW 11] Initial credit for queue 5 in the tx port buffers in 16 byte + * lines. */ +#define PBF_REG_INIT_CRD_Q5 0x15c244 +/* [R 1] Removed for E3 B0 - Init bit for port 0. When set the initial + * credit of port 0 is copied to the credit register. Should be set and then + * reset after the configuration of the port has ended. */ +#define PBF_REG_INIT_P0 0x140004 +/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for + * the LB queue. Reset upon init. */ +#define PBF_REG_INTERNAL_CRD_FREED_CNT_LB_Q 0x140354 +/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for + * queue 0. Reset upon init. */ +#define PBF_REG_INTERNAL_CRD_FREED_CNT_Q0 0x140358 +/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for + * queue 1. Reset upon init. */ +#define PBF_REG_INTERNAL_CRD_FREED_CNT_Q1 0x14035c +/* [RW 1] Enable for mac interface 0. */ +#define PBF_REG_MAC_IF0_ENABLE 0x140030 +/* [RW 6] Bit-map indicating which headers must appear in the packet */ +#define PBF_REG_MUST_HAVE_HDRS 0x15c0c4 +/* [R 16] Removed for E3 B0 - The number of strict priority arbitration + * slots between 2 RR arbitration slots. A value of 0 means no strict + * priority cycles; i.e. the strict-priority w/ anti-starvation arbiter is a + * RR arbiter. */ +#define PBF_REG_NUM_STRICT_ARB_SLOTS 0x15c064 +/* [R 11] Removed for E3 B0 - Port 0 threshold used by arbiter in 16 byte + * lines used when pause not suppoterd. */ +#define PBF_REG_P0_ARB_THRSH 0x1400e4 +/* [R 11] Removed for E3 B0 - Current credit for port 0 in the tx port + * buffers in 16 byte lines. */ +#define PBF_REG_P0_CREDIT 0x140200 +/* [R 11] Removed for E3 B0 - Initial credit for port 0 in the tx port + * buffers in 16 byte lines. */ +#define PBF_REG_P0_INIT_CRD 0x1400d0 +/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for + * port 0. Reset upon init. */ +#define PBF_REG_P0_INTERNAL_CRD_FREED_CNT 0x140308 +/* [R 1] Removed for E3 B0 - Indication that pause is enabled for port 0. */ +#define PBF_REG_P0_PAUSE_ENABLE 0x140014 +/* [R 8] Removed for E3 B0 - Number of tasks in port 0 task queue. */ +#define PBF_REG_P0_TASK_CNT 0x140204 +/* [R 32] Removed for E3 B0 - Cyclic counter for number of 8 byte lines + * freed from the task queue of port 0. Reset upon init. */ +#define PBF_REG_P0_TQ_LINES_FREED_CNT 0x1402f0 +/* [R 12] Number of 8 bytes lines occupied in the task queue of port 0. */ +#define PBF_REG_P0_TQ_OCCUPANCY 0x1402fc +/* [R 11] Removed for E3 B0 - Current credit for port 1 in the tx port + * buffers in 16 byte lines. */ +#define PBF_REG_P1_CREDIT 0x140208 +/* [R 11] Removed for E3 B0 - Initial credit for port 0 in the tx port + * buffers in 16 byte lines. */ +#define PBF_REG_P1_INIT_CRD 0x1400d4 +/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for + * port 1. Reset upon init. */ +#define PBF_REG_P1_INTERNAL_CRD_FREED_CNT 0x14030c +/* [R 8] Removed for E3 B0 - Number of tasks in port 1 task queue. */ +#define PBF_REG_P1_TASK_CNT 0x14020c +/* [R 32] Removed for E3 B0 - Cyclic counter for number of 8 byte lines + * freed from the task queue of port 1. Reset upon init. */ +#define PBF_REG_P1_TQ_LINES_FREED_CNT 0x1402f4 +/* [R 12] Number of 8 bytes lines occupied in the task queue of port 1. */ +#define PBF_REG_P1_TQ_OCCUPANCY 0x140300 +/* [R 11] Removed for E3 B0 - Current credit for port 4 in the tx port + * buffers in 16 byte lines. */ +#define PBF_REG_P4_CREDIT 0x140210 +/* [R 11] Removed for E3 B0 - Initial credit for port 0 in the tx port + * buffers in 16 byte lines. */ +#define PBF_REG_P4_INIT_CRD 0x1400e0 +/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for + * port 4. Reset upon init. */ +#define PBF_REG_P4_INTERNAL_CRD_FREED_CNT 0x140310 +/* [R 8] Removed for E3 B0 - Number of tasks in port 4 task queue. */ +#define PBF_REG_P4_TASK_CNT 0x140214 +/* [R 32] Removed for E3 B0 - Cyclic counter for number of 8 byte lines + * freed from the task queue of port 4. Reset upon init. */ +#define PBF_REG_P4_TQ_LINES_FREED_CNT 0x1402f8 +/* [R 12] Number of 8 bytes lines occupied in the task queue of port 4. */ +#define PBF_REG_P4_TQ_OCCUPANCY 0x140304 +/* [RW 7] Interrupt mask register #0 read/write */ +#define PBF_REG_PBF_INT_MASK 0x1401d4 +/* [R 7] Interrupt register #0 read */ +#define PBF_REG_PBF_INT_STS 0x1401c8 +/* [RC 7] Interrupt register #0 read clear */ +#define PBF_REG_PBF_INT_STS_CLR 0x1401cc +/* [RW 28] Parity mask register #0 read/write */ +#define PBF_REG_PBF_PRTY_MASK 0x1401e4 +/* [R 28] Parity register #0 read */ +#define PBF_REG_PBF_PRTY_STS 0x1401d8 +/* [RC 28] Parity register #0 read clear */ +#define PBF_REG_PBF_PRTY_STS_CLR 0x1401dc +/* [RW 16] The Ethernet type value for L2 tag 0 */ +#define PBF_REG_TAG_ETHERTYPE_0 0x15c090 +/* [RW 4] The length of the info field for L2 tag 0. The length is between + * 2B and 14B; in 2B granularity */ +#define PBF_REG_TAG_LEN_0 0x15c09c +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_LB_Q 0x140370 +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_Q0 0x140374 +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_Q1 0x140378 +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_Q2 0x14037c +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_Q3 0x140380 +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_Q4 0x140384 +/* [R 8] Number of tasks in queue 0 task queue. */ +#define PBF_REG_TASK_CNT_Q5 0x140388 +/* [R 32] Cyclic counter for number of 8 byte lines freed from the LB task + * queue. Reset upon init. */ +#define PBF_REG_TQ_LINES_FREED_CNT_LB_Q 0x14038c +/* [R 32] Cyclic counter for number of 8 byte lines freed from the task + * queue 0. Reset upon init. */ +#define PBF_REG_TQ_LINES_FREED_CNT_Q0 0x140390 +/* [R 32] Cyclic counter for number of 8 byte lines freed from task queue 1. + * Reset upon init. */ +#define PBF_REG_TQ_LINES_FREED_CNT_Q1 0x140394 +/* [R 13] Number of 8 bytes lines occupied in the task queue of the LB + * queue. */ +#define PBF_REG_TQ_OCCUPANCY_LB_Q 0x1403a8 +/* [R 13] Number of 8 bytes lines occupied in the task queue of queue 0. */ +#define PBF_REG_TQ_OCCUPANCY_Q0 0x1403ac +/* [R 13] Number of 8 bytes lines occupied in the task queue of queue 1. */ +#define PBF_REG_TQ_OCCUPANCY_Q1 0x1403b0 +/* [RW 16] One of 8 values that should be compared to type in Ethernet + * parsing. If there is a match; the field after Ethernet is the first VLAN. + * Reset value is 0x8100 which is the standard VLAN type. Note that when + * checking second VLAN; type is compared only to 0x8100. */ +#define PBF_REG_VLAN_TYPE_0 0x15c06c +/* [RW 2] Interrupt mask register #0 read/write */ +#define PB_REG_PB_INT_MASK 0x28 +/* [R 2] Interrupt register #0 read */ +#define PB_REG_PB_INT_STS 0x1c +/* [RC 2] Interrupt register #0 read clear */ +#define PB_REG_PB_INT_STS_CLR 0x20 +/* [RW 4] Parity mask register #0 read/write */ +#define PB_REG_PB_PRTY_MASK 0x38 +/* [R 4] Parity register #0 read */ +#define PB_REG_PB_PRTY_STS 0x2c +/* [RC 4] Parity register #0 read clear */ +#define PB_REG_PB_PRTY_STS_CLR 0x30 +#define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR (0x1<<0) +#define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW (0x1<<8) +#define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR (0x1<<1) +#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN (0x1<<6) +#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN (0x1<<7) +#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN (0x1<<4) +#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN (0x1<<3) +#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN (0x1<<5) +#define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN (0x1<<2) +/* [R 8] Config space A attention dirty bits. Each bit indicates that the + * corresponding PF generates config space A attention. Set by PXP. Reset by + * MCP writing 1 to icfg_space_a_request_clr. Note: register contains bits + * from both paths. */ +#define PGLUE_B_REG_CFG_SPACE_A_REQUEST 0x9010 +/* [R 8] Config space B attention dirty bits. Each bit indicates that the + * corresponding PF generates config space B attention. Set by PXP. Reset by + * MCP writing 1 to icfg_space_b_request_clr. Note: register contains bits + * from both paths. */ +#define PGLUE_B_REG_CFG_SPACE_B_REQUEST 0x9014 +/* [R 8] FLR request attention dirty bits for PFs 0 to 7. Each bit indicates + * that the FLR register of the corresponding PF was set. Set by PXP. Reset + * by MCP writing 1 to flr_request_pf_7_0_clr. Note: register contains bits + * from both paths. */ +#define PGLUE_B_REG_FLR_REQUEST_PF_7_0 0x9028 +/* [W 8] FLR request attention dirty bits clear for PFs 0 to 7. MCP writes 1 + * to a bit in this register in order to clear the corresponding bit in + * flr_request_pf_7_0 register. Note: register contains bits from both + * paths. */ +#define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR 0x9418 +/* [R 32] FLR request attention dirty bits for VFs 96 to 127. Each bit + * indicates that the FLR register of the corresponding VF was set. Set by + * PXP. Reset by MCP writing 1 to flr_request_vf_127_96_clr. */ +#define PGLUE_B_REG_FLR_REQUEST_VF_127_96 0x9024 +/* [R 32] FLR request attention dirty bits for VFs 0 to 31. Each bit + * indicates that the FLR register of the corresponding VF was set. Set by + * PXP. Reset by MCP writing 1 to flr_request_vf_31_0_clr. */ +#define PGLUE_B_REG_FLR_REQUEST_VF_31_0 0x9018 +/* [R 32] FLR request attention dirty bits for VFs 32 to 63. Each bit + * indicates that the FLR register of the corresponding VF was set. Set by + * PXP. Reset by MCP writing 1 to flr_request_vf_63_32_clr. */ +#define PGLUE_B_REG_FLR_REQUEST_VF_63_32 0x901c +/* [R 32] FLR request attention dirty bits for VFs 64 to 95. Each bit + * indicates that the FLR register of the corresponding VF was set. Set by + * PXP. Reset by MCP writing 1 to flr_request_vf_95_64_clr. */ +#define PGLUE_B_REG_FLR_REQUEST_VF_95_64 0x9020 +/* [R 8] Each bit indicates an incorrect behavior in user RX interface. Bit + * 0 - Target memory read arrived with a correctable error. Bit 1 - Target + * memory read arrived with an uncorrectable error. Bit 2 - Configuration RW + * arrived with a correctable error. Bit 3 - Configuration RW arrived with + * an uncorrectable error. Bit 4 - Completion with Configuration Request + * Retry Status. Bit 5 - Expansion ROM access received with a write request. + * Bit 6 - Completion with pcie_rx_err of 0000; CMPL_STATUS of non-zero; and + * pcie_rx_last not asserted. Bit 7 - Completion with pcie_rx_err of 1010; + * and pcie_rx_last not asserted. */ +#define PGLUE_B_REG_INCORRECT_RCV_DETAILS 0x9068 +#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER 0x942c +#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ 0x9430 +#define PGLUE_B_REG_INTERNAL_VFID_ENABLE 0x9438 +/* [W 7] Writing 1 to each bit in this register clears a corresponding error + * details register and enables logging new error details. Bit 0 - clears + * INCORRECT_RCV_DETAILS; Bit 1 - clears RX_ERR_DETAILS; Bit 2 - clears + * TX_ERR_WR_ADD_31_0 TX_ERR_WR_ADD_63_32 TX_ERR_WR_DETAILS + * TX_ERR_WR_DETAILS2 TX_ERR_RD_ADD_31_0 TX_ERR_RD_ADD_63_32 + * TX_ERR_RD_DETAILS TX_ERR_RD_DETAILS2 TX_ERR_WR_DETAILS_ICPL; Bit 3 - + * clears VF_LENGTH_VIOLATION_DETAILS. Bit 4 - clears + * VF_GRC_SPACE_VIOLATION_DETAILS. Bit 5 - clears RX_TCPL_ERR_DETAILS. Bit 6 + * - clears TCPL_IN_TWO_RCBS_DETAILS. */ +#define PGLUE_B_REG_LATCHED_ERRORS_CLR 0x943c +/* [RW 11] Interrupt mask register #0 read/write */ +#define PGLUE_B_REG_PGLUE_B_INT_MASK 0x92a4 +/* [R 11] Interrupt register #0 read */ +#define PGLUE_B_REG_PGLUE_B_INT_STS 0x9298 +/* [RC 11] Interrupt register #0 read clear */ +#define PGLUE_B_REG_PGLUE_B_INT_STS_CLR 0x929c +/* [RW 2] Parity mask register #0 read/write */ +#define PGLUE_B_REG_PGLUE_B_PRTY_MASK 0x92b4 +/* [R 2] Parity register #0 read */ +#define PGLUE_B_REG_PGLUE_B_PRTY_STS 0x92a8 +/* [RC 2] Parity register #0 read clear */ +#define PGLUE_B_REG_PGLUE_B_PRTY_STS_CLR 0x92ac +/* [R 13] Details of first request received with error. [2:0] - PFID. [3] - + * VF_VALID. [9:4] - VFID. [11:10] - Error Code - 0 - Indicates Completion + * Timeout of a User Tx non-posted request. 1 - unsupported request. 2 - + * completer abort. 3 - Illegal value for this field. [12] valid - indicates + * if there was a completion error since the last time this register was + * cleared. */ +#define PGLUE_B_REG_RX_ERR_DETAILS 0x9080 +/* [R 18] Details of first ATS Translation Completion request received with + * error. [2:0] - PFID. [3] - VF_VALID. [9:4] - VFID. [11:10] - Error Code - + * 0 - Indicates Completion Timeout of a User Tx non-posted request. 1 - + * unsupported request. 2 - completer abort. 3 - Illegal value for this + * field. [16:12] - ATC OTB EntryID. [17] valid - indicates if there was a + * completion error since the last time this register was cleared. */ +#define PGLUE_B_REG_RX_TCPL_ERR_DETAILS 0x9084 +/* [W 8] Debug only - Shadow BME bits clear for PFs 0 to 7. MCP writes 1 to + * a bit in this register in order to clear the corresponding bit in + * shadow_bme_pf_7_0 register. MCP should never use this unless a + * work-around is needed. Note: register contains bits from both paths. */ +#define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR 0x9458 +/* [R 8] SR IOV disabled attention dirty bits. Each bit indicates that the + * VF enable register of the corresponding PF is written to 0 and was + * previously 1. Set by PXP. Reset by MCP writing 1 to + * sr_iov_disabled_request_clr. Note: register contains bits from both + * paths. */ +#define PGLUE_B_REG_SR_IOV_DISABLED_REQUEST 0x9030 +/* [R 32] Indicates the status of tags 32-63. 0 - tags is used - read + * completion did not return yet. 1 - tag is unused. Same functionality as + * pxp2_registers_pgl_exp_rom_data2 for tags 0-31. */ +#define PGLUE_B_REG_TAGS_63_32 0x9244 +/* [R 32] Address [31:0] of first read request not submitted due to error */ +#define PGLUE_B_REG_TX_ERR_RD_ADD_31_0 0x9098 +/* [R 32] Address [63:32] of first read request not submitted due to error */ +#define PGLUE_B_REG_TX_ERR_RD_ADD_63_32 0x909c +/* [R 31] Details of first read request not submitted due to error. [4:0] + * VQID. [5] TREQ. 1 - Indicates the request is a Translation Request. + * [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] - + * VFID. */ +#define PGLUE_B_REG_TX_ERR_RD_DETAILS 0x90a0 +/* [R 26] Details of first read request not submitted due to error. [15:0] + * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type - + * [21] - Indicates was_error was set; [22] - Indicates BME was cleared; + * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent + * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid - + * indicates if there was a request not submitted due to error since the + * last time this register was cleared. */ +#define PGLUE_B_REG_TX_ERR_RD_DETAILS2 0x90a4 +/* [R 32] Address [31:0] of first write request not submitted due to error */ +#define PGLUE_B_REG_TX_ERR_WR_ADD_31_0 0x9088 +/* [R 32] Address [63:32] of first write request not submitted due to error */ +#define PGLUE_B_REG_TX_ERR_WR_ADD_63_32 0x908c +/* [R 31] Details of first write request not submitted due to error. [4:0] + * VQID. [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] + * - VFID. */ +#define PGLUE_B_REG_TX_ERR_WR_DETAILS 0x9090 +/* [R 26] Details of first write request not submitted due to error. [15:0] + * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type - + * [21] - Indicates was_error was set; [22] - Indicates BME was cleared; + * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent + * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid - + * indicates if there was a request not submitted due to error since the + * last time this register was cleared. */ +#define PGLUE_B_REG_TX_ERR_WR_DETAILS2 0x9094 +/* [R 26] Details of first target VF request accessing VF GRC space that + * failed permission check. [14:0] Address. [15] w_nr: 0 - Read; 1 - Write. + * [21:16] VFID. [24:22] - PFID. [25] valid - indicates if there was a + * request accessing VF GRC space that failed permission check since the + * last time this register was cleared. Permission checks are: function + * permission; R/W permission; address range permission. */ +#define PGLUE_B_REG_VF_GRC_SPACE_VIOLATION_DETAILS 0x9234 +/* [R 31] Details of first target VF request with length violation (too many + * DWs) accessing BAR0. [12:0] Address in DWs (bits [14:2] of byte address). + * [14:13] BAR. [20:15] VFID. [23:21] - PFID. [29:24] - Length in DWs. [30] + * valid - indicates if there was a request with length violation since the + * last time this register was cleared. Length violations: length of more + * than 2DWs; length of 2DWs and address not QW aligned; window is GRC and + * length is more than 1 DW. */ +#define PGLUE_B_REG_VF_LENGTH_VIOLATION_DETAILS 0x9230 +/* [R 8] Was_error indication dirty bits for PFs 0 to 7. Each bit indicates + * that there was a completion with uncorrectable error for the + * corresponding PF. Set by PXP. Reset by MCP writing 1 to + * was_error_pf_7_0_clr. */ +#define PGLUE_B_REG_WAS_ERROR_PF_7_0 0x907c +/* [W 8] Was_error indication dirty bits clear for PFs 0 to 7. MCP writes 1 + * to a bit in this register in order to clear the corresponding bit in + * flr_request_pf_7_0 register. */ +#define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR 0x9470 +/* [R 32] Was_error indication dirty bits for VFs 96 to 127. Each bit + * indicates that there was a completion with uncorrectable error for the + * corresponding VF. Set by PXP. Reset by MCP writing 1 to + * was_error_vf_127_96_clr. */ +#define PGLUE_B_REG_WAS_ERROR_VF_127_96 0x9078 +/* [W 32] Was_error indication dirty bits clear for VFs 96 to 127. MCP + * writes 1 to a bit in this register in order to clear the corresponding + * bit in was_error_vf_127_96 register. */ +#define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR 0x9474 +/* [R 32] Was_error indication dirty bits for VFs 0 to 31. Each bit + * indicates that there was a completion with uncorrectable error for the + * corresponding VF. Set by PXP. Reset by MCP writing 1 to + * was_error_vf_31_0_clr. */ +#define PGLUE_B_REG_WAS_ERROR_VF_31_0 0x906c +/* [W 32] Was_error indication dirty bits clear for VFs 0 to 31. MCP writes + * 1 to a bit in this register in order to clear the corresponding bit in + * was_error_vf_31_0 register. */ +#define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR 0x9478 +/* [R 32] Was_error indication dirty bits for VFs 32 to 63. Each bit + * indicates that there was a completion with uncorrectable error for the + * corresponding VF. Set by PXP. Reset by MCP writing 1 to + * was_error_vf_63_32_clr. */ +#define PGLUE_B_REG_WAS_ERROR_VF_63_32 0x9070 +/* [W 32] Was_error indication dirty bits clear for VFs 32 to 63. MCP writes + * 1 to a bit in this register in order to clear the corresponding bit in + * was_error_vf_63_32 register. */ +#define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR 0x947c +/* [R 32] Was_error indication dirty bits for VFs 64 to 95. Each bit + * indicates that there was a completion with uncorrectable error for the + * corresponding VF. Set by PXP. Reset by MCP writing 1 to + * was_error_vf_95_64_clr. */ +#define PGLUE_B_REG_WAS_ERROR_VF_95_64 0x9074 +/* [W 32] Was_error indication dirty bits clear for VFs 64 to 95. MCP writes + * 1 to a bit in this register in order to clear the corresponding bit in + * was_error_vf_95_64 register. */ +#define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR 0x9480 +#define PRS_REG_A_PRSU_20 0x40134 +/* [R 8] debug only: CFC load request current credit. Transaction based. */ +#define PRS_REG_CFC_LD_CURRENT_CREDIT 0x40164 +/* [R 8] debug only: CFC search request current credit. Transaction based. */ +#define PRS_REG_CFC_SEARCH_CURRENT_CREDIT 0x40168 +/* [RW 6] The initial credit for the search message to the CFC interface. + * Credit is transaction based. */ +#define PRS_REG_CFC_SEARCH_INITIAL_CREDIT 0x4011c +/* [RW 24] CID for port 0 if no match */ +#define PRS_REG_CID_PORT_0 0x400fc +/* [RW 1] Indicates if in outer vlan mode. 0=non-outer-vlan mode; 1=outer + * vlan mode. */ +#define PRS_REG_E1HOV_MODE 0x401c8 +/* [R 6] Bit-map indicating which L2 hdrs may appear after the basic + * Ethernet header. */ +#define PRS_REG_HDRS_AFTER_BASIC 0x40238 +/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic + * Ethernet header for port 0 packets. */ +#define PRS_REG_HDRS_AFTER_BASIC_PORT_0 0x40270 +#define PRS_REG_HDRS_AFTER_BASIC_PORT_1 0x40290 +/* [R 6] Bit-map indicating which L2 hdrs may appear after L2 tag 0 */ +#define PRS_REG_HDRS_AFTER_TAG_0 0x40248 +/* [RW 6] Bit-map indicating which L2 hdrs may appear after L2 tag 0 for + * port 0 packets */ +#define PRS_REG_HDRS_AFTER_TAG_0_PORT_0 0x40280 +#define PRS_REG_HDRS_AFTER_TAG_0_PORT_1 0x402a0 +/* [R 6] Bit-map indicating which headers must appear in the packet */ +#define PRS_REG_MUST_HAVE_HDRS 0x40254 +/* [RW 6] Bit-map indicating which headers must appear in the packet for + * port 0 packets */ +#define PRS_REG_MUST_HAVE_HDRS_PORT_0 0x4028c +#define PRS_REG_MUST_HAVE_HDRS_PORT_1 0x402ac +#define PRS_REG_NIC_MODE 0x40138 +/* [ST 24] The number of input packets */ +#define PRS_REG_NUM_OF_PACKETS 0x40124 +/* [R 2] debug only: Number of pending requests for CAC on port 0. */ +#define PRS_REG_PENDING_BRB_CAC0_RQ 0x40174 +/* [R 2] debug only: Number of pending requests for header parsing. */ +#define PRS_REG_PENDING_BRB_PRS_RQ 0x40170 +/* [RW 1] Interrupt mask register #0 read/write */ +#define PRS_REG_PRS_INT_MASK 0x40194 +/* [R 1] Interrupt register #0 read */ +#define PRS_REG_PRS_INT_STS 0x40188 +/* [RC 1] Interrupt register #0 read clear */ +#define PRS_REG_PRS_INT_STS_CLR 0x4018c +/* [RW 8] Parity mask register #0 read/write */ +#define PRS_REG_PRS_PRTY_MASK 0x401a4 +/* [R 8] Parity register #0 read */ +#define PRS_REG_PRS_PRTY_STS 0x40198 +/* [RC 8] Parity register #0 read clear */ +#define PRS_REG_PRS_PRTY_STS_CLR 0x4019c +/* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this + * serail number was released by SDM but cannot be used because a previous + * serial number was not released. */ +#define PRS_REG_SERIAL_NUM_STATUS_LSB 0x40154 +/* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this + * serail number was released by SDM but cannot be used because a previous + * serial number was not released. */ +#define PRS_REG_SERIAL_NUM_STATUS_MSB 0x40158 +/* [R 4] debug only: SRC current credit. Transaction based. */ +#define PRS_REG_SRC_CURRENT_CREDIT 0x4016c +/* [RW 16] The Ethernet type value for L2 tag 0 */ +#define PRS_REG_TAG_ETHERTYPE_0 0x401d4 +/* [RW 4] The length of the info field for L2 tag 0. The length is between + * 2B and 14B; in 2B granularity */ +#define PRS_REG_TAG_LEN_0 0x4022c +/* [R 8] debug only: TCM current credit. Cycle based. */ +#define PRS_REG_TCM_CURRENT_CREDIT 0x40160 +/* [R 8] debug only: TSDM current credit. Transaction based. */ +#define PRS_REG_TSDM_CURRENT_CREDIT 0x4015c +/* [RW 16] One of 8 values that should be compared to type in Ethernet + * parsing. If there is a match; the field after Ethernet is the first VLAN. + * Reset value is 0x8100 which is the standard VLAN type. Note that when + * checking second VLAN; type is compared only to 0x8100. */ +#define PRS_REG_VLAN_TYPE_0 0x401a8 +#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT (0x1<<19) +#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF (0x1<<20) +#define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN (0x1<<22) +#define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED (0x1<<23) +#define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED (0x1<<24) +#define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7) +#define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR (0x1<<7) +/* [R 7] Debug only: Number of used entries in the data FIFO */ +#define PXP2_REG_HST_DATA_FIFO_STATUS 0x12047c +/* [R 7] Debug only: Number of used entries in the header FIFO */ +#define PXP2_REG_HST_HEADER_FIFO_STATUS 0x120478 +#define PXP2_REG_PGL_ADDR_88_F0 0x120534 +/* [R 32] GRC address for configuration access to PCIE config address 0x88. + * any write to this PCIE address will cause a GRC write access to the + * address that's in t this register */ +#define PXP2_REG_PGL_ADDR_88_F1 0x120544 +#define PXP2_REG_PGL_ADDR_8C_F0 0x120538 +/* [R 32] GRC address for configuration access to PCIE config address 0x8c. + * any write to this PCIE address will cause a GRC write access to the + * address that's in t this register */ +#define PXP2_REG_PGL_ADDR_8C_F1 0x120548 +#define PXP2_REG_PGL_ADDR_90_F0 0x12053c +/* [R 32] GRC address for configuration access to PCIE config address 0x90. + * any write to this PCIE address will cause a GRC write access to the + * address that's in t this register */ +#define PXP2_REG_PGL_ADDR_90_F1 0x12054c +#define PXP2_REG_PGL_ADDR_94_F0 0x120540 +/* [R 32] GRC address for configuration access to PCIE config address 0x94. + * any write to this PCIE address will cause a GRC write access to the + * address that's in t this register */ +#define PXP2_REG_PGL_ADDR_94_F1 0x120550 +/* [RW 32] third dword data of expansion rom request. this register is + * special. reading from it provides a vector outstanding read requests. if + * a bit is zero it means that a read request on the corresponding tag did + * not finish yet (not all completions have arrived for it) */ +#define PXP2_REG_PGL_EXP_ROM2 0x120808 +/* [RW 16] this field allows one function to pretend being another function + * when accessing any BAR mapped resource within the device. the value of + * the field is the number of the function that will be accessed + * effectively. after software write to this bit it must read it in order to + * know that the new value is updated. Bits [15] - force. Bits [14] - path + * ID. Bits [13:10] - Reserved. Bits [9:4] - VFID. Bits [3] - VF valid. Bits + * [2:0] - PFID. */ +#define PXP2_REG_PGL_PRETEND_FUNC_F0 0x120674 +/* [RW 16] this field allows one function to pretend being another function + * when accessing any BAR mapped resource within the device. the value of + * the field is the number of the function that will be accessed + * effectively. after software write to this bit it must read it in order to + * know that the new value is updated. Bits [15] - force. Bits [14] - path + * ID. Bits [13:10] - Reserved. Bits [9:4] - VFID. Bits [3] - VF valid. Bits + * [2:0] - PFID. */ +#define PXP2_REG_PGL_PRETEND_FUNC_F1 0x120678 +/* [R 1] this bit indicates that a read request was blocked because of + * bus_master_en was deasserted */ +#define PXP2_REG_PGL_READ_BLOCKED 0x120568 +#define PXP2_REG_PGL_TAGS_LIMIT 0x1205a8 +/* [R 21] debug only */ +#define PXP2_REG_PGL_TXW_CDTS 0x12052c +/* [R 1] this bit indicates that a write request was blocked because of + * bus_master_en was deasserted */ +#define PXP2_REG_PGL_WRITE_BLOCKED 0x120564 +#define PXP2_REG_PSWRQ_BW_ADD1 0x1201c0 +#define PXP2_REG_PSWRQ_BW_ADD10 0x1201e4 +#define PXP2_REG_PSWRQ_BW_ADD11 0x1201e8 +#define PXP2_REG_PSWRQ_BW_ADD2 0x1201c4 +#define PXP2_REG_PSWRQ_BW_ADD28 0x120228 +#define PXP2_REG_PSWRQ_BW_ADD3 0x1201c8 +#define PXP2_REG_PSWRQ_BW_ADD6 0x1201d4 +#define PXP2_REG_PSWRQ_BW_ADD7 0x1201d8 +#define PXP2_REG_PSWRQ_BW_ADD8 0x1201dc +#define PXP2_REG_PSWRQ_BW_ADD9 0x1201e0 +#define PXP2_REG_PSWRQ_BW_CREDIT 0x12032c +#define PXP2_REG_PSWRQ_BW_L1 0x1202b0 +#define PXP2_REG_PSWRQ_BW_L10 0x1202d4 +#define PXP2_REG_PSWRQ_BW_L11 0x1202d8 +#define PXP2_REG_PSWRQ_BW_L2 0x1202b4 +#define PXP2_REG_PSWRQ_BW_L28 0x120318 +#define PXP2_REG_PSWRQ_BW_L3 0x1202b8 +#define PXP2_REG_PSWRQ_BW_L6 0x1202c4 +#define PXP2_REG_PSWRQ_BW_L7 0x1202c8 +#define PXP2_REG_PSWRQ_BW_L8 0x1202cc +#define PXP2_REG_PSWRQ_BW_L9 0x1202d0 +#define PXP2_REG_PSWRQ_BW_RD 0x120324 +#define PXP2_REG_PSWRQ_BW_UB1 0x120238 +#define PXP2_REG_PSWRQ_BW_UB10 0x12025c +#define PXP2_REG_PSWRQ_BW_UB11 0x120260 +#define PXP2_REG_PSWRQ_BW_UB2 0x12023c +#define PXP2_REG_PSWRQ_BW_UB28 0x1202a0 +#define PXP2_REG_PSWRQ_BW_UB3 0x120240 +#define PXP2_REG_PSWRQ_BW_UB6 0x12024c +#define PXP2_REG_PSWRQ_BW_UB7 0x120250 +#define PXP2_REG_PSWRQ_BW_UB8 0x120254 +#define PXP2_REG_PSWRQ_BW_UB9 0x120258 +#define PXP2_REG_PSWRQ_BW_WR 0x120328 +#define PXP2_REG_PSWRQ_CDU0_L2P 0x120000 +#define PXP2_REG_PSWRQ_QM0_L2P 0x120038 +#define PXP2_REG_PSWRQ_SRC0_L2P 0x120054 +#define PXP2_REG_PSWRQ_TM0_L2P 0x12001c +#define PXP2_REG_PSWRQ_TSDM0_L2P 0x1200e0 +/* [RW 32] Interrupt mask register #0 read/write */ +#define PXP2_REG_PXP2_INT_MASK_0 0x120578 +#define PXP2_REG_PXP2_INT_MASK_1 0x120614 +/* [R 32] Interrupt register #0 read */ +#define PXP2_REG_PXP2_INT_STS_0 0x12056c +#define PXP2_REG_PXP2_INT_STS_1 0x120608 +/* [RC 32] Interrupt register #0 read clear */ +#define PXP2_REG_PXP2_INT_STS_CLR_0 0x120570 +#define PXP2_REG_PXP2_INT_STS_CLR_1 0x12060c +/* [RW 32] Parity mask register #0 read/write */ +#define PXP2_REG_PXP2_PRTY_MASK_0 0x120588 +#define PXP2_REG_PXP2_PRTY_MASK_1 0x120598 +/* [R 32] Parity register #0 read */ +#define PXP2_REG_PXP2_PRTY_STS_0 0x12057c +#define PXP2_REG_PXP2_PRTY_STS_1 0x12058c +/* [RC 32] Parity register #0 read clear */ +#define PXP2_REG_PXP2_PRTY_STS_CLR_0 0x120580 +#define PXP2_REG_PXP2_PRTY_STS_CLR_1 0x120590 +/* [R 1] Debug only: The 'almost full' indication from each fifo (gives + * indication about backpressure) */ +#define PXP2_REG_RD_ALMOST_FULL_0 0x120424 +/* [R 8] Debug only: The blocks counter - number of unused block ids */ +#define PXP2_REG_RD_BLK_CNT 0x120418 +/* [RW 8] Debug only: Total number of available blocks in Tetris Buffer. + * Must be bigger than 6. Normally should not be changed. */ +#define PXP2_REG_RD_BLK_NUM_CFG 0x12040c +/* [RW 2] CDU byte swapping mode configuration for master read requests */ +#define PXP2_REG_RD_CDURD_SWAP_MODE 0x120404 +/* [R 29] Details of first request with error on receive side: [15:0] - Echo + * ID. [28:16] - sub-request length plus start_offset_2_0 minus 1. */ +#define PXP2_REG_RD_CPL_ERR_DETAILS 0x120778 +/* [R 10] Details of first request with error on receive side: [4:0] - VQ + * ID. [8:5] - client ID. [9] - valid - indicates if there was a completion + * error since the last time this register was read. */ +#define PXP2_REG_RD_CPL_ERR_DETAILS2 0x12077c +/* [RW 1] When '1'; inputs to the PSWRD block are ignored */ +#define PXP2_REG_RD_DISABLE_INPUTS 0x120374 +/* [R 1] PSWRD internal memories initialization is done */ +#define PXP2_REG_RD_INIT_DONE 0x120370 +/* [R 1] Debug only: Indication if delivery ports are idle */ +#define PXP2_REG_RD_PORT_IS_IDLE_0 0x12041c +#define PXP2_REG_RD_PORT_IS_IDLE_1 0x120420 +/* [RW 2] QM byte swapping mode configuration for master read requests */ +#define PXP2_REG_RD_QM_SWAP_MODE 0x1203f8 +/* [RW 2] SRC byte swapping mode configuration for master read requests */ +#define PXP2_REG_RD_SRC_SWAP_MODE 0x120400 +/* [R 7] Debug only: The SR counter - number of unused sub request ids */ +#define PXP2_REG_RD_SR_CNT 0x120414 +/* [RW 7] Debug only: Total number of available PCI read sub-requests. Must + * be bigger than 1. Normally should not be changed. */ +#define PXP2_REG_RD_SR_NUM_CFG 0x120408 +/* [RW 1] Signals the PSWRD block to start initializing internal memories */ +#define PXP2_REG_RD_START_INIT 0x12036c +/* [RW 2] TM byte swapping mode configuration for master read requests */ +#define PXP2_REG_RD_TM_SWAP_MODE 0x1203fc +/* [RW 10] Bandwidth addition to VQ0 write requests */ +#define PXP2_REG_RQ_BW_RD_ADD0 0x1201bc +/* [RW 10] Bandwidth addition to VQ12 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD12 0x1201ec +/* [RW 10] Bandwidth addition to VQ13 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD13 0x1201f0 +/* [RW 10] Bandwidth addition to VQ14 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD14 0x1201f4 +/* [RW 10] Bandwidth addition to VQ15 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD15 0x1201f8 +/* [RW 10] Bandwidth addition to VQ16 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD16 0x1201fc +/* [RW 10] Bandwidth addition to VQ17 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD17 0x120200 +/* [RW 10] Bandwidth addition to VQ18 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD18 0x120204 +/* [RW 10] Bandwidth addition to VQ19 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD19 0x120208 +/* [RW 10] Bandwidth addition to VQ20 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD20 0x12020c +/* [RW 10] Bandwidth addition to VQ22 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD22 0x120210 +/* [RW 10] Bandwidth addition to VQ23 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD23 0x120214 +/* [RW 10] Bandwidth addition to VQ24 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD24 0x120218 +/* [RW 10] Bandwidth addition to VQ25 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD25 0x12021c +/* [RW 10] Bandwidth addition to VQ26 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD26 0x120220 +/* [RW 10] Bandwidth addition to VQ27 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD27 0x120224 +/* [RW 10] Bandwidth addition to VQ4 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD4 0x1201cc +/* [RW 10] Bandwidth addition to VQ5 read requests */ +#define PXP2_REG_RQ_BW_RD_ADD5 0x1201d0 +/* [RW 10] Bandwidth Typical L for VQ0 Read requests */ +#define PXP2_REG_RQ_BW_RD_L0 0x1202ac +/* [RW 10] Bandwidth Typical L for VQ12 Read requests */ +#define PXP2_REG_RQ_BW_RD_L12 0x1202dc +/* [RW 10] Bandwidth Typical L for VQ13 Read requests */ +#define PXP2_REG_RQ_BW_RD_L13 0x1202e0 +/* [RW 10] Bandwidth Typical L for VQ14 Read requests */ +#define PXP2_REG_RQ_BW_RD_L14 0x1202e4 +/* [RW 10] Bandwidth Typical L for VQ15 Read requests */ +#define PXP2_REG_RQ_BW_RD_L15 0x1202e8 +/* [RW 10] Bandwidth Typical L for VQ16 Read requests */ +#define PXP2_REG_RQ_BW_RD_L16 0x1202ec +/* [RW 10] Bandwidth Typical L for VQ17 Read requests */ +#define PXP2_REG_RQ_BW_RD_L17 0x1202f0 +/* [RW 10] Bandwidth Typical L for VQ18 Read requests */ +#define PXP2_REG_RQ_BW_RD_L18 0x1202f4 +/* [RW 10] Bandwidth Typical L for VQ19 Read requests */ +#define PXP2_REG_RQ_BW_RD_L19 0x1202f8 +/* [RW 10] Bandwidth Typical L for VQ20 Read requests */ +#define PXP2_REG_RQ_BW_RD_L20 0x1202fc +/* [RW 10] Bandwidth Typical L for VQ22 Read requests */ +#define PXP2_REG_RQ_BW_RD_L22 0x120300 +/* [RW 10] Bandwidth Typical L for VQ23 Read requests */ +#define PXP2_REG_RQ_BW_RD_L23 0x120304 +/* [RW 10] Bandwidth Typical L for VQ24 Read requests */ +#define PXP2_REG_RQ_BW_RD_L24 0x120308 +/* [RW 10] Bandwidth Typical L for VQ25 Read requests */ +#define PXP2_REG_RQ_BW_RD_L25 0x12030c +/* [RW 10] Bandwidth Typical L for VQ26 Read requests */ +#define PXP2_REG_RQ_BW_RD_L26 0x120310 +/* [RW 10] Bandwidth Typical L for VQ27 Read requests */ +#define PXP2_REG_RQ_BW_RD_L27 0x120314 +/* [RW 10] Bandwidth Typical L for VQ4 Read requests */ +#define PXP2_REG_RQ_BW_RD_L4 0x1202bc +/* [RW 10] Bandwidth Typical L for VQ5 Read- currently not used */ +#define PXP2_REG_RQ_BW_RD_L5 0x1202c0 +/* [RW 7] Bandwidth upper bound for VQ0 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND0 0x120234 +/* [RW 7] Bandwidth upper bound for VQ12 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND12 0x120264 +/* [RW 7] Bandwidth upper bound for VQ13 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND13 0x120268 +/* [RW 7] Bandwidth upper bound for VQ14 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND14 0x12026c +/* [RW 7] Bandwidth upper bound for VQ15 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND15 0x120270 +/* [RW 7] Bandwidth upper bound for VQ16 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND16 0x120274 +/* [RW 7] Bandwidth upper bound for VQ17 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND17 0x120278 +/* [RW 7] Bandwidth upper bound for VQ18 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND18 0x12027c +/* [RW 7] Bandwidth upper bound for VQ19 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND19 0x120280 +/* [RW 7] Bandwidth upper bound for VQ20 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND20 0x120284 +/* [RW 7] Bandwidth upper bound for VQ22 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND22 0x120288 +/* [RW 7] Bandwidth upper bound for VQ23 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND23 0x12028c +/* [RW 7] Bandwidth upper bound for VQ24 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND24 0x120290 +/* [RW 7] Bandwidth upper bound for VQ25 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND25 0x120294 +/* [RW 7] Bandwidth upper bound for VQ26 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND26 0x120298 +/* [RW 7] Bandwidth upper bound for VQ27 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND27 0x12029c +/* [RW 7] Bandwidth upper bound for VQ4 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND4 0x120244 +/* [RW 7] Bandwidth upper bound for VQ5 read requests */ +#define PXP2_REG_RQ_BW_RD_UBOUND5 0x120248 +/* [RW 10] Bandwidth addition to VQ29 write requests */ +#define PXP2_REG_RQ_BW_WR_ADD29 0x12022c +/* [RW 10] Bandwidth addition to VQ30 write requests */ +#define PXP2_REG_RQ_BW_WR_ADD30 0x120230 +/* [RW 10] Bandwidth Typical L for VQ29 Write requests */ +#define PXP2_REG_RQ_BW_WR_L29 0x12031c +/* [RW 10] Bandwidth Typical L for VQ30 Write requests */ +#define PXP2_REG_RQ_BW_WR_L30 0x120320 +/* [RW 7] Bandwidth upper bound for VQ29 */ +#define PXP2_REG_RQ_BW_WR_UBOUND29 0x1202a4 +/* [RW 7] Bandwidth upper bound for VQ30 */ +#define PXP2_REG_RQ_BW_WR_UBOUND30 0x1202a8 +/* [RW 18] external first_mem_addr field in L2P table for CDU module port 0 */ +#define PXP2_REG_RQ_CDU0_EFIRST_MEM_ADDR 0x120008 +/* [RW 2] Endian mode for cdu */ +#define PXP2_REG_RQ_CDU_ENDIAN_M 0x1201a0 +#define PXP2_REG_RQ_CDU_FIRST_ILT 0x12061c +#define PXP2_REG_RQ_CDU_LAST_ILT 0x120620 +/* [RW 4] page size in L2P table for CDU module; -4k; -8k; -16k; -32k; -64k; + * -128k; -256k; -512k; -1M; -2M; 0-4M */ +#define PXP2_REG_RQ_CDU_P_SIZE 0x120018 +/* [R 1] 1' indicates that the requester has finished its internal + * configuration */ +#define PXP2_REG_RQ_CFG_DONE 0x1201b4 +/* [RW 2] Endian mode for debug */ +#define PXP2_REG_RQ_DBG_ENDIAN_M 0x1201a4 +/* [RW 1] When '1'; requests will enter input buffers but wont get out + * towards the glue */ +#define PXP2_REG_RQ_DISABLE_INPUTS 0x120330 +/* [RW 4] Determines alignment of write SRs when a request is split into + * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B + * aligned. 4 - 512B aligned. */ +#define PXP2_REG_RQ_DRAM_ALIGN 0x1205b0 +/* [RW 4] Determines alignment of read SRs when a request is split into + * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B + * aligned. 4 - 512B aligned. */ +#define PXP2_REG_RQ_DRAM_ALIGN_RD 0x12092c +/* [RW 1] when set the new alignment method (E2) will be applied; when reset + * the original alignment method (E1 E1H) will be applied */ +#define PXP2_REG_RQ_DRAM_ALIGN_SEL 0x120930 +/* [R 32] Status signals in pswrq_garb module */ +#define PXP2_REG_RQ_GARB 0x120748 +/* [RW 2] Endian mode for hc */ +#define PXP2_REG_RQ_HC_ENDIAN_M 0x1201a8 +/* [WB 53] Onchip address table */ +#define PXP2_REG_RQ_ONCHIP_AT 0x122000 +/* [WB 53] Onchip address table - B0 */ +#define PXP2_REG_RQ_ONCHIP_AT_B0 0x128000 +/* [RW 13] Pending read limiter threshold; in Dwords */ +#define PXP2_REG_RQ_PDR_LIMIT 0x12033c +/* [RW 2] Endian mode for qm */ +#define PXP2_REG_RQ_QM_ENDIAN_M 0x120194 +#define PXP2_REG_RQ_QM_FIRST_ILT 0x120634 +#define PXP2_REG_RQ_QM_LAST_ILT 0x120638 +/* [RW 4] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k; + * -128k; -256k; -512k; -1M; -2M; 0-4M */ +#define PXP2_REG_RQ_QM_P_SIZE 0x120050 +/* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */ +#define PXP2_REG_RQ_RBC_DONE 0x1201b0 +/* [RW 3] Max burst size filed for read requests port 0; 000 - 128B; + * 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ +#define PXP2_REG_RQ_RD_MBS0 0x120160 +/* [RW 3] Max burst size filed for read requests port 1; 000 - 128B; + * 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ +#define PXP2_REG_RQ_RD_MBS1 0x120168 +/* [RW 2] Endian mode for src */ +#define PXP2_REG_RQ_SRC_ENDIAN_M 0x12019c +#define PXP2_REG_RQ_SRC_FIRST_ILT 0x12063c +#define PXP2_REG_RQ_SRC_LAST_ILT 0x120640 +/* [RW 4] page size in L2P table for SRC module; -4k; -8k; -16k; -32k; -64k; + * -128k; -256k; -512k; -1M; -2M; 0-4M */ +#define PXP2_REG_RQ_SRC_P_SIZE 0x12006c +/* [RW 2] Endian mode for tm */ +#define PXP2_REG_RQ_TM_ENDIAN_M 0x120198 +#define PXP2_REG_RQ_TM_FIRST_ILT 0x120644 +#define PXP2_REG_RQ_TM_LAST_ILT 0x120648 +/* [RW 4] page size in L2P table for TM module; -4k; -8k; -16k; -32k; -64k; + * -128k; -256k; -512k; -1M; -2M; 0-4M */ +#define PXP2_REG_RQ_TM_P_SIZE 0x120034 +/* [R 5] Number of entries in the ufifo; his fifo has l2p completions */ +#define PXP2_REG_RQ_UFIFO_NUM_OF_ENTRY 0x12080c +/* [RW 18] external first_mem_addr field in L2P table for USDM module port 0 */ +#define PXP2_REG_RQ_USDM0_EFIRST_MEM_ADDR 0x120094 +/* [R 8] Number of entries occupied by vq 0 in pswrq memory */ +#define PXP2_REG_RQ_VQ0_ENTRY_CNT 0x120810 +/* [R 8] Number of entries occupied by vq 10 in pswrq memory */ +#define PXP2_REG_RQ_VQ10_ENTRY_CNT 0x120818 +/* [R 8] Number of entries occupied by vq 11 in pswrq memory */ +#define PXP2_REG_RQ_VQ11_ENTRY_CNT 0x120820 +/* [R 8] Number of entries occupied by vq 12 in pswrq memory */ +#define PXP2_REG_RQ_VQ12_ENTRY_CNT 0x120828 +/* [R 8] Number of entries occupied by vq 13 in pswrq memory */ +#define PXP2_REG_RQ_VQ13_ENTRY_CNT 0x120830 +/* [R 8] Number of entries occupied by vq 14 in pswrq memory */ +#define PXP2_REG_RQ_VQ14_ENTRY_CNT 0x120838 +/* [R 8] Number of entries occupied by vq 15 in pswrq memory */ +#define PXP2_REG_RQ_VQ15_ENTRY_CNT 0x120840 +/* [R 8] Number of entries occupied by vq 16 in pswrq memory */ +#define PXP2_REG_RQ_VQ16_ENTRY_CNT 0x120848 +/* [R 8] Number of entries occupied by vq 17 in pswrq memory */ +#define PXP2_REG_RQ_VQ17_ENTRY_CNT 0x120850 +/* [R 8] Number of entries occupied by vq 18 in pswrq memory */ +#define PXP2_REG_RQ_VQ18_ENTRY_CNT 0x120858 +/* [R 8] Number of entries occupied by vq 19 in pswrq memory */ +#define PXP2_REG_RQ_VQ19_ENTRY_CNT 0x120860 +/* [R 8] Number of entries occupied by vq 1 in pswrq memory */ +#define PXP2_REG_RQ_VQ1_ENTRY_CNT 0x120868 +/* [R 8] Number of entries occupied by vq 20 in pswrq memory */ +#define PXP2_REG_RQ_VQ20_ENTRY_CNT 0x120870 +/* [R 8] Number of entries occupied by vq 21 in pswrq memory */ +#define PXP2_REG_RQ_VQ21_ENTRY_CNT 0x120878 +/* [R 8] Number of entries occupied by vq 22 in pswrq memory */ +#define PXP2_REG_RQ_VQ22_ENTRY_CNT 0x120880 +/* [R 8] Number of entries occupied by vq 23 in pswrq memory */ +#define PXP2_REG_RQ_VQ23_ENTRY_CNT 0x120888 +/* [R 8] Number of entries occupied by vq 24 in pswrq memory */ +#define PXP2_REG_RQ_VQ24_ENTRY_CNT 0x120890 +/* [R 8] Number of entries occupied by vq 25 in pswrq memory */ +#define PXP2_REG_RQ_VQ25_ENTRY_CNT 0x120898 +/* [R 8] Number of entries occupied by vq 26 in pswrq memory */ +#define PXP2_REG_RQ_VQ26_ENTRY_CNT 0x1208a0 +/* [R 8] Number of entries occupied by vq 27 in pswrq memory */ +#define PXP2_REG_RQ_VQ27_ENTRY_CNT 0x1208a8 +/* [R 8] Number of entries occupied by vq 28 in pswrq memory */ +#define PXP2_REG_RQ_VQ28_ENTRY_CNT 0x1208b0 +/* [R 8] Number of entries occupied by vq 29 in pswrq memory */ +#define PXP2_REG_RQ_VQ29_ENTRY_CNT 0x1208b8 +/* [R 8] Number of entries occupied by vq 2 in pswrq memory */ +#define PXP2_REG_RQ_VQ2_ENTRY_CNT 0x1208c0 +/* [R 8] Number of entries occupied by vq 30 in pswrq memory */ +#define PXP2_REG_RQ_VQ30_ENTRY_CNT 0x1208c8 +/* [R 8] Number of entries occupied by vq 31 in pswrq memory */ +#define PXP2_REG_RQ_VQ31_ENTRY_CNT 0x1208d0 +/* [R 8] Number of entries occupied by vq 3 in pswrq memory */ +#define PXP2_REG_RQ_VQ3_ENTRY_CNT 0x1208d8 +/* [R 8] Number of entries occupied by vq 4 in pswrq memory */ +#define PXP2_REG_RQ_VQ4_ENTRY_CNT 0x1208e0 +/* [R 8] Number of entries occupied by vq 5 in pswrq memory */ +#define PXP2_REG_RQ_VQ5_ENTRY_CNT 0x1208e8 +/* [R 8] Number of entries occupied by vq 6 in pswrq memory */ +#define PXP2_REG_RQ_VQ6_ENTRY_CNT 0x1208f0 +/* [R 8] Number of entries occupied by vq 7 in pswrq memory */ +#define PXP2_REG_RQ_VQ7_ENTRY_CNT 0x1208f8 +/* [R 8] Number of entries occupied by vq 8 in pswrq memory */ +#define PXP2_REG_RQ_VQ8_ENTRY_CNT 0x120900 +/* [R 8] Number of entries occupied by vq 9 in pswrq memory */ +#define PXP2_REG_RQ_VQ9_ENTRY_CNT 0x120908 +/* [RW 3] Max burst size filed for write requests port 0; 000 - 128B; + * 001:256B; 010: 512B; */ +#define PXP2_REG_RQ_WR_MBS0 0x12015c +/* [RW 3] Max burst size filed for write requests port 1; 000 - 128B; + * 001:256B; 010: 512B; */ +#define PXP2_REG_RQ_WR_MBS1 0x120164 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_CDU_MPS 0x1205f0 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_CSDM_MPS 0x1205d0 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_DBG_MPS 0x1205e8 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_DMAE_MPS 0x1205ec +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_HC_MPS 0x1205c8 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_QM_MPS 0x1205dc +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_SRC_MPS 0x1205e4 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_TM_MPS 0x1205e0 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_TSDM_MPS 0x1205d4 +/* [RW 9] a. When pxp2.wr_th_mode_usdmdp=0 (E1.5-65 mode) should be + * initialized to (MPS/32); b. When pxp2.wr_th_mode_usdmdp=1 (E1.5-90; + * enhanced mode) and pxp2.wr_usdmdp_outst_req is different than default (3) + * should be initialized to (pxp2.wr_usdmdp_outst_req x MPS/32); when + * pxp2.wr_usdmdp_outst_req is 3 the reset value is the correct + * configuration */ +#define PXP2_REG_WR_USDMDP_TH 0x120348 +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_USDM_MPS 0x1205cc +/* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the + * buffer reaches this number has_payload will be asserted. 1024B is not a + * real MPS; it is a way of indicating that the client needs to wait for EOP + * before asserting has_payload. Register should be initialized according to + * has_payload value. */ +#define PXP2_REG_WR_XSDM_MPS 0x1205d8 +/* [R 1] debug only: Indication if PSWHST arbiter is idle */ +#define PXP_REG_HST_ARB_IS_IDLE 0x103004 +/* [R 8] debug only: A bit mask for all PSWHST arbiter clients. '1' means + * this client is waiting for the arbiter. */ +#define PXP_REG_HST_CLIENTS_WAITING_TO_ARB 0x103008 +/* [RW 1] When 1; doorbells are discarded and not passed to doorbell queue + * block. Should be used for close the gates. */ +#define PXP_REG_HST_DISCARD_DOORBELLS 0x1030a4 +/* [R 1] debug only: '1' means this PSWHST is discarding doorbells. This bit + * should update accoring to 'hst_discard_doorbells' register when the state + * machine is idle */ +#define PXP_REG_HST_DISCARD_DOORBELLS_STATUS 0x1030a0 +/* [RW 1] When 1; new internal writes arriving to the block are discarded. + * Should be used for close the gates. */ +#define PXP_REG_HST_DISCARD_INTERNAL_WRITES 0x1030a8 +/* [R 6] debug only: A bit mask for all PSWHST internal write clients. '1' + * means this PSWHST is discarding inputs from this client. Each bit should + * update accoring to 'hst_discard_internal_writes' register when the state + * machine is idle. */ +#define PXP_REG_HST_DISCARD_INTERNAL_WRITES_STATUS 0x10309c +/* [R 1] 1 - An incorrect access is logged. The valid bit is reset when the + * relevant interrupt register is read (PXP_REG_INT_STS_CLR_1) */ +#define PXP_REG_HST_INCORRECT_ACCESS_VALID 0x1030cc +/* [R 1] 1- permission violation data is logged. The valid bit is reset when + * the relevant interrupt register is read (PXP_REG_INT_STS_CLR_1) */ +#define PXP_REG_HST_PER_VIOLATION_VALID 0x1030e0 +/* [R 15] The FID of the first access to a disabled VF; the format is + * [14:12] - pfid; [11:6] - vfid; [5] - vf_valid; [4:1] - client (0 USDM; 1 + * CSDM; 2 XSDM; 3 TSDM; 4 HC; 5 GRC; 6 DQ; 7 RESERVED SPACE; 8 ATC); [0] - + * w_nr(0-read req; 1- write req). The data is written only when the valid + * bit is reset. and it is stays stable until it is reset by the read from + * interrupt_clr register */ +#define PXP_REG_HST_VF_DISABLED_ERROR_DATA 0x1030b8 +/* [R 1] 1 - An error request is logged and wasn't handled yet. The valid + * bit is reset when the relevant interrupt register is read + * (PXP_REG_INT_STS_CLR_1) */ +#define PXP_REG_HST_VF_DISABLED_ERROR_VALID 0x1030bc +/* [RW 7] Indirect access to the permission table. The fields are : {Valid; + * VFID[5:0]} */ +#define PXP_REG_HST_ZONE_PERMISSION_TABLE 0x103400 +/* [RW 32] Interrupt mask register #0 read/write */ +#define PXP_REG_PXP_INT_MASK_0 0x103074 +#define PXP_REG_PXP_INT_MASK_1 0x103084 +/* [R 32] Interrupt register #0 read */ +#define PXP_REG_PXP_INT_STS_0 0x103068 +#define PXP_REG_PXP_INT_STS_1 0x103078 +/* [RC 32] Interrupt register #0 read clear */ +#define PXP_REG_PXP_INT_STS_CLR_0 0x10306c +#define PXP_REG_PXP_INT_STS_CLR_1 0x10307c +/* [RW 27] Parity mask register #0 read/write */ +#define PXP_REG_PXP_PRTY_MASK 0x103094 +/* [R 27] Parity register #0 read */ +#define PXP_REG_PXP_PRTY_STS 0x103088 +/* [RC 27] Parity register #0 read clear */ +#define PXP_REG_PXP_PRTY_STS_CLR 0x10308c +/* [RW 32] The base logical address (in bytes) of each physical queue. The + * index I represents the physical queue number. The 12 lsbs are ignore and + * considered zero so practically there are only 20 bits in this register; + * queues 63-0 */ +#define QM_REG_BASEADDR 0x168900 +/* [R 32] NOT USED */ +#define QM_REG_BASEADDR_EXT_A 0x16e100 +/* [R 18] The credit value for byte credit 0. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD0 0x16e6fc +/* [R 18] The credit value for byte credit 1. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD1 0x16e700 +/* [R 18] The credit value for byte credit 2. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD2 0x16e704 +/* [R 18] The credit value for byte credit 3. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD3 0x16e7ac +/* [R 18] The credit value for byte credit 4. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD4 0x16e7b0 +/* [R 18] The credit value for byte credit 5. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD5 0x16e7b4 +/* [R 18] The credit value for byte credit 6. The value is 2s complement + * value (i.e. msb is used for the sign). */ +#define QM_REG_BYTECRD6 0x16e7b8 +/* [R 32] NOT USED - removed for E3 B0 */ +#define QM_REG_BYTECRDCMDQ_0 0x16e6e8 +/* [RC 32] byte credit update error register; b2-b0: byte credit id (pbf + * error); b3 - reserved (zero filled); b6-b4: byte credit id (storm + * increment error); b7 - reserved (zero filled); b10-b8: byte credit id + * (storm decrement error); b11 - reserved (zero filled); b12: pbf error + * valid; b13: storm increment error valid; b14: storm decrement error + * valid; b15: reserved; b22-b16: byte credit warning (warning=decremented + * below zero). mask bit per voq counter; b31-b23: reserved; NOTE: VOQ id-s + * represent HW */ +#define QM_REG_BYTECRDERRREG 0x16e708 +/* [RW 17] The initial byte credit value for all counters */ +#define QM_REG_BYTECRDINITVAL 0x168238 +/* [RW 20] The number of connections divided by 16 which dictates the size + * of each queue which belongs to even function number. */ +#define QM_REG_CONNNUM_0 0x168020 +/* [R 6] Keep the fill level of the fifo from write client 4 */ +#define QM_REG_CQM_WRC_FIFOLVL 0x168018 +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ0 */ +#define QM_REG_FWVOQ0TOHWVOQ 0x16e7bc +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ1 */ +#define QM_REG_FWVOQ1TOHWVOQ 0x16e7c0 +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ2 */ +#define QM_REG_FWVOQ2TOHWVOQ 0x16e7c4 +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ3 */ +#define QM_REG_FWVOQ3TOHWVOQ 0x16e7c8 +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ4 */ +#define QM_REG_FWVOQ4TOHWVOQ 0x16e7cc +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ5 */ +#define QM_REG_FWVOQ5TOHWVOQ 0x16e7d0 +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ6 */ +#define QM_REG_FWVOQ6TOHWVOQ 0x16e7d4 +/* [RW 3] Describes the HW (real) VOQ id (id-s 0-6 used for HW TX VOQ-s) of + * FW (virtual) VOQ7 */ +#define QM_REG_FWVOQ7TOHWVOQ 0x16e7d8 +/* [RC 1] A flag to indicate that overflow error occurred in one of the + * queues. */ +#define QM_REG_OVFERROR 0x16805c +/* [RC 6] the Q were the qverflow occurs */ +#define QM_REG_OVFQNUM 0x168058 +/* [R 16] Pause state for physical queues 15-0 */ +#define QM_REG_PAUSESTATE0 0x168410 +/* [R 16] Pause state for physical queues 31-16 */ +#define QM_REG_PAUSESTATE1 0x168414 +/* [R 16] Pause state for physical queues 47-32 */ +#define QM_REG_PAUSESTATE2 0x16e684 +/* [R 16] Pause state for physical queues 63-48 */ +#define QM_REG_PAUSESTATE3 0x16e688 +/* [R 16] NOT USED */ +#define QM_REG_PAUSESTATE4 0x16e68c +/* [R 16] NOT USED */ +#define QM_REG_PAUSESTATE5 0x16e690 +/* [R 16] NOT USED */ +#define QM_REG_PAUSESTATE6 0x16e694 +/* [R 16] NOT USED */ +#define QM_REG_PAUSESTATE7 0x16e698 +#define QM_REG_PF_EN 0x16e70c +/* [R 24] The number of tasks stored in the QM for the PF. only even + * functions are valid in E2 (odd I registers will be hard wired to 0) */ +#define QM_REG_PF_USG_CNT_0 0x16e040 +/* [R 16] NOT USED */ +#define QM_REG_PORT0BYTECRD 0x168300 +/* [R 16] NOT USED */ +#define QM_REG_PORT1BYTECRD 0x168304 +/* [WB 54] Pointer Table Memory for queues 63-0; The mapping is as follow: + * ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read + * bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */ +#define QM_REG_PTRTBL 0x168a00 +/* [R 54] NOT USED */ +#define QM_REG_PTRTBL_EXT_A 0x16e200 +/* [RW 14] Interrupt mask register #0 read/write */ +#define QM_REG_QM_INT_MASK 0x168444 +/* [R 14] Interrupt register #0 read */ +#define QM_REG_QM_INT_STS 0x168438 +/* [RC 14] Interrupt register #0 read clear */ +#define QM_REG_QM_INT_STS_CLR 0x16843c +/* [RW 12] Parity mask register #0 read/write */ +#define QM_REG_QM_PRTY_MASK 0x168454 +/* [R 12] Parity register #0 read */ +#define QM_REG_QM_PRTY_STS 0x168448 +/* [RC 12] Parity register #0 read clear */ +#define QM_REG_QM_PRTY_STS_CLR 0x16844c +/* [R 32] Current queues in pipeline: Queues from 32 to 63 */ +#define QM_REG_QSTATUS_HIGH 0x16802c +/* [R 32] NOT USED */ +#define QM_REG_QSTATUS_HIGH_EXT_A 0x16e408 +/* [R 32] Current queues in pipeline: Queues from 0 to 31 */ +#define QM_REG_QSTATUS_LOW 0x168028 +/* [R 32] NOT USED */ +#define QM_REG_QSTATUS_LOW_EXT_A 0x16e404 +/* [R 24] The number of tasks queued for each queue; queues 63-0 */ +#define QM_REG_QTASKCTR_0 0x168308 +/* [R 24] NOT USED */ +#define QM_REG_QTASKCTR_EXT_A_0 0x16e584 +/* [RW 4] Queue tied to VOQ */ +#define QM_REG_QVOQIDX_0 0x1680f4 +/* [RW 1] Initialization bit command */ +#define QM_REG_SOFT_RESET 0x168428 +/* [R 6] Keep the fill level of the fifo from write client 3 */ +#define QM_REG_TQM_WRC_FIFOLVL 0x168010 +/* [R 6] Keep the fill level of the fifo from write client 2 */ +#define QM_REG_UQM_WRC_FIFOLVL 0x168008 +/* [RC 32] VOQ credit update error register; b3-b0: voq id (pbf error); + * b7-b4: voq id (storm increment error); b11-b8: voq id (storm decrement + * error); b12: pbf error valid; b13: storm increment error valid; b14: + * storm decrement error valid; b15: reserved; b27-b16: voq warning + * (warning=decremented below zero). mask bit per voq counter; b31-b28: + * reserved; NOTE: VOQ id-s represent HW VOQ id */ +#define QM_REG_VOQCRDERRREG 0x168408 +/* [R 17] The credit value for each VOQ. The value is 2s complement value + * (i.e. msb is used for the sign). */ +#define QM_REG_VOQCREDIT_0 0x1682d0 +#define QM_REG_VOQCREDIT_1 0x1682d4 +#define QM_REG_VOQCREDIT_2 0x1682d8 +#define QM_REG_VOQCREDIT_3 0x1682dc +#define QM_REG_VOQCREDIT_4 0x1682e0 +#define QM_REG_VOQCREDIT_5 0x1682e4 +#define QM_REG_VOQCREDIT_6 0x1682e8 +/* [RW 16] The init and maximum credit for each VoQ */ +#define QM_REG_VOQINITCREDIT_0 0x168060 +#define QM_REG_VOQINITCREDIT_1 0x168064 +#define QM_REG_VOQINITCREDIT_2 0x168068 +#define QM_REG_VOQINITCREDIT_3 0x16806c +#define QM_REG_VOQINITCREDIT_4 0x168070 +#define QM_REG_VOQINITCREDIT_5 0x168074 +#define QM_REG_VOQINITCREDIT_6 0x168078 +/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */ +#define QM_REG_VOQQMASK_0_LSB 0x168240 +/* [R 6] Keep the fill level of the fifo from write client 1 */ +#define QM_REG_XQM_WRC_FIFOLVL 0x168000 +/* [W 1] reset to parity interrupt */ +#define SEM_FAST_REG_PARITY_RST 0x18840 +/* [RW 1] Interrupt mask register #0 read/write */ +#define SEM_FAST_REG_SEM_FAST_INT_MASK 0x1fff0 +/* [R 1] Interrupt register #0 read */ +#define SEM_FAST_REG_SEM_FAST_INT_STS 0x1fffc +/* [RC 1] Interrupt register #0 read clear */ +#define SEM_FAST_REG_SEM_FAST_INT_STS_CLR 0x1fff8 +/* [RW 1] Parity mask register #0 read/write */ +#define SEM_FAST_REG_SEM_FAST_PRTY_MASK 0x1ffe0 +/* [R 1] Parity register #0 read */ +#define SEM_FAST_REG_SEM_FAST_PRTY_STS 0x1ffec +/* [RC 1] Parity register #0 read clear */ +#define SEM_FAST_REG_SEM_FAST_PRTY_STS_CLR 0x1ffe8 +#define SRC_REG_COUNTFREE0 0x40500 +#define SRC_REG_FIRSTFREE0 0x40510 +#define SRC_REG_KEYRSS0_0 0x40408 +#define SRC_REG_KEYRSS0_7 0x40424 +#define SRC_REG_KEYSEARCH_0 0x40458 +#define SRC_REG_KEYSEARCH_1 0x4045c +#define SRC_REG_KEYSEARCH_2 0x40460 +#define SRC_REG_KEYSEARCH_3 0x40464 +#define SRC_REG_KEYSEARCH_4 0x40468 +#define SRC_REG_KEYSEARCH_5 0x4046c +#define SRC_REG_KEYSEARCH_6 0x40470 +#define SRC_REG_KEYSEARCH_7 0x40474 +#define SRC_REG_KEYSEARCH_8 0x40478 +#define SRC_REG_KEYSEARCH_9 0x4047c +#define SRC_REG_LASTFREE0 0x40530 +#define SRC_REG_NUMBER_HASH_BITS0 0x40400 +/* [RW 1] Reset internal state machines. */ +#define SRC_REG_SOFT_RST 0x4049c +/* [RW 3] Interrupt mask register #0 read/write */ +#define SRC_REG_SRC_INT_MASK 0x404b8 +/* [R 3] Interrupt register #0 read */ +#define SRC_REG_SRC_INT_STS 0x404ac +/* [RC 3] Interrupt register #0 read clear */ +#define SRC_REG_SRC_INT_STS_CLR 0x404b0 +/* [RW 3] Parity mask register #0 read/write */ +#define SRC_REG_SRC_PRTY_MASK 0x404c8 +/* [R 3] Parity register #0 read */ +#define SRC_REG_SRC_PRTY_STS 0x404bc +/* [RC 3] Parity register #0 read clear */ +#define SRC_REG_SRC_PRTY_STS_CLR 0x404c0 +/* [R 4] Used to read the value of the XX protection CAM occupancy counter. */ +#define TCM_REG_CAM_OCCUP 0x5017c +/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 1 at start-up. */ +#define TCM_REG_CFC_INIT_CRD 0x50204 +/* [RC 1] Message length mismatch (relative to last indication) at the In#9 + * interface. */ +#define TCM_REG_CSEM_LENGTH_MIS 0x50174 +/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define TCM_REG_FIC0_INIT_CRD 0x5020c +/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define TCM_REG_FIC1_INIT_CRD 0x50210 +/* [RC 1] Message length mismatch (relative to last indication) at the In#7 + * interface. */ +#define TCM_REG_PBF_LENGTH_MIS 0x5016c +/* [RW 1] Input prs Interface enable. If 0 - the valid input is disregarded; + * acknowledge output is deasserted; all other signals are treated as usual; + * if 1 - normal activity. */ +#define TCM_REG_PRS_IFEN 0x50020 +/* [RC 1] Message length mismatch (relative to last indication) at the In#6 + * interface. */ +#define TCM_REG_PRS_LENGTH_MIS 0x50168 +/* [RC 1] Message length mismatch (relative to last indication) at the STORM + * interface. */ +#define TCM_REG_STORM_LENGTH_MIS 0x50160 +/* [RW 11] Interrupt mask register #0 read/write */ +#define TCM_REG_TCM_INT_MASK 0x501dc +/* [R 11] Interrupt register #0 read */ +#define TCM_REG_TCM_INT_STS 0x501d0 +/* [RC 11] Interrupt register #0 read clear */ +#define TCM_REG_TCM_INT_STS_CLR 0x501d4 +/* [RW 27] Parity mask register #0 read/write */ +#define TCM_REG_TCM_PRTY_MASK 0x501ec +/* [R 27] Parity register #0 read */ +#define TCM_REG_TCM_PRTY_STS 0x501e0 +/* [RC 27] Parity register #0 read clear */ +#define TCM_REG_TCM_PRTY_STS_CLR 0x501e4 +/* [RW 6] QM output initial credit. Max credit available - 32.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 32 at start-up. */ +#define TCM_REG_TQM_INIT_CRD 0x5021c +/* [RC 1] Message length mismatch (relative to last indication) at the SDM + * interface. */ +#define TCM_REG_TSDM_LENGTH_MIS 0x50164 +/* [RC 1] Message length mismatch (relative to last indication) at the In#8 + * interface. */ +#define TCM_REG_USEM_LENGTH_MIS 0x50170 +/* [RW 21] Indirect access to the descriptor table of the XX protection + * mechanism. The fields are: [5:0] - length of the message; 15:6] - message + * pointer; 20:16] - next pointer. */ +#define TCM_REG_XX_DESCR_TABLE 0x50280 +#define TCM_REG_XX_DESCR_TABLE_SIZE 29 +/* [R 6] Use to read the value of XX protection Free counter. */ +#define TCM_REG_XX_FREE 0x50178 +#define TM_REG_EN_LINEAR0_TIMER 0x164014 +/* [RW 18] Linear0 Max active cid (in banks of 32 entries). */ +#define TM_REG_LIN0_MAX_ACTIVE_CID 0x164048 +/* [ST 16] Linear0 Number of scans counter. */ +#define TM_REG_LIN0_NUM_SCANS 0x1640a0 +#define TM_REG_LIN0_SCAN_ON 0x1640d0 +/* [RW 24] Linear0 array scan timeout. */ +#define TM_REG_LIN0_SCAN_TIME 0x16403c +#define TM_REG_LIN0_VNIC_UC 0x164128 +/* [RW 1] Interrupt mask register #0 read/write */ +#define TM_REG_TM_INT_MASK 0x1640fc +/* [R 1] Interrupt register #0 read */ +#define TM_REG_TM_INT_STS 0x1640f0 +/* [RC 1] Interrupt register #0 read clear */ +#define TM_REG_TM_INT_STS_CLR 0x1640f4 +/* [RW 7] Parity mask register #0 read/write */ +#define TM_REG_TM_PRTY_MASK 0x16410c +/* [R 7] Parity register #0 read */ +#define TM_REG_TM_PRTY_STS 0x164100 +/* [RC 7] Parity register #0 read clear */ +#define TM_REG_TM_PRTY_STS_CLR 0x164104 +#define TSDM_REG_ENABLE_IN1 0x42238 +/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ +#define TSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x42548 +/* [R 1] parser fifo empty in sdm_sync block */ +#define TSDM_REG_SYNC_PARSER_EMPTY 0x42550 +/* [R 1] parser serial fifo empty in sdm_sync block */ +#define TSDM_REG_SYNC_SYNC_EMPTY 0x42558 +/* [RW 32] Interrupt mask register #0 read/write */ +#define TSDM_REG_TSDM_INT_MASK_0 0x4229c +#define TSDM_REG_TSDM_INT_MASK_1 0x422ac +/* [R 32] Interrupt register #0 read */ +#define TSDM_REG_TSDM_INT_STS_0 0x42290 +#define TSDM_REG_TSDM_INT_STS_1 0x422a0 +/* [RC 32] Interrupt register #0 read clear */ +#define TSDM_REG_TSDM_INT_STS_CLR_0 0x42294 +#define TSDM_REG_TSDM_INT_STS_CLR_1 0x422a4 +/* [RW 11] Parity mask register #0 read/write */ +#define TSDM_REG_TSDM_PRTY_MASK 0x422bc +/* [R 11] Parity register #0 read */ +#define TSDM_REG_TSDM_PRTY_STS 0x422b0 +/* [RC 11] Parity register #0 read clear */ +#define TSDM_REG_TSDM_PRTY_STS_CLR 0x422b4 +/* [RW 32] This address space contains all registers and memories that are + * placed in SEM_FAST block. The SEM_FAST registers are described in + * appendix B. In order to access the SEM_FAST registers the base address + * TSEM_REGISTERS_FAST_MEMORY (Offset: 0x1a0000) should be added to each + * SEM_FAST register offset. */ +#define TSEM_REG_FAST_MEMORY 0x1a0000 +/* [RW 15] Interrupt table Read and write access to it is not possible in + * the middle of the work */ +#define TSEM_REG_INT_TABLE 0x180400 +/* [WB 128] Debug only. Passive buffer memory */ +#define TSEM_REG_PASSIVE_BUFFER 0x181000 +/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ +#define TSEM_REG_PRAM 0x1c0000 +/* [R 20] Valid sleeping threads indication have bit per thread */ +#define TSEM_REG_SLEEP_THREADS_VALID 0x18026c +/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ +#define TSEM_REG_SLOW_EXT_STORE_EMPTY 0x1802a0 +/* [RW 32] Interrupt mask register #0 read/write */ +#define TSEM_REG_TSEM_INT_MASK_0 0x180100 +#define TSEM_REG_TSEM_INT_MASK_1 0x180110 +/* [R 32] Interrupt register #0 read */ +#define TSEM_REG_TSEM_INT_STS_0 0x1800f4 +#define TSEM_REG_TSEM_INT_STS_1 0x180104 +/* [RC 32] Interrupt register #0 read clear */ +#define TSEM_REG_TSEM_INT_STS_CLR_0 0x1800f8 +#define TSEM_REG_TSEM_INT_STS_CLR_1 0x180108 +/* [RW 32] Parity mask register #0 read/write */ +#define TSEM_REG_TSEM_PRTY_MASK_0 0x180120 +#define TSEM_REG_TSEM_PRTY_MASK_1 0x180130 +/* [R 32] Parity register #0 read */ +#define TSEM_REG_TSEM_PRTY_STS_0 0x180114 +#define TSEM_REG_TSEM_PRTY_STS_1 0x180124 +/* [RC 32] Parity register #0 read clear */ +#define TSEM_REG_TSEM_PRTY_STS_CLR_0 0x180118 +#define TSEM_REG_TSEM_PRTY_STS_CLR_1 0x180128 +/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 + * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ +#define TSEM_REG_VFPF_ERR_NUM 0x180380 +/* [R 5] Used to read the XX protection CAM occupancy counter. */ +#define UCM_REG_CAM_OCCUP 0xe0170 +/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 1 at start-up. */ +#define UCM_REG_CFC_INIT_CRD 0xe0204 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the csem interface is detected. */ +#define UCM_REG_CSEM_LENGTH_MIS 0xe0160 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the dorq interface is detected. */ +#define UCM_REG_DORQ_LENGTH_MIS 0xe0168 +/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define UCM_REG_FIC0_INIT_CRD 0xe020c +/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define UCM_REG_FIC1_INIT_CRD 0xe0210 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the STORM interface is detected. */ +#define UCM_REG_STORM_LENGTH_MIS 0xe0154 +/* [RW 4] Timers output initial credit. Max credit available - 15.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 4 at start-up. */ +#define UCM_REG_TM_INIT_CRD 0xe021c +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the tsem interface is detected. */ +#define UCM_REG_TSEM_LENGTH_MIS 0xe015c +/* [RW 11] Interrupt mask register #0 read/write */ +#define UCM_REG_UCM_INT_MASK 0xe01d4 +/* [R 11] Interrupt register #0 read */ +#define UCM_REG_UCM_INT_STS 0xe01c8 +/* [RC 11] Interrupt register #0 read clear */ +#define UCM_REG_UCM_INT_STS_CLR 0xe01cc +/* [RW 27] Parity mask register #0 read/write */ +#define UCM_REG_UCM_PRTY_MASK 0xe01e4 +/* [R 27] Parity register #0 read */ +#define UCM_REG_UCM_PRTY_STS 0xe01d8 +/* [RC 27] Parity register #0 read clear */ +#define UCM_REG_UCM_PRTY_STS_CLR 0xe01dc +/* [RW 6] QM output initial credit. Max credit available - 32.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 32 at start-up. */ +#define UCM_REG_UQM_INIT_CRD 0xe0220 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the SDM interface is detected. */ +#define UCM_REG_USDM_LENGTH_MIS 0xe0158 +/* [RC 1] Set when the message length mismatch (relative to last indication) + * at the xsem interface isdetected. */ +#define UCM_REG_XSEM_LENGTH_MIS 0xe0164 +/* [RW 20] Indirect access to the descriptor table of the XX protection + * mechanism. The fields are:[5:0] - message length; 14:6] - message + * pointer; 19:15] - next pointer. */ +#define UCM_REG_XX_DESCR_TABLE 0xe0280 +#define UCM_REG_XX_DESCR_TABLE_SIZE 27 +/* [R 6] Use to read the XX protection Free counter. */ +#define UCM_REG_XX_FREE 0xe016c +#define UMAC_COMMAND_CONFIG_REG_HD_ENA (0x1<<10) +#define UMAC_COMMAND_CONFIG_REG_IGNORE_TX_PAUSE (0x1<<28) +#define UMAC_COMMAND_CONFIG_REG_LOOP_ENA (0x1<<15) +#define UMAC_COMMAND_CONFIG_REG_NO_LGTH_CHECK (0x1<<24) +#define UMAC_COMMAND_CONFIG_REG_PAD_EN (0x1<<5) +#define UMAC_COMMAND_CONFIG_REG_PAUSE_IGNORE (0x1<<8) +#define UMAC_COMMAND_CONFIG_REG_PROMIS_EN (0x1<<4) +#define UMAC_COMMAND_CONFIG_REG_RX_ENA (0x1<<1) +#define UMAC_COMMAND_CONFIG_REG_SW_RESET (0x1<<13) +#define UMAC_COMMAND_CONFIG_REG_TX_ENA (0x1<<0) +#define UMAC_REG_COMMAND_CONFIG 0x8 +/* [RW 16] This is the duration for which MAC must wait to go back to ACTIVE + * state from LPI state when it receives packet for transmission. The + * decrement unit is 1 micro-second. */ +#define UMAC_REG_EEE_WAKE_TIMER 0x6c +/* [RW 32] Register Bit 0 refers to Bit 16 of the MAC address; Bit 1 refers + * to bit 17 of the MAC address etc. */ +#define UMAC_REG_MAC_ADDR0 0xc +/* [RW 16] Register Bit 0 refers to Bit 0 of the MAC address; Register Bit 1 + * refers to Bit 1 of the MAC address etc. Bits 16 to 31 are reserved. */ +#define UMAC_REG_MAC_ADDR1 0x10 +/* [RW 14] Defines a 14-Bit maximum frame length used by the MAC receive + * logic to check frames. */ +#define UMAC_REG_MAXFR 0x14 +#define UMAC_REG_UMAC_EEE_CTRL 0x64 +#define UMAC_UMAC_EEE_CTRL_REG_EEE_EN (0x1<<3) +/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ +#define USDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0xc4550 +/* [R 1] parser fifo empty in sdm_sync block */ +#define USDM_REG_SYNC_PARSER_EMPTY 0xc4558 +/* [R 1] parser serial fifo empty in sdm_sync block */ +#define USDM_REG_SYNC_SYNC_EMPTY 0xc4560 +/* [RW 32] Interrupt mask register #0 read/write */ +#define USDM_REG_USDM_INT_MASK_0 0xc42a0 +#define USDM_REG_USDM_INT_MASK_1 0xc42b0 +/* [R 32] Interrupt register #0 read */ +#define USDM_REG_USDM_INT_STS_0 0xc4294 +#define USDM_REG_USDM_INT_STS_1 0xc42a4 +/* [RC 32] Interrupt register #0 read clear */ +#define USDM_REG_USDM_INT_STS_CLR_0 0xc4298 +#define USDM_REG_USDM_INT_STS_CLR_1 0xc42a8 +/* [RW 11] Parity mask register #0 read/write */ +#define USDM_REG_USDM_PRTY_MASK 0xc42c0 +/* [R 11] Parity register #0 read */ +#define USDM_REG_USDM_PRTY_STS 0xc42b4 +/* [RC 11] Parity register #0 read clear */ +#define USDM_REG_USDM_PRTY_STS_CLR 0xc42b8 +/* [RW 32] This address space contains all registers and memories that are + * placed in SEM_FAST block. The SEM_FAST registers are described in + * appendix B. In order to access the SEM_FAST registers the base address + * USEM_REGISTERS_FAST_MEMORY (Offset: 0x320000) should be added to each + * SEM_FAST register offset. */ +#define USEM_REG_FAST_MEMORY 0x320000 +/* [RW 15] Interrupt table Read and write access to it is not possible in + * the middle of the work */ +#define USEM_REG_INT_TABLE 0x300400 +/* [WB 128] Debug only. Passive buffer memory */ +#define USEM_REG_PASSIVE_BUFFER 0x302000 +/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ +#define USEM_REG_PRAM 0x340000 +/* [R 20] Valid sleeping threads indication have bit per thread */ +#define USEM_REG_SLEEP_THREADS_VALID 0x30026c +/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ +#define USEM_REG_SLOW_EXT_STORE_EMPTY 0x3002a0 +/* [RW 32] Interrupt mask register #0 read/write */ +#define USEM_REG_USEM_INT_MASK_0 0x300110 +#define USEM_REG_USEM_INT_MASK_1 0x300120 +/* [R 32] Interrupt register #0 read */ +#define USEM_REG_USEM_INT_STS_0 0x300104 +#define USEM_REG_USEM_INT_STS_1 0x300114 +/* [RC 32] Interrupt register #0 read clear */ +#define USEM_REG_USEM_INT_STS_CLR_0 0x300108 +#define USEM_REG_USEM_INT_STS_CLR_1 0x300118 +/* [RW 32] Parity mask register #0 read/write */ +#define USEM_REG_USEM_PRTY_MASK_0 0x300130 +#define USEM_REG_USEM_PRTY_MASK_1 0x300140 +/* [R 32] Parity register #0 read */ +#define USEM_REG_USEM_PRTY_STS_0 0x300124 +#define USEM_REG_USEM_PRTY_STS_1 0x300134 +/* [RC 32] Parity register #0 read clear */ +#define USEM_REG_USEM_PRTY_STS_CLR_0 0x300128 +#define USEM_REG_USEM_PRTY_STS_CLR_1 0x300138 +/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 + * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ +#define USEM_REG_VFPF_ERR_NUM 0x300380 +#define VFC_MEMORIES_RST_REG_CAM_RST (0x1<<0) +#define VFC_MEMORIES_RST_REG_RAM_RST (0x1<<1) +#define VFC_REG_MEMORIES_RST 0x1943c +/* [RW 1] Interrupt mask register #0 read/write */ +#define VFC_REG_VFC_INT_MASK 0x194f0 +/* [R 1] Interrupt register #0 read */ +#define VFC_REG_VFC_INT_STS 0x194fc +/* [RC 1] Interrupt register #0 read clear */ +#define VFC_REG_VFC_INT_STS_CLR 0x194f8 +/* [RW 1] Parity mask register #0 read/write */ +#define VFC_REG_VFC_PRTY_MASK 0x194e0 +/* [R 1] Parity register #0 read */ +#define VFC_REG_VFC_PRTY_STS 0x194ec +/* [RC 1] Parity register #0 read clear */ +#define VFC_REG_VFC_PRTY_STS_CLR 0x194e8 +/* [R 5] Used to read the XX protection CAM occupancy counter. */ +#define XCM_REG_CAM_OCCUP 0x20244 +/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 1 at start-up. */ +#define XCM_REG_CFC_INIT_CRD 0x20404 +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the csem interface. */ +#define XCM_REG_CSEM_LENGTH_MIS 0x20228 +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the dorq interface. */ +#define XCM_REG_DORQ_LENGTH_MIS 0x20230 +/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define XCM_REG_FIC0_INIT_CRD 0x2040c +/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 64 at start-up. */ +#define XCM_REG_FIC1_INIT_CRD 0x20410 +#define XCM_REG_GLB_DEL_ACK_MAX_CNT_0 0x20118 +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the nig0 interface. */ +#define XCM_REG_NIG0_LENGTH_MIS 0x20238 +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the nig1 interface. */ +#define XCM_REG_NIG1_LENGTH_MIS 0x2023c +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the pbf interface. */ +#define XCM_REG_PBF_LENGTH_MIS 0x20234 +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the STORM interface. */ +#define XCM_REG_STORM_LENGTH_MIS 0x2021c +/* [RW 4] Timers output initial credit. Max credit available - 15.Write + * writes the initial credit value; read returns the current value of the + * credit counter. Must be initialized to 4 at start-up. */ +#define XCM_REG_TM_INIT_CRD 0x2041c +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the tsem interface. */ +#define XCM_REG_TSEM_LENGTH_MIS 0x20224 +/* [RC 1] Message length mismatch (relative to last indication) at the usem + * interface. */ +#define XCM_REG_USEM_LENGTH_MIS 0x2022c +#define XCM_REG_WU_DA_CNT_CMD00 0x201d4 +#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00 0x201c4 +/* [RW 14] Interrupt mask register #0 read/write */ +#define XCM_REG_XCM_INT_MASK 0x202b4 +/* [R 14] Interrupt register #0 read */ +#define XCM_REG_XCM_INT_STS 0x202a8 +/* [RC 14] Interrupt register #0 read clear */ +#define XCM_REG_XCM_INT_STS_CLR 0x202ac +/* [RW 30] Parity mask register #0 read/write */ +#define XCM_REG_XCM_PRTY_MASK 0x202c4 +/* [R 30] Parity register #0 read */ +#define XCM_REG_XCM_PRTY_STS 0x202b8 +/* [RC 30] Parity register #0 read clear */ +#define XCM_REG_XCM_PRTY_STS_CLR 0x202bc +/* [RW 6] QM output initial credit. Max credit available - 32.Write writes + * the initial credit value; read returns the current value of the credit + * counter. Must be initialized to 32 at start-up. */ +#define XCM_REG_XQM_INIT_CRD 0x20420 +/* [RC 1] Set at message length mismatch (relative to last indication) at + * the SDM interface. */ +#define XCM_REG_XSDM_LENGTH_MIS 0x20220 +/* [RW 17] Indirect access to the descriptor table of the XX protection + * mechanism. The fields are: [5:0] - message length; 11:6] - message + * pointer; 16:12] - next pointer. */ +#define XCM_REG_XX_DESCR_TABLE 0x20480 +#define XCM_REG_XX_DESCR_TABLE_SIZE 32 +/* [R 6] Used to read the XX protection Free counter. */ +#define XCM_REG_XX_FREE 0x20240 +#define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS (0x1<<0) +#define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS (0x1<<1) +#define XMAC_CTRL_REG_LINE_LOCAL_LPBK (0x1<<2) +#define XMAC_CTRL_REG_RX_EN (0x1<<1) +#define XMAC_CTRL_REG_SOFT_RESET (0x1<<6) +#define XMAC_CTRL_REG_TX_EN (0x1<<0) +#define XMAC_CTRL_REG_XLGMII_ALIGN_ENB (0x1<<7) +#define XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN (0x1<<18) +#define XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN (0x1<<17) +#define XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON (0x1<<1) +#define XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN (0x1<<0) +#define XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN (0x1<<3) +#define XMAC_PFC_CTRL_HI_REG_RX_PFC_EN (0x1<<4) +#define XMAC_PFC_CTRL_HI_REG_TX_PFC_EN (0x1<<5) +#define XMAC_REG_CLEAR_RX_LSS_STATUS 0x60 +#define XMAC_REG_CTRL 0 +/* [RW 16] Upper 48 bits of ctrl_sa register. Used as the SA in PAUSE/PFC + * packets transmitted by the MAC */ +#define XMAC_REG_CTRL_SA_HI 0x2c +/* [RW 32] Lower 48 bits of ctrl_sa register. Used as the SA in PAUSE/PFC + * packets transmitted by the MAC */ +#define XMAC_REG_CTRL_SA_LO 0x28 +#define XMAC_REG_EEE_CTRL 0xd8 +#define XMAC_REG_EEE_TIMERS_HI 0xe4 +#define XMAC_REG_PAUSE_CTRL 0x68 +#define XMAC_REG_PFC_CTRL 0x70 +#define XMAC_REG_PFC_CTRL_HI 0x74 +#define XMAC_REG_RX_LSS_CTRL 0x50 +#define XMAC_REG_RX_LSS_STATUS 0x58 +/* [RW 14] Maximum packet size in receive direction; exclusive of preamble & + * CRC in strip mode */ +#define XMAC_REG_RX_MAX_SIZE 0x40 +#define XMAC_REG_TX_CTRL 0x20 +#define XMAC_RX_LSS_CTRL_REG_LOCAL_FAULT_DISABLE (0x1<<0) +#define XMAC_RX_LSS_CTRL_REG_REMOTE_FAULT_DISABLE (0x1<<1) +/* [W 17] Generate an operation after completion; bit-16 is + * AggVectIdx_valid; bits 15:8 are AggVectIdx; bits 7:5 are the TRIG and + * bits 4:0 are the T124Param[4:0] */ +#define XSDM_REG_OPERATION_GEN 0x1664c4 +/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */ +#define XSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY 0x166548 +/* [R 1] parser fifo empty in sdm_sync block */ +#define XSDM_REG_SYNC_PARSER_EMPTY 0x166550 +/* [R 1] parser serial fifo empty in sdm_sync block */ +#define XSDM_REG_SYNC_SYNC_EMPTY 0x166558 +/* [RW 32] Interrupt mask register #0 read/write */ +#define XSDM_REG_XSDM_INT_MASK_0 0x16629c +#define XSDM_REG_XSDM_INT_MASK_1 0x1662ac +/* [R 32] Interrupt register #0 read */ +#define XSDM_REG_XSDM_INT_STS_0 0x166290 +#define XSDM_REG_XSDM_INT_STS_1 0x1662a0 +/* [RC 32] Interrupt register #0 read clear */ +#define XSDM_REG_XSDM_INT_STS_CLR_0 0x166294 +#define XSDM_REG_XSDM_INT_STS_CLR_1 0x1662a4 +/* [RW 11] Parity mask register #0 read/write */ +#define XSDM_REG_XSDM_PRTY_MASK 0x1662bc +/* [R 11] Parity register #0 read */ +#define XSDM_REG_XSDM_PRTY_STS 0x1662b0 +/* [RC 11] Parity register #0 read clear */ +#define XSDM_REG_XSDM_PRTY_STS_CLR 0x1662b4 +/* [RW 32] This address space contains all registers and memories that are + * placed in SEM_FAST block. The SEM_FAST registers are described in + * appendix B. In order to access the SEM_FAST registers the base address + * XSEM_REGISTERS_FAST_MEMORY (Offset: 0x2a0000) should be added to each + * SEM_FAST register offset. */ +#define XSEM_REG_FAST_MEMORY 0x2a0000 +/* [RW 15] Interrupt table Read and write access to it is not possible in + * the middle of the work */ +#define XSEM_REG_INT_TABLE 0x280400 +/* [WB 128] Debug only. Passive buffer memory */ +#define XSEM_REG_PASSIVE_BUFFER 0x282000 +/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */ +#define XSEM_REG_PRAM 0x2c0000 +/* [R 20] Valid sleeping threads indication have bit per thread */ +#define XSEM_REG_SLEEP_THREADS_VALID 0x28026c +/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */ +#define XSEM_REG_SLOW_EXT_STORE_EMPTY 0x2802a0 +/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64 + * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */ +#define XSEM_REG_VFPF_ERR_NUM 0x280380 +/* [RW 32] Interrupt mask register #0 read/write */ +#define XSEM_REG_XSEM_INT_MASK_0 0x280110 +#define XSEM_REG_XSEM_INT_MASK_1 0x280120 +/* [R 32] Interrupt register #0 read */ +#define XSEM_REG_XSEM_INT_STS_0 0x280104 +#define XSEM_REG_XSEM_INT_STS_1 0x280114 +/* [RC 32] Interrupt register #0 read clear */ +#define XSEM_REG_XSEM_INT_STS_CLR_0 0x280108 +#define XSEM_REG_XSEM_INT_STS_CLR_1 0x280118 +/* [RW 32] Parity mask register #0 read/write */ +#define XSEM_REG_XSEM_PRTY_MASK_0 0x280130 +#define XSEM_REG_XSEM_PRTY_MASK_1 0x280140 +/* [R 32] Parity register #0 read */ +#define XSEM_REG_XSEM_PRTY_STS_0 0x280124 +#define XSEM_REG_XSEM_PRTY_STS_1 0x280134 +/* [RC 32] Parity register #0 read clear */ +#define XSEM_REG_XSEM_PRTY_STS_CLR_0 0x280128 +#define XSEM_REG_XSEM_PRTY_STS_CLR_1 0x280138 +#define MCPR_ACCESS_LOCK_LOCK (1L<<31) +#define MCPR_IMC_COMMAND_ENABLE (1L<<31) +#define MCPR_IMC_COMMAND_IMC_STATUS_BITSHIFT 16 +#define MCPR_IMC_COMMAND_OPERATION_BITSHIFT 28 +#define MCPR_IMC_COMMAND_TRANSFER_ADDRESS_BITSHIFT 8 +#define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0) +#define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1) +#define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0) +#define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0) +#define MCPR_NVM_COMMAND_DOIT (1L<<4) +#define MCPR_NVM_COMMAND_DONE (1L<<3) +#define MCPR_NVM_COMMAND_FIRST (1L<<7) +#define MCPR_NVM_COMMAND_LAST (1L<<8) +#define MCPR_NVM_COMMAND_WR (1L<<5) +#define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9) +#define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5) +#define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1) +#define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3) +#define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) +#define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3) +#define BIGMAC_REGISTER_RX_CONTROL (0x21<<3) +#define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3) +#define BIGMAC_REGISTER_RX_LSS_STATUS (0x43<<3) +#define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3) +#define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3) +#define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3) +#define BIGMAC_REGISTER_TX_CONTROL (0x07<<3) +#define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3) +#define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3) +#define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3) +#define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3) +#define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3) +#define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3) +#define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) +#define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3) +#define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3) +#define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3) +#define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3) +#define BIGMAC2_REGISTER_RX_LSS_STAT (0x3E<<3) +#define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3) +#define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3) +#define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3) +#define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3) +#define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3) +#define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3) +#define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3) +#define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3) +#define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3) +#define EMAC_LED_1000MB_OVERRIDE (1L<<1) +#define EMAC_LED_100MB_OVERRIDE (1L<<2) +#define EMAC_LED_10MB_OVERRIDE (1L<<3) +#define EMAC_LED_OVERRIDE (1L<<0) +#define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26) +#define EMAC_MDIO_COMM_COMMAND_READ_22 (2L<<26) +#define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26) +#define EMAC_MDIO_COMM_COMMAND_WRITE_22 (1L<<26) +#define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26) +#define EMAC_MDIO_COMM_DATA (0xffffL<<0) +#define EMAC_MDIO_COMM_START_BUSY (1L<<29) +#define EMAC_MDIO_MODE_AUTO_POLL (1L<<4) +#define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31) +#define EMAC_MDIO_MODE_CLOCK_CNT (0x3ffL<<16) +#define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16 +#define EMAC_MDIO_STATUS_10MB (1L<<1) +#define EMAC_MODE_25G_MODE (1L<<5) +#define EMAC_MODE_HALF_DUPLEX (1L<<1) +#define EMAC_MODE_PORT_GMII (2L<<2) +#define EMAC_MODE_PORT_MII (1L<<2) +#define EMAC_MODE_PORT_MII_10M (3L<<2) +#define EMAC_MODE_RESET (1L<<0) +#define EMAC_REG_EMAC_LED 0xc +#define EMAC_REG_EMAC_MAC_MATCH 0x10 +#define EMAC_REG_EMAC_MDIO_COMM 0xac +#define EMAC_REG_EMAC_MDIO_MODE 0xb4 +#define EMAC_REG_EMAC_MDIO_STATUS 0xb0 +#define EMAC_REG_EMAC_MODE 0x0 +#define EMAC_REG_EMAC_RX_MODE 0xc8 +#define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c +#define EMAC_REG_EMAC_RX_STAT_AC 0x180 +#define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4 +#define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23 +#define EMAC_REG_EMAC_TX_MODE 0xbc +#define EMAC_REG_EMAC_TX_STAT_AC 0x280 +#define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22 +#define EMAC_REG_RX_PFC_MODE 0x320 +#define EMAC_REG_RX_PFC_MODE_PRIORITIES (1L<<2) +#define EMAC_REG_RX_PFC_MODE_RX_EN (1L<<1) +#define EMAC_REG_RX_PFC_MODE_TX_EN (1L<<0) +#define EMAC_REG_RX_PFC_PARAM 0x324 +#define EMAC_REG_RX_PFC_PARAM_OPCODE_BITSHIFT 0 +#define EMAC_REG_RX_PFC_PARAM_PRIORITY_EN_BITSHIFT 16 +#define EMAC_REG_RX_PFC_STATS_XOFF_RCVD 0x328 +#define EMAC_REG_RX_PFC_STATS_XOFF_RCVD_COUNT (0xffff<<0) +#define EMAC_REG_RX_PFC_STATS_XOFF_SENT 0x330 +#define EMAC_REG_RX_PFC_STATS_XOFF_SENT_COUNT (0xffff<<0) +#define EMAC_REG_RX_PFC_STATS_XON_RCVD 0x32c +#define EMAC_REG_RX_PFC_STATS_XON_RCVD_COUNT (0xffff<<0) +#define EMAC_REG_RX_PFC_STATS_XON_SENT 0x334 +#define EMAC_REG_RX_PFC_STATS_XON_SENT_COUNT (0xffff<<0) +#define EMAC_RX_MODE_FLOW_EN (1L<<2) +#define EMAC_RX_MODE_KEEP_MAC_CONTROL (1L<<3) +#define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10) +#define EMAC_RX_MODE_PROMISCUOUS (1L<<8) +#define EMAC_RX_MODE_RESET (1L<<0) +#define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) +#define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) +#define EMAC_TX_MODE_FLOW_EN (1L<<4) +#define EMAC_TX_MODE_RESET (1L<<0) +#define MISC_REGISTERS_GPIO_0 0 +#define MISC_REGISTERS_GPIO_1 1 +#define MISC_REGISTERS_GPIO_2 2 +#define MISC_REGISTERS_GPIO_3 3 +#define MISC_REGISTERS_GPIO_CLR_POS 16 +#define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24) +#define MISC_REGISTERS_GPIO_FLOAT_POS 24 +#define MISC_REGISTERS_GPIO_HIGH 1 +#define MISC_REGISTERS_GPIO_INPUT_HI_Z 2 +#define MISC_REGISTERS_GPIO_INT_CLR_POS 24 +#define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR 0 +#define MISC_REGISTERS_GPIO_INT_OUTPUT_SET 1 +#define MISC_REGISTERS_GPIO_INT_SET_POS 16 +#define MISC_REGISTERS_GPIO_LOW 0 +#define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1 +#define MISC_REGISTERS_GPIO_OUTPUT_LOW 0 +#define MISC_REGISTERS_GPIO_PORT_SHIFT 4 +#define MISC_REGISTERS_GPIO_SET_POS 8 +#define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 +#define MISC_REGISTERS_RESET_REG_1_RST_BRB1 (0x1<<0) +#define MISC_REGISTERS_RESET_REG_1_RST_DORQ (0x1<<19) +#define MISC_REGISTERS_RESET_REG_1_RST_HC (0x1<<29) +#define MISC_REGISTERS_RESET_REG_1_RST_PXP (0x1<<26) +#define MISC_REGISTERS_RESET_REG_1_RST_PXPV (0x1<<27) +#define MISC_REGISTERS_RESET_REG_1_RST_QM (0x1<<17) +#define MISC_REGISTERS_RESET_REG_1_SET 0x584 +#define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598 +#define MISC_REGISTERS_RESET_REG_2_MSTAT0 (0x1<<24) +#define MISC_REGISTERS_RESET_REG_2_MSTAT1 (0x1<<25) +#define MISC_REGISTERS_RESET_REG_2_PGLC (0x1<<19) +#define MISC_REGISTERS_RESET_REG_2_RST_ATC (0x1<<17) +#define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0) +#define MISC_REGISTERS_RESET_REG_2_RST_BMAC1 (0x1<<1) +#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0 (0x1<<2) +#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE (0x1<<14) +#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1 (0x1<<3) +#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE (0x1<<15) +#define MISC_REGISTERS_RESET_REG_2_RST_GRC (0x1<<4) +#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B (0x1<<6) +#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CORE (0x1<<8) +#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CPU (0x1<<7) +#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5) +#define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE (0x1<<11) +#define MISC_REGISTERS_RESET_REG_2_RST_PCI_MDIO (0x1<<13) +#define MISC_REGISTERS_RESET_REG_2_RST_PXP_RQ_RD_WR (0x1<<16) +#define MISC_REGISTERS_RESET_REG_2_RST_RBCN (0x1<<9) +#define MISC_REGISTERS_RESET_REG_2_SET 0x594 +#define MISC_REGISTERS_RESET_REG_2_UMAC0 (0x1<<20) +#define MISC_REGISTERS_RESET_REG_2_UMAC1 (0x1<<21) +#define MISC_REGISTERS_RESET_REG_2_XMAC (0x1<<22) +#define MISC_REGISTERS_RESET_REG_2_XMAC_SOFT (0x1<<23) +#define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8 +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4) +#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8) +#define MISC_REGISTERS_RESET_REG_3_SET 0x5a4 +#define MISC_SPIO_CLR_POS 16 +#define MISC_SPIO_FLOAT (0xffL<<24) +#define MISC_SPIO_FLOAT_POS 24 +#define MISC_SPIO_INPUT_HI_Z 2 +#define MISC_SPIO_INT_OLD_SET_POS 16 +#define MISC_SPIO_OUTPUT_HIGH 1 +#define MISC_SPIO_OUTPUT_LOW 0 +#define MISC_SPIO_SET_POS 8 +#define MISC_SPIO_SPIO4 0x10 +#define MISC_SPIO_SPIO5 0x20 +#define HW_LOCK_MAX_RESOURCE_VALUE 31 +#define HW_LOCK_RESOURCE_DCBX_ADMIN_MIB 13 +#define HW_LOCK_RESOURCE_DRV_FLAGS 10 +#define HW_LOCK_RESOURCE_GPIO 1 +#define HW_LOCK_RESOURCE_MDIO 0 +#define HW_LOCK_RESOURCE_NVRAM 12 +#define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3 +#define HW_LOCK_RESOURCE_RECOVERY_LEADER_0 8 +#define HW_LOCK_RESOURCE_RECOVERY_LEADER_1 9 +#define HW_LOCK_RESOURCE_RECOVERY_REG 11 +#define HW_LOCK_RESOURCE_RESET 5 +#define HW_LOCK_RESOURCE_SPIO 2 +#define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4) +#define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5) +#define AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT (0x1<<19) +#define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (0x1<<18) +#define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (0x1<<31) +#define AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR (0x1<<30) +#define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (0x1<<9) +#define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (0x1<<8) +#define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (0x1<<7) +#define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (0x1<<6) +#define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (0x1<<29) +#define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (0x1<<28) +#define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (0x1<<1) +#define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (0x1<<0) +#define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (0x1<<18) +#define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (0x1<<11) +#define AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR (0x1<<10) +#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (0x1<<13) +#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (0x1<<12) +#define AEU_INPUTS_ATTN_BITS_GPIO0_FUNCTION_0 (0x1<<2) +#define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (0x1<<12) +#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY (0x1<<28) +#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (0x1<<31) +#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY (0x1<<29) +#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY (0x1<<30) +#define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (0x1<<15) +#define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (0x1<<14) +#define AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR (0x1<<14) +#define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (0x1<<20) +#define AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT (0x1<<31) +#define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (0x1<<30) +#define AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR (0x1<<0) +#define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT (0x1<<2) +#define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR (0x1<<3) +#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (0x1<<5) +#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (0x1<<4) +#define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (0x1<<3) +#define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (0x1<<2) +#define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (0x1<<3) +#define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (0x1<<2) +#define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (0x1<<22) +#define AEU_INPUTS_ATTN_BITS_SPIO5 (0x1<<15) +#define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (0x1<<27) +#define AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR (0x1<<26) +#define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (0x1<<5) +#define AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR (0x1<<4) +#define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (0x1<<25) +#define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (0x1<<24) +#define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (0x1<<29) +#define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (0x1<<28) +#define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (0x1<<23) +#define AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR (0x1<<22) +#define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (0x1<<27) +#define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (0x1<<26) +#define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (0x1<<21) +#define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (0x1<<20) +#define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (0x1<<25) +#define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (0x1<<24) +#define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (0x1<<16) +#define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (0x1<<9) +#define AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR (0x1<<8) +#define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (0x1<<7) +#define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (0x1<<6) +#define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (0x1<<11) +#define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (0x1<<10) #define RESERVED_GENERAL_ATTENTION_BIT_0 0 #define EVEREST_GEN_ATTN_IN_USE_MASK 0x7ffe0 @@ -2175,8 +4061,6 @@ #define GENERAL_ATTEN_WORD(atten_name) ((94 + atten_name) / 32) #define GENERAL_ATTEN_OFFSET(atten_name) (1UL << ((94 + atten_name) % 32)) - - /* * This file defines GRC base address for every block. * This file is included by chipsim, asm microcode and cpp microcode. @@ -2706,7 +4590,7 @@ #define ME_REG_VF_VALID (1<<8) #define ME_REG_VF_NUM_SHIFT 9 #define ME_REG_VF_NUM_MASK (0x3f<> ME_REG_VF_NUM_SHIFT) +#define VF_ID(x) 0 /* TODO: remove def */ #define ME_REG_VF_ERR (0x1<<3) #define ME_REG_ABS_PF_NUM_SHIFT 16 #define ME_REG_ABS_PF_NUM \ @@ -2819,6 +4703,20 @@ #define PCI_MSIX_TABLE_ENABLE_MASK 0x8000 +#if (defined(__LINUX)) || (defined(PCI_CAP_LIST_ID)) +#define PCI_CAP_LIST_ID_DEF +#endif +#if (defined(__LINUX)) || (defined(PCI_CAP_LIST_NEXT)) +#define PCI_CAP_LIST_NEXT_DEF +#endif +#if (defined(__LINUX)) || (defined(PCI_STATUS)) +#define PCI_STATUS_DEF +#endif +#if (defined(__LINUX)) || (defined(PCI_STATUS_CAP_LIST)) +#define PCI_STATUS_CAP_LIST_DEF +#endif + + #define MDIO_REG_BANK_CL73_IEEEB0 0x0 #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL 0x0 #define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN 0x0200 @@ -3263,6 +5161,9 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_AN_REG_8481_LEGACY_MII_CTRL 0xffe0 #define MDIO_AN_REG_8481_MII_CTRL_FORCE_1G 0x40 #define MDIO_AN_REG_8481_LEGACY_MII_STATUS 0xffe1 +#define MDIO_AN_REG_848xx_ID_MSB 0xffe2 +#define BNX2X84858_PHY_ID 0x600d +#define MDIO_AN_REG_848xx_ID_LSB 0xffe3 #define MDIO_AN_REG_8481_LEGACY_AN_ADV 0xffe4 #define MDIO_AN_REG_8481_LEGACY_AN_EXPANSION 0xffe6 #define MDIO_AN_REG_8481_1000T_CTRL 0xffe9 @@ -3271,6 +5172,7 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW 0xfff5 #define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS 0xfff7 #define MDIO_AN_REG_8481_AUX_CTRL 0xfff8 +#define MDIO_AN_REG_8481_INTERRUPT_MASK 0xfffb #define MDIO_AN_REG_8481_LEGACY_SHADOW 0xfffc /* BNX2X84823 only */ @@ -3299,6 +5201,8 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_PMA_REG_84823_CTL_LED_CTL_1 0xa8e3 #define MDIO_PMA_REG_84833_CTL_LED_CTL_1 0xa8ec #define MDIO_PMA_REG_84823_LED3_STRETCH_EN 0x0080 +/* BNX2X84858 only */ +#define MDIO_PMA_REG_84858_ALLOW_GPHY_ACT 0x8000 /* BNX2X84833 only */ #define MDIO_84833_TOP_CFG_FW_REV 0x400f @@ -3306,32 +5210,32 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_84833_TOP_CFG_FW_NO_EEE 0x1f81 #define MDIO_84833_TOP_CFG_XGPHY_STRAP1 0x401a #define MDIO_84833_SUPER_ISOLATE 0x8000 -/* These are mailbox register set used by 84833. */ -#define MDIO_84833_TOP_CFG_SCRATCH_REG0 0x4005 -#define MDIO_84833_TOP_CFG_SCRATCH_REG1 0x4006 -#define MDIO_84833_TOP_CFG_SCRATCH_REG2 0x4007 -#define MDIO_84833_TOP_CFG_SCRATCH_REG3 0x4008 -#define MDIO_84833_TOP_CFG_SCRATCH_REG4 0x4009 -#define MDIO_84833_TOP_CFG_SCRATCH_REG26 0x4037 -#define MDIO_84833_TOP_CFG_SCRATCH_REG27 0x4038 -#define MDIO_84833_TOP_CFG_SCRATCH_REG28 0x4039 -#define MDIO_84833_TOP_CFG_SCRATCH_REG29 0x403a -#define MDIO_84833_TOP_CFG_SCRATCH_REG30 0x403b -#define MDIO_84833_TOP_CFG_SCRATCH_REG31 0x403c -#define MDIO_84833_CMD_HDLR_COMMAND MDIO_84833_TOP_CFG_SCRATCH_REG0 -#define MDIO_84833_CMD_HDLR_STATUS MDIO_84833_TOP_CFG_SCRATCH_REG26 -#define MDIO_84833_CMD_HDLR_DATA1 MDIO_84833_TOP_CFG_SCRATCH_REG27 -#define MDIO_84833_CMD_HDLR_DATA2 MDIO_84833_TOP_CFG_SCRATCH_REG28 -#define MDIO_84833_CMD_HDLR_DATA3 MDIO_84833_TOP_CFG_SCRATCH_REG29 -#define MDIO_84833_CMD_HDLR_DATA4 MDIO_84833_TOP_CFG_SCRATCH_REG30 -#define MDIO_84833_CMD_HDLR_DATA5 MDIO_84833_TOP_CFG_SCRATCH_REG31 - -/* Mailbox command set used by 84833. */ -#define PHY84833_CMD_SET_PAIR_SWAP 0x8001 -#define PHY84833_CMD_GET_EEE_MODE 0x8008 -#define PHY84833_CMD_SET_EEE_MODE 0x8009 -#define PHY84833_CMD_GET_CURRENT_TEMP 0x8031 -/* Mailbox status set used by 84833. */ +/* These are mailbox register set used by 84833/84858. */ +#define MDIO_848xx_TOP_CFG_SCRATCH_REG0 0x4005 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG1 0x4006 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG2 0x4007 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG3 0x4008 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG4 0x4009 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG26 0x4037 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG27 0x4038 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG28 0x4039 +#define MDIO_848xx_TOP_CFG_SCRATCH_REG29 0x403a +#define MDIO_848xx_TOP_CFG_SCRATCH_REG30 0x403b +#define MDIO_848xx_TOP_CFG_SCRATCH_REG31 0x403c +#define MDIO_848xx_CMD_HDLR_COMMAND (MDIO_848xx_TOP_CFG_SCRATCH_REG0) +#define MDIO_848xx_CMD_HDLR_STATUS (MDIO_848xx_TOP_CFG_SCRATCH_REG26) +#define MDIO_848xx_CMD_HDLR_DATA1 (MDIO_848xx_TOP_CFG_SCRATCH_REG27) +#define MDIO_848xx_CMD_HDLR_DATA2 (MDIO_848xx_TOP_CFG_SCRATCH_REG28) +#define MDIO_848xx_CMD_HDLR_DATA3 (MDIO_848xx_TOP_CFG_SCRATCH_REG29) +#define MDIO_848xx_CMD_HDLR_DATA4 (MDIO_848xx_TOP_CFG_SCRATCH_REG30) +#define MDIO_848xx_CMD_HDLR_DATA5 (MDIO_848xx_TOP_CFG_SCRATCH_REG31) + +/* Mailbox command set used by 84833/84858 */ +#define PHY848xx_CMD_SET_PAIR_SWAP 0x8001 +#define PHY848xx_CMD_GET_EEE_MODE 0x8008 +#define PHY848xx_CMD_SET_EEE_MODE 0x8009 +#define PHY848xx_CMD_GET_CURRENT_TEMP 0x8031 +/* Mailbox status set used by 84833 only */ #define PHY84833_STATUS_CMD_RECEIVED 0x0001 #define PHY84833_STATUS_CMD_IN_PROGRESS 0x0002 #define PHY84833_STATUS_CMD_COMPLETE_PASS 0x0004 @@ -3341,6 +5245,17 @@ Theotherbitsarereservedandshouldbezero*/ #define PHY84833_STATUS_CMD_NOT_OPEN_FOR_CMDS 0x0040 #define PHY84833_STATUS_CMD_CLEAR_COMPLETE 0x0080 #define PHY84833_STATUS_CMD_OPEN_OVERRIDE 0xa5a5 +/* Mailbox Process */ +#define PHY84833_MB_PROCESS1 1 +#define PHY84833_MB_PROCESS2 2 +#define PHY84833_MB_PROCESS3 3 + +/* Mailbox status set used by 84858 only */ +#define PHY84858_STATUS_CMD_RECEIVED 0x0001 +#define PHY84858_STATUS_CMD_IN_PROGRESS 0x0002 +#define PHY84858_STATUS_CMD_COMPLETE_PASS 0x0004 +#define PHY84858_STATUS_CMD_COMPLETE_ERROR 0x0008 +#define PHY84858_STATUS_CMD_SYSTEM_BUSY 0xbbbb /* Warpcore clause 45 addressing */ @@ -3367,6 +5282,8 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_WC_REG_TX2_ANA_CTRL0 0x8081 #define MDIO_WC_REG_TX3_ANA_CTRL0 0x8091 #define MDIO_WC_REG_TX0_TX_DRIVER 0x8067 +#define MDIO_WC_REG_TX0_TX_DRIVER_IFIR_OFFSET 0x01 +#define MDIO_WC_REG_TX0_TX_DRIVER_IFIR_MASK 0x000e #define MDIO_WC_REG_TX0_TX_DRIVER_IPRE_DRIVER_OFFSET 0x04 #define MDIO_WC_REG_TX0_TX_DRIVER_IPRE_DRIVER_MASK 0x00f0 #define MDIO_WC_REG_TX0_TX_DRIVER_IDRIVER_OFFSET 0x08 @@ -3382,7 +5299,9 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_WC_REG_RX1_PCI_CTRL 0x80ca #define MDIO_WC_REG_RX2_PCI_CTRL 0x80da #define MDIO_WC_REG_RX3_PCI_CTRL 0x80ea +#define MDIO_WC_REG_RXB_ANA_RX_CONTROL_PCI 0x80fa #define MDIO_WC_REG_XGXSBLK2_UNICORE_MODE_10G 0x8104 +#define MDIO_WC_REG_XGXSBLK2_LANE_RESET 0x810a #define MDIO_WC_REG_XGXS_STATUS3 0x8129 #define MDIO_WC_REG_PAR_DET_10G_STATUS 0x8130 #define MDIO_WC_REG_PAR_DET_10G_CTRL 0x8131 @@ -3432,7 +5351,10 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_WC_REG_CL72_USERB0_CL72_2P5_DEF_CTRL 0x82e8 #define MDIO_WC_REG_CL72_USERB0_CL72_MISC4_CONTROL 0x82ec #define MDIO_WC_REG_SERDESDIGITAL_CONTROL1000X1 0x8300 +#define AUTODET_EN (1<<4) #define MDIO_WC_REG_SERDESDIGITAL_CONTROL1000X2 0x8301 +#define EN_PARALLEL_DET 1 +#define FILTER_FORCE_LINK (1<<2) #define MDIO_WC_REG_SERDESDIGITAL_CONTROL1000X3 0x8302 #define MDIO_WC_REG_SERDESDIGITAL_STATUS1000X1 0x8304 #define MDIO_WC_REG_SERDESDIGITAL_MISC1 0x8308 @@ -3501,10 +5423,15 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_REG_GPHY_CL45_REG_READ 0xc000 #define MDIO_REG_GPHY_CL45_DATA_REG 0xe #define MDIO_REG_GPHY_EEE_RESOLVED 0x803e +#define MDIO_REG_GPHY_BASET_EXT_CTRL 0x10 +#define MDIO_REG_GPHY_TX_HIGH_LATENCY 0x1 #define MDIO_REG_GPHY_EXP_ACCESS_GATE 0x15 #define MDIO_REG_GPHY_EXP_ACCESS 0x17 #define MDIO_REG_GPHY_EXP_ACCESS_TOP 0xd00 #define MDIO_REG_GPHY_EXP_TOP_2K_BUF 0x40 +#define MDIO_REG_GPHY_SHADOW_ACCESS 0x18 +#define MDIO_REG_GPHY_SHADOW_AUX_CTRL (0x0) +#define MDIO_REG_GPHY_SHADOW_MISC_CTRL (0x7) #define MDIO_REG_GPHY_AUX_STATUS 0x19 #define MDIO_REG_INTR_STATUS 0x1a #define MDIO_REG_INTR_MASK 0x1b @@ -3516,7 +5443,6 @@ Theotherbitsarereservedandshouldbezero*/ #define MDIO_REG_GPHY_SHADOW_AUTO_DET_MED (0x1e << 10) #define MDIO_REG_GPHY_SHADOW_INVERT_FIB_SD (0x1 << 8) - #define IGU_FUNC_BASE 0x0400 #define IGU_ADDR_MSIX 0x0000 @@ -3585,7 +5511,7 @@ Theotherbitsarereservedandshouldbezero*/ #define IGU_SEG_IDX_ATTN 2 #define IGU_SEG_IDX_DEFAULT 1 -/* Fields of IGU PF CONFIGRATION REGISTER */ +/* Fields of IGU PF CONFIGURATION REGISTER */ #define IGU_PF_CONF_FUNC_EN (0x1<<0) /* function enable */ #define IGU_PF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */ #define IGU_PF_CONF_INT_LINE_EN (0x1<<2) /* INT enable */ @@ -3593,7 +5519,7 @@ Theotherbitsarereservedandshouldbezero*/ #define IGU_PF_CONF_SINGLE_ISR_EN (0x1<<4) /* single ISR mode enable */ #define IGU_PF_CONF_SIMD_MODE (0x1<<5) /* simd all ones mode */ -/* Fields of IGU VF CONFIGRATION REGISTER */ +/* Fields of IGU VF CONFIGURATION REGISTER */ #define IGU_VF_CONF_FUNC_EN (0x1<<0) /* function enable */ #define IGU_VF_CONF_MSI_MSIX_EN (0x1<<1) /* MSI/MSIX enable */ #define IGU_VF_CONF_PARENT_MASK (0x3<<2) /* Parent PF */ @@ -3640,4 +5566,62 @@ Theotherbitsarereservedandshouldbezero*/ (0x80 | ((_type)&0xf << 3) | ((CDU_CRC8(_cid, _region, _type)) & 0x7)) #define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80) +/****************************************************************************** + * Description: + * Calculates crc 8 on a word value: polynomial 0-1-2-8 + * Code was translated from Verilog. + * Return: + *****************************************************************************/ +static inline uint8_t calc_crc8(uint32_t data, uint8_t crc) +{ + uint8_t D[32]; + uint8_t NewCRC[8]; + uint8_t C[8]; + uint8_t crc_res; + uint8_t i; + + /* split the data into 31 bits */ + for (i = 0; i < 32; i++) { + D[i] = (uint8_t)(data & 1); + data = data >> 1; + } + + /* split the crc into 8 bits */ + for (i = 0; i < 8; i++) { + C[i] = crc & 1; + crc = crc >> 1; + } + + NewCRC[0] = D[31] ^ D[30] ^ D[28] ^ D[23] ^ D[21] ^ D[19] ^ D[18] ^ + D[16] ^ D[14] ^ D[12] ^ D[8] ^ D[7] ^ D[6] ^ D[0] ^ C[4] ^ + C[6] ^ C[7]; + NewCRC[1] = D[30] ^ D[29] ^ D[28] ^ D[24] ^ D[23] ^ D[22] ^ D[21] ^ + D[20] ^ D[18] ^ D[17] ^ D[16] ^ D[15] ^ D[14] ^ D[13] ^ + D[12] ^ D[9] ^ D[6] ^ D[1] ^ D[0] ^ C[0] ^ C[4] ^ C[5] ^ C[6]; + NewCRC[2] = D[29] ^ D[28] ^ D[25] ^ D[24] ^ D[22] ^ D[17] ^ D[15] ^ + D[13] ^ D[12] ^ D[10] ^ D[8] ^ D[6] ^ D[2] ^ D[1] ^ D[0] ^ + C[0] ^ C[1] ^ C[4] ^ C[5]; + NewCRC[3] = D[30] ^ D[29] ^ D[26] ^ D[25] ^ D[23] ^ D[18] ^ D[16] ^ + D[14] ^ D[13] ^ D[11] ^ D[9] ^ D[7] ^ D[3] ^ D[2] ^ D[1] ^ + C[1] ^ C[2] ^ C[5] ^ C[6]; + NewCRC[4] = D[31] ^ D[30] ^ D[27] ^ D[26] ^ D[24] ^ D[19] ^ D[17] ^ + D[15] ^ D[14] ^ D[12] ^ D[10] ^ D[8] ^ D[4] ^ D[3] ^ D[2] ^ + C[0] ^ C[2] ^ C[3] ^ C[6] ^ C[7]; + NewCRC[5] = D[31] ^ D[28] ^ D[27] ^ D[25] ^ D[20] ^ D[18] ^ D[16] ^ + D[15] ^ D[13] ^ D[11] ^ D[9] ^ D[5] ^ D[4] ^ D[3] ^ C[1] ^ + C[3] ^ C[4] ^ C[7]; + NewCRC[6] = D[29] ^ D[28] ^ D[26] ^ D[21] ^ D[19] ^ D[17] ^ D[16] ^ + D[14] ^ D[12] ^ D[10] ^ D[6] ^ D[5] ^ D[4] ^ C[2] ^ C[4] ^ C[5]; + NewCRC[7] = D[30] ^ D[29] ^ D[27] ^ D[22] ^ D[20] ^ D[18] ^ D[17] ^ + D[15] ^ D[13] ^ D[11] ^ D[7] ^ D[6] ^ D[5] ^ C[3] ^ C[5] ^ C[6]; + + crc_res = 0; + for (i = 0; i < 8; i++) { + crc_res |= (NewCRC[i] << i); + } + + return crc_res; +} + + #endif /* ECORE_REG_H */ -- 2.18.0