162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/**************************************************************************** 362306a36Sopenharmony_ci * Driver for Solarflare network controllers and boards 462306a36Sopenharmony_ci * Copyright 2005-2006 Fen Systems Ltd. 562306a36Sopenharmony_ci * Copyright 2006-2012 Solarflare Communications Inc. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef EF4_FARCH_REGS_H 962306a36Sopenharmony_ci#define EF4_FARCH_REGS_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* 1262306a36Sopenharmony_ci * Falcon hardware architecture definitions have a name prefix following 1362306a36Sopenharmony_ci * the format: 1462306a36Sopenharmony_ci * 1562306a36Sopenharmony_ci * F<type>_<min-rev><max-rev>_ 1662306a36Sopenharmony_ci * 1762306a36Sopenharmony_ci * The following <type> strings are used: 1862306a36Sopenharmony_ci * 1962306a36Sopenharmony_ci * MMIO register MC register Host memory structure 2062306a36Sopenharmony_ci * ------------------------------------------------------------- 2162306a36Sopenharmony_ci * Address R MCR 2262306a36Sopenharmony_ci * Bitfield RF MCRF SF 2362306a36Sopenharmony_ci * Enumerator FE MCFE SE 2462306a36Sopenharmony_ci * 2562306a36Sopenharmony_ci * <min-rev> is the first revision to which the definition applies: 2662306a36Sopenharmony_ci * 2762306a36Sopenharmony_ci * A: Falcon A1 (SFC4000AB) 2862306a36Sopenharmony_ci * B: Falcon B0 (SFC4000BA) 2962306a36Sopenharmony_ci * C: Siena A0 (SFL9021AA) 3062306a36Sopenharmony_ci * 3162306a36Sopenharmony_ci * If the definition has been changed or removed in later revisions 3262306a36Sopenharmony_ci * then <max-rev> is the last revision to which the definition applies; 3362306a36Sopenharmony_ci * otherwise it is "Z". 3462306a36Sopenharmony_ci */ 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci/************************************************************************** 3762306a36Sopenharmony_ci * 3862306a36Sopenharmony_ci * Falcon/Siena registers and descriptors 3962306a36Sopenharmony_ci * 4062306a36Sopenharmony_ci ************************************************************************** 4162306a36Sopenharmony_ci */ 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci/* ADR_REGION_REG: Address region register */ 4462306a36Sopenharmony_ci#define FR_AZ_ADR_REGION 0x00000000 4562306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION3_LBN 96 4662306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION3_WIDTH 18 4762306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION2_LBN 64 4862306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION2_WIDTH 18 4962306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION1_LBN 32 5062306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION1_WIDTH 18 5162306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION0_LBN 0 5262306a36Sopenharmony_ci#define FRF_AZ_ADR_REGION0_WIDTH 18 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci/* INT_EN_REG_KER: Kernel driver Interrupt enable register */ 5562306a36Sopenharmony_ci#define FR_AZ_INT_EN_KER 0x00000010 5662306a36Sopenharmony_ci#define FRF_AZ_KER_INT_LEVE_SEL_LBN 8 5762306a36Sopenharmony_ci#define FRF_AZ_KER_INT_LEVE_SEL_WIDTH 6 5862306a36Sopenharmony_ci#define FRF_AZ_KER_INT_CHAR_LBN 4 5962306a36Sopenharmony_ci#define FRF_AZ_KER_INT_CHAR_WIDTH 1 6062306a36Sopenharmony_ci#define FRF_AZ_KER_INT_KER_LBN 3 6162306a36Sopenharmony_ci#define FRF_AZ_KER_INT_KER_WIDTH 1 6262306a36Sopenharmony_ci#define FRF_AZ_DRV_INT_EN_KER_LBN 0 6362306a36Sopenharmony_ci#define FRF_AZ_DRV_INT_EN_KER_WIDTH 1 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci/* INT_EN_REG_CHAR: Char Driver interrupt enable register */ 6662306a36Sopenharmony_ci#define FR_BZ_INT_EN_CHAR 0x00000020 6762306a36Sopenharmony_ci#define FRF_BZ_CHAR_INT_LEVE_SEL_LBN 8 6862306a36Sopenharmony_ci#define FRF_BZ_CHAR_INT_LEVE_SEL_WIDTH 6 6962306a36Sopenharmony_ci#define FRF_BZ_CHAR_INT_CHAR_LBN 4 7062306a36Sopenharmony_ci#define FRF_BZ_CHAR_INT_CHAR_WIDTH 1 7162306a36Sopenharmony_ci#define FRF_BZ_CHAR_INT_KER_LBN 3 7262306a36Sopenharmony_ci#define FRF_BZ_CHAR_INT_KER_WIDTH 1 7362306a36Sopenharmony_ci#define FRF_BZ_DRV_INT_EN_CHAR_LBN 0 7462306a36Sopenharmony_ci#define FRF_BZ_DRV_INT_EN_CHAR_WIDTH 1 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci/* INT_ADR_REG_KER: Interrupt host address for Kernel driver */ 7762306a36Sopenharmony_ci#define FR_AZ_INT_ADR_KER 0x00000030 7862306a36Sopenharmony_ci#define FRF_AZ_NORM_INT_VEC_DIS_KER_LBN 64 7962306a36Sopenharmony_ci#define FRF_AZ_NORM_INT_VEC_DIS_KER_WIDTH 1 8062306a36Sopenharmony_ci#define FRF_AZ_INT_ADR_KER_LBN 0 8162306a36Sopenharmony_ci#define FRF_AZ_INT_ADR_KER_WIDTH 64 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_ci/* INT_ADR_REG_CHAR: Interrupt host address for Char driver */ 8462306a36Sopenharmony_ci#define FR_BZ_INT_ADR_CHAR 0x00000040 8562306a36Sopenharmony_ci#define FRF_BZ_NORM_INT_VEC_DIS_CHAR_LBN 64 8662306a36Sopenharmony_ci#define FRF_BZ_NORM_INT_VEC_DIS_CHAR_WIDTH 1 8762306a36Sopenharmony_ci#define FRF_BZ_INT_ADR_CHAR_LBN 0 8862306a36Sopenharmony_ci#define FRF_BZ_INT_ADR_CHAR_WIDTH 64 8962306a36Sopenharmony_ci 9062306a36Sopenharmony_ci/* INT_ACK_KER: Kernel interrupt acknowledge register */ 9162306a36Sopenharmony_ci#define FR_AA_INT_ACK_KER 0x00000050 9262306a36Sopenharmony_ci#define FRF_AA_INT_ACK_KER_FIELD_LBN 0 9362306a36Sopenharmony_ci#define FRF_AA_INT_ACK_KER_FIELD_WIDTH 32 9462306a36Sopenharmony_ci 9562306a36Sopenharmony_ci/* INT_ISR0_REG: Function 0 Interrupt Acknowledge Status register */ 9662306a36Sopenharmony_ci#define FR_BZ_INT_ISR0 0x00000090 9762306a36Sopenharmony_ci#define FRF_BZ_INT_ISR_REG_LBN 0 9862306a36Sopenharmony_ci#define FRF_BZ_INT_ISR_REG_WIDTH 64 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci/* HW_INIT_REG: Hardware initialization register */ 10162306a36Sopenharmony_ci#define FR_AZ_HW_INIT 0x000000c0 10262306a36Sopenharmony_ci#define FRF_BB_BDMRD_CPLF_FULL_LBN 124 10362306a36Sopenharmony_ci#define FRF_BB_BDMRD_CPLF_FULL_WIDTH 1 10462306a36Sopenharmony_ci#define FRF_BB_PCIE_CPL_TIMEOUT_CTRL_LBN 121 10562306a36Sopenharmony_ci#define FRF_BB_PCIE_CPL_TIMEOUT_CTRL_WIDTH 3 10662306a36Sopenharmony_ci#define FRF_CZ_TX_MRG_TAGS_LBN 120 10762306a36Sopenharmony_ci#define FRF_CZ_TX_MRG_TAGS_WIDTH 1 10862306a36Sopenharmony_ci#define FRF_AB_TRGT_MASK_ALL_LBN 100 10962306a36Sopenharmony_ci#define FRF_AB_TRGT_MASK_ALL_WIDTH 1 11062306a36Sopenharmony_ci#define FRF_AZ_DOORBELL_DROP_LBN 92 11162306a36Sopenharmony_ci#define FRF_AZ_DOORBELL_DROP_WIDTH 8 11262306a36Sopenharmony_ci#define FRF_AB_TX_RREQ_MASK_EN_LBN 76 11362306a36Sopenharmony_ci#define FRF_AB_TX_RREQ_MASK_EN_WIDTH 1 11462306a36Sopenharmony_ci#define FRF_AB_PE_EIDLE_DIS_LBN 75 11562306a36Sopenharmony_ci#define FRF_AB_PE_EIDLE_DIS_WIDTH 1 11662306a36Sopenharmony_ci#define FRF_AA_FC_BLOCKING_EN_LBN 45 11762306a36Sopenharmony_ci#define FRF_AA_FC_BLOCKING_EN_WIDTH 1 11862306a36Sopenharmony_ci#define FRF_BZ_B2B_REQ_EN_LBN 45 11962306a36Sopenharmony_ci#define FRF_BZ_B2B_REQ_EN_WIDTH 1 12062306a36Sopenharmony_ci#define FRF_AA_B2B_REQ_EN_LBN 44 12162306a36Sopenharmony_ci#define FRF_AA_B2B_REQ_EN_WIDTH 1 12262306a36Sopenharmony_ci#define FRF_BB_FC_BLOCKING_EN_LBN 44 12362306a36Sopenharmony_ci#define FRF_BB_FC_BLOCKING_EN_WIDTH 1 12462306a36Sopenharmony_ci#define FRF_AZ_POST_WR_MASK_LBN 40 12562306a36Sopenharmony_ci#define FRF_AZ_POST_WR_MASK_WIDTH 4 12662306a36Sopenharmony_ci#define FRF_AZ_TLP_TC_LBN 34 12762306a36Sopenharmony_ci#define FRF_AZ_TLP_TC_WIDTH 3 12862306a36Sopenharmony_ci#define FRF_AZ_TLP_ATTR_LBN 32 12962306a36Sopenharmony_ci#define FRF_AZ_TLP_ATTR_WIDTH 2 13062306a36Sopenharmony_ci#define FRF_AB_INTB_VEC_LBN 24 13162306a36Sopenharmony_ci#define FRF_AB_INTB_VEC_WIDTH 5 13262306a36Sopenharmony_ci#define FRF_AB_INTA_VEC_LBN 16 13362306a36Sopenharmony_ci#define FRF_AB_INTA_VEC_WIDTH 5 13462306a36Sopenharmony_ci#define FRF_AZ_WD_TIMER_LBN 8 13562306a36Sopenharmony_ci#define FRF_AZ_WD_TIMER_WIDTH 8 13662306a36Sopenharmony_ci#define FRF_AZ_US_DISABLE_LBN 5 13762306a36Sopenharmony_ci#define FRF_AZ_US_DISABLE_WIDTH 1 13862306a36Sopenharmony_ci#define FRF_AZ_TLP_EP_LBN 4 13962306a36Sopenharmony_ci#define FRF_AZ_TLP_EP_WIDTH 1 14062306a36Sopenharmony_ci#define FRF_AZ_ATTR_SEL_LBN 3 14162306a36Sopenharmony_ci#define FRF_AZ_ATTR_SEL_WIDTH 1 14262306a36Sopenharmony_ci#define FRF_AZ_TD_SEL_LBN 1 14362306a36Sopenharmony_ci#define FRF_AZ_TD_SEL_WIDTH 1 14462306a36Sopenharmony_ci#define FRF_AZ_TLP_TD_LBN 0 14562306a36Sopenharmony_ci#define FRF_AZ_TLP_TD_WIDTH 1 14662306a36Sopenharmony_ci 14762306a36Sopenharmony_ci/* EE_SPI_HCMD_REG: SPI host command register */ 14862306a36Sopenharmony_ci#define FR_AB_EE_SPI_HCMD 0x00000100 14962306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_CMD_EN_LBN 31 15062306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_CMD_EN_WIDTH 1 15162306a36Sopenharmony_ci#define FRF_AB_EE_WR_TIMER_ACTIVE_LBN 28 15262306a36Sopenharmony_ci#define FRF_AB_EE_WR_TIMER_ACTIVE_WIDTH 1 15362306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_SF_SEL_LBN 24 15462306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_SF_SEL_WIDTH 1 15562306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_DABCNT_LBN 16 15662306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_DABCNT_WIDTH 5 15762306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_READ_LBN 15 15862306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_READ_WIDTH 1 15962306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_DUBCNT_LBN 12 16062306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_DUBCNT_WIDTH 2 16162306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_ADBCNT_LBN 8 16262306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_ADBCNT_WIDTH 2 16362306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_ENC_LBN 0 16462306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HCMD_ENC_WIDTH 8 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ci/* USR_EV_CFG: User Level Event Configuration register */ 16762306a36Sopenharmony_ci#define FR_CZ_USR_EV_CFG 0x00000100 16862306a36Sopenharmony_ci#define FRF_CZ_USREV_DIS_LBN 16 16962306a36Sopenharmony_ci#define FRF_CZ_USREV_DIS_WIDTH 1 17062306a36Sopenharmony_ci#define FRF_CZ_DFLT_EVQ_LBN 0 17162306a36Sopenharmony_ci#define FRF_CZ_DFLT_EVQ_WIDTH 10 17262306a36Sopenharmony_ci 17362306a36Sopenharmony_ci/* EE_SPI_HADR_REG: SPI host address register */ 17462306a36Sopenharmony_ci#define FR_AB_EE_SPI_HADR 0x00000110 17562306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HADR_DUBYTE_LBN 24 17662306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HADR_DUBYTE_WIDTH 8 17762306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HADR_ADR_LBN 0 17862306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HADR_ADR_WIDTH 24 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci/* EE_SPI_HDATA_REG: SPI host data register */ 18162306a36Sopenharmony_ci#define FR_AB_EE_SPI_HDATA 0x00000120 18262306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA3_LBN 96 18362306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA3_WIDTH 32 18462306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA2_LBN 64 18562306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA2_WIDTH 32 18662306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA1_LBN 32 18762306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA1_WIDTH 32 18862306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA0_LBN 0 18962306a36Sopenharmony_ci#define FRF_AB_EE_SPI_HDATA0_WIDTH 32 19062306a36Sopenharmony_ci 19162306a36Sopenharmony_ci/* EE_BASE_PAGE_REG: Expansion ROM base mirror register */ 19262306a36Sopenharmony_ci#define FR_AB_EE_BASE_PAGE 0x00000130 19362306a36Sopenharmony_ci#define FRF_AB_EE_EXPROM_MASK_LBN 16 19462306a36Sopenharmony_ci#define FRF_AB_EE_EXPROM_MASK_WIDTH 13 19562306a36Sopenharmony_ci#define FRF_AB_EE_EXP_ROM_WINDOW_BASE_LBN 0 19662306a36Sopenharmony_ci#define FRF_AB_EE_EXP_ROM_WINDOW_BASE_WIDTH 13 19762306a36Sopenharmony_ci 19862306a36Sopenharmony_ci/* EE_VPD_CFG0_REG: SPI/VPD configuration register 0 */ 19962306a36Sopenharmony_ci#define FR_AB_EE_VPD_CFG0 0x00000140 20062306a36Sopenharmony_ci#define FRF_AB_EE_SF_FASTRD_EN_LBN 127 20162306a36Sopenharmony_ci#define FRF_AB_EE_SF_FASTRD_EN_WIDTH 1 20262306a36Sopenharmony_ci#define FRF_AB_EE_SF_CLOCK_DIV_LBN 120 20362306a36Sopenharmony_ci#define FRF_AB_EE_SF_CLOCK_DIV_WIDTH 7 20462306a36Sopenharmony_ci#define FRF_AB_EE_VPD_WIP_POLL_LBN 119 20562306a36Sopenharmony_ci#define FRF_AB_EE_VPD_WIP_POLL_WIDTH 1 20662306a36Sopenharmony_ci#define FRF_AB_EE_EE_CLOCK_DIV_LBN 112 20762306a36Sopenharmony_ci#define FRF_AB_EE_EE_CLOCK_DIV_WIDTH 7 20862306a36Sopenharmony_ci#define FRF_AB_EE_EE_WR_TMR_VALUE_LBN 96 20962306a36Sopenharmony_ci#define FRF_AB_EE_EE_WR_TMR_VALUE_WIDTH 16 21062306a36Sopenharmony_ci#define FRF_AB_EE_VPDW_LENGTH_LBN 80 21162306a36Sopenharmony_ci#define FRF_AB_EE_VPDW_LENGTH_WIDTH 15 21262306a36Sopenharmony_ci#define FRF_AB_EE_VPDW_BASE_LBN 64 21362306a36Sopenharmony_ci#define FRF_AB_EE_VPDW_BASE_WIDTH 15 21462306a36Sopenharmony_ci#define FRF_AB_EE_VPD_WR_CMD_EN_LBN 56 21562306a36Sopenharmony_ci#define FRF_AB_EE_VPD_WR_CMD_EN_WIDTH 8 21662306a36Sopenharmony_ci#define FRF_AB_EE_VPD_BASE_LBN 32 21762306a36Sopenharmony_ci#define FRF_AB_EE_VPD_BASE_WIDTH 24 21862306a36Sopenharmony_ci#define FRF_AB_EE_VPD_LENGTH_LBN 16 21962306a36Sopenharmony_ci#define FRF_AB_EE_VPD_LENGTH_WIDTH 15 22062306a36Sopenharmony_ci#define FRF_AB_EE_VPD_AD_SIZE_LBN 8 22162306a36Sopenharmony_ci#define FRF_AB_EE_VPD_AD_SIZE_WIDTH 5 22262306a36Sopenharmony_ci#define FRF_AB_EE_VPD_ACCESS_ON_LBN 5 22362306a36Sopenharmony_ci#define FRF_AB_EE_VPD_ACCESS_ON_WIDTH 1 22462306a36Sopenharmony_ci#define FRF_AB_EE_VPD_ACCESS_BLOCK_LBN 4 22562306a36Sopenharmony_ci#define FRF_AB_EE_VPD_ACCESS_BLOCK_WIDTH 1 22662306a36Sopenharmony_ci#define FRF_AB_EE_VPD_DEV_SF_SEL_LBN 2 22762306a36Sopenharmony_ci#define FRF_AB_EE_VPD_DEV_SF_SEL_WIDTH 1 22862306a36Sopenharmony_ci#define FRF_AB_EE_VPD_EN_AD9_MODE_LBN 1 22962306a36Sopenharmony_ci#define FRF_AB_EE_VPD_EN_AD9_MODE_WIDTH 1 23062306a36Sopenharmony_ci#define FRF_AB_EE_VPD_EN_LBN 0 23162306a36Sopenharmony_ci#define FRF_AB_EE_VPD_EN_WIDTH 1 23262306a36Sopenharmony_ci 23362306a36Sopenharmony_ci/* EE_VPD_SW_CNTL_REG: VPD access SW control register */ 23462306a36Sopenharmony_ci#define FR_AB_EE_VPD_SW_CNTL 0x00000150 23562306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYCLE_PENDING_LBN 31 23662306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYCLE_PENDING_WIDTH 1 23762306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYC_WRITE_LBN 28 23862306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYC_WRITE_WIDTH 1 23962306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYC_ADR_LBN 0 24062306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYC_ADR_WIDTH 15 24162306a36Sopenharmony_ci 24262306a36Sopenharmony_ci/* EE_VPD_SW_DATA_REG: VPD access SW data register */ 24362306a36Sopenharmony_ci#define FR_AB_EE_VPD_SW_DATA 0x00000160 24462306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYC_DAT_LBN 0 24562306a36Sopenharmony_ci#define FRF_AB_EE_VPD_CYC_DAT_WIDTH 32 24662306a36Sopenharmony_ci 24762306a36Sopenharmony_ci/* PBMX_DBG_IADDR_REG: Capture Module address register */ 24862306a36Sopenharmony_ci#define FR_CZ_PBMX_DBG_IADDR 0x000001f0 24962306a36Sopenharmony_ci#define FRF_CZ_PBMX_DBG_IADDR_LBN 0 25062306a36Sopenharmony_ci#define FRF_CZ_PBMX_DBG_IADDR_WIDTH 32 25162306a36Sopenharmony_ci 25262306a36Sopenharmony_ci/* PCIE_CORE_INDIRECT_REG: Indirect Access to PCIE Core registers */ 25362306a36Sopenharmony_ci#define FR_BB_PCIE_CORE_INDIRECT 0x000001f0 25462306a36Sopenharmony_ci#define FRF_BB_PCIE_CORE_TARGET_DATA_LBN 32 25562306a36Sopenharmony_ci#define FRF_BB_PCIE_CORE_TARGET_DATA_WIDTH 32 25662306a36Sopenharmony_ci#define FRF_BB_PCIE_CORE_INDIRECT_ACCESS_DIR_LBN 15 25762306a36Sopenharmony_ci#define FRF_BB_PCIE_CORE_INDIRECT_ACCESS_DIR_WIDTH 1 25862306a36Sopenharmony_ci#define FRF_BB_PCIE_CORE_TARGET_REG_ADRS_LBN 0 25962306a36Sopenharmony_ci#define FRF_BB_PCIE_CORE_TARGET_REG_ADRS_WIDTH 12 26062306a36Sopenharmony_ci 26162306a36Sopenharmony_ci/* PBMX_DBG_IDATA_REG: Capture Module data register */ 26262306a36Sopenharmony_ci#define FR_CZ_PBMX_DBG_IDATA 0x000001f8 26362306a36Sopenharmony_ci#define FRF_CZ_PBMX_DBG_IDATA_LBN 0 26462306a36Sopenharmony_ci#define FRF_CZ_PBMX_DBG_IDATA_WIDTH 64 26562306a36Sopenharmony_ci 26662306a36Sopenharmony_ci/* NIC_STAT_REG: NIC status register */ 26762306a36Sopenharmony_ci#define FR_AB_NIC_STAT 0x00000200 26862306a36Sopenharmony_ci#define FRF_BB_AER_DIS_LBN 34 26962306a36Sopenharmony_ci#define FRF_BB_AER_DIS_WIDTH 1 27062306a36Sopenharmony_ci#define FRF_BB_EE_STRAP_EN_LBN 31 27162306a36Sopenharmony_ci#define FRF_BB_EE_STRAP_EN_WIDTH 1 27262306a36Sopenharmony_ci#define FRF_BB_EE_STRAP_LBN 24 27362306a36Sopenharmony_ci#define FRF_BB_EE_STRAP_WIDTH 4 27462306a36Sopenharmony_ci#define FRF_BB_REVISION_ID_LBN 17 27562306a36Sopenharmony_ci#define FRF_BB_REVISION_ID_WIDTH 7 27662306a36Sopenharmony_ci#define FRF_AB_ONCHIP_SRAM_LBN 16 27762306a36Sopenharmony_ci#define FRF_AB_ONCHIP_SRAM_WIDTH 1 27862306a36Sopenharmony_ci#define FRF_AB_SF_PRST_LBN 9 27962306a36Sopenharmony_ci#define FRF_AB_SF_PRST_WIDTH 1 28062306a36Sopenharmony_ci#define FRF_AB_EE_PRST_LBN 8 28162306a36Sopenharmony_ci#define FRF_AB_EE_PRST_WIDTH 1 28262306a36Sopenharmony_ci#define FRF_AB_ATE_MODE_LBN 3 28362306a36Sopenharmony_ci#define FRF_AB_ATE_MODE_WIDTH 1 28462306a36Sopenharmony_ci#define FRF_AB_STRAP_PINS_LBN 0 28562306a36Sopenharmony_ci#define FRF_AB_STRAP_PINS_WIDTH 3 28662306a36Sopenharmony_ci 28762306a36Sopenharmony_ci/* GPIO_CTL_REG: GPIO control register */ 28862306a36Sopenharmony_ci#define FR_AB_GPIO_CTL 0x00000210 28962306a36Sopenharmony_ci#define FRF_AB_GPIO_OUT3_LBN 112 29062306a36Sopenharmony_ci#define FRF_AB_GPIO_OUT3_WIDTH 16 29162306a36Sopenharmony_ci#define FRF_AB_GPIO_IN3_LBN 104 29262306a36Sopenharmony_ci#define FRF_AB_GPIO_IN3_WIDTH 8 29362306a36Sopenharmony_ci#define FRF_AB_GPIO_PWRUP_VALUE3_LBN 96 29462306a36Sopenharmony_ci#define FRF_AB_GPIO_PWRUP_VALUE3_WIDTH 8 29562306a36Sopenharmony_ci#define FRF_AB_GPIO_OUT2_LBN 80 29662306a36Sopenharmony_ci#define FRF_AB_GPIO_OUT2_WIDTH 16 29762306a36Sopenharmony_ci#define FRF_AB_GPIO_IN2_LBN 72 29862306a36Sopenharmony_ci#define FRF_AB_GPIO_IN2_WIDTH 8 29962306a36Sopenharmony_ci#define FRF_AB_GPIO_PWRUP_VALUE2_LBN 64 30062306a36Sopenharmony_ci#define FRF_AB_GPIO_PWRUP_VALUE2_WIDTH 8 30162306a36Sopenharmony_ci#define FRF_AB_GPIO15_OEN_LBN 63 30262306a36Sopenharmony_ci#define FRF_AB_GPIO15_OEN_WIDTH 1 30362306a36Sopenharmony_ci#define FRF_AB_GPIO14_OEN_LBN 62 30462306a36Sopenharmony_ci#define FRF_AB_GPIO14_OEN_WIDTH 1 30562306a36Sopenharmony_ci#define FRF_AB_GPIO13_OEN_LBN 61 30662306a36Sopenharmony_ci#define FRF_AB_GPIO13_OEN_WIDTH 1 30762306a36Sopenharmony_ci#define FRF_AB_GPIO12_OEN_LBN 60 30862306a36Sopenharmony_ci#define FRF_AB_GPIO12_OEN_WIDTH 1 30962306a36Sopenharmony_ci#define FRF_AB_GPIO11_OEN_LBN 59 31062306a36Sopenharmony_ci#define FRF_AB_GPIO11_OEN_WIDTH 1 31162306a36Sopenharmony_ci#define FRF_AB_GPIO10_OEN_LBN 58 31262306a36Sopenharmony_ci#define FRF_AB_GPIO10_OEN_WIDTH 1 31362306a36Sopenharmony_ci#define FRF_AB_GPIO9_OEN_LBN 57 31462306a36Sopenharmony_ci#define FRF_AB_GPIO9_OEN_WIDTH 1 31562306a36Sopenharmony_ci#define FRF_AB_GPIO8_OEN_LBN 56 31662306a36Sopenharmony_ci#define FRF_AB_GPIO8_OEN_WIDTH 1 31762306a36Sopenharmony_ci#define FRF_AB_GPIO15_OUT_LBN 55 31862306a36Sopenharmony_ci#define FRF_AB_GPIO15_OUT_WIDTH 1 31962306a36Sopenharmony_ci#define FRF_AB_GPIO14_OUT_LBN 54 32062306a36Sopenharmony_ci#define FRF_AB_GPIO14_OUT_WIDTH 1 32162306a36Sopenharmony_ci#define FRF_AB_GPIO13_OUT_LBN 53 32262306a36Sopenharmony_ci#define FRF_AB_GPIO13_OUT_WIDTH 1 32362306a36Sopenharmony_ci#define FRF_AB_GPIO12_OUT_LBN 52 32462306a36Sopenharmony_ci#define FRF_AB_GPIO12_OUT_WIDTH 1 32562306a36Sopenharmony_ci#define FRF_AB_GPIO11_OUT_LBN 51 32662306a36Sopenharmony_ci#define FRF_AB_GPIO11_OUT_WIDTH 1 32762306a36Sopenharmony_ci#define FRF_AB_GPIO10_OUT_LBN 50 32862306a36Sopenharmony_ci#define FRF_AB_GPIO10_OUT_WIDTH 1 32962306a36Sopenharmony_ci#define FRF_AB_GPIO9_OUT_LBN 49 33062306a36Sopenharmony_ci#define FRF_AB_GPIO9_OUT_WIDTH 1 33162306a36Sopenharmony_ci#define FRF_AB_GPIO8_OUT_LBN 48 33262306a36Sopenharmony_ci#define FRF_AB_GPIO8_OUT_WIDTH 1 33362306a36Sopenharmony_ci#define FRF_AB_GPIO15_IN_LBN 47 33462306a36Sopenharmony_ci#define FRF_AB_GPIO15_IN_WIDTH 1 33562306a36Sopenharmony_ci#define FRF_AB_GPIO14_IN_LBN 46 33662306a36Sopenharmony_ci#define FRF_AB_GPIO14_IN_WIDTH 1 33762306a36Sopenharmony_ci#define FRF_AB_GPIO13_IN_LBN 45 33862306a36Sopenharmony_ci#define FRF_AB_GPIO13_IN_WIDTH 1 33962306a36Sopenharmony_ci#define FRF_AB_GPIO12_IN_LBN 44 34062306a36Sopenharmony_ci#define FRF_AB_GPIO12_IN_WIDTH 1 34162306a36Sopenharmony_ci#define FRF_AB_GPIO11_IN_LBN 43 34262306a36Sopenharmony_ci#define FRF_AB_GPIO11_IN_WIDTH 1 34362306a36Sopenharmony_ci#define FRF_AB_GPIO10_IN_LBN 42 34462306a36Sopenharmony_ci#define FRF_AB_GPIO10_IN_WIDTH 1 34562306a36Sopenharmony_ci#define FRF_AB_GPIO9_IN_LBN 41 34662306a36Sopenharmony_ci#define FRF_AB_GPIO9_IN_WIDTH 1 34762306a36Sopenharmony_ci#define FRF_AB_GPIO8_IN_LBN 40 34862306a36Sopenharmony_ci#define FRF_AB_GPIO8_IN_WIDTH 1 34962306a36Sopenharmony_ci#define FRF_AB_GPIO15_PWRUP_VALUE_LBN 39 35062306a36Sopenharmony_ci#define FRF_AB_GPIO15_PWRUP_VALUE_WIDTH 1 35162306a36Sopenharmony_ci#define FRF_AB_GPIO14_PWRUP_VALUE_LBN 38 35262306a36Sopenharmony_ci#define FRF_AB_GPIO14_PWRUP_VALUE_WIDTH 1 35362306a36Sopenharmony_ci#define FRF_AB_GPIO13_PWRUP_VALUE_LBN 37 35462306a36Sopenharmony_ci#define FRF_AB_GPIO13_PWRUP_VALUE_WIDTH 1 35562306a36Sopenharmony_ci#define FRF_AB_GPIO12_PWRUP_VALUE_LBN 36 35662306a36Sopenharmony_ci#define FRF_AB_GPIO12_PWRUP_VALUE_WIDTH 1 35762306a36Sopenharmony_ci#define FRF_AB_GPIO11_PWRUP_VALUE_LBN 35 35862306a36Sopenharmony_ci#define FRF_AB_GPIO11_PWRUP_VALUE_WIDTH 1 35962306a36Sopenharmony_ci#define FRF_AB_GPIO10_PWRUP_VALUE_LBN 34 36062306a36Sopenharmony_ci#define FRF_AB_GPIO10_PWRUP_VALUE_WIDTH 1 36162306a36Sopenharmony_ci#define FRF_AB_GPIO9_PWRUP_VALUE_LBN 33 36262306a36Sopenharmony_ci#define FRF_AB_GPIO9_PWRUP_VALUE_WIDTH 1 36362306a36Sopenharmony_ci#define FRF_AB_GPIO8_PWRUP_VALUE_LBN 32 36462306a36Sopenharmony_ci#define FRF_AB_GPIO8_PWRUP_VALUE_WIDTH 1 36562306a36Sopenharmony_ci#define FRF_AB_CLK156_OUT_EN_LBN 31 36662306a36Sopenharmony_ci#define FRF_AB_CLK156_OUT_EN_WIDTH 1 36762306a36Sopenharmony_ci#define FRF_AB_USE_NIC_CLK_LBN 30 36862306a36Sopenharmony_ci#define FRF_AB_USE_NIC_CLK_WIDTH 1 36962306a36Sopenharmony_ci#define FRF_AB_GPIO5_OEN_LBN 29 37062306a36Sopenharmony_ci#define FRF_AB_GPIO5_OEN_WIDTH 1 37162306a36Sopenharmony_ci#define FRF_AB_GPIO4_OEN_LBN 28 37262306a36Sopenharmony_ci#define FRF_AB_GPIO4_OEN_WIDTH 1 37362306a36Sopenharmony_ci#define FRF_AB_GPIO3_OEN_LBN 27 37462306a36Sopenharmony_ci#define FRF_AB_GPIO3_OEN_WIDTH 1 37562306a36Sopenharmony_ci#define FRF_AB_GPIO2_OEN_LBN 26 37662306a36Sopenharmony_ci#define FRF_AB_GPIO2_OEN_WIDTH 1 37762306a36Sopenharmony_ci#define FRF_AB_GPIO1_OEN_LBN 25 37862306a36Sopenharmony_ci#define FRF_AB_GPIO1_OEN_WIDTH 1 37962306a36Sopenharmony_ci#define FRF_AB_GPIO0_OEN_LBN 24 38062306a36Sopenharmony_ci#define FRF_AB_GPIO0_OEN_WIDTH 1 38162306a36Sopenharmony_ci#define FRF_AB_GPIO7_OUT_LBN 23 38262306a36Sopenharmony_ci#define FRF_AB_GPIO7_OUT_WIDTH 1 38362306a36Sopenharmony_ci#define FRF_AB_GPIO6_OUT_LBN 22 38462306a36Sopenharmony_ci#define FRF_AB_GPIO6_OUT_WIDTH 1 38562306a36Sopenharmony_ci#define FRF_AB_GPIO5_OUT_LBN 21 38662306a36Sopenharmony_ci#define FRF_AB_GPIO5_OUT_WIDTH 1 38762306a36Sopenharmony_ci#define FRF_AB_GPIO4_OUT_LBN 20 38862306a36Sopenharmony_ci#define FRF_AB_GPIO4_OUT_WIDTH 1 38962306a36Sopenharmony_ci#define FRF_AB_GPIO3_OUT_LBN 19 39062306a36Sopenharmony_ci#define FRF_AB_GPIO3_OUT_WIDTH 1 39162306a36Sopenharmony_ci#define FRF_AB_GPIO2_OUT_LBN 18 39262306a36Sopenharmony_ci#define FRF_AB_GPIO2_OUT_WIDTH 1 39362306a36Sopenharmony_ci#define FRF_AB_GPIO1_OUT_LBN 17 39462306a36Sopenharmony_ci#define FRF_AB_GPIO1_OUT_WIDTH 1 39562306a36Sopenharmony_ci#define FRF_AB_GPIO0_OUT_LBN 16 39662306a36Sopenharmony_ci#define FRF_AB_GPIO0_OUT_WIDTH 1 39762306a36Sopenharmony_ci#define FRF_AB_GPIO7_IN_LBN 15 39862306a36Sopenharmony_ci#define FRF_AB_GPIO7_IN_WIDTH 1 39962306a36Sopenharmony_ci#define FRF_AB_GPIO6_IN_LBN 14 40062306a36Sopenharmony_ci#define FRF_AB_GPIO6_IN_WIDTH 1 40162306a36Sopenharmony_ci#define FRF_AB_GPIO5_IN_LBN 13 40262306a36Sopenharmony_ci#define FRF_AB_GPIO5_IN_WIDTH 1 40362306a36Sopenharmony_ci#define FRF_AB_GPIO4_IN_LBN 12 40462306a36Sopenharmony_ci#define FRF_AB_GPIO4_IN_WIDTH 1 40562306a36Sopenharmony_ci#define FRF_AB_GPIO3_IN_LBN 11 40662306a36Sopenharmony_ci#define FRF_AB_GPIO3_IN_WIDTH 1 40762306a36Sopenharmony_ci#define FRF_AB_GPIO2_IN_LBN 10 40862306a36Sopenharmony_ci#define FRF_AB_GPIO2_IN_WIDTH 1 40962306a36Sopenharmony_ci#define FRF_AB_GPIO1_IN_LBN 9 41062306a36Sopenharmony_ci#define FRF_AB_GPIO1_IN_WIDTH 1 41162306a36Sopenharmony_ci#define FRF_AB_GPIO0_IN_LBN 8 41262306a36Sopenharmony_ci#define FRF_AB_GPIO0_IN_WIDTH 1 41362306a36Sopenharmony_ci#define FRF_AB_GPIO7_PWRUP_VALUE_LBN 7 41462306a36Sopenharmony_ci#define FRF_AB_GPIO7_PWRUP_VALUE_WIDTH 1 41562306a36Sopenharmony_ci#define FRF_AB_GPIO6_PWRUP_VALUE_LBN 6 41662306a36Sopenharmony_ci#define FRF_AB_GPIO6_PWRUP_VALUE_WIDTH 1 41762306a36Sopenharmony_ci#define FRF_AB_GPIO5_PWRUP_VALUE_LBN 5 41862306a36Sopenharmony_ci#define FRF_AB_GPIO5_PWRUP_VALUE_WIDTH 1 41962306a36Sopenharmony_ci#define FRF_AB_GPIO4_PWRUP_VALUE_LBN 4 42062306a36Sopenharmony_ci#define FRF_AB_GPIO4_PWRUP_VALUE_WIDTH 1 42162306a36Sopenharmony_ci#define FRF_AB_GPIO3_PWRUP_VALUE_LBN 3 42262306a36Sopenharmony_ci#define FRF_AB_GPIO3_PWRUP_VALUE_WIDTH 1 42362306a36Sopenharmony_ci#define FRF_AB_GPIO2_PWRUP_VALUE_LBN 2 42462306a36Sopenharmony_ci#define FRF_AB_GPIO2_PWRUP_VALUE_WIDTH 1 42562306a36Sopenharmony_ci#define FRF_AB_GPIO1_PWRUP_VALUE_LBN 1 42662306a36Sopenharmony_ci#define FRF_AB_GPIO1_PWRUP_VALUE_WIDTH 1 42762306a36Sopenharmony_ci#define FRF_AB_GPIO0_PWRUP_VALUE_LBN 0 42862306a36Sopenharmony_ci#define FRF_AB_GPIO0_PWRUP_VALUE_WIDTH 1 42962306a36Sopenharmony_ci 43062306a36Sopenharmony_ci/* GLB_CTL_REG: Global control register */ 43162306a36Sopenharmony_ci#define FR_AB_GLB_CTL 0x00000220 43262306a36Sopenharmony_ci#define FRF_AB_EXT_PHY_RST_CTL_LBN 63 43362306a36Sopenharmony_ci#define FRF_AB_EXT_PHY_RST_CTL_WIDTH 1 43462306a36Sopenharmony_ci#define FRF_AB_XAUI_SD_RST_CTL_LBN 62 43562306a36Sopenharmony_ci#define FRF_AB_XAUI_SD_RST_CTL_WIDTH 1 43662306a36Sopenharmony_ci#define FRF_AB_PCIE_SD_RST_CTL_LBN 61 43762306a36Sopenharmony_ci#define FRF_AB_PCIE_SD_RST_CTL_WIDTH 1 43862306a36Sopenharmony_ci#define FRF_AA_PCIX_RST_CTL_LBN 60 43962306a36Sopenharmony_ci#define FRF_AA_PCIX_RST_CTL_WIDTH 1 44062306a36Sopenharmony_ci#define FRF_BB_BIU_RST_CTL_LBN 60 44162306a36Sopenharmony_ci#define FRF_BB_BIU_RST_CTL_WIDTH 1 44262306a36Sopenharmony_ci#define FRF_AB_PCIE_STKY_RST_CTL_LBN 59 44362306a36Sopenharmony_ci#define FRF_AB_PCIE_STKY_RST_CTL_WIDTH 1 44462306a36Sopenharmony_ci#define FRF_AB_PCIE_NSTKY_RST_CTL_LBN 58 44562306a36Sopenharmony_ci#define FRF_AB_PCIE_NSTKY_RST_CTL_WIDTH 1 44662306a36Sopenharmony_ci#define FRF_AB_PCIE_CORE_RST_CTL_LBN 57 44762306a36Sopenharmony_ci#define FRF_AB_PCIE_CORE_RST_CTL_WIDTH 1 44862306a36Sopenharmony_ci#define FRF_AB_XGRX_RST_CTL_LBN 56 44962306a36Sopenharmony_ci#define FRF_AB_XGRX_RST_CTL_WIDTH 1 45062306a36Sopenharmony_ci#define FRF_AB_XGTX_RST_CTL_LBN 55 45162306a36Sopenharmony_ci#define FRF_AB_XGTX_RST_CTL_WIDTH 1 45262306a36Sopenharmony_ci#define FRF_AB_EM_RST_CTL_LBN 54 45362306a36Sopenharmony_ci#define FRF_AB_EM_RST_CTL_WIDTH 1 45462306a36Sopenharmony_ci#define FRF_AB_EV_RST_CTL_LBN 53 45562306a36Sopenharmony_ci#define FRF_AB_EV_RST_CTL_WIDTH 1 45662306a36Sopenharmony_ci#define FRF_AB_SR_RST_CTL_LBN 52 45762306a36Sopenharmony_ci#define FRF_AB_SR_RST_CTL_WIDTH 1 45862306a36Sopenharmony_ci#define FRF_AB_RX_RST_CTL_LBN 51 45962306a36Sopenharmony_ci#define FRF_AB_RX_RST_CTL_WIDTH 1 46062306a36Sopenharmony_ci#define FRF_AB_TX_RST_CTL_LBN 50 46162306a36Sopenharmony_ci#define FRF_AB_TX_RST_CTL_WIDTH 1 46262306a36Sopenharmony_ci#define FRF_AB_EE_RST_CTL_LBN 49 46362306a36Sopenharmony_ci#define FRF_AB_EE_RST_CTL_WIDTH 1 46462306a36Sopenharmony_ci#define FRF_AB_CS_RST_CTL_LBN 48 46562306a36Sopenharmony_ci#define FRF_AB_CS_RST_CTL_WIDTH 1 46662306a36Sopenharmony_ci#define FRF_AB_HOT_RST_CTL_LBN 40 46762306a36Sopenharmony_ci#define FRF_AB_HOT_RST_CTL_WIDTH 2 46862306a36Sopenharmony_ci#define FRF_AB_RST_EXT_PHY_LBN 31 46962306a36Sopenharmony_ci#define FRF_AB_RST_EXT_PHY_WIDTH 1 47062306a36Sopenharmony_ci#define FRF_AB_RST_XAUI_SD_LBN 30 47162306a36Sopenharmony_ci#define FRF_AB_RST_XAUI_SD_WIDTH 1 47262306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_SD_LBN 29 47362306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_SD_WIDTH 1 47462306a36Sopenharmony_ci#define FRF_AA_RST_PCIX_LBN 28 47562306a36Sopenharmony_ci#define FRF_AA_RST_PCIX_WIDTH 1 47662306a36Sopenharmony_ci#define FRF_BB_RST_BIU_LBN 28 47762306a36Sopenharmony_ci#define FRF_BB_RST_BIU_WIDTH 1 47862306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_STKY_LBN 27 47962306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_STKY_WIDTH 1 48062306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_NSTKY_LBN 26 48162306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_NSTKY_WIDTH 1 48262306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_CORE_LBN 25 48362306a36Sopenharmony_ci#define FRF_AB_RST_PCIE_CORE_WIDTH 1 48462306a36Sopenharmony_ci#define FRF_AB_RST_XGRX_LBN 24 48562306a36Sopenharmony_ci#define FRF_AB_RST_XGRX_WIDTH 1 48662306a36Sopenharmony_ci#define FRF_AB_RST_XGTX_LBN 23 48762306a36Sopenharmony_ci#define FRF_AB_RST_XGTX_WIDTH 1 48862306a36Sopenharmony_ci#define FRF_AB_RST_EM_LBN 22 48962306a36Sopenharmony_ci#define FRF_AB_RST_EM_WIDTH 1 49062306a36Sopenharmony_ci#define FRF_AB_RST_EV_LBN 21 49162306a36Sopenharmony_ci#define FRF_AB_RST_EV_WIDTH 1 49262306a36Sopenharmony_ci#define FRF_AB_RST_SR_LBN 20 49362306a36Sopenharmony_ci#define FRF_AB_RST_SR_WIDTH 1 49462306a36Sopenharmony_ci#define FRF_AB_RST_RX_LBN 19 49562306a36Sopenharmony_ci#define FRF_AB_RST_RX_WIDTH 1 49662306a36Sopenharmony_ci#define FRF_AB_RST_TX_LBN 18 49762306a36Sopenharmony_ci#define FRF_AB_RST_TX_WIDTH 1 49862306a36Sopenharmony_ci#define FRF_AB_RST_SF_LBN 17 49962306a36Sopenharmony_ci#define FRF_AB_RST_SF_WIDTH 1 50062306a36Sopenharmony_ci#define FRF_AB_RST_CS_LBN 16 50162306a36Sopenharmony_ci#define FRF_AB_RST_CS_WIDTH 1 50262306a36Sopenharmony_ci#define FRF_AB_INT_RST_DUR_LBN 4 50362306a36Sopenharmony_ci#define FRF_AB_INT_RST_DUR_WIDTH 3 50462306a36Sopenharmony_ci#define FRF_AB_EXT_PHY_RST_DUR_LBN 1 50562306a36Sopenharmony_ci#define FRF_AB_EXT_PHY_RST_DUR_WIDTH 3 50662306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_10240US 7 50762306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_5120US 6 50862306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_2560US 5 50962306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_1280US 4 51062306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_640US 3 51162306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_320US 2 51262306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_160US 1 51362306a36Sopenharmony_ci#define FFE_AB_EXT_PHY_RST_DUR_80US 0 51462306a36Sopenharmony_ci#define FRF_AB_SWRST_LBN 0 51562306a36Sopenharmony_ci#define FRF_AB_SWRST_WIDTH 1 51662306a36Sopenharmony_ci 51762306a36Sopenharmony_ci/* FATAL_INTR_REG_KER: Fatal interrupt register for Kernel */ 51862306a36Sopenharmony_ci#define FR_AZ_FATAL_INTR_KER 0x00000230 51962306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_KER_EN_LBN 44 52062306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_KER_EN_WIDTH 1 52162306a36Sopenharmony_ci#define FRF_AB_PCI_BUSERR_INT_KER_EN_LBN 43 52262306a36Sopenharmony_ci#define FRF_AB_PCI_BUSERR_INT_KER_EN_WIDTH 1 52362306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_KER_EN_LBN 43 52462306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_KER_EN_WIDTH 1 52562306a36Sopenharmony_ci#define FRF_AZ_SRAM_OOB_INT_KER_EN_LBN 42 52662306a36Sopenharmony_ci#define FRF_AZ_SRAM_OOB_INT_KER_EN_WIDTH 1 52762306a36Sopenharmony_ci#define FRF_AZ_BUFID_OOB_INT_KER_EN_LBN 41 52862306a36Sopenharmony_ci#define FRF_AZ_BUFID_OOB_INT_KER_EN_WIDTH 1 52962306a36Sopenharmony_ci#define FRF_AZ_MEM_PERR_INT_KER_EN_LBN 40 53062306a36Sopenharmony_ci#define FRF_AZ_MEM_PERR_INT_KER_EN_WIDTH 1 53162306a36Sopenharmony_ci#define FRF_AZ_RBUF_OWN_INT_KER_EN_LBN 39 53262306a36Sopenharmony_ci#define FRF_AZ_RBUF_OWN_INT_KER_EN_WIDTH 1 53362306a36Sopenharmony_ci#define FRF_AZ_TBUF_OWN_INT_KER_EN_LBN 38 53462306a36Sopenharmony_ci#define FRF_AZ_TBUF_OWN_INT_KER_EN_WIDTH 1 53562306a36Sopenharmony_ci#define FRF_AZ_RDESCQ_OWN_INT_KER_EN_LBN 37 53662306a36Sopenharmony_ci#define FRF_AZ_RDESCQ_OWN_INT_KER_EN_WIDTH 1 53762306a36Sopenharmony_ci#define FRF_AZ_TDESCQ_OWN_INT_KER_EN_LBN 36 53862306a36Sopenharmony_ci#define FRF_AZ_TDESCQ_OWN_INT_KER_EN_WIDTH 1 53962306a36Sopenharmony_ci#define FRF_AZ_EVQ_OWN_INT_KER_EN_LBN 35 54062306a36Sopenharmony_ci#define FRF_AZ_EVQ_OWN_INT_KER_EN_WIDTH 1 54162306a36Sopenharmony_ci#define FRF_AZ_EVF_OFLO_INT_KER_EN_LBN 34 54262306a36Sopenharmony_ci#define FRF_AZ_EVF_OFLO_INT_KER_EN_WIDTH 1 54362306a36Sopenharmony_ci#define FRF_AZ_ILL_ADR_INT_KER_EN_LBN 33 54462306a36Sopenharmony_ci#define FRF_AZ_ILL_ADR_INT_KER_EN_WIDTH 1 54562306a36Sopenharmony_ci#define FRF_AZ_SRM_PERR_INT_KER_EN_LBN 32 54662306a36Sopenharmony_ci#define FRF_AZ_SRM_PERR_INT_KER_EN_WIDTH 1 54762306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_KER_LBN 12 54862306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_KER_WIDTH 1 54962306a36Sopenharmony_ci#define FRF_AB_PCI_BUSERR_INT_KER_LBN 11 55062306a36Sopenharmony_ci#define FRF_AB_PCI_BUSERR_INT_KER_WIDTH 1 55162306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_KER_LBN 11 55262306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_KER_WIDTH 1 55362306a36Sopenharmony_ci#define FRF_AZ_SRAM_OOB_INT_KER_LBN 10 55462306a36Sopenharmony_ci#define FRF_AZ_SRAM_OOB_INT_KER_WIDTH 1 55562306a36Sopenharmony_ci#define FRF_AZ_BUFID_DC_OOB_INT_KER_LBN 9 55662306a36Sopenharmony_ci#define FRF_AZ_BUFID_DC_OOB_INT_KER_WIDTH 1 55762306a36Sopenharmony_ci#define FRF_AZ_MEM_PERR_INT_KER_LBN 8 55862306a36Sopenharmony_ci#define FRF_AZ_MEM_PERR_INT_KER_WIDTH 1 55962306a36Sopenharmony_ci#define FRF_AZ_RBUF_OWN_INT_KER_LBN 7 56062306a36Sopenharmony_ci#define FRF_AZ_RBUF_OWN_INT_KER_WIDTH 1 56162306a36Sopenharmony_ci#define FRF_AZ_TBUF_OWN_INT_KER_LBN 6 56262306a36Sopenharmony_ci#define FRF_AZ_TBUF_OWN_INT_KER_WIDTH 1 56362306a36Sopenharmony_ci#define FRF_AZ_RDESCQ_OWN_INT_KER_LBN 5 56462306a36Sopenharmony_ci#define FRF_AZ_RDESCQ_OWN_INT_KER_WIDTH 1 56562306a36Sopenharmony_ci#define FRF_AZ_TDESCQ_OWN_INT_KER_LBN 4 56662306a36Sopenharmony_ci#define FRF_AZ_TDESCQ_OWN_INT_KER_WIDTH 1 56762306a36Sopenharmony_ci#define FRF_AZ_EVQ_OWN_INT_KER_LBN 3 56862306a36Sopenharmony_ci#define FRF_AZ_EVQ_OWN_INT_KER_WIDTH 1 56962306a36Sopenharmony_ci#define FRF_AZ_EVF_OFLO_INT_KER_LBN 2 57062306a36Sopenharmony_ci#define FRF_AZ_EVF_OFLO_INT_KER_WIDTH 1 57162306a36Sopenharmony_ci#define FRF_AZ_ILL_ADR_INT_KER_LBN 1 57262306a36Sopenharmony_ci#define FRF_AZ_ILL_ADR_INT_KER_WIDTH 1 57362306a36Sopenharmony_ci#define FRF_AZ_SRM_PERR_INT_KER_LBN 0 57462306a36Sopenharmony_ci#define FRF_AZ_SRM_PERR_INT_KER_WIDTH 1 57562306a36Sopenharmony_ci 57662306a36Sopenharmony_ci/* FATAL_INTR_REG_CHAR: Fatal interrupt register for Char */ 57762306a36Sopenharmony_ci#define FR_BZ_FATAL_INTR_CHAR 0x00000240 57862306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_CHAR_EN_LBN 44 57962306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_CHAR_EN_WIDTH 1 58062306a36Sopenharmony_ci#define FRF_BB_PCI_BUSERR_INT_CHAR_EN_LBN 43 58162306a36Sopenharmony_ci#define FRF_BB_PCI_BUSERR_INT_CHAR_EN_WIDTH 1 58262306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_CHAR_EN_LBN 43 58362306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_CHAR_EN_WIDTH 1 58462306a36Sopenharmony_ci#define FRF_BZ_SRAM_OOB_INT_CHAR_EN_LBN 42 58562306a36Sopenharmony_ci#define FRF_BZ_SRAM_OOB_INT_CHAR_EN_WIDTH 1 58662306a36Sopenharmony_ci#define FRF_BZ_BUFID_OOB_INT_CHAR_EN_LBN 41 58762306a36Sopenharmony_ci#define FRF_BZ_BUFID_OOB_INT_CHAR_EN_WIDTH 1 58862306a36Sopenharmony_ci#define FRF_BZ_MEM_PERR_INT_CHAR_EN_LBN 40 58962306a36Sopenharmony_ci#define FRF_BZ_MEM_PERR_INT_CHAR_EN_WIDTH 1 59062306a36Sopenharmony_ci#define FRF_BZ_RBUF_OWN_INT_CHAR_EN_LBN 39 59162306a36Sopenharmony_ci#define FRF_BZ_RBUF_OWN_INT_CHAR_EN_WIDTH 1 59262306a36Sopenharmony_ci#define FRF_BZ_TBUF_OWN_INT_CHAR_EN_LBN 38 59362306a36Sopenharmony_ci#define FRF_BZ_TBUF_OWN_INT_CHAR_EN_WIDTH 1 59462306a36Sopenharmony_ci#define FRF_BZ_RDESCQ_OWN_INT_CHAR_EN_LBN 37 59562306a36Sopenharmony_ci#define FRF_BZ_RDESCQ_OWN_INT_CHAR_EN_WIDTH 1 59662306a36Sopenharmony_ci#define FRF_BZ_TDESCQ_OWN_INT_CHAR_EN_LBN 36 59762306a36Sopenharmony_ci#define FRF_BZ_TDESCQ_OWN_INT_CHAR_EN_WIDTH 1 59862306a36Sopenharmony_ci#define FRF_BZ_EVQ_OWN_INT_CHAR_EN_LBN 35 59962306a36Sopenharmony_ci#define FRF_BZ_EVQ_OWN_INT_CHAR_EN_WIDTH 1 60062306a36Sopenharmony_ci#define FRF_BZ_EVF_OFLO_INT_CHAR_EN_LBN 34 60162306a36Sopenharmony_ci#define FRF_BZ_EVF_OFLO_INT_CHAR_EN_WIDTH 1 60262306a36Sopenharmony_ci#define FRF_BZ_ILL_ADR_INT_CHAR_EN_LBN 33 60362306a36Sopenharmony_ci#define FRF_BZ_ILL_ADR_INT_CHAR_EN_WIDTH 1 60462306a36Sopenharmony_ci#define FRF_BZ_SRM_PERR_INT_CHAR_EN_LBN 32 60562306a36Sopenharmony_ci#define FRF_BZ_SRM_PERR_INT_CHAR_EN_WIDTH 1 60662306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_CHAR_LBN 12 60762306a36Sopenharmony_ci#define FRF_CZ_SRAM_PERR_INT_P_CHAR_WIDTH 1 60862306a36Sopenharmony_ci#define FRF_BB_PCI_BUSERR_INT_CHAR_LBN 11 60962306a36Sopenharmony_ci#define FRF_BB_PCI_BUSERR_INT_CHAR_WIDTH 1 61062306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_CHAR_LBN 11 61162306a36Sopenharmony_ci#define FRF_CZ_MBU_PERR_INT_CHAR_WIDTH 1 61262306a36Sopenharmony_ci#define FRF_BZ_SRAM_OOB_INT_CHAR_LBN 10 61362306a36Sopenharmony_ci#define FRF_BZ_SRAM_OOB_INT_CHAR_WIDTH 1 61462306a36Sopenharmony_ci#define FRF_BZ_BUFID_DC_OOB_INT_CHAR_LBN 9 61562306a36Sopenharmony_ci#define FRF_BZ_BUFID_DC_OOB_INT_CHAR_WIDTH 1 61662306a36Sopenharmony_ci#define FRF_BZ_MEM_PERR_INT_CHAR_LBN 8 61762306a36Sopenharmony_ci#define FRF_BZ_MEM_PERR_INT_CHAR_WIDTH 1 61862306a36Sopenharmony_ci#define FRF_BZ_RBUF_OWN_INT_CHAR_LBN 7 61962306a36Sopenharmony_ci#define FRF_BZ_RBUF_OWN_INT_CHAR_WIDTH 1 62062306a36Sopenharmony_ci#define FRF_BZ_TBUF_OWN_INT_CHAR_LBN 6 62162306a36Sopenharmony_ci#define FRF_BZ_TBUF_OWN_INT_CHAR_WIDTH 1 62262306a36Sopenharmony_ci#define FRF_BZ_RDESCQ_OWN_INT_CHAR_LBN 5 62362306a36Sopenharmony_ci#define FRF_BZ_RDESCQ_OWN_INT_CHAR_WIDTH 1 62462306a36Sopenharmony_ci#define FRF_BZ_TDESCQ_OWN_INT_CHAR_LBN 4 62562306a36Sopenharmony_ci#define FRF_BZ_TDESCQ_OWN_INT_CHAR_WIDTH 1 62662306a36Sopenharmony_ci#define FRF_BZ_EVQ_OWN_INT_CHAR_LBN 3 62762306a36Sopenharmony_ci#define FRF_BZ_EVQ_OWN_INT_CHAR_WIDTH 1 62862306a36Sopenharmony_ci#define FRF_BZ_EVF_OFLO_INT_CHAR_LBN 2 62962306a36Sopenharmony_ci#define FRF_BZ_EVF_OFLO_INT_CHAR_WIDTH 1 63062306a36Sopenharmony_ci#define FRF_BZ_ILL_ADR_INT_CHAR_LBN 1 63162306a36Sopenharmony_ci#define FRF_BZ_ILL_ADR_INT_CHAR_WIDTH 1 63262306a36Sopenharmony_ci#define FRF_BZ_SRM_PERR_INT_CHAR_LBN 0 63362306a36Sopenharmony_ci#define FRF_BZ_SRM_PERR_INT_CHAR_WIDTH 1 63462306a36Sopenharmony_ci 63562306a36Sopenharmony_ci/* DP_CTRL_REG: Datapath control register */ 63662306a36Sopenharmony_ci#define FR_BZ_DP_CTRL 0x00000250 63762306a36Sopenharmony_ci#define FRF_BZ_FLS_EVQ_ID_LBN 0 63862306a36Sopenharmony_ci#define FRF_BZ_FLS_EVQ_ID_WIDTH 12 63962306a36Sopenharmony_ci 64062306a36Sopenharmony_ci/* MEM_STAT_REG: Memory status register */ 64162306a36Sopenharmony_ci#define FR_AZ_MEM_STAT 0x00000260 64262306a36Sopenharmony_ci#define FRF_AB_MEM_PERR_VEC_LBN 53 64362306a36Sopenharmony_ci#define FRF_AB_MEM_PERR_VEC_WIDTH 38 64462306a36Sopenharmony_ci#define FRF_AB_MBIST_CORR_LBN 38 64562306a36Sopenharmony_ci#define FRF_AB_MBIST_CORR_WIDTH 15 64662306a36Sopenharmony_ci#define FRF_AB_MBIST_ERR_LBN 0 64762306a36Sopenharmony_ci#define FRF_AB_MBIST_ERR_WIDTH 40 64862306a36Sopenharmony_ci#define FRF_CZ_MEM_PERR_VEC_LBN 0 64962306a36Sopenharmony_ci#define FRF_CZ_MEM_PERR_VEC_WIDTH 35 65062306a36Sopenharmony_ci 65162306a36Sopenharmony_ci/* CS_DEBUG_REG: Debug register */ 65262306a36Sopenharmony_ci#define FR_AZ_CS_DEBUG 0x00000270 65362306a36Sopenharmony_ci#define FRF_AB_GLB_DEBUG2_SEL_LBN 50 65462306a36Sopenharmony_ci#define FRF_AB_GLB_DEBUG2_SEL_WIDTH 3 65562306a36Sopenharmony_ci#define FRF_AB_DEBUG_BLK_SEL2_LBN 47 65662306a36Sopenharmony_ci#define FRF_AB_DEBUG_BLK_SEL2_WIDTH 3 65762306a36Sopenharmony_ci#define FRF_AB_DEBUG_BLK_SEL1_LBN 44 65862306a36Sopenharmony_ci#define FRF_AB_DEBUG_BLK_SEL1_WIDTH 3 65962306a36Sopenharmony_ci#define FRF_AB_DEBUG_BLK_SEL0_LBN 41 66062306a36Sopenharmony_ci#define FRF_AB_DEBUG_BLK_SEL0_WIDTH 3 66162306a36Sopenharmony_ci#define FRF_CZ_CS_PORT_NUM_LBN 40 66262306a36Sopenharmony_ci#define FRF_CZ_CS_PORT_NUM_WIDTH 2 66362306a36Sopenharmony_ci#define FRF_AB_MISC_DEBUG_ADDR_LBN 36 66462306a36Sopenharmony_ci#define FRF_AB_MISC_DEBUG_ADDR_WIDTH 5 66562306a36Sopenharmony_ci#define FRF_AB_SERDES_DEBUG_ADDR_LBN 31 66662306a36Sopenharmony_ci#define FRF_AB_SERDES_DEBUG_ADDR_WIDTH 5 66762306a36Sopenharmony_ci#define FRF_CZ_CS_PORT_FPE_LBN 1 66862306a36Sopenharmony_ci#define FRF_CZ_CS_PORT_FPE_WIDTH 35 66962306a36Sopenharmony_ci#define FRF_AB_EM_DEBUG_ADDR_LBN 26 67062306a36Sopenharmony_ci#define FRF_AB_EM_DEBUG_ADDR_WIDTH 5 67162306a36Sopenharmony_ci#define FRF_AB_SR_DEBUG_ADDR_LBN 21 67262306a36Sopenharmony_ci#define FRF_AB_SR_DEBUG_ADDR_WIDTH 5 67362306a36Sopenharmony_ci#define FRF_AB_EV_DEBUG_ADDR_LBN 16 67462306a36Sopenharmony_ci#define FRF_AB_EV_DEBUG_ADDR_WIDTH 5 67562306a36Sopenharmony_ci#define FRF_AB_RX_DEBUG_ADDR_LBN 11 67662306a36Sopenharmony_ci#define FRF_AB_RX_DEBUG_ADDR_WIDTH 5 67762306a36Sopenharmony_ci#define FRF_AB_TX_DEBUG_ADDR_LBN 6 67862306a36Sopenharmony_ci#define FRF_AB_TX_DEBUG_ADDR_WIDTH 5 67962306a36Sopenharmony_ci#define FRF_AB_CS_BIU_DEBUG_ADDR_LBN 1 68062306a36Sopenharmony_ci#define FRF_AB_CS_BIU_DEBUG_ADDR_WIDTH 5 68162306a36Sopenharmony_ci#define FRF_AZ_CS_DEBUG_EN_LBN 0 68262306a36Sopenharmony_ci#define FRF_AZ_CS_DEBUG_EN_WIDTH 1 68362306a36Sopenharmony_ci 68462306a36Sopenharmony_ci/* DRIVER_REG: Driver scratch register [0-7] */ 68562306a36Sopenharmony_ci#define FR_AZ_DRIVER 0x00000280 68662306a36Sopenharmony_ci#define FR_AZ_DRIVER_STEP 16 68762306a36Sopenharmony_ci#define FR_AZ_DRIVER_ROWS 8 68862306a36Sopenharmony_ci#define FRF_AZ_DRIVER_DW0_LBN 0 68962306a36Sopenharmony_ci#define FRF_AZ_DRIVER_DW0_WIDTH 32 69062306a36Sopenharmony_ci 69162306a36Sopenharmony_ci/* ALTERA_BUILD_REG: Altera build register */ 69262306a36Sopenharmony_ci#define FR_AZ_ALTERA_BUILD 0x00000300 69362306a36Sopenharmony_ci#define FRF_AZ_ALTERA_BUILD_VER_LBN 0 69462306a36Sopenharmony_ci#define FRF_AZ_ALTERA_BUILD_VER_WIDTH 32 69562306a36Sopenharmony_ci 69662306a36Sopenharmony_ci/* CSR_SPARE_REG: Spare register */ 69762306a36Sopenharmony_ci#define FR_AZ_CSR_SPARE 0x00000310 69862306a36Sopenharmony_ci#define FRF_AB_MEM_PERR_EN_LBN 64 69962306a36Sopenharmony_ci#define FRF_AB_MEM_PERR_EN_WIDTH 38 70062306a36Sopenharmony_ci#define FRF_CZ_MEM_PERR_EN_LBN 64 70162306a36Sopenharmony_ci#define FRF_CZ_MEM_PERR_EN_WIDTH 35 70262306a36Sopenharmony_ci#define FRF_AB_MEM_PERR_EN_TX_DATA_LBN 72 70362306a36Sopenharmony_ci#define FRF_AB_MEM_PERR_EN_TX_DATA_WIDTH 2 70462306a36Sopenharmony_ci#define FRF_AZ_CSR_SPARE_BITS_LBN 0 70562306a36Sopenharmony_ci#define FRF_AZ_CSR_SPARE_BITS_WIDTH 32 70662306a36Sopenharmony_ci 70762306a36Sopenharmony_ci/* PCIE_SD_CTL0123_REG: PCIE SerDes control register 0 to 3 */ 70862306a36Sopenharmony_ci#define FR_AB_PCIE_SD_CTL0123 0x00000320 70962306a36Sopenharmony_ci#define FRF_AB_PCIE_TESTSIG_H_LBN 96 71062306a36Sopenharmony_ci#define FRF_AB_PCIE_TESTSIG_H_WIDTH 19 71162306a36Sopenharmony_ci#define FRF_AB_PCIE_TESTSIG_L_LBN 64 71262306a36Sopenharmony_ci#define FRF_AB_PCIE_TESTSIG_L_WIDTH 19 71362306a36Sopenharmony_ci#define FRF_AB_PCIE_OFFSET_LBN 56 71462306a36Sopenharmony_ci#define FRF_AB_PCIE_OFFSET_WIDTH 8 71562306a36Sopenharmony_ci#define FRF_AB_PCIE_OFFSETEN_H_LBN 55 71662306a36Sopenharmony_ci#define FRF_AB_PCIE_OFFSETEN_H_WIDTH 1 71762306a36Sopenharmony_ci#define FRF_AB_PCIE_OFFSETEN_L_LBN 54 71862306a36Sopenharmony_ci#define FRF_AB_PCIE_OFFSETEN_L_WIDTH 1 71962306a36Sopenharmony_ci#define FRF_AB_PCIE_HIVMODE_H_LBN 53 72062306a36Sopenharmony_ci#define FRF_AB_PCIE_HIVMODE_H_WIDTH 1 72162306a36Sopenharmony_ci#define FRF_AB_PCIE_HIVMODE_L_LBN 52 72262306a36Sopenharmony_ci#define FRF_AB_PCIE_HIVMODE_L_WIDTH 1 72362306a36Sopenharmony_ci#define FRF_AB_PCIE_PARRESET_H_LBN 51 72462306a36Sopenharmony_ci#define FRF_AB_PCIE_PARRESET_H_WIDTH 1 72562306a36Sopenharmony_ci#define FRF_AB_PCIE_PARRESET_L_LBN 50 72662306a36Sopenharmony_ci#define FRF_AB_PCIE_PARRESET_L_WIDTH 1 72762306a36Sopenharmony_ci#define FRF_AB_PCIE_LPBKWDRV_H_LBN 49 72862306a36Sopenharmony_ci#define FRF_AB_PCIE_LPBKWDRV_H_WIDTH 1 72962306a36Sopenharmony_ci#define FRF_AB_PCIE_LPBKWDRV_L_LBN 48 73062306a36Sopenharmony_ci#define FRF_AB_PCIE_LPBKWDRV_L_WIDTH 1 73162306a36Sopenharmony_ci#define FRF_AB_PCIE_LPBK_LBN 40 73262306a36Sopenharmony_ci#define FRF_AB_PCIE_LPBK_WIDTH 8 73362306a36Sopenharmony_ci#define FRF_AB_PCIE_PARLPBK_LBN 32 73462306a36Sopenharmony_ci#define FRF_AB_PCIE_PARLPBK_WIDTH 8 73562306a36Sopenharmony_ci#define FRF_AB_PCIE_RXTERMADJ_H_LBN 30 73662306a36Sopenharmony_ci#define FRF_AB_PCIE_RXTERMADJ_H_WIDTH 2 73762306a36Sopenharmony_ci#define FRF_AB_PCIE_RXTERMADJ_L_LBN 28 73862306a36Sopenharmony_ci#define FRF_AB_PCIE_RXTERMADJ_L_WIDTH 2 73962306a36Sopenharmony_ci#define FFE_AB_PCIE_RXTERMADJ_MIN15PCNT 3 74062306a36Sopenharmony_ci#define FFE_AB_PCIE_RXTERMADJ_PL10PCNT 2 74162306a36Sopenharmony_ci#define FFE_AB_PCIE_RXTERMADJ_MIN17PCNT 1 74262306a36Sopenharmony_ci#define FFE_AB_PCIE_RXTERMADJ_NOMNL 0 74362306a36Sopenharmony_ci#define FRF_AB_PCIE_TXTERMADJ_H_LBN 26 74462306a36Sopenharmony_ci#define FRF_AB_PCIE_TXTERMADJ_H_WIDTH 2 74562306a36Sopenharmony_ci#define FRF_AB_PCIE_TXTERMADJ_L_LBN 24 74662306a36Sopenharmony_ci#define FRF_AB_PCIE_TXTERMADJ_L_WIDTH 2 74762306a36Sopenharmony_ci#define FFE_AB_PCIE_TXTERMADJ_MIN15PCNT 3 74862306a36Sopenharmony_ci#define FFE_AB_PCIE_TXTERMADJ_PL10PCNT 2 74962306a36Sopenharmony_ci#define FFE_AB_PCIE_TXTERMADJ_MIN17PCNT 1 75062306a36Sopenharmony_ci#define FFE_AB_PCIE_TXTERMADJ_NOMNL 0 75162306a36Sopenharmony_ci#define FRF_AB_PCIE_RXEQCTL_H_LBN 18 75262306a36Sopenharmony_ci#define FRF_AB_PCIE_RXEQCTL_H_WIDTH 2 75362306a36Sopenharmony_ci#define FRF_AB_PCIE_RXEQCTL_L_LBN 16 75462306a36Sopenharmony_ci#define FRF_AB_PCIE_RXEQCTL_L_WIDTH 2 75562306a36Sopenharmony_ci#define FFE_AB_PCIE_RXEQCTL_OFF_ALT 3 75662306a36Sopenharmony_ci#define FFE_AB_PCIE_RXEQCTL_OFF 2 75762306a36Sopenharmony_ci#define FFE_AB_PCIE_RXEQCTL_MIN 1 75862306a36Sopenharmony_ci#define FFE_AB_PCIE_RXEQCTL_MAX 0 75962306a36Sopenharmony_ci#define FRF_AB_PCIE_HIDRV_LBN 8 76062306a36Sopenharmony_ci#define FRF_AB_PCIE_HIDRV_WIDTH 8 76162306a36Sopenharmony_ci#define FRF_AB_PCIE_LODRV_LBN 0 76262306a36Sopenharmony_ci#define FRF_AB_PCIE_LODRV_WIDTH 8 76362306a36Sopenharmony_ci 76462306a36Sopenharmony_ci/* PCIE_SD_CTL45_REG: PCIE SerDes control register 4 and 5 */ 76562306a36Sopenharmony_ci#define FR_AB_PCIE_SD_CTL45 0x00000330 76662306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX7_LBN 60 76762306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX7_WIDTH 4 76862306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX6_LBN 56 76962306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX6_WIDTH 4 77062306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX5_LBN 52 77162306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX5_WIDTH 4 77262306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX4_LBN 48 77362306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX4_WIDTH 4 77462306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX3_LBN 44 77562306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX3_WIDTH 4 77662306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX2_LBN 40 77762306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX2_WIDTH 4 77862306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX1_LBN 36 77962306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX1_WIDTH 4 78062306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX0_LBN 32 78162306a36Sopenharmony_ci#define FRF_AB_PCIE_DTX0_WIDTH 4 78262306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ7_LBN 28 78362306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ7_WIDTH 4 78462306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ6_LBN 24 78562306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ6_WIDTH 4 78662306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ5_LBN 20 78762306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ5_WIDTH 4 78862306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ4_LBN 16 78962306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ4_WIDTH 4 79062306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ3_LBN 12 79162306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ3_WIDTH 4 79262306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ2_LBN 8 79362306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ2_WIDTH 4 79462306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ1_LBN 4 79562306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ1_WIDTH 4 79662306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ0_LBN 0 79762306a36Sopenharmony_ci#define FRF_AB_PCIE_DEQ0_WIDTH 4 79862306a36Sopenharmony_ci 79962306a36Sopenharmony_ci/* PCIE_PCS_CTL_STAT_REG: PCIE PCS control and status register */ 80062306a36Sopenharmony_ci#define FR_AB_PCIE_PCS_CTL_STAT 0x00000340 80162306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRCOUNT0_H_LBN 52 80262306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRCOUNT0_H_WIDTH 4 80362306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRCOUNT0_L_LBN 48 80462306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRCOUNT0_L_WIDTH 4 80562306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERR_LBN 40 80662306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERR_WIDTH 8 80762306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRH0_LBN 32 80862306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRH0_WIDTH 8 80962306a36Sopenharmony_ci#define FRF_AB_PCIE_FASTINIT_H_LBN 15 81062306a36Sopenharmony_ci#define FRF_AB_PCIE_FASTINIT_H_WIDTH 1 81162306a36Sopenharmony_ci#define FRF_AB_PCIE_FASTINIT_L_LBN 14 81262306a36Sopenharmony_ci#define FRF_AB_PCIE_FASTINIT_L_WIDTH 1 81362306a36Sopenharmony_ci#define FRF_AB_PCIE_CTCDISABLE_H_LBN 13 81462306a36Sopenharmony_ci#define FRF_AB_PCIE_CTCDISABLE_H_WIDTH 1 81562306a36Sopenharmony_ci#define FRF_AB_PCIE_CTCDISABLE_L_LBN 12 81662306a36Sopenharmony_ci#define FRF_AB_PCIE_CTCDISABLE_L_WIDTH 1 81762306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSSYNC_H_LBN 11 81862306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSSYNC_H_WIDTH 1 81962306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSSYNC_L_LBN 10 82062306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSSYNC_L_WIDTH 1 82162306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRACK_H_LBN 9 82262306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRACK_H_WIDTH 1 82362306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRACK_L_LBN 8 82462306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSERRACK_L_WIDTH 1 82562306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSSEL_LBN 0 82662306a36Sopenharmony_ci#define FRF_AB_PCIE_PRBSSEL_WIDTH 8 82762306a36Sopenharmony_ci 82862306a36Sopenharmony_ci/* DEBUG_DATA_OUT_REG: Live Debug and Debug 2 out ports */ 82962306a36Sopenharmony_ci#define FR_BB_DEBUG_DATA_OUT 0x00000350 83062306a36Sopenharmony_ci#define FRF_BB_DEBUG2_PORT_LBN 25 83162306a36Sopenharmony_ci#define FRF_BB_DEBUG2_PORT_WIDTH 15 83262306a36Sopenharmony_ci#define FRF_BB_DEBUG1_PORT_LBN 0 83362306a36Sopenharmony_ci#define FRF_BB_DEBUG1_PORT_WIDTH 25 83462306a36Sopenharmony_ci 83562306a36Sopenharmony_ci/* EVQ_RPTR_REGP0: Event queue read pointer register */ 83662306a36Sopenharmony_ci#define FR_BZ_EVQ_RPTR_P0 0x00000400 83762306a36Sopenharmony_ci#define FR_BZ_EVQ_RPTR_P0_STEP 8192 83862306a36Sopenharmony_ci#define FR_BZ_EVQ_RPTR_P0_ROWS 1024 83962306a36Sopenharmony_ci/* EVQ_RPTR_REG_KER: Event queue read pointer register */ 84062306a36Sopenharmony_ci#define FR_AA_EVQ_RPTR_KER 0x00011b00 84162306a36Sopenharmony_ci#define FR_AA_EVQ_RPTR_KER_STEP 4 84262306a36Sopenharmony_ci#define FR_AA_EVQ_RPTR_KER_ROWS 4 84362306a36Sopenharmony_ci/* EVQ_RPTR_REG: Event queue read pointer register */ 84462306a36Sopenharmony_ci#define FR_BZ_EVQ_RPTR 0x00fa0000 84562306a36Sopenharmony_ci#define FR_BZ_EVQ_RPTR_STEP 16 84662306a36Sopenharmony_ci#define FR_BB_EVQ_RPTR_ROWS 4096 84762306a36Sopenharmony_ci#define FR_CZ_EVQ_RPTR_ROWS 1024 84862306a36Sopenharmony_ci/* EVQ_RPTR_REGP123: Event queue read pointer register */ 84962306a36Sopenharmony_ci#define FR_BB_EVQ_RPTR_P123 0x01000400 85062306a36Sopenharmony_ci#define FR_BB_EVQ_RPTR_P123_STEP 8192 85162306a36Sopenharmony_ci#define FR_BB_EVQ_RPTR_P123_ROWS 3072 85262306a36Sopenharmony_ci#define FRF_AZ_EVQ_RPTR_VLD_LBN 15 85362306a36Sopenharmony_ci#define FRF_AZ_EVQ_RPTR_VLD_WIDTH 1 85462306a36Sopenharmony_ci#define FRF_AZ_EVQ_RPTR_LBN 0 85562306a36Sopenharmony_ci#define FRF_AZ_EVQ_RPTR_WIDTH 15 85662306a36Sopenharmony_ci 85762306a36Sopenharmony_ci/* TIMER_COMMAND_REGP0: Timer Command Registers */ 85862306a36Sopenharmony_ci#define FR_BZ_TIMER_COMMAND_P0 0x00000420 85962306a36Sopenharmony_ci#define FR_BZ_TIMER_COMMAND_P0_STEP 8192 86062306a36Sopenharmony_ci#define FR_BZ_TIMER_COMMAND_P0_ROWS 1024 86162306a36Sopenharmony_ci/* TIMER_COMMAND_REG_KER: Timer Command Registers */ 86262306a36Sopenharmony_ci#define FR_AA_TIMER_COMMAND_KER 0x00000420 86362306a36Sopenharmony_ci#define FR_AA_TIMER_COMMAND_KER_STEP 8192 86462306a36Sopenharmony_ci#define FR_AA_TIMER_COMMAND_KER_ROWS 4 86562306a36Sopenharmony_ci/* TIMER_COMMAND_REGP123: Timer Command Registers */ 86662306a36Sopenharmony_ci#define FR_BB_TIMER_COMMAND_P123 0x01000420 86762306a36Sopenharmony_ci#define FR_BB_TIMER_COMMAND_P123_STEP 8192 86862306a36Sopenharmony_ci#define FR_BB_TIMER_COMMAND_P123_ROWS 3072 86962306a36Sopenharmony_ci#define FRF_CZ_TC_TIMER_MODE_LBN 14 87062306a36Sopenharmony_ci#define FRF_CZ_TC_TIMER_MODE_WIDTH 2 87162306a36Sopenharmony_ci#define FRF_AB_TC_TIMER_MODE_LBN 12 87262306a36Sopenharmony_ci#define FRF_AB_TC_TIMER_MODE_WIDTH 2 87362306a36Sopenharmony_ci#define FRF_CZ_TC_TIMER_VAL_LBN 0 87462306a36Sopenharmony_ci#define FRF_CZ_TC_TIMER_VAL_WIDTH 14 87562306a36Sopenharmony_ci#define FRF_AB_TC_TIMER_VAL_LBN 0 87662306a36Sopenharmony_ci#define FRF_AB_TC_TIMER_VAL_WIDTH 12 87762306a36Sopenharmony_ci 87862306a36Sopenharmony_ci/* DRV_EV_REG: Driver generated event register */ 87962306a36Sopenharmony_ci#define FR_AZ_DRV_EV 0x00000440 88062306a36Sopenharmony_ci#define FRF_AZ_DRV_EV_QID_LBN 64 88162306a36Sopenharmony_ci#define FRF_AZ_DRV_EV_QID_WIDTH 12 88262306a36Sopenharmony_ci#define FRF_AZ_DRV_EV_DATA_LBN 0 88362306a36Sopenharmony_ci#define FRF_AZ_DRV_EV_DATA_WIDTH 64 88462306a36Sopenharmony_ci 88562306a36Sopenharmony_ci/* EVQ_CTL_REG: Event queue control register */ 88662306a36Sopenharmony_ci#define FR_AZ_EVQ_CTL 0x00000450 88762306a36Sopenharmony_ci#define FRF_CZ_RX_EVQ_WAKEUP_MASK_LBN 15 88862306a36Sopenharmony_ci#define FRF_CZ_RX_EVQ_WAKEUP_MASK_WIDTH 10 88962306a36Sopenharmony_ci#define FRF_BB_RX_EVQ_WAKEUP_MASK_LBN 15 89062306a36Sopenharmony_ci#define FRF_BB_RX_EVQ_WAKEUP_MASK_WIDTH 6 89162306a36Sopenharmony_ci#define FRF_AZ_EVQ_OWNERR_CTL_LBN 14 89262306a36Sopenharmony_ci#define FRF_AZ_EVQ_OWNERR_CTL_WIDTH 1 89362306a36Sopenharmony_ci#define FRF_AZ_EVQ_FIFO_AF_TH_LBN 7 89462306a36Sopenharmony_ci#define FRF_AZ_EVQ_FIFO_AF_TH_WIDTH 7 89562306a36Sopenharmony_ci#define FRF_AZ_EVQ_FIFO_NOTAF_TH_LBN 0 89662306a36Sopenharmony_ci#define FRF_AZ_EVQ_FIFO_NOTAF_TH_WIDTH 7 89762306a36Sopenharmony_ci 89862306a36Sopenharmony_ci/* EVQ_CNT1_REG: Event counter 1 register */ 89962306a36Sopenharmony_ci#define FR_AZ_EVQ_CNT1 0x00000460 90062306a36Sopenharmony_ci#define FRF_AZ_EVQ_CNT_PRE_FIFO_LBN 120 90162306a36Sopenharmony_ci#define FRF_AZ_EVQ_CNT_PRE_FIFO_WIDTH 7 90262306a36Sopenharmony_ci#define FRF_AZ_EVQ_CNT_TOBIU_LBN 100 90362306a36Sopenharmony_ci#define FRF_AZ_EVQ_CNT_TOBIU_WIDTH 20 90462306a36Sopenharmony_ci#define FRF_AZ_EVQ_TX_REQ_CNT_LBN 80 90562306a36Sopenharmony_ci#define FRF_AZ_EVQ_TX_REQ_CNT_WIDTH 20 90662306a36Sopenharmony_ci#define FRF_AZ_EVQ_RX_REQ_CNT_LBN 60 90762306a36Sopenharmony_ci#define FRF_AZ_EVQ_RX_REQ_CNT_WIDTH 20 90862306a36Sopenharmony_ci#define FRF_AZ_EVQ_EM_REQ_CNT_LBN 40 90962306a36Sopenharmony_ci#define FRF_AZ_EVQ_EM_REQ_CNT_WIDTH 20 91062306a36Sopenharmony_ci#define FRF_AZ_EVQ_CSR_REQ_CNT_LBN 20 91162306a36Sopenharmony_ci#define FRF_AZ_EVQ_CSR_REQ_CNT_WIDTH 20 91262306a36Sopenharmony_ci#define FRF_AZ_EVQ_ERR_REQ_CNT_LBN 0 91362306a36Sopenharmony_ci#define FRF_AZ_EVQ_ERR_REQ_CNT_WIDTH 20 91462306a36Sopenharmony_ci 91562306a36Sopenharmony_ci/* EVQ_CNT2_REG: Event counter 2 register */ 91662306a36Sopenharmony_ci#define FR_AZ_EVQ_CNT2 0x00000470 91762306a36Sopenharmony_ci#define FRF_AZ_EVQ_UPD_REQ_CNT_LBN 104 91862306a36Sopenharmony_ci#define FRF_AZ_EVQ_UPD_REQ_CNT_WIDTH 20 91962306a36Sopenharmony_ci#define FRF_AZ_EVQ_CLR_REQ_CNT_LBN 84 92062306a36Sopenharmony_ci#define FRF_AZ_EVQ_CLR_REQ_CNT_WIDTH 20 92162306a36Sopenharmony_ci#define FRF_AZ_EVQ_RDY_CNT_LBN 80 92262306a36Sopenharmony_ci#define FRF_AZ_EVQ_RDY_CNT_WIDTH 4 92362306a36Sopenharmony_ci#define FRF_AZ_EVQ_WU_REQ_CNT_LBN 60 92462306a36Sopenharmony_ci#define FRF_AZ_EVQ_WU_REQ_CNT_WIDTH 20 92562306a36Sopenharmony_ci#define FRF_AZ_EVQ_WET_REQ_CNT_LBN 40 92662306a36Sopenharmony_ci#define FRF_AZ_EVQ_WET_REQ_CNT_WIDTH 20 92762306a36Sopenharmony_ci#define FRF_AZ_EVQ_INIT_REQ_CNT_LBN 20 92862306a36Sopenharmony_ci#define FRF_AZ_EVQ_INIT_REQ_CNT_WIDTH 20 92962306a36Sopenharmony_ci#define FRF_AZ_EVQ_TM_REQ_CNT_LBN 0 93062306a36Sopenharmony_ci#define FRF_AZ_EVQ_TM_REQ_CNT_WIDTH 20 93162306a36Sopenharmony_ci 93262306a36Sopenharmony_ci/* USR_EV_REG: Event mailbox register */ 93362306a36Sopenharmony_ci#define FR_CZ_USR_EV 0x00000540 93462306a36Sopenharmony_ci#define FR_CZ_USR_EV_STEP 8192 93562306a36Sopenharmony_ci#define FR_CZ_USR_EV_ROWS 1024 93662306a36Sopenharmony_ci#define FRF_CZ_USR_EV_DATA_LBN 0 93762306a36Sopenharmony_ci#define FRF_CZ_USR_EV_DATA_WIDTH 32 93862306a36Sopenharmony_ci 93962306a36Sopenharmony_ci/* BUF_TBL_CFG_REG: Buffer table configuration register */ 94062306a36Sopenharmony_ci#define FR_AZ_BUF_TBL_CFG 0x00000600 94162306a36Sopenharmony_ci#define FRF_AZ_BUF_TBL_MODE_LBN 3 94262306a36Sopenharmony_ci#define FRF_AZ_BUF_TBL_MODE_WIDTH 1 94362306a36Sopenharmony_ci 94462306a36Sopenharmony_ci/* SRM_RX_DC_CFG_REG: SRAM receive descriptor cache configuration register */ 94562306a36Sopenharmony_ci#define FR_AZ_SRM_RX_DC_CFG 0x00000610 94662306a36Sopenharmony_ci#define FRF_AZ_SRM_CLK_TMP_EN_LBN 21 94762306a36Sopenharmony_ci#define FRF_AZ_SRM_CLK_TMP_EN_WIDTH 1 94862306a36Sopenharmony_ci#define FRF_AZ_SRM_RX_DC_BASE_ADR_LBN 0 94962306a36Sopenharmony_ci#define FRF_AZ_SRM_RX_DC_BASE_ADR_WIDTH 21 95062306a36Sopenharmony_ci 95162306a36Sopenharmony_ci/* SRM_TX_DC_CFG_REG: SRAM transmit descriptor cache configuration register */ 95262306a36Sopenharmony_ci#define FR_AZ_SRM_TX_DC_CFG 0x00000620 95362306a36Sopenharmony_ci#define FRF_AZ_SRM_TX_DC_BASE_ADR_LBN 0 95462306a36Sopenharmony_ci#define FRF_AZ_SRM_TX_DC_BASE_ADR_WIDTH 21 95562306a36Sopenharmony_ci 95662306a36Sopenharmony_ci/* SRM_CFG_REG: SRAM configuration register */ 95762306a36Sopenharmony_ci#define FR_AZ_SRM_CFG 0x00000630 95862306a36Sopenharmony_ci#define FRF_AZ_SRM_OOB_ADR_INTEN_LBN 5 95962306a36Sopenharmony_ci#define FRF_AZ_SRM_OOB_ADR_INTEN_WIDTH 1 96062306a36Sopenharmony_ci#define FRF_AZ_SRM_OOB_BUF_INTEN_LBN 4 96162306a36Sopenharmony_ci#define FRF_AZ_SRM_OOB_BUF_INTEN_WIDTH 1 96262306a36Sopenharmony_ci#define FRF_AZ_SRM_INIT_EN_LBN 3 96362306a36Sopenharmony_ci#define FRF_AZ_SRM_INIT_EN_WIDTH 1 96462306a36Sopenharmony_ci#define FRF_AZ_SRM_NUM_BANK_LBN 2 96562306a36Sopenharmony_ci#define FRF_AZ_SRM_NUM_BANK_WIDTH 1 96662306a36Sopenharmony_ci#define FRF_AZ_SRM_BANK_SIZE_LBN 0 96762306a36Sopenharmony_ci#define FRF_AZ_SRM_BANK_SIZE_WIDTH 2 96862306a36Sopenharmony_ci 96962306a36Sopenharmony_ci/* BUF_TBL_UPD_REG: Buffer table update register */ 97062306a36Sopenharmony_ci#define FR_AZ_BUF_TBL_UPD 0x00000650 97162306a36Sopenharmony_ci#define FRF_AZ_BUF_UPD_CMD_LBN 63 97262306a36Sopenharmony_ci#define FRF_AZ_BUF_UPD_CMD_WIDTH 1 97362306a36Sopenharmony_ci#define FRF_AZ_BUF_CLR_CMD_LBN 62 97462306a36Sopenharmony_ci#define FRF_AZ_BUF_CLR_CMD_WIDTH 1 97562306a36Sopenharmony_ci#define FRF_AZ_BUF_CLR_END_ID_LBN 32 97662306a36Sopenharmony_ci#define FRF_AZ_BUF_CLR_END_ID_WIDTH 20 97762306a36Sopenharmony_ci#define FRF_AZ_BUF_CLR_START_ID_LBN 0 97862306a36Sopenharmony_ci#define FRF_AZ_BUF_CLR_START_ID_WIDTH 20 97962306a36Sopenharmony_ci 98062306a36Sopenharmony_ci/* SRM_UPD_EVQ_REG: Buffer table update register */ 98162306a36Sopenharmony_ci#define FR_AZ_SRM_UPD_EVQ 0x00000660 98262306a36Sopenharmony_ci#define FRF_AZ_SRM_UPD_EVQ_ID_LBN 0 98362306a36Sopenharmony_ci#define FRF_AZ_SRM_UPD_EVQ_ID_WIDTH 12 98462306a36Sopenharmony_ci 98562306a36Sopenharmony_ci/* SRAM_PARITY_REG: SRAM parity register. */ 98662306a36Sopenharmony_ci#define FR_AZ_SRAM_PARITY 0x00000670 98762306a36Sopenharmony_ci#define FRF_CZ_BYPASS_ECC_LBN 3 98862306a36Sopenharmony_ci#define FRF_CZ_BYPASS_ECC_WIDTH 1 98962306a36Sopenharmony_ci#define FRF_CZ_SEC_INT_LBN 2 99062306a36Sopenharmony_ci#define FRF_CZ_SEC_INT_WIDTH 1 99162306a36Sopenharmony_ci#define FRF_CZ_FORCE_SRAM_DOUBLE_ERR_LBN 1 99262306a36Sopenharmony_ci#define FRF_CZ_FORCE_SRAM_DOUBLE_ERR_WIDTH 1 99362306a36Sopenharmony_ci#define FRF_AB_FORCE_SRAM_PERR_LBN 0 99462306a36Sopenharmony_ci#define FRF_AB_FORCE_SRAM_PERR_WIDTH 1 99562306a36Sopenharmony_ci#define FRF_CZ_FORCE_SRAM_SINGLE_ERR_LBN 0 99662306a36Sopenharmony_ci#define FRF_CZ_FORCE_SRAM_SINGLE_ERR_WIDTH 1 99762306a36Sopenharmony_ci 99862306a36Sopenharmony_ci/* RX_CFG_REG: Receive configuration register */ 99962306a36Sopenharmony_ci#define FR_AZ_RX_CFG 0x00000800 100062306a36Sopenharmony_ci#define FRF_CZ_RX_MIN_KBUF_SIZE_LBN 72 100162306a36Sopenharmony_ci#define FRF_CZ_RX_MIN_KBUF_SIZE_WIDTH 14 100262306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_EN_LBN 71 100362306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_EN_WIDTH 1 100462306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_PLD_BUF_SIZE_LBN 62 100562306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_PLD_BUF_SIZE_WIDTH 9 100662306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_HDR_BUF_SIZE_LBN 53 100762306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_HDR_BUF_SIZE_WIDTH 9 100862306a36Sopenharmony_ci#define FRF_CZ_RX_PRE_RFF_IPG_LBN 49 100962306a36Sopenharmony_ci#define FRF_CZ_RX_PRE_RFF_IPG_WIDTH 4 101062306a36Sopenharmony_ci#define FRF_BZ_RX_TCP_SUP_LBN 48 101162306a36Sopenharmony_ci#define FRF_BZ_RX_TCP_SUP_WIDTH 1 101262306a36Sopenharmony_ci#define FRF_BZ_RX_INGR_EN_LBN 47 101362306a36Sopenharmony_ci#define FRF_BZ_RX_INGR_EN_WIDTH 1 101462306a36Sopenharmony_ci#define FRF_BZ_RX_IP_HASH_LBN 46 101562306a36Sopenharmony_ci#define FRF_BZ_RX_IP_HASH_WIDTH 1 101662306a36Sopenharmony_ci#define FRF_BZ_RX_HASH_ALG_LBN 45 101762306a36Sopenharmony_ci#define FRF_BZ_RX_HASH_ALG_WIDTH 1 101862306a36Sopenharmony_ci#define FRF_BZ_RX_HASH_INSRT_HDR_LBN 44 101962306a36Sopenharmony_ci#define FRF_BZ_RX_HASH_INSRT_HDR_WIDTH 1 102062306a36Sopenharmony_ci#define FRF_BZ_RX_DESC_PUSH_EN_LBN 43 102162306a36Sopenharmony_ci#define FRF_BZ_RX_DESC_PUSH_EN_WIDTH 1 102262306a36Sopenharmony_ci#define FRF_BZ_RX_RDW_PATCH_EN_LBN 42 102362306a36Sopenharmony_ci#define FRF_BZ_RX_RDW_PATCH_EN_WIDTH 1 102462306a36Sopenharmony_ci#define FRF_BB_RX_PCI_BURST_SIZE_LBN 39 102562306a36Sopenharmony_ci#define FRF_BB_RX_PCI_BURST_SIZE_WIDTH 3 102662306a36Sopenharmony_ci#define FRF_BZ_RX_OWNERR_CTL_LBN 38 102762306a36Sopenharmony_ci#define FRF_BZ_RX_OWNERR_CTL_WIDTH 1 102862306a36Sopenharmony_ci#define FRF_BZ_RX_XON_TX_TH_LBN 33 102962306a36Sopenharmony_ci#define FRF_BZ_RX_XON_TX_TH_WIDTH 5 103062306a36Sopenharmony_ci#define FRF_AA_RX_DESC_PUSH_EN_LBN 35 103162306a36Sopenharmony_ci#define FRF_AA_RX_DESC_PUSH_EN_WIDTH 1 103262306a36Sopenharmony_ci#define FRF_AA_RX_RDW_PATCH_EN_LBN 34 103362306a36Sopenharmony_ci#define FRF_AA_RX_RDW_PATCH_EN_WIDTH 1 103462306a36Sopenharmony_ci#define FRF_AA_RX_PCI_BURST_SIZE_LBN 31 103562306a36Sopenharmony_ci#define FRF_AA_RX_PCI_BURST_SIZE_WIDTH 3 103662306a36Sopenharmony_ci#define FRF_BZ_RX_XOFF_TX_TH_LBN 28 103762306a36Sopenharmony_ci#define FRF_BZ_RX_XOFF_TX_TH_WIDTH 5 103862306a36Sopenharmony_ci#define FRF_AA_RX_OWNERR_CTL_LBN 30 103962306a36Sopenharmony_ci#define FRF_AA_RX_OWNERR_CTL_WIDTH 1 104062306a36Sopenharmony_ci#define FRF_AA_RX_XON_TX_TH_LBN 25 104162306a36Sopenharmony_ci#define FRF_AA_RX_XON_TX_TH_WIDTH 5 104262306a36Sopenharmony_ci#define FRF_BZ_RX_USR_BUF_SIZE_LBN 19 104362306a36Sopenharmony_ci#define FRF_BZ_RX_USR_BUF_SIZE_WIDTH 9 104462306a36Sopenharmony_ci#define FRF_AA_RX_XOFF_TX_TH_LBN 20 104562306a36Sopenharmony_ci#define FRF_AA_RX_XOFF_TX_TH_WIDTH 5 104662306a36Sopenharmony_ci#define FRF_AA_RX_USR_BUF_SIZE_LBN 11 104762306a36Sopenharmony_ci#define FRF_AA_RX_USR_BUF_SIZE_WIDTH 9 104862306a36Sopenharmony_ci#define FRF_BZ_RX_XON_MAC_TH_LBN 10 104962306a36Sopenharmony_ci#define FRF_BZ_RX_XON_MAC_TH_WIDTH 9 105062306a36Sopenharmony_ci#define FRF_AA_RX_XON_MAC_TH_LBN 6 105162306a36Sopenharmony_ci#define FRF_AA_RX_XON_MAC_TH_WIDTH 5 105262306a36Sopenharmony_ci#define FRF_BZ_RX_XOFF_MAC_TH_LBN 1 105362306a36Sopenharmony_ci#define FRF_BZ_RX_XOFF_MAC_TH_WIDTH 9 105462306a36Sopenharmony_ci#define FRF_AA_RX_XOFF_MAC_TH_LBN 1 105562306a36Sopenharmony_ci#define FRF_AA_RX_XOFF_MAC_TH_WIDTH 5 105662306a36Sopenharmony_ci#define FRF_AZ_RX_XOFF_MAC_EN_LBN 0 105762306a36Sopenharmony_ci#define FRF_AZ_RX_XOFF_MAC_EN_WIDTH 1 105862306a36Sopenharmony_ci 105962306a36Sopenharmony_ci/* RX_FILTER_CTL_REG: Receive filter control registers */ 106062306a36Sopenharmony_ci#define FR_BZ_RX_FILTER_CTL 0x00000810 106162306a36Sopenharmony_ci#define FRF_CZ_ETHERNET_WILDCARD_SEARCH_LIMIT_LBN 94 106262306a36Sopenharmony_ci#define FRF_CZ_ETHERNET_WILDCARD_SEARCH_LIMIT_WIDTH 8 106362306a36Sopenharmony_ci#define FRF_CZ_ETHERNET_FULL_SEARCH_LIMIT_LBN 86 106462306a36Sopenharmony_ci#define FRF_CZ_ETHERNET_FULL_SEARCH_LIMIT_WIDTH 8 106562306a36Sopenharmony_ci#define FRF_CZ_RX_FILTER_ALL_VLAN_ETHERTYPES_LBN 85 106662306a36Sopenharmony_ci#define FRF_CZ_RX_FILTER_ALL_VLAN_ETHERTYPES_WIDTH 1 106762306a36Sopenharmony_ci#define FRF_CZ_RX_VLAN_MATCH_ETHERTYPE_LBN 69 106862306a36Sopenharmony_ci#define FRF_CZ_RX_VLAN_MATCH_ETHERTYPE_WIDTH 16 106962306a36Sopenharmony_ci#define FRF_CZ_MULTICAST_NOMATCH_Q_ID_LBN 57 107062306a36Sopenharmony_ci#define FRF_CZ_MULTICAST_NOMATCH_Q_ID_WIDTH 12 107162306a36Sopenharmony_ci#define FRF_CZ_MULTICAST_NOMATCH_RSS_ENABLED_LBN 56 107262306a36Sopenharmony_ci#define FRF_CZ_MULTICAST_NOMATCH_RSS_ENABLED_WIDTH 1 107362306a36Sopenharmony_ci#define FRF_CZ_MULTICAST_NOMATCH_IP_OVERRIDE_LBN 55 107462306a36Sopenharmony_ci#define FRF_CZ_MULTICAST_NOMATCH_IP_OVERRIDE_WIDTH 1 107562306a36Sopenharmony_ci#define FRF_CZ_UNICAST_NOMATCH_Q_ID_LBN 43 107662306a36Sopenharmony_ci#define FRF_CZ_UNICAST_NOMATCH_Q_ID_WIDTH 12 107762306a36Sopenharmony_ci#define FRF_CZ_UNICAST_NOMATCH_RSS_ENABLED_LBN 42 107862306a36Sopenharmony_ci#define FRF_CZ_UNICAST_NOMATCH_RSS_ENABLED_WIDTH 1 107962306a36Sopenharmony_ci#define FRF_CZ_UNICAST_NOMATCH_IP_OVERRIDE_LBN 41 108062306a36Sopenharmony_ci#define FRF_CZ_UNICAST_NOMATCH_IP_OVERRIDE_WIDTH 1 108162306a36Sopenharmony_ci#define FRF_BZ_SCATTER_ENBL_NO_MATCH_Q_LBN 40 108262306a36Sopenharmony_ci#define FRF_BZ_SCATTER_ENBL_NO_MATCH_Q_WIDTH 1 108362306a36Sopenharmony_ci#define FRF_BZ_UDP_FULL_SRCH_LIMIT_LBN 32 108462306a36Sopenharmony_ci#define FRF_BZ_UDP_FULL_SRCH_LIMIT_WIDTH 8 108562306a36Sopenharmony_ci#define FRF_BZ_NUM_KER_LBN 24 108662306a36Sopenharmony_ci#define FRF_BZ_NUM_KER_WIDTH 2 108762306a36Sopenharmony_ci#define FRF_BZ_UDP_WILD_SRCH_LIMIT_LBN 16 108862306a36Sopenharmony_ci#define FRF_BZ_UDP_WILD_SRCH_LIMIT_WIDTH 8 108962306a36Sopenharmony_ci#define FRF_BZ_TCP_WILD_SRCH_LIMIT_LBN 8 109062306a36Sopenharmony_ci#define FRF_BZ_TCP_WILD_SRCH_LIMIT_WIDTH 8 109162306a36Sopenharmony_ci#define FRF_BZ_TCP_FULL_SRCH_LIMIT_LBN 0 109262306a36Sopenharmony_ci#define FRF_BZ_TCP_FULL_SRCH_LIMIT_WIDTH 8 109362306a36Sopenharmony_ci 109462306a36Sopenharmony_ci/* RX_FLUSH_DESCQ_REG: Receive flush descriptor queue register */ 109562306a36Sopenharmony_ci#define FR_AZ_RX_FLUSH_DESCQ 0x00000820 109662306a36Sopenharmony_ci#define FRF_AZ_RX_FLUSH_DESCQ_CMD_LBN 24 109762306a36Sopenharmony_ci#define FRF_AZ_RX_FLUSH_DESCQ_CMD_WIDTH 1 109862306a36Sopenharmony_ci#define FRF_AZ_RX_FLUSH_DESCQ_LBN 0 109962306a36Sopenharmony_ci#define FRF_AZ_RX_FLUSH_DESCQ_WIDTH 12 110062306a36Sopenharmony_ci 110162306a36Sopenharmony_ci/* RX_DESC_UPD_REGP0: Receive descriptor update register. */ 110262306a36Sopenharmony_ci#define FR_BZ_RX_DESC_UPD_P0 0x00000830 110362306a36Sopenharmony_ci#define FR_BZ_RX_DESC_UPD_P0_STEP 8192 110462306a36Sopenharmony_ci#define FR_BZ_RX_DESC_UPD_P0_ROWS 1024 110562306a36Sopenharmony_ci/* RX_DESC_UPD_REG_KER: Receive descriptor update register. */ 110662306a36Sopenharmony_ci#define FR_AA_RX_DESC_UPD_KER 0x00000830 110762306a36Sopenharmony_ci#define FR_AA_RX_DESC_UPD_KER_STEP 8192 110862306a36Sopenharmony_ci#define FR_AA_RX_DESC_UPD_KER_ROWS 4 110962306a36Sopenharmony_ci/* RX_DESC_UPD_REGP123: Receive descriptor update register. */ 111062306a36Sopenharmony_ci#define FR_BB_RX_DESC_UPD_P123 0x01000830 111162306a36Sopenharmony_ci#define FR_BB_RX_DESC_UPD_P123_STEP 8192 111262306a36Sopenharmony_ci#define FR_BB_RX_DESC_UPD_P123_ROWS 3072 111362306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_WPTR_LBN 96 111462306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_WPTR_WIDTH 12 111562306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_PUSH_CMD_LBN 95 111662306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_PUSH_CMD_WIDTH 1 111762306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_LBN 0 111862306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_WIDTH 64 111962306a36Sopenharmony_ci 112062306a36Sopenharmony_ci/* RX_DC_CFG_REG: Receive descriptor cache configuration register */ 112162306a36Sopenharmony_ci#define FR_AZ_RX_DC_CFG 0x00000840 112262306a36Sopenharmony_ci#define FRF_AB_RX_MAX_PF_LBN 2 112362306a36Sopenharmony_ci#define FRF_AB_RX_MAX_PF_WIDTH 2 112462306a36Sopenharmony_ci#define FRF_AZ_RX_DC_SIZE_LBN 0 112562306a36Sopenharmony_ci#define FRF_AZ_RX_DC_SIZE_WIDTH 2 112662306a36Sopenharmony_ci#define FFE_AZ_RX_DC_SIZE_64 3 112762306a36Sopenharmony_ci#define FFE_AZ_RX_DC_SIZE_32 2 112862306a36Sopenharmony_ci#define FFE_AZ_RX_DC_SIZE_16 1 112962306a36Sopenharmony_ci#define FFE_AZ_RX_DC_SIZE_8 0 113062306a36Sopenharmony_ci 113162306a36Sopenharmony_ci/* RX_DC_PF_WM_REG: Receive descriptor cache pre-fetch watermark register */ 113262306a36Sopenharmony_ci#define FR_AZ_RX_DC_PF_WM 0x00000850 113362306a36Sopenharmony_ci#define FRF_AZ_RX_DC_PF_HWM_LBN 6 113462306a36Sopenharmony_ci#define FRF_AZ_RX_DC_PF_HWM_WIDTH 6 113562306a36Sopenharmony_ci#define FRF_AZ_RX_DC_PF_LWM_LBN 0 113662306a36Sopenharmony_ci#define FRF_AZ_RX_DC_PF_LWM_WIDTH 6 113762306a36Sopenharmony_ci 113862306a36Sopenharmony_ci/* RX_RSS_TKEY_REG: RSS Toeplitz hash key */ 113962306a36Sopenharmony_ci#define FR_BZ_RX_RSS_TKEY 0x00000860 114062306a36Sopenharmony_ci#define FRF_BZ_RX_RSS_TKEY_HI_LBN 64 114162306a36Sopenharmony_ci#define FRF_BZ_RX_RSS_TKEY_HI_WIDTH 64 114262306a36Sopenharmony_ci#define FRF_BZ_RX_RSS_TKEY_LO_LBN 0 114362306a36Sopenharmony_ci#define FRF_BZ_RX_RSS_TKEY_LO_WIDTH 64 114462306a36Sopenharmony_ci 114562306a36Sopenharmony_ci/* RX_NODESC_DROP_REG: Receive dropped packet counter register */ 114662306a36Sopenharmony_ci#define FR_AZ_RX_NODESC_DROP 0x00000880 114762306a36Sopenharmony_ci#define FRF_CZ_RX_NODESC_DROP_CNT_LBN 0 114862306a36Sopenharmony_ci#define FRF_CZ_RX_NODESC_DROP_CNT_WIDTH 32 114962306a36Sopenharmony_ci#define FRF_AB_RX_NODESC_DROP_CNT_LBN 0 115062306a36Sopenharmony_ci#define FRF_AB_RX_NODESC_DROP_CNT_WIDTH 16 115162306a36Sopenharmony_ci 115262306a36Sopenharmony_ci/* RX_SELF_RST_REG: Receive self reset register */ 115362306a36Sopenharmony_ci#define FR_AA_RX_SELF_RST 0x00000890 115462306a36Sopenharmony_ci#define FRF_AA_RX_ISCSI_DIS_LBN 17 115562306a36Sopenharmony_ci#define FRF_AA_RX_ISCSI_DIS_WIDTH 1 115662306a36Sopenharmony_ci#define FRF_AA_RX_SW_RST_REG_LBN 16 115762306a36Sopenharmony_ci#define FRF_AA_RX_SW_RST_REG_WIDTH 1 115862306a36Sopenharmony_ci#define FRF_AA_RX_NODESC_WAIT_DIS_LBN 9 115962306a36Sopenharmony_ci#define FRF_AA_RX_NODESC_WAIT_DIS_WIDTH 1 116062306a36Sopenharmony_ci#define FRF_AA_RX_SELF_RST_EN_LBN 8 116162306a36Sopenharmony_ci#define FRF_AA_RX_SELF_RST_EN_WIDTH 1 116262306a36Sopenharmony_ci#define FRF_AA_RX_MAX_PF_LAT_LBN 4 116362306a36Sopenharmony_ci#define FRF_AA_RX_MAX_PF_LAT_WIDTH 4 116462306a36Sopenharmony_ci#define FRF_AA_RX_MAX_LU_LAT_LBN 0 116562306a36Sopenharmony_ci#define FRF_AA_RX_MAX_LU_LAT_WIDTH 4 116662306a36Sopenharmony_ci 116762306a36Sopenharmony_ci/* RX_DEBUG_REG: undocumented register */ 116862306a36Sopenharmony_ci#define FR_AZ_RX_DEBUG 0x000008a0 116962306a36Sopenharmony_ci#define FRF_AZ_RX_DEBUG_LBN 0 117062306a36Sopenharmony_ci#define FRF_AZ_RX_DEBUG_WIDTH 64 117162306a36Sopenharmony_ci 117262306a36Sopenharmony_ci/* RX_PUSH_DROP_REG: Receive descriptor push dropped counter register */ 117362306a36Sopenharmony_ci#define FR_AZ_RX_PUSH_DROP 0x000008b0 117462306a36Sopenharmony_ci#define FRF_AZ_RX_PUSH_DROP_CNT_LBN 0 117562306a36Sopenharmony_ci#define FRF_AZ_RX_PUSH_DROP_CNT_WIDTH 32 117662306a36Sopenharmony_ci 117762306a36Sopenharmony_ci/* RX_RSS_IPV6_REG1: IPv6 RSS Toeplitz hash key low bytes */ 117862306a36Sopenharmony_ci#define FR_CZ_RX_RSS_IPV6_REG1 0x000008d0 117962306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TKEY_LO_LBN 0 118062306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TKEY_LO_WIDTH 128 118162306a36Sopenharmony_ci 118262306a36Sopenharmony_ci/* RX_RSS_IPV6_REG2: IPv6 RSS Toeplitz hash key middle bytes */ 118362306a36Sopenharmony_ci#define FR_CZ_RX_RSS_IPV6_REG2 0x000008e0 118462306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TKEY_MID_LBN 0 118562306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TKEY_MID_WIDTH 128 118662306a36Sopenharmony_ci 118762306a36Sopenharmony_ci/* RX_RSS_IPV6_REG3: IPv6 RSS Toeplitz hash key upper bytes and IPv6 RSS settings */ 118862306a36Sopenharmony_ci#define FR_CZ_RX_RSS_IPV6_REG3 0x000008f0 118962306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_THASH_ENABLE_LBN 66 119062306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_THASH_ENABLE_WIDTH 1 119162306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_IP_THASH_ENABLE_LBN 65 119262306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_IP_THASH_ENABLE_WIDTH 1 119362306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TCP_SUPPRESS_LBN 64 119462306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TCP_SUPPRESS_WIDTH 1 119562306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TKEY_HI_LBN 0 119662306a36Sopenharmony_ci#define FRF_CZ_RX_RSS_IPV6_TKEY_HI_WIDTH 64 119762306a36Sopenharmony_ci 119862306a36Sopenharmony_ci/* TX_FLUSH_DESCQ_REG: Transmit flush descriptor queue register */ 119962306a36Sopenharmony_ci#define FR_AZ_TX_FLUSH_DESCQ 0x00000a00 120062306a36Sopenharmony_ci#define FRF_AZ_TX_FLUSH_DESCQ_CMD_LBN 12 120162306a36Sopenharmony_ci#define FRF_AZ_TX_FLUSH_DESCQ_CMD_WIDTH 1 120262306a36Sopenharmony_ci#define FRF_AZ_TX_FLUSH_DESCQ_LBN 0 120362306a36Sopenharmony_ci#define FRF_AZ_TX_FLUSH_DESCQ_WIDTH 12 120462306a36Sopenharmony_ci 120562306a36Sopenharmony_ci/* TX_DESC_UPD_REGP0: Transmit descriptor update register. */ 120662306a36Sopenharmony_ci#define FR_BZ_TX_DESC_UPD_P0 0x00000a10 120762306a36Sopenharmony_ci#define FR_BZ_TX_DESC_UPD_P0_STEP 8192 120862306a36Sopenharmony_ci#define FR_BZ_TX_DESC_UPD_P0_ROWS 1024 120962306a36Sopenharmony_ci/* TX_DESC_UPD_REG_KER: Transmit descriptor update register. */ 121062306a36Sopenharmony_ci#define FR_AA_TX_DESC_UPD_KER 0x00000a10 121162306a36Sopenharmony_ci#define FR_AA_TX_DESC_UPD_KER_STEP 8192 121262306a36Sopenharmony_ci#define FR_AA_TX_DESC_UPD_KER_ROWS 8 121362306a36Sopenharmony_ci/* TX_DESC_UPD_REGP123: Transmit descriptor update register. */ 121462306a36Sopenharmony_ci#define FR_BB_TX_DESC_UPD_P123 0x01000a10 121562306a36Sopenharmony_ci#define FR_BB_TX_DESC_UPD_P123_STEP 8192 121662306a36Sopenharmony_ci#define FR_BB_TX_DESC_UPD_P123_ROWS 3072 121762306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_WPTR_LBN 96 121862306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_WPTR_WIDTH 12 121962306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_PUSH_CMD_LBN 95 122062306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_PUSH_CMD_WIDTH 1 122162306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_LBN 0 122262306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_WIDTH 95 122362306a36Sopenharmony_ci 122462306a36Sopenharmony_ci/* TX_DC_CFG_REG: Transmit descriptor cache configuration register */ 122562306a36Sopenharmony_ci#define FR_AZ_TX_DC_CFG 0x00000a20 122662306a36Sopenharmony_ci#define FRF_AZ_TX_DC_SIZE_LBN 0 122762306a36Sopenharmony_ci#define FRF_AZ_TX_DC_SIZE_WIDTH 2 122862306a36Sopenharmony_ci#define FFE_AZ_TX_DC_SIZE_32 2 122962306a36Sopenharmony_ci#define FFE_AZ_TX_DC_SIZE_16 1 123062306a36Sopenharmony_ci#define FFE_AZ_TX_DC_SIZE_8 0 123162306a36Sopenharmony_ci 123262306a36Sopenharmony_ci/* TX_CHKSM_CFG_REG: Transmit checksum configuration register */ 123362306a36Sopenharmony_ci#define FR_AA_TX_CHKSM_CFG 0x00000a30 123462306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_96_127_LBN 96 123562306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_96_127_WIDTH 32 123662306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_64_95_LBN 64 123762306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_64_95_WIDTH 32 123862306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_32_63_LBN 32 123962306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_32_63_WIDTH 32 124062306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_0_31_LBN 0 124162306a36Sopenharmony_ci#define FRF_AA_TX_Q_CHKSM_DIS_0_31_WIDTH 32 124262306a36Sopenharmony_ci 124362306a36Sopenharmony_ci/* TX_CFG_REG: Transmit configuration register */ 124462306a36Sopenharmony_ci#define FR_AZ_TX_CFG 0x00000a50 124562306a36Sopenharmony_ci#define FRF_CZ_TX_CONT_LOOKUP_THRESH_RANGE_LBN 114 124662306a36Sopenharmony_ci#define FRF_CZ_TX_CONT_LOOKUP_THRESH_RANGE_WIDTH 8 124762306a36Sopenharmony_ci#define FRF_CZ_TX_FILTER_TEST_MODE_BIT_LBN 113 124862306a36Sopenharmony_ci#define FRF_CZ_TX_FILTER_TEST_MODE_BIT_WIDTH 1 124962306a36Sopenharmony_ci#define FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE_LBN 105 125062306a36Sopenharmony_ci#define FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE_WIDTH 8 125162306a36Sopenharmony_ci#define FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE_LBN 97 125262306a36Sopenharmony_ci#define FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE_WIDTH 8 125362306a36Sopenharmony_ci#define FRF_CZ_TX_UDPIP_FILTER_WILD_SEARCH_RANGE_LBN 89 125462306a36Sopenharmony_ci#define FRF_CZ_TX_UDPIP_FILTER_WILD_SEARCH_RANGE_WIDTH 8 125562306a36Sopenharmony_ci#define FRF_CZ_TX_UDPIP_FILTER_FULL_SEARCH_RANGE_LBN 81 125662306a36Sopenharmony_ci#define FRF_CZ_TX_UDPIP_FILTER_FULL_SEARCH_RANGE_WIDTH 8 125762306a36Sopenharmony_ci#define FRF_CZ_TX_TCPIP_FILTER_WILD_SEARCH_RANGE_LBN 73 125862306a36Sopenharmony_ci#define FRF_CZ_TX_TCPIP_FILTER_WILD_SEARCH_RANGE_WIDTH 8 125962306a36Sopenharmony_ci#define FRF_CZ_TX_TCPIP_FILTER_FULL_SEARCH_RANGE_LBN 65 126062306a36Sopenharmony_ci#define FRF_CZ_TX_TCPIP_FILTER_FULL_SEARCH_RANGE_WIDTH 8 126162306a36Sopenharmony_ci#define FRF_CZ_TX_FILTER_ALL_VLAN_ETHERTYPES_BIT_LBN 64 126262306a36Sopenharmony_ci#define FRF_CZ_TX_FILTER_ALL_VLAN_ETHERTYPES_BIT_WIDTH 1 126362306a36Sopenharmony_ci#define FRF_CZ_TX_VLAN_MATCH_ETHERTYPE_RANGE_LBN 48 126462306a36Sopenharmony_ci#define FRF_CZ_TX_VLAN_MATCH_ETHERTYPE_RANGE_WIDTH 16 126562306a36Sopenharmony_ci#define FRF_CZ_TX_FILTER_EN_BIT_LBN 47 126662306a36Sopenharmony_ci#define FRF_CZ_TX_FILTER_EN_BIT_WIDTH 1 126762306a36Sopenharmony_ci#define FRF_AZ_TX_IP_ID_P0_OFS_LBN 16 126862306a36Sopenharmony_ci#define FRF_AZ_TX_IP_ID_P0_OFS_WIDTH 15 126962306a36Sopenharmony_ci#define FRF_AZ_TX_NO_EOP_DISC_EN_LBN 5 127062306a36Sopenharmony_ci#define FRF_AZ_TX_NO_EOP_DISC_EN_WIDTH 1 127162306a36Sopenharmony_ci#define FRF_AZ_TX_P1_PRI_EN_LBN 4 127262306a36Sopenharmony_ci#define FRF_AZ_TX_P1_PRI_EN_WIDTH 1 127362306a36Sopenharmony_ci#define FRF_AZ_TX_OWNERR_CTL_LBN 2 127462306a36Sopenharmony_ci#define FRF_AZ_TX_OWNERR_CTL_WIDTH 1 127562306a36Sopenharmony_ci#define FRF_AA_TX_NON_IP_DROP_DIS_LBN 1 127662306a36Sopenharmony_ci#define FRF_AA_TX_NON_IP_DROP_DIS_WIDTH 1 127762306a36Sopenharmony_ci#define FRF_AZ_TX_IP_ID_REP_EN_LBN 0 127862306a36Sopenharmony_ci#define FRF_AZ_TX_IP_ID_REP_EN_WIDTH 1 127962306a36Sopenharmony_ci 128062306a36Sopenharmony_ci/* TX_PUSH_DROP_REG: Transmit push dropped register */ 128162306a36Sopenharmony_ci#define FR_AZ_TX_PUSH_DROP 0x00000a60 128262306a36Sopenharmony_ci#define FRF_AZ_TX_PUSH_DROP_CNT_LBN 0 128362306a36Sopenharmony_ci#define FRF_AZ_TX_PUSH_DROP_CNT_WIDTH 32 128462306a36Sopenharmony_ci 128562306a36Sopenharmony_ci/* TX_RESERVED_REG: Transmit configuration register */ 128662306a36Sopenharmony_ci#define FR_AZ_TX_RESERVED 0x00000a80 128762306a36Sopenharmony_ci#define FRF_AZ_TX_EVT_CNT_LBN 121 128862306a36Sopenharmony_ci#define FRF_AZ_TX_EVT_CNT_WIDTH 7 128962306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_AGE_CNT_LBN 119 129062306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_AGE_CNT_WIDTH 2 129162306a36Sopenharmony_ci#define FRF_AZ_TX_RD_COMP_TMR_LBN 96 129262306a36Sopenharmony_ci#define FRF_AZ_TX_RD_COMP_TMR_WIDTH 23 129362306a36Sopenharmony_ci#define FRF_AZ_TX_PUSH_EN_LBN 89 129462306a36Sopenharmony_ci#define FRF_AZ_TX_PUSH_EN_WIDTH 1 129562306a36Sopenharmony_ci#define FRF_AZ_TX_PUSH_CHK_DIS_LBN 88 129662306a36Sopenharmony_ci#define FRF_AZ_TX_PUSH_CHK_DIS_WIDTH 1 129762306a36Sopenharmony_ci#define FRF_AZ_TX_D_FF_FULL_P0_LBN 85 129862306a36Sopenharmony_ci#define FRF_AZ_TX_D_FF_FULL_P0_WIDTH 1 129962306a36Sopenharmony_ci#define FRF_AZ_TX_DMAR_ST_P0_LBN 81 130062306a36Sopenharmony_ci#define FRF_AZ_TX_DMAR_ST_P0_WIDTH 1 130162306a36Sopenharmony_ci#define FRF_AZ_TX_DMAQ_ST_LBN 78 130262306a36Sopenharmony_ci#define FRF_AZ_TX_DMAQ_ST_WIDTH 1 130362306a36Sopenharmony_ci#define FRF_AZ_TX_RX_SPACER_LBN 64 130462306a36Sopenharmony_ci#define FRF_AZ_TX_RX_SPACER_WIDTH 8 130562306a36Sopenharmony_ci#define FRF_AZ_TX_DROP_ABORT_EN_LBN 60 130662306a36Sopenharmony_ci#define FRF_AZ_TX_DROP_ABORT_EN_WIDTH 1 130762306a36Sopenharmony_ci#define FRF_AZ_TX_SOFT_EVT_EN_LBN 59 130862306a36Sopenharmony_ci#define FRF_AZ_TX_SOFT_EVT_EN_WIDTH 1 130962306a36Sopenharmony_ci#define FRF_AZ_TX_PS_EVT_DIS_LBN 58 131062306a36Sopenharmony_ci#define FRF_AZ_TX_PS_EVT_DIS_WIDTH 1 131162306a36Sopenharmony_ci#define FRF_AZ_TX_RX_SPACER_EN_LBN 57 131262306a36Sopenharmony_ci#define FRF_AZ_TX_RX_SPACER_EN_WIDTH 1 131362306a36Sopenharmony_ci#define FRF_AZ_TX_XP_TIMER_LBN 52 131462306a36Sopenharmony_ci#define FRF_AZ_TX_XP_TIMER_WIDTH 5 131562306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_SPACER_LBN 44 131662306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_SPACER_WIDTH 8 131762306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_WD_TMR_LBN 22 131862306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_WD_TMR_WIDTH 22 131962306a36Sopenharmony_ci#define FRF_AZ_TX_ONLY1TAG_LBN 21 132062306a36Sopenharmony_ci#define FRF_AZ_TX_ONLY1TAG_WIDTH 1 132162306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_THRESHOLD_LBN 19 132262306a36Sopenharmony_ci#define FRF_AZ_TX_PREF_THRESHOLD_WIDTH 2 132362306a36Sopenharmony_ci#define FRF_AZ_TX_ONE_PKT_PER_Q_LBN 18 132462306a36Sopenharmony_ci#define FRF_AZ_TX_ONE_PKT_PER_Q_WIDTH 1 132562306a36Sopenharmony_ci#define FRF_AZ_TX_DIS_NON_IP_EV_LBN 17 132662306a36Sopenharmony_ci#define FRF_AZ_TX_DIS_NON_IP_EV_WIDTH 1 132762306a36Sopenharmony_ci#define FRF_AA_TX_DMA_FF_THR_LBN 16 132862306a36Sopenharmony_ci#define FRF_AA_TX_DMA_FF_THR_WIDTH 1 132962306a36Sopenharmony_ci#define FRF_AZ_TX_DMA_SPACER_LBN 8 133062306a36Sopenharmony_ci#define FRF_AZ_TX_DMA_SPACER_WIDTH 8 133162306a36Sopenharmony_ci#define FRF_AA_TX_TCP_DIS_LBN 7 133262306a36Sopenharmony_ci#define FRF_AA_TX_TCP_DIS_WIDTH 1 133362306a36Sopenharmony_ci#define FRF_BZ_TX_FLUSH_MIN_LEN_EN_LBN 7 133462306a36Sopenharmony_ci#define FRF_BZ_TX_FLUSH_MIN_LEN_EN_WIDTH 1 133562306a36Sopenharmony_ci#define FRF_AA_TX_IP_DIS_LBN 6 133662306a36Sopenharmony_ci#define FRF_AA_TX_IP_DIS_WIDTH 1 133762306a36Sopenharmony_ci#define FRF_AZ_TX_MAX_CPL_LBN 2 133862306a36Sopenharmony_ci#define FRF_AZ_TX_MAX_CPL_WIDTH 2 133962306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_CPL_16 3 134062306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_CPL_8 2 134162306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_CPL_4 1 134262306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_CPL_NOLIMIT 0 134362306a36Sopenharmony_ci#define FRF_AZ_TX_MAX_PREF_LBN 0 134462306a36Sopenharmony_ci#define FRF_AZ_TX_MAX_PREF_WIDTH 2 134562306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_PREF_32 3 134662306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_PREF_16 2 134762306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_PREF_8 1 134862306a36Sopenharmony_ci#define FFE_AZ_TX_MAX_PREF_OFF 0 134962306a36Sopenharmony_ci 135062306a36Sopenharmony_ci/* TX_PACE_REG: Transmit pace control register */ 135162306a36Sopenharmony_ci#define FR_BZ_TX_PACE 0x00000a90 135262306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_SB_NOT_AF_LBN 19 135362306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_SB_NOT_AF_WIDTH 10 135462306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_SB_AF_LBN 9 135562306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_SB_AF_WIDTH 10 135662306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_FB_BASE_LBN 5 135762306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_FB_BASE_WIDTH 4 135862306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_BIN_TH_LBN 0 135962306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_BIN_TH_WIDTH 5 136062306a36Sopenharmony_ci 136162306a36Sopenharmony_ci/* TX_PACE_DROP_QID_REG: PACE Drop QID Counter */ 136262306a36Sopenharmony_ci#define FR_BZ_TX_PACE_DROP_QID 0x00000aa0 136362306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_QID_DRP_CNT_LBN 0 136462306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_QID_DRP_CNT_WIDTH 16 136562306a36Sopenharmony_ci 136662306a36Sopenharmony_ci/* TX_VLAN_REG: Transmit VLAN tag register */ 136762306a36Sopenharmony_ci#define FR_BB_TX_VLAN 0x00000ae0 136862306a36Sopenharmony_ci#define FRF_BB_TX_VLAN_EN_LBN 127 136962306a36Sopenharmony_ci#define FRF_BB_TX_VLAN_EN_WIDTH 1 137062306a36Sopenharmony_ci#define FRF_BB_TX_VLAN7_PORT1_EN_LBN 125 137162306a36Sopenharmony_ci#define FRF_BB_TX_VLAN7_PORT1_EN_WIDTH 1 137262306a36Sopenharmony_ci#define FRF_BB_TX_VLAN7_PORT0_EN_LBN 124 137362306a36Sopenharmony_ci#define FRF_BB_TX_VLAN7_PORT0_EN_WIDTH 1 137462306a36Sopenharmony_ci#define FRF_BB_TX_VLAN7_LBN 112 137562306a36Sopenharmony_ci#define FRF_BB_TX_VLAN7_WIDTH 12 137662306a36Sopenharmony_ci#define FRF_BB_TX_VLAN6_PORT1_EN_LBN 109 137762306a36Sopenharmony_ci#define FRF_BB_TX_VLAN6_PORT1_EN_WIDTH 1 137862306a36Sopenharmony_ci#define FRF_BB_TX_VLAN6_PORT0_EN_LBN 108 137962306a36Sopenharmony_ci#define FRF_BB_TX_VLAN6_PORT0_EN_WIDTH 1 138062306a36Sopenharmony_ci#define FRF_BB_TX_VLAN6_LBN 96 138162306a36Sopenharmony_ci#define FRF_BB_TX_VLAN6_WIDTH 12 138262306a36Sopenharmony_ci#define FRF_BB_TX_VLAN5_PORT1_EN_LBN 93 138362306a36Sopenharmony_ci#define FRF_BB_TX_VLAN5_PORT1_EN_WIDTH 1 138462306a36Sopenharmony_ci#define FRF_BB_TX_VLAN5_PORT0_EN_LBN 92 138562306a36Sopenharmony_ci#define FRF_BB_TX_VLAN5_PORT0_EN_WIDTH 1 138662306a36Sopenharmony_ci#define FRF_BB_TX_VLAN5_LBN 80 138762306a36Sopenharmony_ci#define FRF_BB_TX_VLAN5_WIDTH 12 138862306a36Sopenharmony_ci#define FRF_BB_TX_VLAN4_PORT1_EN_LBN 77 138962306a36Sopenharmony_ci#define FRF_BB_TX_VLAN4_PORT1_EN_WIDTH 1 139062306a36Sopenharmony_ci#define FRF_BB_TX_VLAN4_PORT0_EN_LBN 76 139162306a36Sopenharmony_ci#define FRF_BB_TX_VLAN4_PORT0_EN_WIDTH 1 139262306a36Sopenharmony_ci#define FRF_BB_TX_VLAN4_LBN 64 139362306a36Sopenharmony_ci#define FRF_BB_TX_VLAN4_WIDTH 12 139462306a36Sopenharmony_ci#define FRF_BB_TX_VLAN3_PORT1_EN_LBN 61 139562306a36Sopenharmony_ci#define FRF_BB_TX_VLAN3_PORT1_EN_WIDTH 1 139662306a36Sopenharmony_ci#define FRF_BB_TX_VLAN3_PORT0_EN_LBN 60 139762306a36Sopenharmony_ci#define FRF_BB_TX_VLAN3_PORT0_EN_WIDTH 1 139862306a36Sopenharmony_ci#define FRF_BB_TX_VLAN3_LBN 48 139962306a36Sopenharmony_ci#define FRF_BB_TX_VLAN3_WIDTH 12 140062306a36Sopenharmony_ci#define FRF_BB_TX_VLAN2_PORT1_EN_LBN 45 140162306a36Sopenharmony_ci#define FRF_BB_TX_VLAN2_PORT1_EN_WIDTH 1 140262306a36Sopenharmony_ci#define FRF_BB_TX_VLAN2_PORT0_EN_LBN 44 140362306a36Sopenharmony_ci#define FRF_BB_TX_VLAN2_PORT0_EN_WIDTH 1 140462306a36Sopenharmony_ci#define FRF_BB_TX_VLAN2_LBN 32 140562306a36Sopenharmony_ci#define FRF_BB_TX_VLAN2_WIDTH 12 140662306a36Sopenharmony_ci#define FRF_BB_TX_VLAN1_PORT1_EN_LBN 29 140762306a36Sopenharmony_ci#define FRF_BB_TX_VLAN1_PORT1_EN_WIDTH 1 140862306a36Sopenharmony_ci#define FRF_BB_TX_VLAN1_PORT0_EN_LBN 28 140962306a36Sopenharmony_ci#define FRF_BB_TX_VLAN1_PORT0_EN_WIDTH 1 141062306a36Sopenharmony_ci#define FRF_BB_TX_VLAN1_LBN 16 141162306a36Sopenharmony_ci#define FRF_BB_TX_VLAN1_WIDTH 12 141262306a36Sopenharmony_ci#define FRF_BB_TX_VLAN0_PORT1_EN_LBN 13 141362306a36Sopenharmony_ci#define FRF_BB_TX_VLAN0_PORT1_EN_WIDTH 1 141462306a36Sopenharmony_ci#define FRF_BB_TX_VLAN0_PORT0_EN_LBN 12 141562306a36Sopenharmony_ci#define FRF_BB_TX_VLAN0_PORT0_EN_WIDTH 1 141662306a36Sopenharmony_ci#define FRF_BB_TX_VLAN0_LBN 0 141762306a36Sopenharmony_ci#define FRF_BB_TX_VLAN0_WIDTH 12 141862306a36Sopenharmony_ci 141962306a36Sopenharmony_ci/* TX_IPFIL_PORTEN_REG: Transmit filter control register */ 142062306a36Sopenharmony_ci#define FR_BZ_TX_IPFIL_PORTEN 0x00000af0 142162306a36Sopenharmony_ci#define FRF_BZ_TX_MADR0_FIL_EN_LBN 64 142262306a36Sopenharmony_ci#define FRF_BZ_TX_MADR0_FIL_EN_WIDTH 1 142362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL31_PORT_EN_LBN 62 142462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL31_PORT_EN_WIDTH 1 142562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL30_PORT_EN_LBN 60 142662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL30_PORT_EN_WIDTH 1 142762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL29_PORT_EN_LBN 58 142862306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL29_PORT_EN_WIDTH 1 142962306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL28_PORT_EN_LBN 56 143062306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL28_PORT_EN_WIDTH 1 143162306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL27_PORT_EN_LBN 54 143262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL27_PORT_EN_WIDTH 1 143362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL26_PORT_EN_LBN 52 143462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL26_PORT_EN_WIDTH 1 143562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL25_PORT_EN_LBN 50 143662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL25_PORT_EN_WIDTH 1 143762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL24_PORT_EN_LBN 48 143862306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL24_PORT_EN_WIDTH 1 143962306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL23_PORT_EN_LBN 46 144062306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL23_PORT_EN_WIDTH 1 144162306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL22_PORT_EN_LBN 44 144262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL22_PORT_EN_WIDTH 1 144362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL21_PORT_EN_LBN 42 144462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL21_PORT_EN_WIDTH 1 144562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL20_PORT_EN_LBN 40 144662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL20_PORT_EN_WIDTH 1 144762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL19_PORT_EN_LBN 38 144862306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL19_PORT_EN_WIDTH 1 144962306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL18_PORT_EN_LBN 36 145062306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL18_PORT_EN_WIDTH 1 145162306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL17_PORT_EN_LBN 34 145262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL17_PORT_EN_WIDTH 1 145362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL16_PORT_EN_LBN 32 145462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL16_PORT_EN_WIDTH 1 145562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL15_PORT_EN_LBN 30 145662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL15_PORT_EN_WIDTH 1 145762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL14_PORT_EN_LBN 28 145862306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL14_PORT_EN_WIDTH 1 145962306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL13_PORT_EN_LBN 26 146062306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL13_PORT_EN_WIDTH 1 146162306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL12_PORT_EN_LBN 24 146262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL12_PORT_EN_WIDTH 1 146362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL11_PORT_EN_LBN 22 146462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL11_PORT_EN_WIDTH 1 146562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL10_PORT_EN_LBN 20 146662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL10_PORT_EN_WIDTH 1 146762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL9_PORT_EN_LBN 18 146862306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL9_PORT_EN_WIDTH 1 146962306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL8_PORT_EN_LBN 16 147062306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL8_PORT_EN_WIDTH 1 147162306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL7_PORT_EN_LBN 14 147262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL7_PORT_EN_WIDTH 1 147362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL6_PORT_EN_LBN 12 147462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL6_PORT_EN_WIDTH 1 147562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL5_PORT_EN_LBN 10 147662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL5_PORT_EN_WIDTH 1 147762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL4_PORT_EN_LBN 8 147862306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL4_PORT_EN_WIDTH 1 147962306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL3_PORT_EN_LBN 6 148062306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL3_PORT_EN_WIDTH 1 148162306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL2_PORT_EN_LBN 4 148262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL2_PORT_EN_WIDTH 1 148362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL1_PORT_EN_LBN 2 148462306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL1_PORT_EN_WIDTH 1 148562306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL0_PORT_EN_LBN 0 148662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL0_PORT_EN_WIDTH 1 148762306a36Sopenharmony_ci 148862306a36Sopenharmony_ci/* TX_IPFIL_TBL: Transmit IP source address filter table */ 148962306a36Sopenharmony_ci#define FR_BB_TX_IPFIL_TBL 0x00000b00 149062306a36Sopenharmony_ci#define FR_BB_TX_IPFIL_TBL_STEP 16 149162306a36Sopenharmony_ci#define FR_BB_TX_IPFIL_TBL_ROWS 16 149262306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL_MASK_1_LBN 96 149362306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL_MASK_1_WIDTH 32 149462306a36Sopenharmony_ci#define FRF_BB_TX_IP_SRC_ADR_1_LBN 64 149562306a36Sopenharmony_ci#define FRF_BB_TX_IP_SRC_ADR_1_WIDTH 32 149662306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL_MASK_0_LBN 32 149762306a36Sopenharmony_ci#define FRF_BB_TX_IPFIL_MASK_0_WIDTH 32 149862306a36Sopenharmony_ci#define FRF_BB_TX_IP_SRC_ADR_0_LBN 0 149962306a36Sopenharmony_ci#define FRF_BB_TX_IP_SRC_ADR_0_WIDTH 32 150062306a36Sopenharmony_ci 150162306a36Sopenharmony_ci/* MD_TXD_REG: PHY management transmit data register */ 150262306a36Sopenharmony_ci#define FR_AB_MD_TXD 0x00000c00 150362306a36Sopenharmony_ci#define FRF_AB_MD_TXD_LBN 0 150462306a36Sopenharmony_ci#define FRF_AB_MD_TXD_WIDTH 16 150562306a36Sopenharmony_ci 150662306a36Sopenharmony_ci/* MD_RXD_REG: PHY management receive data register */ 150762306a36Sopenharmony_ci#define FR_AB_MD_RXD 0x00000c10 150862306a36Sopenharmony_ci#define FRF_AB_MD_RXD_LBN 0 150962306a36Sopenharmony_ci#define FRF_AB_MD_RXD_WIDTH 16 151062306a36Sopenharmony_ci 151162306a36Sopenharmony_ci/* MD_CS_REG: PHY management configuration & status register */ 151262306a36Sopenharmony_ci#define FR_AB_MD_CS 0x00000c20 151362306a36Sopenharmony_ci#define FRF_AB_MD_RD_EN_CMD_LBN 15 151462306a36Sopenharmony_ci#define FRF_AB_MD_RD_EN_CMD_WIDTH 1 151562306a36Sopenharmony_ci#define FRF_AB_MD_WR_EN_CMD_LBN 14 151662306a36Sopenharmony_ci#define FRF_AB_MD_WR_EN_CMD_WIDTH 1 151762306a36Sopenharmony_ci#define FRF_AB_MD_ADDR_CMD_LBN 13 151862306a36Sopenharmony_ci#define FRF_AB_MD_ADDR_CMD_WIDTH 1 151962306a36Sopenharmony_ci#define FRF_AB_MD_PT_LBN 7 152062306a36Sopenharmony_ci#define FRF_AB_MD_PT_WIDTH 3 152162306a36Sopenharmony_ci#define FRF_AB_MD_PL_LBN 6 152262306a36Sopenharmony_ci#define FRF_AB_MD_PL_WIDTH 1 152362306a36Sopenharmony_ci#define FRF_AB_MD_INT_CLR_LBN 5 152462306a36Sopenharmony_ci#define FRF_AB_MD_INT_CLR_WIDTH 1 152562306a36Sopenharmony_ci#define FRF_AB_MD_GC_LBN 4 152662306a36Sopenharmony_ci#define FRF_AB_MD_GC_WIDTH 1 152762306a36Sopenharmony_ci#define FRF_AB_MD_PRSP_LBN 3 152862306a36Sopenharmony_ci#define FRF_AB_MD_PRSP_WIDTH 1 152962306a36Sopenharmony_ci#define FRF_AB_MD_RIC_LBN 2 153062306a36Sopenharmony_ci#define FRF_AB_MD_RIC_WIDTH 1 153162306a36Sopenharmony_ci#define FRF_AB_MD_RDC_LBN 1 153262306a36Sopenharmony_ci#define FRF_AB_MD_RDC_WIDTH 1 153362306a36Sopenharmony_ci#define FRF_AB_MD_WRC_LBN 0 153462306a36Sopenharmony_ci#define FRF_AB_MD_WRC_WIDTH 1 153562306a36Sopenharmony_ci 153662306a36Sopenharmony_ci/* MD_PHY_ADR_REG: PHY management PHY address register */ 153762306a36Sopenharmony_ci#define FR_AB_MD_PHY_ADR 0x00000c30 153862306a36Sopenharmony_ci#define FRF_AB_MD_PHY_ADR_LBN 0 153962306a36Sopenharmony_ci#define FRF_AB_MD_PHY_ADR_WIDTH 16 154062306a36Sopenharmony_ci 154162306a36Sopenharmony_ci/* MD_ID_REG: PHY management ID register */ 154262306a36Sopenharmony_ci#define FR_AB_MD_ID 0x00000c40 154362306a36Sopenharmony_ci#define FRF_AB_MD_PRT_ADR_LBN 11 154462306a36Sopenharmony_ci#define FRF_AB_MD_PRT_ADR_WIDTH 5 154562306a36Sopenharmony_ci#define FRF_AB_MD_DEV_ADR_LBN 6 154662306a36Sopenharmony_ci#define FRF_AB_MD_DEV_ADR_WIDTH 5 154762306a36Sopenharmony_ci 154862306a36Sopenharmony_ci/* MD_STAT_REG: PHY management status & mask register */ 154962306a36Sopenharmony_ci#define FR_AB_MD_STAT 0x00000c50 155062306a36Sopenharmony_ci#define FRF_AB_MD_PINT_LBN 4 155162306a36Sopenharmony_ci#define FRF_AB_MD_PINT_WIDTH 1 155262306a36Sopenharmony_ci#define FRF_AB_MD_DONE_LBN 3 155362306a36Sopenharmony_ci#define FRF_AB_MD_DONE_WIDTH 1 155462306a36Sopenharmony_ci#define FRF_AB_MD_BSERR_LBN 2 155562306a36Sopenharmony_ci#define FRF_AB_MD_BSERR_WIDTH 1 155662306a36Sopenharmony_ci#define FRF_AB_MD_LNFL_LBN 1 155762306a36Sopenharmony_ci#define FRF_AB_MD_LNFL_WIDTH 1 155862306a36Sopenharmony_ci#define FRF_AB_MD_BSY_LBN 0 155962306a36Sopenharmony_ci#define FRF_AB_MD_BSY_WIDTH 1 156062306a36Sopenharmony_ci 156162306a36Sopenharmony_ci/* MAC_STAT_DMA_REG: Port MAC statistical counter DMA register */ 156262306a36Sopenharmony_ci#define FR_AB_MAC_STAT_DMA 0x00000c60 156362306a36Sopenharmony_ci#define FRF_AB_MAC_STAT_DMA_CMD_LBN 48 156462306a36Sopenharmony_ci#define FRF_AB_MAC_STAT_DMA_CMD_WIDTH 1 156562306a36Sopenharmony_ci#define FRF_AB_MAC_STAT_DMA_ADR_LBN 0 156662306a36Sopenharmony_ci#define FRF_AB_MAC_STAT_DMA_ADR_WIDTH 48 156762306a36Sopenharmony_ci 156862306a36Sopenharmony_ci/* MAC_CTRL_REG: Port MAC control register */ 156962306a36Sopenharmony_ci#define FR_AB_MAC_CTRL 0x00000c80 157062306a36Sopenharmony_ci#define FRF_AB_MAC_XOFF_VAL_LBN 16 157162306a36Sopenharmony_ci#define FRF_AB_MAC_XOFF_VAL_WIDTH 16 157262306a36Sopenharmony_ci#define FRF_BB_TXFIFO_DRAIN_EN_LBN 7 157362306a36Sopenharmony_ci#define FRF_BB_TXFIFO_DRAIN_EN_WIDTH 1 157462306a36Sopenharmony_ci#define FRF_AB_MAC_XG_DISTXCRC_LBN 5 157562306a36Sopenharmony_ci#define FRF_AB_MAC_XG_DISTXCRC_WIDTH 1 157662306a36Sopenharmony_ci#define FRF_AB_MAC_BCAD_ACPT_LBN 4 157762306a36Sopenharmony_ci#define FRF_AB_MAC_BCAD_ACPT_WIDTH 1 157862306a36Sopenharmony_ci#define FRF_AB_MAC_UC_PROM_LBN 3 157962306a36Sopenharmony_ci#define FRF_AB_MAC_UC_PROM_WIDTH 1 158062306a36Sopenharmony_ci#define FRF_AB_MAC_LINK_STATUS_LBN 2 158162306a36Sopenharmony_ci#define FRF_AB_MAC_LINK_STATUS_WIDTH 1 158262306a36Sopenharmony_ci#define FRF_AB_MAC_SPEED_LBN 0 158362306a36Sopenharmony_ci#define FRF_AB_MAC_SPEED_WIDTH 2 158462306a36Sopenharmony_ci#define FFE_AB_MAC_SPEED_10G 3 158562306a36Sopenharmony_ci#define FFE_AB_MAC_SPEED_1G 2 158662306a36Sopenharmony_ci#define FFE_AB_MAC_SPEED_100M 1 158762306a36Sopenharmony_ci#define FFE_AB_MAC_SPEED_10M 0 158862306a36Sopenharmony_ci 158962306a36Sopenharmony_ci/* GEN_MODE_REG: General Purpose mode register (external interrupt mask) */ 159062306a36Sopenharmony_ci#define FR_BB_GEN_MODE 0x00000c90 159162306a36Sopenharmony_ci#define FRF_BB_XFP_PHY_INT_POL_SEL_LBN 3 159262306a36Sopenharmony_ci#define FRF_BB_XFP_PHY_INT_POL_SEL_WIDTH 1 159362306a36Sopenharmony_ci#define FRF_BB_XG_PHY_INT_POL_SEL_LBN 2 159462306a36Sopenharmony_ci#define FRF_BB_XG_PHY_INT_POL_SEL_WIDTH 1 159562306a36Sopenharmony_ci#define FRF_BB_XFP_PHY_INT_MASK_LBN 1 159662306a36Sopenharmony_ci#define FRF_BB_XFP_PHY_INT_MASK_WIDTH 1 159762306a36Sopenharmony_ci#define FRF_BB_XG_PHY_INT_MASK_LBN 0 159862306a36Sopenharmony_ci#define FRF_BB_XG_PHY_INT_MASK_WIDTH 1 159962306a36Sopenharmony_ci 160062306a36Sopenharmony_ci/* MAC_MC_HASH_REG0: Multicast address hash table */ 160162306a36Sopenharmony_ci#define FR_AB_MAC_MC_HASH_REG0 0x00000ca0 160262306a36Sopenharmony_ci#define FRF_AB_MAC_MCAST_HASH0_LBN 0 160362306a36Sopenharmony_ci#define FRF_AB_MAC_MCAST_HASH0_WIDTH 128 160462306a36Sopenharmony_ci 160562306a36Sopenharmony_ci/* MAC_MC_HASH_REG1: Multicast address hash table */ 160662306a36Sopenharmony_ci#define FR_AB_MAC_MC_HASH_REG1 0x00000cb0 160762306a36Sopenharmony_ci#define FRF_AB_MAC_MCAST_HASH1_LBN 0 160862306a36Sopenharmony_ci#define FRF_AB_MAC_MCAST_HASH1_WIDTH 128 160962306a36Sopenharmony_ci 161062306a36Sopenharmony_ci/* GM_CFG1_REG: GMAC configuration register 1 */ 161162306a36Sopenharmony_ci#define FR_AB_GM_CFG1 0x00000e00 161262306a36Sopenharmony_ci#define FRF_AB_GM_SW_RST_LBN 31 161362306a36Sopenharmony_ci#define FRF_AB_GM_SW_RST_WIDTH 1 161462306a36Sopenharmony_ci#define FRF_AB_GM_SIM_RST_LBN 30 161562306a36Sopenharmony_ci#define FRF_AB_GM_SIM_RST_WIDTH 1 161662306a36Sopenharmony_ci#define FRF_AB_GM_RST_RX_MAC_CTL_LBN 19 161762306a36Sopenharmony_ci#define FRF_AB_GM_RST_RX_MAC_CTL_WIDTH 1 161862306a36Sopenharmony_ci#define FRF_AB_GM_RST_TX_MAC_CTL_LBN 18 161962306a36Sopenharmony_ci#define FRF_AB_GM_RST_TX_MAC_CTL_WIDTH 1 162062306a36Sopenharmony_ci#define FRF_AB_GM_RST_RX_FUNC_LBN 17 162162306a36Sopenharmony_ci#define FRF_AB_GM_RST_RX_FUNC_WIDTH 1 162262306a36Sopenharmony_ci#define FRF_AB_GM_RST_TX_FUNC_LBN 16 162362306a36Sopenharmony_ci#define FRF_AB_GM_RST_TX_FUNC_WIDTH 1 162462306a36Sopenharmony_ci#define FRF_AB_GM_LOOP_LBN 8 162562306a36Sopenharmony_ci#define FRF_AB_GM_LOOP_WIDTH 1 162662306a36Sopenharmony_ci#define FRF_AB_GM_RX_FC_EN_LBN 5 162762306a36Sopenharmony_ci#define FRF_AB_GM_RX_FC_EN_WIDTH 1 162862306a36Sopenharmony_ci#define FRF_AB_GM_TX_FC_EN_LBN 4 162962306a36Sopenharmony_ci#define FRF_AB_GM_TX_FC_EN_WIDTH 1 163062306a36Sopenharmony_ci#define FRF_AB_GM_SYNC_RXEN_LBN 3 163162306a36Sopenharmony_ci#define FRF_AB_GM_SYNC_RXEN_WIDTH 1 163262306a36Sopenharmony_ci#define FRF_AB_GM_RX_EN_LBN 2 163362306a36Sopenharmony_ci#define FRF_AB_GM_RX_EN_WIDTH 1 163462306a36Sopenharmony_ci#define FRF_AB_GM_SYNC_TXEN_LBN 1 163562306a36Sopenharmony_ci#define FRF_AB_GM_SYNC_TXEN_WIDTH 1 163662306a36Sopenharmony_ci#define FRF_AB_GM_TX_EN_LBN 0 163762306a36Sopenharmony_ci#define FRF_AB_GM_TX_EN_WIDTH 1 163862306a36Sopenharmony_ci 163962306a36Sopenharmony_ci/* GM_CFG2_REG: GMAC configuration register 2 */ 164062306a36Sopenharmony_ci#define FR_AB_GM_CFG2 0x00000e10 164162306a36Sopenharmony_ci#define FRF_AB_GM_PAMBL_LEN_LBN 12 164262306a36Sopenharmony_ci#define FRF_AB_GM_PAMBL_LEN_WIDTH 4 164362306a36Sopenharmony_ci#define FRF_AB_GM_IF_MODE_LBN 8 164462306a36Sopenharmony_ci#define FRF_AB_GM_IF_MODE_WIDTH 2 164562306a36Sopenharmony_ci#define FFE_AB_IF_MODE_BYTE_MODE 2 164662306a36Sopenharmony_ci#define FFE_AB_IF_MODE_NIBBLE_MODE 1 164762306a36Sopenharmony_ci#define FRF_AB_GM_HUGE_FRM_EN_LBN 5 164862306a36Sopenharmony_ci#define FRF_AB_GM_HUGE_FRM_EN_WIDTH 1 164962306a36Sopenharmony_ci#define FRF_AB_GM_LEN_CHK_LBN 4 165062306a36Sopenharmony_ci#define FRF_AB_GM_LEN_CHK_WIDTH 1 165162306a36Sopenharmony_ci#define FRF_AB_GM_PAD_CRC_EN_LBN 2 165262306a36Sopenharmony_ci#define FRF_AB_GM_PAD_CRC_EN_WIDTH 1 165362306a36Sopenharmony_ci#define FRF_AB_GM_CRC_EN_LBN 1 165462306a36Sopenharmony_ci#define FRF_AB_GM_CRC_EN_WIDTH 1 165562306a36Sopenharmony_ci#define FRF_AB_GM_FD_LBN 0 165662306a36Sopenharmony_ci#define FRF_AB_GM_FD_WIDTH 1 165762306a36Sopenharmony_ci 165862306a36Sopenharmony_ci/* GM_IPG_REG: GMAC IPG register */ 165962306a36Sopenharmony_ci#define FR_AB_GM_IPG 0x00000e20 166062306a36Sopenharmony_ci#define FRF_AB_GM_NONB2B_IPG1_LBN 24 166162306a36Sopenharmony_ci#define FRF_AB_GM_NONB2B_IPG1_WIDTH 7 166262306a36Sopenharmony_ci#define FRF_AB_GM_NONB2B_IPG2_LBN 16 166362306a36Sopenharmony_ci#define FRF_AB_GM_NONB2B_IPG2_WIDTH 7 166462306a36Sopenharmony_ci#define FRF_AB_GM_MIN_IPG_ENF_LBN 8 166562306a36Sopenharmony_ci#define FRF_AB_GM_MIN_IPG_ENF_WIDTH 8 166662306a36Sopenharmony_ci#define FRF_AB_GM_B2B_IPG_LBN 0 166762306a36Sopenharmony_ci#define FRF_AB_GM_B2B_IPG_WIDTH 7 166862306a36Sopenharmony_ci 166962306a36Sopenharmony_ci/* GM_HD_REG: GMAC half duplex register */ 167062306a36Sopenharmony_ci#define FR_AB_GM_HD 0x00000e30 167162306a36Sopenharmony_ci#define FRF_AB_GM_ALT_BOFF_VAL_LBN 20 167262306a36Sopenharmony_ci#define FRF_AB_GM_ALT_BOFF_VAL_WIDTH 4 167362306a36Sopenharmony_ci#define FRF_AB_GM_ALT_BOFF_EN_LBN 19 167462306a36Sopenharmony_ci#define FRF_AB_GM_ALT_BOFF_EN_WIDTH 1 167562306a36Sopenharmony_ci#define FRF_AB_GM_BP_NO_BOFF_LBN 18 167662306a36Sopenharmony_ci#define FRF_AB_GM_BP_NO_BOFF_WIDTH 1 167762306a36Sopenharmony_ci#define FRF_AB_GM_DIS_BOFF_LBN 17 167862306a36Sopenharmony_ci#define FRF_AB_GM_DIS_BOFF_WIDTH 1 167962306a36Sopenharmony_ci#define FRF_AB_GM_EXDEF_TX_EN_LBN 16 168062306a36Sopenharmony_ci#define FRF_AB_GM_EXDEF_TX_EN_WIDTH 1 168162306a36Sopenharmony_ci#define FRF_AB_GM_RTRY_LIMIT_LBN 12 168262306a36Sopenharmony_ci#define FRF_AB_GM_RTRY_LIMIT_WIDTH 4 168362306a36Sopenharmony_ci#define FRF_AB_GM_COL_WIN_LBN 0 168462306a36Sopenharmony_ci#define FRF_AB_GM_COL_WIN_WIDTH 10 168562306a36Sopenharmony_ci 168662306a36Sopenharmony_ci/* GM_MAX_FLEN_REG: GMAC maximum frame length register */ 168762306a36Sopenharmony_ci#define FR_AB_GM_MAX_FLEN 0x00000e40 168862306a36Sopenharmony_ci#define FRF_AB_GM_MAX_FLEN_LBN 0 168962306a36Sopenharmony_ci#define FRF_AB_GM_MAX_FLEN_WIDTH 16 169062306a36Sopenharmony_ci 169162306a36Sopenharmony_ci/* GM_TEST_REG: GMAC test register */ 169262306a36Sopenharmony_ci#define FR_AB_GM_TEST 0x00000e70 169362306a36Sopenharmony_ci#define FRF_AB_GM_MAX_BOFF_LBN 3 169462306a36Sopenharmony_ci#define FRF_AB_GM_MAX_BOFF_WIDTH 1 169562306a36Sopenharmony_ci#define FRF_AB_GM_REG_TX_FLOW_EN_LBN 2 169662306a36Sopenharmony_ci#define FRF_AB_GM_REG_TX_FLOW_EN_WIDTH 1 169762306a36Sopenharmony_ci#define FRF_AB_GM_TEST_PAUSE_LBN 1 169862306a36Sopenharmony_ci#define FRF_AB_GM_TEST_PAUSE_WIDTH 1 169962306a36Sopenharmony_ci#define FRF_AB_GM_SHORT_SLOT_LBN 0 170062306a36Sopenharmony_ci#define FRF_AB_GM_SHORT_SLOT_WIDTH 1 170162306a36Sopenharmony_ci 170262306a36Sopenharmony_ci/* GM_ADR1_REG: GMAC station address register 1 */ 170362306a36Sopenharmony_ci#define FR_AB_GM_ADR1 0x00000f00 170462306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B0_LBN 24 170562306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B0_WIDTH 8 170662306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B1_LBN 16 170762306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B1_WIDTH 8 170862306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B2_LBN 8 170962306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B2_WIDTH 8 171062306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B3_LBN 0 171162306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B3_WIDTH 8 171262306a36Sopenharmony_ci 171362306a36Sopenharmony_ci/* GM_ADR2_REG: GMAC station address register 2 */ 171462306a36Sopenharmony_ci#define FR_AB_GM_ADR2 0x00000f10 171562306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B4_LBN 24 171662306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B4_WIDTH 8 171762306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B5_LBN 16 171862306a36Sopenharmony_ci#define FRF_AB_GM_ADR_B5_WIDTH 8 171962306a36Sopenharmony_ci 172062306a36Sopenharmony_ci/* GMF_CFG0_REG: GMAC FIFO configuration register 0 */ 172162306a36Sopenharmony_ci#define FR_AB_GMF_CFG0 0x00000f20 172262306a36Sopenharmony_ci#define FRF_AB_GMF_FTFENRPLY_LBN 20 172362306a36Sopenharmony_ci#define FRF_AB_GMF_FTFENRPLY_WIDTH 1 172462306a36Sopenharmony_ci#define FRF_AB_GMF_STFENRPLY_LBN 19 172562306a36Sopenharmony_ci#define FRF_AB_GMF_STFENRPLY_WIDTH 1 172662306a36Sopenharmony_ci#define FRF_AB_GMF_FRFENRPLY_LBN 18 172762306a36Sopenharmony_ci#define FRF_AB_GMF_FRFENRPLY_WIDTH 1 172862306a36Sopenharmony_ci#define FRF_AB_GMF_SRFENRPLY_LBN 17 172962306a36Sopenharmony_ci#define FRF_AB_GMF_SRFENRPLY_WIDTH 1 173062306a36Sopenharmony_ci#define FRF_AB_GMF_WTMENRPLY_LBN 16 173162306a36Sopenharmony_ci#define FRF_AB_GMF_WTMENRPLY_WIDTH 1 173262306a36Sopenharmony_ci#define FRF_AB_GMF_FTFENREQ_LBN 12 173362306a36Sopenharmony_ci#define FRF_AB_GMF_FTFENREQ_WIDTH 1 173462306a36Sopenharmony_ci#define FRF_AB_GMF_STFENREQ_LBN 11 173562306a36Sopenharmony_ci#define FRF_AB_GMF_STFENREQ_WIDTH 1 173662306a36Sopenharmony_ci#define FRF_AB_GMF_FRFENREQ_LBN 10 173762306a36Sopenharmony_ci#define FRF_AB_GMF_FRFENREQ_WIDTH 1 173862306a36Sopenharmony_ci#define FRF_AB_GMF_SRFENREQ_LBN 9 173962306a36Sopenharmony_ci#define FRF_AB_GMF_SRFENREQ_WIDTH 1 174062306a36Sopenharmony_ci#define FRF_AB_GMF_WTMENREQ_LBN 8 174162306a36Sopenharmony_ci#define FRF_AB_GMF_WTMENREQ_WIDTH 1 174262306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTFT_LBN 4 174362306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTFT_WIDTH 1 174462306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTST_LBN 3 174562306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTST_WIDTH 1 174662306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTFR_LBN 2 174762306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTFR_WIDTH 1 174862306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTSR_LBN 1 174962306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTSR_WIDTH 1 175062306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTWT_LBN 0 175162306a36Sopenharmony_ci#define FRF_AB_GMF_HSTRSTWT_WIDTH 1 175262306a36Sopenharmony_ci 175362306a36Sopenharmony_ci/* GMF_CFG1_REG: GMAC FIFO configuration register 1 */ 175462306a36Sopenharmony_ci#define FR_AB_GMF_CFG1 0x00000f30 175562306a36Sopenharmony_ci#define FRF_AB_GMF_CFGFRTH_LBN 16 175662306a36Sopenharmony_ci#define FRF_AB_GMF_CFGFRTH_WIDTH 5 175762306a36Sopenharmony_ci#define FRF_AB_GMF_CFGXOFFRTX_LBN 0 175862306a36Sopenharmony_ci#define FRF_AB_GMF_CFGXOFFRTX_WIDTH 16 175962306a36Sopenharmony_ci 176062306a36Sopenharmony_ci/* GMF_CFG2_REG: GMAC FIFO configuration register 2 */ 176162306a36Sopenharmony_ci#define FR_AB_GMF_CFG2 0x00000f40 176262306a36Sopenharmony_ci#define FRF_AB_GMF_CFGHWM_LBN 16 176362306a36Sopenharmony_ci#define FRF_AB_GMF_CFGHWM_WIDTH 6 176462306a36Sopenharmony_ci#define FRF_AB_GMF_CFGLWM_LBN 0 176562306a36Sopenharmony_ci#define FRF_AB_GMF_CFGLWM_WIDTH 6 176662306a36Sopenharmony_ci 176762306a36Sopenharmony_ci/* GMF_CFG3_REG: GMAC FIFO configuration register 3 */ 176862306a36Sopenharmony_ci#define FR_AB_GMF_CFG3 0x00000f50 176962306a36Sopenharmony_ci#define FRF_AB_GMF_CFGHWMFT_LBN 16 177062306a36Sopenharmony_ci#define FRF_AB_GMF_CFGHWMFT_WIDTH 6 177162306a36Sopenharmony_ci#define FRF_AB_GMF_CFGFTTH_LBN 0 177262306a36Sopenharmony_ci#define FRF_AB_GMF_CFGFTTH_WIDTH 6 177362306a36Sopenharmony_ci 177462306a36Sopenharmony_ci/* GMF_CFG4_REG: GMAC FIFO configuration register 4 */ 177562306a36Sopenharmony_ci#define FR_AB_GMF_CFG4 0x00000f60 177662306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRM_LBN 0 177762306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRM_WIDTH 18 177862306a36Sopenharmony_ci 177962306a36Sopenharmony_ci/* GMF_CFG5_REG: GMAC FIFO configuration register 5 */ 178062306a36Sopenharmony_ci#define FR_AB_GMF_CFG5 0x00000f70 178162306a36Sopenharmony_ci#define FRF_AB_GMF_CFGHDPLX_LBN 22 178262306a36Sopenharmony_ci#define FRF_AB_GMF_CFGHDPLX_WIDTH 1 178362306a36Sopenharmony_ci#define FRF_AB_GMF_SRFULL_LBN 21 178462306a36Sopenharmony_ci#define FRF_AB_GMF_SRFULL_WIDTH 1 178562306a36Sopenharmony_ci#define FRF_AB_GMF_HSTSRFULLCLR_LBN 20 178662306a36Sopenharmony_ci#define FRF_AB_GMF_HSTSRFULLCLR_WIDTH 1 178762306a36Sopenharmony_ci#define FRF_AB_GMF_CFGBYTMODE_LBN 19 178862306a36Sopenharmony_ci#define FRF_AB_GMF_CFGBYTMODE_WIDTH 1 178962306a36Sopenharmony_ci#define FRF_AB_GMF_HSTDRPLT64_LBN 18 179062306a36Sopenharmony_ci#define FRF_AB_GMF_HSTDRPLT64_WIDTH 1 179162306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRMDC_LBN 0 179262306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRMDC_WIDTH 18 179362306a36Sopenharmony_ci 179462306a36Sopenharmony_ci/* TX_SRC_MAC_TBL: Transmit IP source address filter table */ 179562306a36Sopenharmony_ci#define FR_BB_TX_SRC_MAC_TBL 0x00001000 179662306a36Sopenharmony_ci#define FR_BB_TX_SRC_MAC_TBL_STEP 16 179762306a36Sopenharmony_ci#define FR_BB_TX_SRC_MAC_TBL_ROWS 16 179862306a36Sopenharmony_ci#define FRF_BB_TX_SRC_MAC_ADR_1_LBN 64 179962306a36Sopenharmony_ci#define FRF_BB_TX_SRC_MAC_ADR_1_WIDTH 48 180062306a36Sopenharmony_ci#define FRF_BB_TX_SRC_MAC_ADR_0_LBN 0 180162306a36Sopenharmony_ci#define FRF_BB_TX_SRC_MAC_ADR_0_WIDTH 48 180262306a36Sopenharmony_ci 180362306a36Sopenharmony_ci/* TX_SRC_MAC_CTL_REG: Transmit MAC source address filter control */ 180462306a36Sopenharmony_ci#define FR_BB_TX_SRC_MAC_CTL 0x00001100 180562306a36Sopenharmony_ci#define FRF_BB_TX_SRC_DROP_CTR_LBN 16 180662306a36Sopenharmony_ci#define FRF_BB_TX_SRC_DROP_CTR_WIDTH 16 180762306a36Sopenharmony_ci#define FRF_BB_TX_SRC_FLTR_EN_LBN 15 180862306a36Sopenharmony_ci#define FRF_BB_TX_SRC_FLTR_EN_WIDTH 1 180962306a36Sopenharmony_ci#define FRF_BB_TX_DROP_CTR_CLR_LBN 12 181062306a36Sopenharmony_ci#define FRF_BB_TX_DROP_CTR_CLR_WIDTH 1 181162306a36Sopenharmony_ci#define FRF_BB_TX_MAC_QID_SEL_LBN 0 181262306a36Sopenharmony_ci#define FRF_BB_TX_MAC_QID_SEL_WIDTH 3 181362306a36Sopenharmony_ci 181462306a36Sopenharmony_ci/* XM_ADR_LO_REG: XGMAC address register low */ 181562306a36Sopenharmony_ci#define FR_AB_XM_ADR_LO 0x00001200 181662306a36Sopenharmony_ci#define FRF_AB_XM_ADR_LO_LBN 0 181762306a36Sopenharmony_ci#define FRF_AB_XM_ADR_LO_WIDTH 32 181862306a36Sopenharmony_ci 181962306a36Sopenharmony_ci/* XM_ADR_HI_REG: XGMAC address register high */ 182062306a36Sopenharmony_ci#define FR_AB_XM_ADR_HI 0x00001210 182162306a36Sopenharmony_ci#define FRF_AB_XM_ADR_HI_LBN 0 182262306a36Sopenharmony_ci#define FRF_AB_XM_ADR_HI_WIDTH 16 182362306a36Sopenharmony_ci 182462306a36Sopenharmony_ci/* XM_GLB_CFG_REG: XGMAC global configuration */ 182562306a36Sopenharmony_ci#define FR_AB_XM_GLB_CFG 0x00001220 182662306a36Sopenharmony_ci#define FRF_AB_XM_RMTFLT_GEN_LBN 17 182762306a36Sopenharmony_ci#define FRF_AB_XM_RMTFLT_GEN_WIDTH 1 182862306a36Sopenharmony_ci#define FRF_AB_XM_DEBUG_MODE_LBN 16 182962306a36Sopenharmony_ci#define FRF_AB_XM_DEBUG_MODE_WIDTH 1 183062306a36Sopenharmony_ci#define FRF_AB_XM_RX_STAT_EN_LBN 11 183162306a36Sopenharmony_ci#define FRF_AB_XM_RX_STAT_EN_WIDTH 1 183262306a36Sopenharmony_ci#define FRF_AB_XM_TX_STAT_EN_LBN 10 183362306a36Sopenharmony_ci#define FRF_AB_XM_TX_STAT_EN_WIDTH 1 183462306a36Sopenharmony_ci#define FRF_AB_XM_RX_JUMBO_MODE_LBN 6 183562306a36Sopenharmony_ci#define FRF_AB_XM_RX_JUMBO_MODE_WIDTH 1 183662306a36Sopenharmony_ci#define FRF_AB_XM_WAN_MODE_LBN 5 183762306a36Sopenharmony_ci#define FRF_AB_XM_WAN_MODE_WIDTH 1 183862306a36Sopenharmony_ci#define FRF_AB_XM_INTCLR_MODE_LBN 3 183962306a36Sopenharmony_ci#define FRF_AB_XM_INTCLR_MODE_WIDTH 1 184062306a36Sopenharmony_ci#define FRF_AB_XM_CORE_RST_LBN 0 184162306a36Sopenharmony_ci#define FRF_AB_XM_CORE_RST_WIDTH 1 184262306a36Sopenharmony_ci 184362306a36Sopenharmony_ci/* XM_TX_CFG_REG: XGMAC transmit configuration */ 184462306a36Sopenharmony_ci#define FR_AB_XM_TX_CFG 0x00001230 184562306a36Sopenharmony_ci#define FRF_AB_XM_TX_PROG_LBN 24 184662306a36Sopenharmony_ci#define FRF_AB_XM_TX_PROG_WIDTH 1 184762306a36Sopenharmony_ci#define FRF_AB_XM_IPG_LBN 16 184862306a36Sopenharmony_ci#define FRF_AB_XM_IPG_WIDTH 4 184962306a36Sopenharmony_ci#define FRF_AB_XM_FCNTL_LBN 10 185062306a36Sopenharmony_ci#define FRF_AB_XM_FCNTL_WIDTH 1 185162306a36Sopenharmony_ci#define FRF_AB_XM_TXCRC_LBN 8 185262306a36Sopenharmony_ci#define FRF_AB_XM_TXCRC_WIDTH 1 185362306a36Sopenharmony_ci#define FRF_AB_XM_EDRC_LBN 6 185462306a36Sopenharmony_ci#define FRF_AB_XM_EDRC_WIDTH 1 185562306a36Sopenharmony_ci#define FRF_AB_XM_AUTO_PAD_LBN 5 185662306a36Sopenharmony_ci#define FRF_AB_XM_AUTO_PAD_WIDTH 1 185762306a36Sopenharmony_ci#define FRF_AB_XM_TX_PRMBL_LBN 2 185862306a36Sopenharmony_ci#define FRF_AB_XM_TX_PRMBL_WIDTH 1 185962306a36Sopenharmony_ci#define FRF_AB_XM_TXEN_LBN 1 186062306a36Sopenharmony_ci#define FRF_AB_XM_TXEN_WIDTH 1 186162306a36Sopenharmony_ci#define FRF_AB_XM_TX_RST_LBN 0 186262306a36Sopenharmony_ci#define FRF_AB_XM_TX_RST_WIDTH 1 186362306a36Sopenharmony_ci 186462306a36Sopenharmony_ci/* XM_RX_CFG_REG: XGMAC receive configuration */ 186562306a36Sopenharmony_ci#define FR_AB_XM_RX_CFG 0x00001240 186662306a36Sopenharmony_ci#define FRF_AB_XM_PASS_LENERR_LBN 26 186762306a36Sopenharmony_ci#define FRF_AB_XM_PASS_LENERR_WIDTH 1 186862306a36Sopenharmony_ci#define FRF_AB_XM_PASS_CRC_ERR_LBN 25 186962306a36Sopenharmony_ci#define FRF_AB_XM_PASS_CRC_ERR_WIDTH 1 187062306a36Sopenharmony_ci#define FRF_AB_XM_PASS_PRMBLE_ERR_LBN 24 187162306a36Sopenharmony_ci#define FRF_AB_XM_PASS_PRMBLE_ERR_WIDTH 1 187262306a36Sopenharmony_ci#define FRF_AB_XM_REJ_BCAST_LBN 20 187362306a36Sopenharmony_ci#define FRF_AB_XM_REJ_BCAST_WIDTH 1 187462306a36Sopenharmony_ci#define FRF_AB_XM_ACPT_ALL_MCAST_LBN 11 187562306a36Sopenharmony_ci#define FRF_AB_XM_ACPT_ALL_MCAST_WIDTH 1 187662306a36Sopenharmony_ci#define FRF_AB_XM_ACPT_ALL_UCAST_LBN 9 187762306a36Sopenharmony_ci#define FRF_AB_XM_ACPT_ALL_UCAST_WIDTH 1 187862306a36Sopenharmony_ci#define FRF_AB_XM_AUTO_DEPAD_LBN 8 187962306a36Sopenharmony_ci#define FRF_AB_XM_AUTO_DEPAD_WIDTH 1 188062306a36Sopenharmony_ci#define FRF_AB_XM_RXCRC_LBN 3 188162306a36Sopenharmony_ci#define FRF_AB_XM_RXCRC_WIDTH 1 188262306a36Sopenharmony_ci#define FRF_AB_XM_RX_PRMBL_LBN 2 188362306a36Sopenharmony_ci#define FRF_AB_XM_RX_PRMBL_WIDTH 1 188462306a36Sopenharmony_ci#define FRF_AB_XM_RXEN_LBN 1 188562306a36Sopenharmony_ci#define FRF_AB_XM_RXEN_WIDTH 1 188662306a36Sopenharmony_ci#define FRF_AB_XM_RX_RST_LBN 0 188762306a36Sopenharmony_ci#define FRF_AB_XM_RX_RST_WIDTH 1 188862306a36Sopenharmony_ci 188962306a36Sopenharmony_ci/* XM_MGT_INT_MASK: documentation to be written for sum_XM_MGT_INT_MASK */ 189062306a36Sopenharmony_ci#define FR_AB_XM_MGT_INT_MASK 0x00001250 189162306a36Sopenharmony_ci#define FRF_AB_XM_MSK_STA_INTR_LBN 16 189262306a36Sopenharmony_ci#define FRF_AB_XM_MSK_STA_INTR_WIDTH 1 189362306a36Sopenharmony_ci#define FRF_AB_XM_MSK_STAT_CNTR_HF_LBN 9 189462306a36Sopenharmony_ci#define FRF_AB_XM_MSK_STAT_CNTR_HF_WIDTH 1 189562306a36Sopenharmony_ci#define FRF_AB_XM_MSK_STAT_CNTR_OF_LBN 8 189662306a36Sopenharmony_ci#define FRF_AB_XM_MSK_STAT_CNTR_OF_WIDTH 1 189762306a36Sopenharmony_ci#define FRF_AB_XM_MSK_PRMBLE_ERR_LBN 2 189862306a36Sopenharmony_ci#define FRF_AB_XM_MSK_PRMBLE_ERR_WIDTH 1 189962306a36Sopenharmony_ci#define FRF_AB_XM_MSK_RMTFLT_LBN 1 190062306a36Sopenharmony_ci#define FRF_AB_XM_MSK_RMTFLT_WIDTH 1 190162306a36Sopenharmony_ci#define FRF_AB_XM_MSK_LCLFLT_LBN 0 190262306a36Sopenharmony_ci#define FRF_AB_XM_MSK_LCLFLT_WIDTH 1 190362306a36Sopenharmony_ci 190462306a36Sopenharmony_ci/* XM_FC_REG: XGMAC flow control register */ 190562306a36Sopenharmony_ci#define FR_AB_XM_FC 0x00001270 190662306a36Sopenharmony_ci#define FRF_AB_XM_PAUSE_TIME_LBN 16 190762306a36Sopenharmony_ci#define FRF_AB_XM_PAUSE_TIME_WIDTH 16 190862306a36Sopenharmony_ci#define FRF_AB_XM_RX_MAC_STAT_LBN 11 190962306a36Sopenharmony_ci#define FRF_AB_XM_RX_MAC_STAT_WIDTH 1 191062306a36Sopenharmony_ci#define FRF_AB_XM_TX_MAC_STAT_LBN 10 191162306a36Sopenharmony_ci#define FRF_AB_XM_TX_MAC_STAT_WIDTH 1 191262306a36Sopenharmony_ci#define FRF_AB_XM_MCNTL_PASS_LBN 8 191362306a36Sopenharmony_ci#define FRF_AB_XM_MCNTL_PASS_WIDTH 2 191462306a36Sopenharmony_ci#define FRF_AB_XM_REJ_CNTL_UCAST_LBN 6 191562306a36Sopenharmony_ci#define FRF_AB_XM_REJ_CNTL_UCAST_WIDTH 1 191662306a36Sopenharmony_ci#define FRF_AB_XM_REJ_CNTL_MCAST_LBN 5 191762306a36Sopenharmony_ci#define FRF_AB_XM_REJ_CNTL_MCAST_WIDTH 1 191862306a36Sopenharmony_ci#define FRF_AB_XM_ZPAUSE_LBN 2 191962306a36Sopenharmony_ci#define FRF_AB_XM_ZPAUSE_WIDTH 1 192062306a36Sopenharmony_ci#define FRF_AB_XM_XMIT_PAUSE_LBN 1 192162306a36Sopenharmony_ci#define FRF_AB_XM_XMIT_PAUSE_WIDTH 1 192262306a36Sopenharmony_ci#define FRF_AB_XM_DIS_FCNTL_LBN 0 192362306a36Sopenharmony_ci#define FRF_AB_XM_DIS_FCNTL_WIDTH 1 192462306a36Sopenharmony_ci 192562306a36Sopenharmony_ci/* XM_PAUSE_TIME_REG: XGMAC pause time register */ 192662306a36Sopenharmony_ci#define FR_AB_XM_PAUSE_TIME 0x00001290 192762306a36Sopenharmony_ci#define FRF_AB_XM_TX_PAUSE_CNT_LBN 16 192862306a36Sopenharmony_ci#define FRF_AB_XM_TX_PAUSE_CNT_WIDTH 16 192962306a36Sopenharmony_ci#define FRF_AB_XM_RX_PAUSE_CNT_LBN 0 193062306a36Sopenharmony_ci#define FRF_AB_XM_RX_PAUSE_CNT_WIDTH 16 193162306a36Sopenharmony_ci 193262306a36Sopenharmony_ci/* XM_TX_PARAM_REG: XGMAC transmit parameter register */ 193362306a36Sopenharmony_ci#define FR_AB_XM_TX_PARAM 0x000012d0 193462306a36Sopenharmony_ci#define FRF_AB_XM_TX_JUMBO_MODE_LBN 31 193562306a36Sopenharmony_ci#define FRF_AB_XM_TX_JUMBO_MODE_WIDTH 1 193662306a36Sopenharmony_ci#define FRF_AB_XM_MAX_TX_FRM_SIZE_HI_LBN 19 193762306a36Sopenharmony_ci#define FRF_AB_XM_MAX_TX_FRM_SIZE_HI_WIDTH 11 193862306a36Sopenharmony_ci#define FRF_AB_XM_MAX_TX_FRM_SIZE_LO_LBN 16 193962306a36Sopenharmony_ci#define FRF_AB_XM_MAX_TX_FRM_SIZE_LO_WIDTH 3 194062306a36Sopenharmony_ci#define FRF_AB_XM_PAD_CHAR_LBN 0 194162306a36Sopenharmony_ci#define FRF_AB_XM_PAD_CHAR_WIDTH 8 194262306a36Sopenharmony_ci 194362306a36Sopenharmony_ci/* XM_RX_PARAM_REG: XGMAC receive parameter register */ 194462306a36Sopenharmony_ci#define FR_AB_XM_RX_PARAM 0x000012e0 194562306a36Sopenharmony_ci#define FRF_AB_XM_MAX_RX_FRM_SIZE_HI_LBN 3 194662306a36Sopenharmony_ci#define FRF_AB_XM_MAX_RX_FRM_SIZE_HI_WIDTH 11 194762306a36Sopenharmony_ci#define FRF_AB_XM_MAX_RX_FRM_SIZE_LO_LBN 0 194862306a36Sopenharmony_ci#define FRF_AB_XM_MAX_RX_FRM_SIZE_LO_WIDTH 3 194962306a36Sopenharmony_ci 195062306a36Sopenharmony_ci/* XM_MGT_INT_MSK_REG: XGMAC management interrupt mask register */ 195162306a36Sopenharmony_ci#define FR_AB_XM_MGT_INT_MSK 0x000012f0 195262306a36Sopenharmony_ci#define FRF_AB_XM_STAT_CNTR_OF_LBN 9 195362306a36Sopenharmony_ci#define FRF_AB_XM_STAT_CNTR_OF_WIDTH 1 195462306a36Sopenharmony_ci#define FRF_AB_XM_STAT_CNTR_HF_LBN 8 195562306a36Sopenharmony_ci#define FRF_AB_XM_STAT_CNTR_HF_WIDTH 1 195662306a36Sopenharmony_ci#define FRF_AB_XM_PRMBLE_ERR_LBN 2 195762306a36Sopenharmony_ci#define FRF_AB_XM_PRMBLE_ERR_WIDTH 1 195862306a36Sopenharmony_ci#define FRF_AB_XM_RMTFLT_LBN 1 195962306a36Sopenharmony_ci#define FRF_AB_XM_RMTFLT_WIDTH 1 196062306a36Sopenharmony_ci#define FRF_AB_XM_LCLFLT_LBN 0 196162306a36Sopenharmony_ci#define FRF_AB_XM_LCLFLT_WIDTH 1 196262306a36Sopenharmony_ci 196362306a36Sopenharmony_ci/* XX_PWR_RST_REG: XGXS/XAUI powerdown/reset register */ 196462306a36Sopenharmony_ci#define FR_AB_XX_PWR_RST 0x00001300 196562306a36Sopenharmony_ci#define FRF_AB_XX_PWRDND_SIG_LBN 31 196662306a36Sopenharmony_ci#define FRF_AB_XX_PWRDND_SIG_WIDTH 1 196762306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNC_SIG_LBN 30 196862306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNC_SIG_WIDTH 1 196962306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNB_SIG_LBN 29 197062306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNB_SIG_WIDTH 1 197162306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNA_SIG_LBN 28 197262306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNA_SIG_WIDTH 1 197362306a36Sopenharmony_ci#define FRF_AB_XX_SIM_MODE_LBN 27 197462306a36Sopenharmony_ci#define FRF_AB_XX_SIM_MODE_WIDTH 1 197562306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLCD_SIG_LBN 25 197662306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLCD_SIG_WIDTH 1 197762306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLAB_SIG_LBN 24 197862306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLAB_SIG_WIDTH 1 197962306a36Sopenharmony_ci#define FRF_AB_XX_RESETD_SIG_LBN 23 198062306a36Sopenharmony_ci#define FRF_AB_XX_RESETD_SIG_WIDTH 1 198162306a36Sopenharmony_ci#define FRF_AB_XX_RESETC_SIG_LBN 22 198262306a36Sopenharmony_ci#define FRF_AB_XX_RESETC_SIG_WIDTH 1 198362306a36Sopenharmony_ci#define FRF_AB_XX_RESETB_SIG_LBN 21 198462306a36Sopenharmony_ci#define FRF_AB_XX_RESETB_SIG_WIDTH 1 198562306a36Sopenharmony_ci#define FRF_AB_XX_RESETA_SIG_LBN 20 198662306a36Sopenharmony_ci#define FRF_AB_XX_RESETA_SIG_WIDTH 1 198762306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSRX_SIG_LBN 18 198862306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSRX_SIG_WIDTH 1 198962306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSTX_SIG_LBN 17 199062306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSTX_SIG_WIDTH 1 199162306a36Sopenharmony_ci#define FRF_AB_XX_SD_RST_ACT_LBN 16 199262306a36Sopenharmony_ci#define FRF_AB_XX_SD_RST_ACT_WIDTH 1 199362306a36Sopenharmony_ci#define FRF_AB_XX_PWRDND_EN_LBN 15 199462306a36Sopenharmony_ci#define FRF_AB_XX_PWRDND_EN_WIDTH 1 199562306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNC_EN_LBN 14 199662306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNC_EN_WIDTH 1 199762306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNB_EN_LBN 13 199862306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNB_EN_WIDTH 1 199962306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNA_EN_LBN 12 200062306a36Sopenharmony_ci#define FRF_AB_XX_PWRDNA_EN_WIDTH 1 200162306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLCD_EN_LBN 9 200262306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLCD_EN_WIDTH 1 200362306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLAB_EN_LBN 8 200462306a36Sopenharmony_ci#define FRF_AB_XX_RSTPLLAB_EN_WIDTH 1 200562306a36Sopenharmony_ci#define FRF_AB_XX_RESETD_EN_LBN 7 200662306a36Sopenharmony_ci#define FRF_AB_XX_RESETD_EN_WIDTH 1 200762306a36Sopenharmony_ci#define FRF_AB_XX_RESETC_EN_LBN 6 200862306a36Sopenharmony_ci#define FRF_AB_XX_RESETC_EN_WIDTH 1 200962306a36Sopenharmony_ci#define FRF_AB_XX_RESETB_EN_LBN 5 201062306a36Sopenharmony_ci#define FRF_AB_XX_RESETB_EN_WIDTH 1 201162306a36Sopenharmony_ci#define FRF_AB_XX_RESETA_EN_LBN 4 201262306a36Sopenharmony_ci#define FRF_AB_XX_RESETA_EN_WIDTH 1 201362306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSRX_EN_LBN 2 201462306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSRX_EN_WIDTH 1 201562306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSTX_EN_LBN 1 201662306a36Sopenharmony_ci#define FRF_AB_XX_RSTXGXSTX_EN_WIDTH 1 201762306a36Sopenharmony_ci#define FRF_AB_XX_RST_XX_EN_LBN 0 201862306a36Sopenharmony_ci#define FRF_AB_XX_RST_XX_EN_WIDTH 1 201962306a36Sopenharmony_ci 202062306a36Sopenharmony_ci/* XX_SD_CTL_REG: XGXS/XAUI powerdown/reset control register */ 202162306a36Sopenharmony_ci#define FR_AB_XX_SD_CTL 0x00001310 202262306a36Sopenharmony_ci#define FRF_AB_XX_TERMADJ1_LBN 17 202362306a36Sopenharmony_ci#define FRF_AB_XX_TERMADJ1_WIDTH 1 202462306a36Sopenharmony_ci#define FRF_AB_XX_TERMADJ0_LBN 16 202562306a36Sopenharmony_ci#define FRF_AB_XX_TERMADJ0_WIDTH 1 202662306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVD_LBN 15 202762306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVD_WIDTH 1 202862306a36Sopenharmony_ci#define FRF_AB_XX_LODRVD_LBN 14 202962306a36Sopenharmony_ci#define FRF_AB_XX_LODRVD_WIDTH 1 203062306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVC_LBN 13 203162306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVC_WIDTH 1 203262306a36Sopenharmony_ci#define FRF_AB_XX_LODRVC_LBN 12 203362306a36Sopenharmony_ci#define FRF_AB_XX_LODRVC_WIDTH 1 203462306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVB_LBN 11 203562306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVB_WIDTH 1 203662306a36Sopenharmony_ci#define FRF_AB_XX_LODRVB_LBN 10 203762306a36Sopenharmony_ci#define FRF_AB_XX_LODRVB_WIDTH 1 203862306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVA_LBN 9 203962306a36Sopenharmony_ci#define FRF_AB_XX_HIDRVA_WIDTH 1 204062306a36Sopenharmony_ci#define FRF_AB_XX_LODRVA_LBN 8 204162306a36Sopenharmony_ci#define FRF_AB_XX_LODRVA_WIDTH 1 204262306a36Sopenharmony_ci#define FRF_AB_XX_LPBKD_LBN 3 204362306a36Sopenharmony_ci#define FRF_AB_XX_LPBKD_WIDTH 1 204462306a36Sopenharmony_ci#define FRF_AB_XX_LPBKC_LBN 2 204562306a36Sopenharmony_ci#define FRF_AB_XX_LPBKC_WIDTH 1 204662306a36Sopenharmony_ci#define FRF_AB_XX_LPBKB_LBN 1 204762306a36Sopenharmony_ci#define FRF_AB_XX_LPBKB_WIDTH 1 204862306a36Sopenharmony_ci#define FRF_AB_XX_LPBKA_LBN 0 204962306a36Sopenharmony_ci#define FRF_AB_XX_LPBKA_WIDTH 1 205062306a36Sopenharmony_ci 205162306a36Sopenharmony_ci/* XX_TXDRV_CTL_REG: XAUI SerDes transmit drive control register */ 205262306a36Sopenharmony_ci#define FR_AB_XX_TXDRV_CTL 0x00001320 205362306a36Sopenharmony_ci#define FRF_AB_XX_DEQD_LBN 28 205462306a36Sopenharmony_ci#define FRF_AB_XX_DEQD_WIDTH 4 205562306a36Sopenharmony_ci#define FRF_AB_XX_DEQC_LBN 24 205662306a36Sopenharmony_ci#define FRF_AB_XX_DEQC_WIDTH 4 205762306a36Sopenharmony_ci#define FRF_AB_XX_DEQB_LBN 20 205862306a36Sopenharmony_ci#define FRF_AB_XX_DEQB_WIDTH 4 205962306a36Sopenharmony_ci#define FRF_AB_XX_DEQA_LBN 16 206062306a36Sopenharmony_ci#define FRF_AB_XX_DEQA_WIDTH 4 206162306a36Sopenharmony_ci#define FRF_AB_XX_DTXD_LBN 12 206262306a36Sopenharmony_ci#define FRF_AB_XX_DTXD_WIDTH 4 206362306a36Sopenharmony_ci#define FRF_AB_XX_DTXC_LBN 8 206462306a36Sopenharmony_ci#define FRF_AB_XX_DTXC_WIDTH 4 206562306a36Sopenharmony_ci#define FRF_AB_XX_DTXB_LBN 4 206662306a36Sopenharmony_ci#define FRF_AB_XX_DTXB_WIDTH 4 206762306a36Sopenharmony_ci#define FRF_AB_XX_DTXA_LBN 0 206862306a36Sopenharmony_ci#define FRF_AB_XX_DTXA_WIDTH 4 206962306a36Sopenharmony_ci 207062306a36Sopenharmony_ci/* XX_PRBS_CTL_REG: documentation to be written for sum_XX_PRBS_CTL_REG */ 207162306a36Sopenharmony_ci#define FR_AB_XX_PRBS_CTL 0x00001330 207262306a36Sopenharmony_ci#define FRF_AB_XX_CH3_RX_PRBS_SEL_LBN 30 207362306a36Sopenharmony_ci#define FRF_AB_XX_CH3_RX_PRBS_SEL_WIDTH 2 207462306a36Sopenharmony_ci#define FRF_AB_XX_CH3_RX_PRBS_INV_LBN 29 207562306a36Sopenharmony_ci#define FRF_AB_XX_CH3_RX_PRBS_INV_WIDTH 1 207662306a36Sopenharmony_ci#define FRF_AB_XX_CH3_RX_PRBS_CHKEN_LBN 28 207762306a36Sopenharmony_ci#define FRF_AB_XX_CH3_RX_PRBS_CHKEN_WIDTH 1 207862306a36Sopenharmony_ci#define FRF_AB_XX_CH2_RX_PRBS_SEL_LBN 26 207962306a36Sopenharmony_ci#define FRF_AB_XX_CH2_RX_PRBS_SEL_WIDTH 2 208062306a36Sopenharmony_ci#define FRF_AB_XX_CH2_RX_PRBS_INV_LBN 25 208162306a36Sopenharmony_ci#define FRF_AB_XX_CH2_RX_PRBS_INV_WIDTH 1 208262306a36Sopenharmony_ci#define FRF_AB_XX_CH2_RX_PRBS_CHKEN_LBN 24 208362306a36Sopenharmony_ci#define FRF_AB_XX_CH2_RX_PRBS_CHKEN_WIDTH 1 208462306a36Sopenharmony_ci#define FRF_AB_XX_CH1_RX_PRBS_SEL_LBN 22 208562306a36Sopenharmony_ci#define FRF_AB_XX_CH1_RX_PRBS_SEL_WIDTH 2 208662306a36Sopenharmony_ci#define FRF_AB_XX_CH1_RX_PRBS_INV_LBN 21 208762306a36Sopenharmony_ci#define FRF_AB_XX_CH1_RX_PRBS_INV_WIDTH 1 208862306a36Sopenharmony_ci#define FRF_AB_XX_CH1_RX_PRBS_CHKEN_LBN 20 208962306a36Sopenharmony_ci#define FRF_AB_XX_CH1_RX_PRBS_CHKEN_WIDTH 1 209062306a36Sopenharmony_ci#define FRF_AB_XX_CH0_RX_PRBS_SEL_LBN 18 209162306a36Sopenharmony_ci#define FRF_AB_XX_CH0_RX_PRBS_SEL_WIDTH 2 209262306a36Sopenharmony_ci#define FRF_AB_XX_CH0_RX_PRBS_INV_LBN 17 209362306a36Sopenharmony_ci#define FRF_AB_XX_CH0_RX_PRBS_INV_WIDTH 1 209462306a36Sopenharmony_ci#define FRF_AB_XX_CH0_RX_PRBS_CHKEN_LBN 16 209562306a36Sopenharmony_ci#define FRF_AB_XX_CH0_RX_PRBS_CHKEN_WIDTH 1 209662306a36Sopenharmony_ci#define FRF_AB_XX_CH3_TX_PRBS_SEL_LBN 14 209762306a36Sopenharmony_ci#define FRF_AB_XX_CH3_TX_PRBS_SEL_WIDTH 2 209862306a36Sopenharmony_ci#define FRF_AB_XX_CH3_TX_PRBS_INV_LBN 13 209962306a36Sopenharmony_ci#define FRF_AB_XX_CH3_TX_PRBS_INV_WIDTH 1 210062306a36Sopenharmony_ci#define FRF_AB_XX_CH3_TX_PRBS_CHKEN_LBN 12 210162306a36Sopenharmony_ci#define FRF_AB_XX_CH3_TX_PRBS_CHKEN_WIDTH 1 210262306a36Sopenharmony_ci#define FRF_AB_XX_CH2_TX_PRBS_SEL_LBN 10 210362306a36Sopenharmony_ci#define FRF_AB_XX_CH2_TX_PRBS_SEL_WIDTH 2 210462306a36Sopenharmony_ci#define FRF_AB_XX_CH2_TX_PRBS_INV_LBN 9 210562306a36Sopenharmony_ci#define FRF_AB_XX_CH2_TX_PRBS_INV_WIDTH 1 210662306a36Sopenharmony_ci#define FRF_AB_XX_CH2_TX_PRBS_CHKEN_LBN 8 210762306a36Sopenharmony_ci#define FRF_AB_XX_CH2_TX_PRBS_CHKEN_WIDTH 1 210862306a36Sopenharmony_ci#define FRF_AB_XX_CH1_TX_PRBS_SEL_LBN 6 210962306a36Sopenharmony_ci#define FRF_AB_XX_CH1_TX_PRBS_SEL_WIDTH 2 211062306a36Sopenharmony_ci#define FRF_AB_XX_CH1_TX_PRBS_INV_LBN 5 211162306a36Sopenharmony_ci#define FRF_AB_XX_CH1_TX_PRBS_INV_WIDTH 1 211262306a36Sopenharmony_ci#define FRF_AB_XX_CH1_TX_PRBS_CHKEN_LBN 4 211362306a36Sopenharmony_ci#define FRF_AB_XX_CH1_TX_PRBS_CHKEN_WIDTH 1 211462306a36Sopenharmony_ci#define FRF_AB_XX_CH0_TX_PRBS_SEL_LBN 2 211562306a36Sopenharmony_ci#define FRF_AB_XX_CH0_TX_PRBS_SEL_WIDTH 2 211662306a36Sopenharmony_ci#define FRF_AB_XX_CH0_TX_PRBS_INV_LBN 1 211762306a36Sopenharmony_ci#define FRF_AB_XX_CH0_TX_PRBS_INV_WIDTH 1 211862306a36Sopenharmony_ci#define FRF_AB_XX_CH0_TX_PRBS_CHKEN_LBN 0 211962306a36Sopenharmony_ci#define FRF_AB_XX_CH0_TX_PRBS_CHKEN_WIDTH 1 212062306a36Sopenharmony_ci 212162306a36Sopenharmony_ci/* XX_PRBS_CHK_REG: documentation to be written for sum_XX_PRBS_CHK_REG */ 212262306a36Sopenharmony_ci#define FR_AB_XX_PRBS_CHK 0x00001340 212362306a36Sopenharmony_ci#define FRF_AB_XX_REV_LB_EN_LBN 16 212462306a36Sopenharmony_ci#define FRF_AB_XX_REV_LB_EN_WIDTH 1 212562306a36Sopenharmony_ci#define FRF_AB_XX_CH3_DEG_DET_LBN 15 212662306a36Sopenharmony_ci#define FRF_AB_XX_CH3_DEG_DET_WIDTH 1 212762306a36Sopenharmony_ci#define FRF_AB_XX_CH3_LFSR_LOCK_IND_LBN 14 212862306a36Sopenharmony_ci#define FRF_AB_XX_CH3_LFSR_LOCK_IND_WIDTH 1 212962306a36Sopenharmony_ci#define FRF_AB_XX_CH3_PRBS_FRUN_LBN 13 213062306a36Sopenharmony_ci#define FRF_AB_XX_CH3_PRBS_FRUN_WIDTH 1 213162306a36Sopenharmony_ci#define FRF_AB_XX_CH3_ERR_CHK_LBN 12 213262306a36Sopenharmony_ci#define FRF_AB_XX_CH3_ERR_CHK_WIDTH 1 213362306a36Sopenharmony_ci#define FRF_AB_XX_CH2_DEG_DET_LBN 11 213462306a36Sopenharmony_ci#define FRF_AB_XX_CH2_DEG_DET_WIDTH 1 213562306a36Sopenharmony_ci#define FRF_AB_XX_CH2_LFSR_LOCK_IND_LBN 10 213662306a36Sopenharmony_ci#define FRF_AB_XX_CH2_LFSR_LOCK_IND_WIDTH 1 213762306a36Sopenharmony_ci#define FRF_AB_XX_CH2_PRBS_FRUN_LBN 9 213862306a36Sopenharmony_ci#define FRF_AB_XX_CH2_PRBS_FRUN_WIDTH 1 213962306a36Sopenharmony_ci#define FRF_AB_XX_CH2_ERR_CHK_LBN 8 214062306a36Sopenharmony_ci#define FRF_AB_XX_CH2_ERR_CHK_WIDTH 1 214162306a36Sopenharmony_ci#define FRF_AB_XX_CH1_DEG_DET_LBN 7 214262306a36Sopenharmony_ci#define FRF_AB_XX_CH1_DEG_DET_WIDTH 1 214362306a36Sopenharmony_ci#define FRF_AB_XX_CH1_LFSR_LOCK_IND_LBN 6 214462306a36Sopenharmony_ci#define FRF_AB_XX_CH1_LFSR_LOCK_IND_WIDTH 1 214562306a36Sopenharmony_ci#define FRF_AB_XX_CH1_PRBS_FRUN_LBN 5 214662306a36Sopenharmony_ci#define FRF_AB_XX_CH1_PRBS_FRUN_WIDTH 1 214762306a36Sopenharmony_ci#define FRF_AB_XX_CH1_ERR_CHK_LBN 4 214862306a36Sopenharmony_ci#define FRF_AB_XX_CH1_ERR_CHK_WIDTH 1 214962306a36Sopenharmony_ci#define FRF_AB_XX_CH0_DEG_DET_LBN 3 215062306a36Sopenharmony_ci#define FRF_AB_XX_CH0_DEG_DET_WIDTH 1 215162306a36Sopenharmony_ci#define FRF_AB_XX_CH0_LFSR_LOCK_IND_LBN 2 215262306a36Sopenharmony_ci#define FRF_AB_XX_CH0_LFSR_LOCK_IND_WIDTH 1 215362306a36Sopenharmony_ci#define FRF_AB_XX_CH0_PRBS_FRUN_LBN 1 215462306a36Sopenharmony_ci#define FRF_AB_XX_CH0_PRBS_FRUN_WIDTH 1 215562306a36Sopenharmony_ci#define FRF_AB_XX_CH0_ERR_CHK_LBN 0 215662306a36Sopenharmony_ci#define FRF_AB_XX_CH0_ERR_CHK_WIDTH 1 215762306a36Sopenharmony_ci 215862306a36Sopenharmony_ci/* XX_PRBS_ERR_REG: documentation to be written for sum_XX_PRBS_ERR_REG */ 215962306a36Sopenharmony_ci#define FR_AB_XX_PRBS_ERR 0x00001350 216062306a36Sopenharmony_ci#define FRF_AB_XX_CH3_PRBS_ERR_CNT_LBN 24 216162306a36Sopenharmony_ci#define FRF_AB_XX_CH3_PRBS_ERR_CNT_WIDTH 8 216262306a36Sopenharmony_ci#define FRF_AB_XX_CH2_PRBS_ERR_CNT_LBN 16 216362306a36Sopenharmony_ci#define FRF_AB_XX_CH2_PRBS_ERR_CNT_WIDTH 8 216462306a36Sopenharmony_ci#define FRF_AB_XX_CH1_PRBS_ERR_CNT_LBN 8 216562306a36Sopenharmony_ci#define FRF_AB_XX_CH1_PRBS_ERR_CNT_WIDTH 8 216662306a36Sopenharmony_ci#define FRF_AB_XX_CH0_PRBS_ERR_CNT_LBN 0 216762306a36Sopenharmony_ci#define FRF_AB_XX_CH0_PRBS_ERR_CNT_WIDTH 8 216862306a36Sopenharmony_ci 216962306a36Sopenharmony_ci/* XX_CORE_STAT_REG: XAUI XGXS core status register */ 217062306a36Sopenharmony_ci#define FR_AB_XX_CORE_STAT 0x00001360 217162306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG3_LBN 31 217262306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG3_WIDTH 1 217362306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG3_VAL_LBN 30 217462306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG3_VAL_WIDTH 1 217562306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG2_LBN 29 217662306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG2_WIDTH 1 217762306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG2_VAL_LBN 28 217862306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG2_VAL_WIDTH 1 217962306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG1_LBN 27 218062306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG1_WIDTH 1 218162306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG1_VAL_LBN 26 218262306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG1_VAL_WIDTH 1 218362306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG0_LBN 25 218462306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG0_WIDTH 1 218562306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG0_VAL_LBN 24 218662306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG0_VAL_WIDTH 1 218762306a36Sopenharmony_ci#define FRF_AB_XX_XGXS_LB_EN_LBN 23 218862306a36Sopenharmony_ci#define FRF_AB_XX_XGXS_LB_EN_WIDTH 1 218962306a36Sopenharmony_ci#define FRF_AB_XX_XGMII_LB_EN_LBN 22 219062306a36Sopenharmony_ci#define FRF_AB_XX_XGMII_LB_EN_WIDTH 1 219162306a36Sopenharmony_ci#define FRF_AB_XX_MATCH_FAULT_LBN 21 219262306a36Sopenharmony_ci#define FRF_AB_XX_MATCH_FAULT_WIDTH 1 219362306a36Sopenharmony_ci#define FRF_AB_XX_ALIGN_DONE_LBN 20 219462306a36Sopenharmony_ci#define FRF_AB_XX_ALIGN_DONE_WIDTH 1 219562306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT3_LBN 19 219662306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT3_WIDTH 1 219762306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT2_LBN 18 219862306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT2_WIDTH 1 219962306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT1_LBN 17 220062306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT1_WIDTH 1 220162306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT0_LBN 16 220262306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT0_WIDTH 1 220362306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH3_LBN 15 220462306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH3_WIDTH 1 220562306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH2_LBN 14 220662306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH2_WIDTH 1 220762306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH1_LBN 13 220862306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH1_WIDTH 1 220962306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH0_LBN 12 221062306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_CH0_WIDTH 1 221162306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH3_LBN 11 221262306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH3_WIDTH 1 221362306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH2_LBN 10 221462306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH2_WIDTH 1 221562306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH1_LBN 9 221662306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH1_WIDTH 1 221762306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH0_LBN 8 221862306a36Sopenharmony_ci#define FRF_AB_XX_CGRP_ALIGN_CH0_WIDTH 1 221962306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH3_LBN 7 222062306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH3_WIDTH 1 222162306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH2_LBN 6 222262306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH2_WIDTH 1 222362306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH1_LBN 5 222462306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH1_WIDTH 1 222562306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH0_LBN 4 222662306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_CH0_WIDTH 1 222762306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH3_LBN 3 222862306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH3_WIDTH 1 222962306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH2_LBN 2 223062306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH2_WIDTH 1 223162306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH1_LBN 1 223262306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH1_WIDTH 1 223362306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH0_LBN 0 223462306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_CH0_WIDTH 1 223562306a36Sopenharmony_ci 223662306a36Sopenharmony_ci/* RX_DESC_PTR_TBL_KER: Receive descriptor pointer table */ 223762306a36Sopenharmony_ci#define FR_AA_RX_DESC_PTR_TBL_KER 0x00011800 223862306a36Sopenharmony_ci#define FR_AA_RX_DESC_PTR_TBL_KER_STEP 16 223962306a36Sopenharmony_ci#define FR_AA_RX_DESC_PTR_TBL_KER_ROWS 4 224062306a36Sopenharmony_ci/* RX_DESC_PTR_TBL: Receive descriptor pointer table */ 224162306a36Sopenharmony_ci#define FR_BZ_RX_DESC_PTR_TBL 0x00f40000 224262306a36Sopenharmony_ci#define FR_BZ_RX_DESC_PTR_TBL_STEP 16 224362306a36Sopenharmony_ci#define FR_BB_RX_DESC_PTR_TBL_ROWS 4096 224462306a36Sopenharmony_ci#define FR_CZ_RX_DESC_PTR_TBL_ROWS 1024 224562306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_LBN 90 224662306a36Sopenharmony_ci#define FRF_CZ_RX_HDR_SPLIT_WIDTH 1 224762306a36Sopenharmony_ci#define FRF_AA_RX_RESET_LBN 89 224862306a36Sopenharmony_ci#define FRF_AA_RX_RESET_WIDTH 1 224962306a36Sopenharmony_ci#define FRF_AZ_RX_ISCSI_DDIG_EN_LBN 88 225062306a36Sopenharmony_ci#define FRF_AZ_RX_ISCSI_DDIG_EN_WIDTH 1 225162306a36Sopenharmony_ci#define FRF_AZ_RX_ISCSI_HDIG_EN_LBN 87 225262306a36Sopenharmony_ci#define FRF_AZ_RX_ISCSI_HDIG_EN_WIDTH 1 225362306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_PREF_ACT_LBN 86 225462306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_PREF_ACT_WIDTH 1 225562306a36Sopenharmony_ci#define FRF_AZ_RX_DC_HW_RPTR_LBN 80 225662306a36Sopenharmony_ci#define FRF_AZ_RX_DC_HW_RPTR_WIDTH 6 225762306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_HW_RPTR_LBN 68 225862306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_HW_RPTR_WIDTH 12 225962306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_SW_WPTR_LBN 56 226062306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_SW_WPTR_WIDTH 12 226162306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_BUF_BASE_ID_LBN 36 226262306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_BUF_BASE_ID_WIDTH 20 226362306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_EVQ_ID_LBN 24 226462306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_EVQ_ID_WIDTH 12 226562306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_OWNER_ID_LBN 10 226662306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_OWNER_ID_WIDTH 14 226762306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_LABEL_LBN 5 226862306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_LABEL_WIDTH 5 226962306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_SIZE_LBN 3 227062306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_SIZE_WIDTH 2 227162306a36Sopenharmony_ci#define FFE_AZ_RX_DESCQ_SIZE_4K 3 227262306a36Sopenharmony_ci#define FFE_AZ_RX_DESCQ_SIZE_2K 2 227362306a36Sopenharmony_ci#define FFE_AZ_RX_DESCQ_SIZE_1K 1 227462306a36Sopenharmony_ci#define FFE_AZ_RX_DESCQ_SIZE_512 0 227562306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_TYPE_LBN 2 227662306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_TYPE_WIDTH 1 227762306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_JUMBO_LBN 1 227862306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_JUMBO_WIDTH 1 227962306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_EN_LBN 0 228062306a36Sopenharmony_ci#define FRF_AZ_RX_DESCQ_EN_WIDTH 1 228162306a36Sopenharmony_ci 228262306a36Sopenharmony_ci/* TX_DESC_PTR_TBL_KER: Transmit descriptor pointer */ 228362306a36Sopenharmony_ci#define FR_AA_TX_DESC_PTR_TBL_KER 0x00011900 228462306a36Sopenharmony_ci#define FR_AA_TX_DESC_PTR_TBL_KER_STEP 16 228562306a36Sopenharmony_ci#define FR_AA_TX_DESC_PTR_TBL_KER_ROWS 8 228662306a36Sopenharmony_ci/* TX_DESC_PTR_TBL: Transmit descriptor pointer */ 228762306a36Sopenharmony_ci#define FR_BZ_TX_DESC_PTR_TBL 0x00f50000 228862306a36Sopenharmony_ci#define FR_BZ_TX_DESC_PTR_TBL_STEP 16 228962306a36Sopenharmony_ci#define FR_BB_TX_DESC_PTR_TBL_ROWS 4096 229062306a36Sopenharmony_ci#define FR_CZ_TX_DESC_PTR_TBL_ROWS 1024 229162306a36Sopenharmony_ci#define FRF_CZ_TX_DPT_Q_MASK_WIDTH_LBN 94 229262306a36Sopenharmony_ci#define FRF_CZ_TX_DPT_Q_MASK_WIDTH_WIDTH 2 229362306a36Sopenharmony_ci#define FRF_CZ_TX_DPT_ETH_FILT_EN_LBN 93 229462306a36Sopenharmony_ci#define FRF_CZ_TX_DPT_ETH_FILT_EN_WIDTH 1 229562306a36Sopenharmony_ci#define FRF_CZ_TX_DPT_IP_FILT_EN_LBN 92 229662306a36Sopenharmony_ci#define FRF_CZ_TX_DPT_IP_FILT_EN_WIDTH 1 229762306a36Sopenharmony_ci#define FRF_BZ_TX_NON_IP_DROP_DIS_LBN 91 229862306a36Sopenharmony_ci#define FRF_BZ_TX_NON_IP_DROP_DIS_WIDTH 1 229962306a36Sopenharmony_ci#define FRF_BZ_TX_IP_CHKSM_DIS_LBN 90 230062306a36Sopenharmony_ci#define FRF_BZ_TX_IP_CHKSM_DIS_WIDTH 1 230162306a36Sopenharmony_ci#define FRF_BZ_TX_TCP_CHKSM_DIS_LBN 89 230262306a36Sopenharmony_ci#define FRF_BZ_TX_TCP_CHKSM_DIS_WIDTH 1 230362306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_EN_LBN 88 230462306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_EN_WIDTH 1 230562306a36Sopenharmony_ci#define FRF_AZ_TX_ISCSI_DDIG_EN_LBN 87 230662306a36Sopenharmony_ci#define FRF_AZ_TX_ISCSI_DDIG_EN_WIDTH 1 230762306a36Sopenharmony_ci#define FRF_AZ_TX_ISCSI_HDIG_EN_LBN 86 230862306a36Sopenharmony_ci#define FRF_AZ_TX_ISCSI_HDIG_EN_WIDTH 1 230962306a36Sopenharmony_ci#define FRF_AZ_TX_DC_HW_RPTR_LBN 80 231062306a36Sopenharmony_ci#define FRF_AZ_TX_DC_HW_RPTR_WIDTH 6 231162306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_HW_RPTR_LBN 68 231262306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_HW_RPTR_WIDTH 12 231362306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_SW_WPTR_LBN 56 231462306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_SW_WPTR_WIDTH 12 231562306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_BUF_BASE_ID_LBN 36 231662306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_BUF_BASE_ID_WIDTH 20 231762306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_EVQ_ID_LBN 24 231862306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_EVQ_ID_WIDTH 12 231962306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_OWNER_ID_LBN 10 232062306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_OWNER_ID_WIDTH 14 232162306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_LABEL_LBN 5 232262306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_LABEL_WIDTH 5 232362306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_SIZE_LBN 3 232462306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_SIZE_WIDTH 2 232562306a36Sopenharmony_ci#define FFE_AZ_TX_DESCQ_SIZE_4K 3 232662306a36Sopenharmony_ci#define FFE_AZ_TX_DESCQ_SIZE_2K 2 232762306a36Sopenharmony_ci#define FFE_AZ_TX_DESCQ_SIZE_1K 1 232862306a36Sopenharmony_ci#define FFE_AZ_TX_DESCQ_SIZE_512 0 232962306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_TYPE_LBN 1 233062306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_TYPE_WIDTH 2 233162306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_FLUSH_LBN 0 233262306a36Sopenharmony_ci#define FRF_AZ_TX_DESCQ_FLUSH_WIDTH 1 233362306a36Sopenharmony_ci 233462306a36Sopenharmony_ci/* EVQ_PTR_TBL_KER: Event queue pointer table */ 233562306a36Sopenharmony_ci#define FR_AA_EVQ_PTR_TBL_KER 0x00011a00 233662306a36Sopenharmony_ci#define FR_AA_EVQ_PTR_TBL_KER_STEP 16 233762306a36Sopenharmony_ci#define FR_AA_EVQ_PTR_TBL_KER_ROWS 4 233862306a36Sopenharmony_ci/* EVQ_PTR_TBL: Event queue pointer table */ 233962306a36Sopenharmony_ci#define FR_BZ_EVQ_PTR_TBL 0x00f60000 234062306a36Sopenharmony_ci#define FR_BZ_EVQ_PTR_TBL_STEP 16 234162306a36Sopenharmony_ci#define FR_CZ_EVQ_PTR_TBL_ROWS 1024 234262306a36Sopenharmony_ci#define FR_BB_EVQ_PTR_TBL_ROWS 4096 234362306a36Sopenharmony_ci#define FRF_BZ_EVQ_RPTR_IGN_LBN 40 234462306a36Sopenharmony_ci#define FRF_BZ_EVQ_RPTR_IGN_WIDTH 1 234562306a36Sopenharmony_ci#define FRF_AB_EVQ_WKUP_OR_INT_EN_LBN 39 234662306a36Sopenharmony_ci#define FRF_AB_EVQ_WKUP_OR_INT_EN_WIDTH 1 234762306a36Sopenharmony_ci#define FRF_CZ_EVQ_DOS_PROTECT_EN_LBN 39 234862306a36Sopenharmony_ci#define FRF_CZ_EVQ_DOS_PROTECT_EN_WIDTH 1 234962306a36Sopenharmony_ci#define FRF_AZ_EVQ_NXT_WPTR_LBN 24 235062306a36Sopenharmony_ci#define FRF_AZ_EVQ_NXT_WPTR_WIDTH 15 235162306a36Sopenharmony_ci#define FRF_AZ_EVQ_EN_LBN 23 235262306a36Sopenharmony_ci#define FRF_AZ_EVQ_EN_WIDTH 1 235362306a36Sopenharmony_ci#define FRF_AZ_EVQ_SIZE_LBN 20 235462306a36Sopenharmony_ci#define FRF_AZ_EVQ_SIZE_WIDTH 3 235562306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_32K 6 235662306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_16K 5 235762306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_8K 4 235862306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_4K 3 235962306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_2K 2 236062306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_1K 1 236162306a36Sopenharmony_ci#define FFE_AZ_EVQ_SIZE_512 0 236262306a36Sopenharmony_ci#define FRF_AZ_EVQ_BUF_BASE_ID_LBN 0 236362306a36Sopenharmony_ci#define FRF_AZ_EVQ_BUF_BASE_ID_WIDTH 20 236462306a36Sopenharmony_ci 236562306a36Sopenharmony_ci/* BUF_HALF_TBL_KER: Buffer table in half buffer table mode direct access by driver */ 236662306a36Sopenharmony_ci#define FR_AA_BUF_HALF_TBL_KER 0x00018000 236762306a36Sopenharmony_ci#define FR_AA_BUF_HALF_TBL_KER_STEP 8 236862306a36Sopenharmony_ci#define FR_AA_BUF_HALF_TBL_KER_ROWS 4096 236962306a36Sopenharmony_ci/* BUF_HALF_TBL: Buffer table in half buffer table mode direct access by driver */ 237062306a36Sopenharmony_ci#define FR_BZ_BUF_HALF_TBL 0x00800000 237162306a36Sopenharmony_ci#define FR_BZ_BUF_HALF_TBL_STEP 8 237262306a36Sopenharmony_ci#define FR_CZ_BUF_HALF_TBL_ROWS 147456 237362306a36Sopenharmony_ci#define FR_BB_BUF_HALF_TBL_ROWS 524288 237462306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_HBUF_ODD_LBN 44 237562306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_HBUF_ODD_WIDTH 20 237662306a36Sopenharmony_ci#define FRF_AZ_BUF_OWNER_ID_HBUF_ODD_LBN 32 237762306a36Sopenharmony_ci#define FRF_AZ_BUF_OWNER_ID_HBUF_ODD_WIDTH 12 237862306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_HBUF_EVEN_LBN 12 237962306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_HBUF_EVEN_WIDTH 20 238062306a36Sopenharmony_ci#define FRF_AZ_BUF_OWNER_ID_HBUF_EVEN_LBN 0 238162306a36Sopenharmony_ci#define FRF_AZ_BUF_OWNER_ID_HBUF_EVEN_WIDTH 12 238262306a36Sopenharmony_ci 238362306a36Sopenharmony_ci/* BUF_FULL_TBL_KER: Buffer table in full buffer table mode direct access by driver */ 238462306a36Sopenharmony_ci#define FR_AA_BUF_FULL_TBL_KER 0x00018000 238562306a36Sopenharmony_ci#define FR_AA_BUF_FULL_TBL_KER_STEP 8 238662306a36Sopenharmony_ci#define FR_AA_BUF_FULL_TBL_KER_ROWS 4096 238762306a36Sopenharmony_ci/* BUF_FULL_TBL: Buffer table in full buffer table mode direct access by driver */ 238862306a36Sopenharmony_ci#define FR_BZ_BUF_FULL_TBL 0x00800000 238962306a36Sopenharmony_ci#define FR_BZ_BUF_FULL_TBL_STEP 8 239062306a36Sopenharmony_ci#define FR_CZ_BUF_FULL_TBL_ROWS 147456 239162306a36Sopenharmony_ci#define FR_BB_BUF_FULL_TBL_ROWS 917504 239262306a36Sopenharmony_ci#define FRF_AZ_BUF_FULL_UNUSED_LBN 51 239362306a36Sopenharmony_ci#define FRF_AZ_BUF_FULL_UNUSED_WIDTH 13 239462306a36Sopenharmony_ci#define FRF_AZ_IP_DAT_BUF_SIZE_LBN 50 239562306a36Sopenharmony_ci#define FRF_AZ_IP_DAT_BUF_SIZE_WIDTH 1 239662306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_REGION_LBN 48 239762306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_REGION_WIDTH 2 239862306a36Sopenharmony_ci#define FFE_AZ_BUF_ADR_REGN3 3 239962306a36Sopenharmony_ci#define FFE_AZ_BUF_ADR_REGN2 2 240062306a36Sopenharmony_ci#define FFE_AZ_BUF_ADR_REGN1 1 240162306a36Sopenharmony_ci#define FFE_AZ_BUF_ADR_REGN0 0 240262306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_FBUF_LBN 14 240362306a36Sopenharmony_ci#define FRF_AZ_BUF_ADR_FBUF_WIDTH 34 240462306a36Sopenharmony_ci#define FRF_AZ_BUF_OWNER_ID_FBUF_LBN 0 240562306a36Sopenharmony_ci#define FRF_AZ_BUF_OWNER_ID_FBUF_WIDTH 14 240662306a36Sopenharmony_ci 240762306a36Sopenharmony_ci/* RX_FILTER_TBL0: TCP/IPv4 Receive filter table */ 240862306a36Sopenharmony_ci#define FR_BZ_RX_FILTER_TBL0 0x00f00000 240962306a36Sopenharmony_ci#define FR_BZ_RX_FILTER_TBL0_STEP 32 241062306a36Sopenharmony_ci#define FR_BZ_RX_FILTER_TBL0_ROWS 8192 241162306a36Sopenharmony_ci/* RX_FILTER_TBL1: TCP/IPv4 Receive filter table */ 241262306a36Sopenharmony_ci#define FR_BB_RX_FILTER_TBL1 0x00f00010 241362306a36Sopenharmony_ci#define FR_BB_RX_FILTER_TBL1_STEP 32 241462306a36Sopenharmony_ci#define FR_BB_RX_FILTER_TBL1_ROWS 8192 241562306a36Sopenharmony_ci#define FRF_BZ_RSS_EN_LBN 110 241662306a36Sopenharmony_ci#define FRF_BZ_RSS_EN_WIDTH 1 241762306a36Sopenharmony_ci#define FRF_BZ_SCATTER_EN_LBN 109 241862306a36Sopenharmony_ci#define FRF_BZ_SCATTER_EN_WIDTH 1 241962306a36Sopenharmony_ci#define FRF_BZ_TCP_UDP_LBN 108 242062306a36Sopenharmony_ci#define FRF_BZ_TCP_UDP_WIDTH 1 242162306a36Sopenharmony_ci#define FRF_BZ_RXQ_ID_LBN 96 242262306a36Sopenharmony_ci#define FRF_BZ_RXQ_ID_WIDTH 12 242362306a36Sopenharmony_ci#define FRF_BZ_DEST_IP_LBN 64 242462306a36Sopenharmony_ci#define FRF_BZ_DEST_IP_WIDTH 32 242562306a36Sopenharmony_ci#define FRF_BZ_DEST_PORT_TCP_LBN 48 242662306a36Sopenharmony_ci#define FRF_BZ_DEST_PORT_TCP_WIDTH 16 242762306a36Sopenharmony_ci#define FRF_BZ_SRC_IP_LBN 16 242862306a36Sopenharmony_ci#define FRF_BZ_SRC_IP_WIDTH 32 242962306a36Sopenharmony_ci#define FRF_BZ_SRC_TCP_DEST_UDP_LBN 0 243062306a36Sopenharmony_ci#define FRF_BZ_SRC_TCP_DEST_UDP_WIDTH 16 243162306a36Sopenharmony_ci 243262306a36Sopenharmony_ci/* RX_MAC_FILTER_TBL0: Receive Ethernet filter table */ 243362306a36Sopenharmony_ci#define FR_CZ_RX_MAC_FILTER_TBL0 0x00f00010 243462306a36Sopenharmony_ci#define FR_CZ_RX_MAC_FILTER_TBL0_STEP 32 243562306a36Sopenharmony_ci#define FR_CZ_RX_MAC_FILTER_TBL0_ROWS 512 243662306a36Sopenharmony_ci#define FRF_CZ_RMFT_RSS_EN_LBN 75 243762306a36Sopenharmony_ci#define FRF_CZ_RMFT_RSS_EN_WIDTH 1 243862306a36Sopenharmony_ci#define FRF_CZ_RMFT_SCATTER_EN_LBN 74 243962306a36Sopenharmony_ci#define FRF_CZ_RMFT_SCATTER_EN_WIDTH 1 244062306a36Sopenharmony_ci#define FRF_CZ_RMFT_IP_OVERRIDE_LBN 73 244162306a36Sopenharmony_ci#define FRF_CZ_RMFT_IP_OVERRIDE_WIDTH 1 244262306a36Sopenharmony_ci#define FRF_CZ_RMFT_RXQ_ID_LBN 61 244362306a36Sopenharmony_ci#define FRF_CZ_RMFT_RXQ_ID_WIDTH 12 244462306a36Sopenharmony_ci#define FRF_CZ_RMFT_WILDCARD_MATCH_LBN 60 244562306a36Sopenharmony_ci#define FRF_CZ_RMFT_WILDCARD_MATCH_WIDTH 1 244662306a36Sopenharmony_ci#define FRF_CZ_RMFT_DEST_MAC_LBN 12 244762306a36Sopenharmony_ci#define FRF_CZ_RMFT_DEST_MAC_WIDTH 48 244862306a36Sopenharmony_ci#define FRF_CZ_RMFT_VLAN_ID_LBN 0 244962306a36Sopenharmony_ci#define FRF_CZ_RMFT_VLAN_ID_WIDTH 12 245062306a36Sopenharmony_ci 245162306a36Sopenharmony_ci/* TIMER_TBL: Timer table */ 245262306a36Sopenharmony_ci#define FR_BZ_TIMER_TBL 0x00f70000 245362306a36Sopenharmony_ci#define FR_BZ_TIMER_TBL_STEP 16 245462306a36Sopenharmony_ci#define FR_CZ_TIMER_TBL_ROWS 1024 245562306a36Sopenharmony_ci#define FR_BB_TIMER_TBL_ROWS 4096 245662306a36Sopenharmony_ci#define FRF_CZ_TIMER_Q_EN_LBN 33 245762306a36Sopenharmony_ci#define FRF_CZ_TIMER_Q_EN_WIDTH 1 245862306a36Sopenharmony_ci#define FRF_CZ_INT_ARMD_LBN 32 245962306a36Sopenharmony_ci#define FRF_CZ_INT_ARMD_WIDTH 1 246062306a36Sopenharmony_ci#define FRF_CZ_INT_PEND_LBN 31 246162306a36Sopenharmony_ci#define FRF_CZ_INT_PEND_WIDTH 1 246262306a36Sopenharmony_ci#define FRF_CZ_HOST_NOTIFY_MODE_LBN 30 246362306a36Sopenharmony_ci#define FRF_CZ_HOST_NOTIFY_MODE_WIDTH 1 246462306a36Sopenharmony_ci#define FRF_CZ_RELOAD_TIMER_VAL_LBN 16 246562306a36Sopenharmony_ci#define FRF_CZ_RELOAD_TIMER_VAL_WIDTH 14 246662306a36Sopenharmony_ci#define FRF_CZ_TIMER_MODE_LBN 14 246762306a36Sopenharmony_ci#define FRF_CZ_TIMER_MODE_WIDTH 2 246862306a36Sopenharmony_ci#define FFE_CZ_TIMER_MODE_INT_HLDOFF 3 246962306a36Sopenharmony_ci#define FFE_CZ_TIMER_MODE_TRIG_START 2 247062306a36Sopenharmony_ci#define FFE_CZ_TIMER_MODE_IMMED_START 1 247162306a36Sopenharmony_ci#define FFE_CZ_TIMER_MODE_DIS 0 247262306a36Sopenharmony_ci#define FRF_BB_TIMER_MODE_LBN 12 247362306a36Sopenharmony_ci#define FRF_BB_TIMER_MODE_WIDTH 2 247462306a36Sopenharmony_ci#define FFE_BB_TIMER_MODE_INT_HLDOFF 2 247562306a36Sopenharmony_ci#define FFE_BB_TIMER_MODE_TRIG_START 2 247662306a36Sopenharmony_ci#define FFE_BB_TIMER_MODE_IMMED_START 1 247762306a36Sopenharmony_ci#define FFE_BB_TIMER_MODE_DIS 0 247862306a36Sopenharmony_ci#define FRF_CZ_TIMER_VAL_LBN 0 247962306a36Sopenharmony_ci#define FRF_CZ_TIMER_VAL_WIDTH 14 248062306a36Sopenharmony_ci#define FRF_BB_TIMER_VAL_LBN 0 248162306a36Sopenharmony_ci#define FRF_BB_TIMER_VAL_WIDTH 12 248262306a36Sopenharmony_ci 248362306a36Sopenharmony_ci/* TX_PACE_TBL: Transmit pacing table */ 248462306a36Sopenharmony_ci#define FR_BZ_TX_PACE_TBL 0x00f80000 248562306a36Sopenharmony_ci#define FR_BZ_TX_PACE_TBL_STEP 16 248662306a36Sopenharmony_ci#define FR_CZ_TX_PACE_TBL_ROWS 1024 248762306a36Sopenharmony_ci#define FR_BB_TX_PACE_TBL_ROWS 4096 248862306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_LBN 0 248962306a36Sopenharmony_ci#define FRF_BZ_TX_PACE_WIDTH 5 249062306a36Sopenharmony_ci 249162306a36Sopenharmony_ci/* RX_INDIRECTION_TBL: RX Indirection Table */ 249262306a36Sopenharmony_ci#define FR_BZ_RX_INDIRECTION_TBL 0x00fb0000 249362306a36Sopenharmony_ci#define FR_BZ_RX_INDIRECTION_TBL_STEP 16 249462306a36Sopenharmony_ci#define FR_BZ_RX_INDIRECTION_TBL_ROWS 128 249562306a36Sopenharmony_ci#define FRF_BZ_IT_QUEUE_LBN 0 249662306a36Sopenharmony_ci#define FRF_BZ_IT_QUEUE_WIDTH 6 249762306a36Sopenharmony_ci 249862306a36Sopenharmony_ci/* TX_FILTER_TBL0: TCP/IPv4 Transmit filter table */ 249962306a36Sopenharmony_ci#define FR_CZ_TX_FILTER_TBL0 0x00fc0000 250062306a36Sopenharmony_ci#define FR_CZ_TX_FILTER_TBL0_STEP 16 250162306a36Sopenharmony_ci#define FR_CZ_TX_FILTER_TBL0_ROWS 8192 250262306a36Sopenharmony_ci#define FRF_CZ_TIFT_TCP_UDP_LBN 108 250362306a36Sopenharmony_ci#define FRF_CZ_TIFT_TCP_UDP_WIDTH 1 250462306a36Sopenharmony_ci#define FRF_CZ_TIFT_TXQ_ID_LBN 96 250562306a36Sopenharmony_ci#define FRF_CZ_TIFT_TXQ_ID_WIDTH 12 250662306a36Sopenharmony_ci#define FRF_CZ_TIFT_DEST_IP_LBN 64 250762306a36Sopenharmony_ci#define FRF_CZ_TIFT_DEST_IP_WIDTH 32 250862306a36Sopenharmony_ci#define FRF_CZ_TIFT_DEST_PORT_TCP_LBN 48 250962306a36Sopenharmony_ci#define FRF_CZ_TIFT_DEST_PORT_TCP_WIDTH 16 251062306a36Sopenharmony_ci#define FRF_CZ_TIFT_SRC_IP_LBN 16 251162306a36Sopenharmony_ci#define FRF_CZ_TIFT_SRC_IP_WIDTH 32 251262306a36Sopenharmony_ci#define FRF_CZ_TIFT_SRC_TCP_DEST_UDP_LBN 0 251362306a36Sopenharmony_ci#define FRF_CZ_TIFT_SRC_TCP_DEST_UDP_WIDTH 16 251462306a36Sopenharmony_ci 251562306a36Sopenharmony_ci/* TX_MAC_FILTER_TBL0: Transmit Ethernet filter table */ 251662306a36Sopenharmony_ci#define FR_CZ_TX_MAC_FILTER_TBL0 0x00fe0000 251762306a36Sopenharmony_ci#define FR_CZ_TX_MAC_FILTER_TBL0_STEP 16 251862306a36Sopenharmony_ci#define FR_CZ_TX_MAC_FILTER_TBL0_ROWS 512 251962306a36Sopenharmony_ci#define FRF_CZ_TMFT_TXQ_ID_LBN 61 252062306a36Sopenharmony_ci#define FRF_CZ_TMFT_TXQ_ID_WIDTH 12 252162306a36Sopenharmony_ci#define FRF_CZ_TMFT_WILDCARD_MATCH_LBN 60 252262306a36Sopenharmony_ci#define FRF_CZ_TMFT_WILDCARD_MATCH_WIDTH 1 252362306a36Sopenharmony_ci#define FRF_CZ_TMFT_SRC_MAC_LBN 12 252462306a36Sopenharmony_ci#define FRF_CZ_TMFT_SRC_MAC_WIDTH 48 252562306a36Sopenharmony_ci#define FRF_CZ_TMFT_VLAN_ID_LBN 0 252662306a36Sopenharmony_ci#define FRF_CZ_TMFT_VLAN_ID_WIDTH 12 252762306a36Sopenharmony_ci 252862306a36Sopenharmony_ci/* MC_TREG_SMEM: MC Shared Memory */ 252962306a36Sopenharmony_ci#define FR_CZ_MC_TREG_SMEM 0x00ff0000 253062306a36Sopenharmony_ci#define FR_CZ_MC_TREG_SMEM_STEP 4 253162306a36Sopenharmony_ci#define FR_CZ_MC_TREG_SMEM_ROWS 512 253262306a36Sopenharmony_ci#define FRF_CZ_MC_TREG_SMEM_ROW_LBN 0 253362306a36Sopenharmony_ci#define FRF_CZ_MC_TREG_SMEM_ROW_WIDTH 32 253462306a36Sopenharmony_ci 253562306a36Sopenharmony_ci/* MSIX_VECTOR_TABLE: MSIX Vector Table */ 253662306a36Sopenharmony_ci#define FR_BB_MSIX_VECTOR_TABLE 0x00ff0000 253762306a36Sopenharmony_ci#define FR_BZ_MSIX_VECTOR_TABLE_STEP 16 253862306a36Sopenharmony_ci#define FR_BB_MSIX_VECTOR_TABLE_ROWS 64 253962306a36Sopenharmony_ci/* MSIX_VECTOR_TABLE: MSIX Vector Table */ 254062306a36Sopenharmony_ci#define FR_CZ_MSIX_VECTOR_TABLE 0x00000000 254162306a36Sopenharmony_ci/* FR_BZ_MSIX_VECTOR_TABLE_STEP 16 */ 254262306a36Sopenharmony_ci#define FR_CZ_MSIX_VECTOR_TABLE_ROWS 1024 254362306a36Sopenharmony_ci#define FRF_BZ_MSIX_VECTOR_RESERVED_LBN 97 254462306a36Sopenharmony_ci#define FRF_BZ_MSIX_VECTOR_RESERVED_WIDTH 31 254562306a36Sopenharmony_ci#define FRF_BZ_MSIX_VECTOR_MASK_LBN 96 254662306a36Sopenharmony_ci#define FRF_BZ_MSIX_VECTOR_MASK_WIDTH 1 254762306a36Sopenharmony_ci#define FRF_BZ_MSIX_MESSAGE_DATA_LBN 64 254862306a36Sopenharmony_ci#define FRF_BZ_MSIX_MESSAGE_DATA_WIDTH 32 254962306a36Sopenharmony_ci#define FRF_BZ_MSIX_MESSAGE_ADDRESS_HI_LBN 32 255062306a36Sopenharmony_ci#define FRF_BZ_MSIX_MESSAGE_ADDRESS_HI_WIDTH 32 255162306a36Sopenharmony_ci#define FRF_BZ_MSIX_MESSAGE_ADDRESS_LO_LBN 0 255262306a36Sopenharmony_ci#define FRF_BZ_MSIX_MESSAGE_ADDRESS_LO_WIDTH 32 255362306a36Sopenharmony_ci 255462306a36Sopenharmony_ci/* MSIX_PBA_TABLE: MSIX Pending Bit Array */ 255562306a36Sopenharmony_ci#define FR_BB_MSIX_PBA_TABLE 0x00ff2000 255662306a36Sopenharmony_ci#define FR_BZ_MSIX_PBA_TABLE_STEP 4 255762306a36Sopenharmony_ci#define FR_BB_MSIX_PBA_TABLE_ROWS 2 255862306a36Sopenharmony_ci/* MSIX_PBA_TABLE: MSIX Pending Bit Array */ 255962306a36Sopenharmony_ci#define FR_CZ_MSIX_PBA_TABLE 0x00008000 256062306a36Sopenharmony_ci/* FR_BZ_MSIX_PBA_TABLE_STEP 4 */ 256162306a36Sopenharmony_ci#define FR_CZ_MSIX_PBA_TABLE_ROWS 32 256262306a36Sopenharmony_ci#define FRF_BZ_MSIX_PBA_PEND_DWORD_LBN 0 256362306a36Sopenharmony_ci#define FRF_BZ_MSIX_PBA_PEND_DWORD_WIDTH 32 256462306a36Sopenharmony_ci 256562306a36Sopenharmony_ci/* SRM_DBG_REG: SRAM debug access */ 256662306a36Sopenharmony_ci#define FR_BZ_SRM_DBG 0x03000000 256762306a36Sopenharmony_ci#define FR_BZ_SRM_DBG_STEP 8 256862306a36Sopenharmony_ci#define FR_CZ_SRM_DBG_ROWS 262144 256962306a36Sopenharmony_ci#define FR_BB_SRM_DBG_ROWS 2097152 257062306a36Sopenharmony_ci#define FRF_BZ_SRM_DBG_LBN 0 257162306a36Sopenharmony_ci#define FRF_BZ_SRM_DBG_WIDTH 64 257262306a36Sopenharmony_ci 257362306a36Sopenharmony_ci/* TB_MSIX_PBA_TABLE: MSIX Pending Bit Array */ 257462306a36Sopenharmony_ci#define FR_CZ_TB_MSIX_PBA_TABLE 0x00008000 257562306a36Sopenharmony_ci#define FR_CZ_TB_MSIX_PBA_TABLE_STEP 4 257662306a36Sopenharmony_ci#define FR_CZ_TB_MSIX_PBA_TABLE_ROWS 1024 257762306a36Sopenharmony_ci#define FRF_CZ_TB_MSIX_PBA_PEND_DWORD_LBN 0 257862306a36Sopenharmony_ci#define FRF_CZ_TB_MSIX_PBA_PEND_DWORD_WIDTH 32 257962306a36Sopenharmony_ci 258062306a36Sopenharmony_ci/* DRIVER_EV */ 258162306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_SUBCODE_LBN 56 258262306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_SUBCODE_WIDTH 4 258362306a36Sopenharmony_ci#define FSE_BZ_TX_DSC_ERROR_EV 15 258462306a36Sopenharmony_ci#define FSE_BZ_RX_DSC_ERROR_EV 14 258562306a36Sopenharmony_ci#define FSE_AA_RX_RECOVER_EV 11 258662306a36Sopenharmony_ci#define FSE_AZ_TIMER_EV 10 258762306a36Sopenharmony_ci#define FSE_AZ_TX_PKT_NON_TCP_UDP 9 258862306a36Sopenharmony_ci#define FSE_AZ_WAKE_UP_EV 6 258962306a36Sopenharmony_ci#define FSE_AZ_SRM_UPD_DONE_EV 5 259062306a36Sopenharmony_ci#define FSE_AB_EVQ_NOT_EN_EV 3 259162306a36Sopenharmony_ci#define FSE_AZ_EVQ_INIT_DONE_EV 2 259262306a36Sopenharmony_ci#define FSE_AZ_RX_DESCQ_FLS_DONE_EV 1 259362306a36Sopenharmony_ci#define FSE_AZ_TX_DESCQ_FLS_DONE_EV 0 259462306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_SUBDATA_LBN 0 259562306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_SUBDATA_WIDTH 14 259662306a36Sopenharmony_ci 259762306a36Sopenharmony_ci/* EVENT_ENTRY */ 259862306a36Sopenharmony_ci#define FSF_AZ_EV_CODE_LBN 60 259962306a36Sopenharmony_ci#define FSF_AZ_EV_CODE_WIDTH 4 260062306a36Sopenharmony_ci#define FSE_CZ_EV_CODE_MCDI_EV 12 260162306a36Sopenharmony_ci#define FSE_CZ_EV_CODE_USER_EV 8 260262306a36Sopenharmony_ci#define FSE_AZ_EV_CODE_DRV_GEN_EV 7 260362306a36Sopenharmony_ci#define FSE_AZ_EV_CODE_GLOBAL_EV 6 260462306a36Sopenharmony_ci#define FSE_AZ_EV_CODE_DRIVER_EV 5 260562306a36Sopenharmony_ci#define FSE_AZ_EV_CODE_TX_EV 2 260662306a36Sopenharmony_ci#define FSE_AZ_EV_CODE_RX_EV 0 260762306a36Sopenharmony_ci#define FSF_AZ_EV_DATA_LBN 0 260862306a36Sopenharmony_ci#define FSF_AZ_EV_DATA_WIDTH 60 260962306a36Sopenharmony_ci 261062306a36Sopenharmony_ci/* GLOBAL_EV */ 261162306a36Sopenharmony_ci#define FSF_BB_GLB_EV_RX_RECOVERY_LBN 12 261262306a36Sopenharmony_ci#define FSF_BB_GLB_EV_RX_RECOVERY_WIDTH 1 261362306a36Sopenharmony_ci#define FSF_AA_GLB_EV_RX_RECOVERY_LBN 11 261462306a36Sopenharmony_ci#define FSF_AA_GLB_EV_RX_RECOVERY_WIDTH 1 261562306a36Sopenharmony_ci#define FSF_BB_GLB_EV_XG_MGT_INTR_LBN 11 261662306a36Sopenharmony_ci#define FSF_BB_GLB_EV_XG_MGT_INTR_WIDTH 1 261762306a36Sopenharmony_ci#define FSF_AB_GLB_EV_XFP_PHY0_INTR_LBN 10 261862306a36Sopenharmony_ci#define FSF_AB_GLB_EV_XFP_PHY0_INTR_WIDTH 1 261962306a36Sopenharmony_ci#define FSF_AB_GLB_EV_XG_PHY0_INTR_LBN 9 262062306a36Sopenharmony_ci#define FSF_AB_GLB_EV_XG_PHY0_INTR_WIDTH 1 262162306a36Sopenharmony_ci#define FSF_AB_GLB_EV_G_PHY0_INTR_LBN 7 262262306a36Sopenharmony_ci#define FSF_AB_GLB_EV_G_PHY0_INTR_WIDTH 1 262362306a36Sopenharmony_ci 262462306a36Sopenharmony_ci/* LEGACY_INT_VEC */ 262562306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_FATAL_INT_LBN 64 262662306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_FATAL_INT_WIDTH 1 262762306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_INT_Q_LBN 40 262862306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_INT_Q_WIDTH 4 262962306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_INT_FLAG_LBN 32 263062306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_INT_FLAG_WIDTH 1 263162306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_EVQ_FIFO_HF_LBN 1 263262306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_EVQ_FIFO_HF_WIDTH 1 263362306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_EVQ_FIFO_AF_LBN 0 263462306a36Sopenharmony_ci#define FSF_AZ_NET_IVEC_EVQ_FIFO_AF_WIDTH 1 263562306a36Sopenharmony_ci 263662306a36Sopenharmony_ci/* MC_XGMAC_FLTR_RULE_DEF */ 263762306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_MODE_LBN 416 263862306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_MODE_WIDTH 1 263962306a36Sopenharmony_ci#define FSE_CZ_MC_XFRC_MODE_LAYERED 1 264062306a36Sopenharmony_ci#define FSE_CZ_MC_XFRC_MODE_SIMPLE 0 264162306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_HASH_LBN 384 264262306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_HASH_WIDTH 32 264362306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_LAYER4_BYTE_MASK_LBN 256 264462306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_LAYER4_BYTE_MASK_WIDTH 128 264562306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_LAYER3_BYTE_MASK_LBN 128 264662306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_LAYER3_BYTE_MASK_WIDTH 128 264762306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_LAYER2_OR_SIMPLE_BYTE_MASK_LBN 0 264862306a36Sopenharmony_ci#define FSF_CZ_MC_XFRC_LAYER2_OR_SIMPLE_BYTE_MASK_WIDTH 128 264962306a36Sopenharmony_ci 265062306a36Sopenharmony_ci/* RX_EV */ 265162306a36Sopenharmony_ci#define FSF_CZ_RX_EV_PKT_NOT_PARSED_LBN 58 265262306a36Sopenharmony_ci#define FSF_CZ_RX_EV_PKT_NOT_PARSED_WIDTH 1 265362306a36Sopenharmony_ci#define FSF_CZ_RX_EV_IPV6_PKT_LBN 57 265462306a36Sopenharmony_ci#define FSF_CZ_RX_EV_IPV6_PKT_WIDTH 1 265562306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PKT_OK_LBN 56 265662306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PKT_OK_WIDTH 1 265762306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PAUSE_FRM_ERR_LBN 55 265862306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PAUSE_FRM_ERR_WIDTH 1 265962306a36Sopenharmony_ci#define FSF_AZ_RX_EV_BUF_OWNER_ID_ERR_LBN 54 266062306a36Sopenharmony_ci#define FSF_AZ_RX_EV_BUF_OWNER_ID_ERR_WIDTH 1 266162306a36Sopenharmony_ci#define FSF_AZ_RX_EV_IP_FRAG_ERR_LBN 53 266262306a36Sopenharmony_ci#define FSF_AZ_RX_EV_IP_FRAG_ERR_WIDTH 1 266362306a36Sopenharmony_ci#define FSF_AZ_RX_EV_IP_HDR_CHKSUM_ERR_LBN 52 266462306a36Sopenharmony_ci#define FSF_AZ_RX_EV_IP_HDR_CHKSUM_ERR_WIDTH 1 266562306a36Sopenharmony_ci#define FSF_AZ_RX_EV_TCP_UDP_CHKSUM_ERR_LBN 51 266662306a36Sopenharmony_ci#define FSF_AZ_RX_EV_TCP_UDP_CHKSUM_ERR_WIDTH 1 266762306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ETH_CRC_ERR_LBN 50 266862306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ETH_CRC_ERR_WIDTH 1 266962306a36Sopenharmony_ci#define FSF_AZ_RX_EV_FRM_TRUNC_LBN 49 267062306a36Sopenharmony_ci#define FSF_AZ_RX_EV_FRM_TRUNC_WIDTH 1 267162306a36Sopenharmony_ci#define FSF_AA_RX_EV_DRIB_NIB_LBN 49 267262306a36Sopenharmony_ci#define FSF_AA_RX_EV_DRIB_NIB_WIDTH 1 267362306a36Sopenharmony_ci#define FSF_AZ_RX_EV_TOBE_DISC_LBN 47 267462306a36Sopenharmony_ci#define FSF_AZ_RX_EV_TOBE_DISC_WIDTH 1 267562306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PKT_TYPE_LBN 44 267662306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PKT_TYPE_WIDTH 3 267762306a36Sopenharmony_ci#define FSE_AZ_RX_EV_PKT_TYPE_VLAN_JUMBO 5 267862306a36Sopenharmony_ci#define FSE_AZ_RX_EV_PKT_TYPE_VLAN_LLC 4 267962306a36Sopenharmony_ci#define FSE_AZ_RX_EV_PKT_TYPE_VLAN 3 268062306a36Sopenharmony_ci#define FSE_AZ_RX_EV_PKT_TYPE_JUMBO 2 268162306a36Sopenharmony_ci#define FSE_AZ_RX_EV_PKT_TYPE_LLC 1 268262306a36Sopenharmony_ci#define FSE_AZ_RX_EV_PKT_TYPE_ETH 0 268362306a36Sopenharmony_ci#define FSF_AZ_RX_EV_HDR_TYPE_LBN 42 268462306a36Sopenharmony_ci#define FSF_AZ_RX_EV_HDR_TYPE_WIDTH 2 268562306a36Sopenharmony_ci#define FSE_AZ_RX_EV_HDR_TYPE_OTHER 3 268662306a36Sopenharmony_ci#define FSE_AB_RX_EV_HDR_TYPE_IPV4_OTHER 2 268762306a36Sopenharmony_ci#define FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_OTHER 2 268862306a36Sopenharmony_ci#define FSE_AB_RX_EV_HDR_TYPE_IPV4_UDP 1 268962306a36Sopenharmony_ci#define FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_UDP 1 269062306a36Sopenharmony_ci#define FSE_AB_RX_EV_HDR_TYPE_IPV4_TCP 0 269162306a36Sopenharmony_ci#define FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_TCP 0 269262306a36Sopenharmony_ci#define FSF_AZ_RX_EV_DESC_Q_EMPTY_LBN 41 269362306a36Sopenharmony_ci#define FSF_AZ_RX_EV_DESC_Q_EMPTY_WIDTH 1 269462306a36Sopenharmony_ci#define FSF_AZ_RX_EV_MCAST_HASH_MATCH_LBN 40 269562306a36Sopenharmony_ci#define FSF_AZ_RX_EV_MCAST_HASH_MATCH_WIDTH 1 269662306a36Sopenharmony_ci#define FSF_AZ_RX_EV_MCAST_PKT_LBN 39 269762306a36Sopenharmony_ci#define FSF_AZ_RX_EV_MCAST_PKT_WIDTH 1 269862306a36Sopenharmony_ci#define FSF_AA_RX_EV_RECOVERY_FLAG_LBN 37 269962306a36Sopenharmony_ci#define FSF_AA_RX_EV_RECOVERY_FLAG_WIDTH 1 270062306a36Sopenharmony_ci#define FSF_AZ_RX_EV_Q_LABEL_LBN 32 270162306a36Sopenharmony_ci#define FSF_AZ_RX_EV_Q_LABEL_WIDTH 5 270262306a36Sopenharmony_ci#define FSF_AZ_RX_EV_JUMBO_CONT_LBN 31 270362306a36Sopenharmony_ci#define FSF_AZ_RX_EV_JUMBO_CONT_WIDTH 1 270462306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PORT_LBN 30 270562306a36Sopenharmony_ci#define FSF_AZ_RX_EV_PORT_WIDTH 1 270662306a36Sopenharmony_ci#define FSF_AZ_RX_EV_BYTE_CNT_LBN 16 270762306a36Sopenharmony_ci#define FSF_AZ_RX_EV_BYTE_CNT_WIDTH 14 270862306a36Sopenharmony_ci#define FSF_AZ_RX_EV_SOP_LBN 15 270962306a36Sopenharmony_ci#define FSF_AZ_RX_EV_SOP_WIDTH 1 271062306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ISCSI_PKT_OK_LBN 14 271162306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ISCSI_PKT_OK_WIDTH 1 271262306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ISCSI_DDIG_ERR_LBN 13 271362306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ISCSI_DDIG_ERR_WIDTH 1 271462306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ISCSI_HDIG_ERR_LBN 12 271562306a36Sopenharmony_ci#define FSF_AZ_RX_EV_ISCSI_HDIG_ERR_WIDTH 1 271662306a36Sopenharmony_ci#define FSF_AZ_RX_EV_DESC_PTR_LBN 0 271762306a36Sopenharmony_ci#define FSF_AZ_RX_EV_DESC_PTR_WIDTH 12 271862306a36Sopenharmony_ci 271962306a36Sopenharmony_ci/* RX_KER_DESC */ 272062306a36Sopenharmony_ci#define FSF_AZ_RX_KER_BUF_SIZE_LBN 48 272162306a36Sopenharmony_ci#define FSF_AZ_RX_KER_BUF_SIZE_WIDTH 14 272262306a36Sopenharmony_ci#define FSF_AZ_RX_KER_BUF_REGION_LBN 46 272362306a36Sopenharmony_ci#define FSF_AZ_RX_KER_BUF_REGION_WIDTH 2 272462306a36Sopenharmony_ci#define FSF_AZ_RX_KER_BUF_ADDR_LBN 0 272562306a36Sopenharmony_ci#define FSF_AZ_RX_KER_BUF_ADDR_WIDTH 46 272662306a36Sopenharmony_ci 272762306a36Sopenharmony_ci/* RX_USER_DESC */ 272862306a36Sopenharmony_ci#define FSF_AZ_RX_USER_2BYTE_OFFSET_LBN 20 272962306a36Sopenharmony_ci#define FSF_AZ_RX_USER_2BYTE_OFFSET_WIDTH 12 273062306a36Sopenharmony_ci#define FSF_AZ_RX_USER_BUF_ID_LBN 0 273162306a36Sopenharmony_ci#define FSF_AZ_RX_USER_BUF_ID_WIDTH 20 273262306a36Sopenharmony_ci 273362306a36Sopenharmony_ci/* TX_EV */ 273462306a36Sopenharmony_ci#define FSF_AZ_TX_EV_PKT_ERR_LBN 38 273562306a36Sopenharmony_ci#define FSF_AZ_TX_EV_PKT_ERR_WIDTH 1 273662306a36Sopenharmony_ci#define FSF_AZ_TX_EV_PKT_TOO_BIG_LBN 37 273762306a36Sopenharmony_ci#define FSF_AZ_TX_EV_PKT_TOO_BIG_WIDTH 1 273862306a36Sopenharmony_ci#define FSF_AZ_TX_EV_Q_LABEL_LBN 32 273962306a36Sopenharmony_ci#define FSF_AZ_TX_EV_Q_LABEL_WIDTH 5 274062306a36Sopenharmony_ci#define FSF_AZ_TX_EV_PORT_LBN 16 274162306a36Sopenharmony_ci#define FSF_AZ_TX_EV_PORT_WIDTH 1 274262306a36Sopenharmony_ci#define FSF_AZ_TX_EV_WQ_FF_FULL_LBN 15 274362306a36Sopenharmony_ci#define FSF_AZ_TX_EV_WQ_FF_FULL_WIDTH 1 274462306a36Sopenharmony_ci#define FSF_AZ_TX_EV_BUF_OWNER_ID_ERR_LBN 14 274562306a36Sopenharmony_ci#define FSF_AZ_TX_EV_BUF_OWNER_ID_ERR_WIDTH 1 274662306a36Sopenharmony_ci#define FSF_AZ_TX_EV_COMP_LBN 12 274762306a36Sopenharmony_ci#define FSF_AZ_TX_EV_COMP_WIDTH 1 274862306a36Sopenharmony_ci#define FSF_AZ_TX_EV_DESC_PTR_LBN 0 274962306a36Sopenharmony_ci#define FSF_AZ_TX_EV_DESC_PTR_WIDTH 12 275062306a36Sopenharmony_ci 275162306a36Sopenharmony_ci/* TX_KER_DESC */ 275262306a36Sopenharmony_ci#define FSF_AZ_TX_KER_CONT_LBN 62 275362306a36Sopenharmony_ci#define FSF_AZ_TX_KER_CONT_WIDTH 1 275462306a36Sopenharmony_ci#define FSF_AZ_TX_KER_BYTE_COUNT_LBN 48 275562306a36Sopenharmony_ci#define FSF_AZ_TX_KER_BYTE_COUNT_WIDTH 14 275662306a36Sopenharmony_ci#define FSF_AZ_TX_KER_BUF_REGION_LBN 46 275762306a36Sopenharmony_ci#define FSF_AZ_TX_KER_BUF_REGION_WIDTH 2 275862306a36Sopenharmony_ci#define FSF_AZ_TX_KER_BUF_ADDR_LBN 0 275962306a36Sopenharmony_ci#define FSF_AZ_TX_KER_BUF_ADDR_WIDTH 46 276062306a36Sopenharmony_ci 276162306a36Sopenharmony_ci/* TX_USER_DESC */ 276262306a36Sopenharmony_ci#define FSF_AZ_TX_USER_SW_EV_EN_LBN 48 276362306a36Sopenharmony_ci#define FSF_AZ_TX_USER_SW_EV_EN_WIDTH 1 276462306a36Sopenharmony_ci#define FSF_AZ_TX_USER_CONT_LBN 46 276562306a36Sopenharmony_ci#define FSF_AZ_TX_USER_CONT_WIDTH 1 276662306a36Sopenharmony_ci#define FSF_AZ_TX_USER_BYTE_CNT_LBN 33 276762306a36Sopenharmony_ci#define FSF_AZ_TX_USER_BYTE_CNT_WIDTH 13 276862306a36Sopenharmony_ci#define FSF_AZ_TX_USER_BUF_ID_LBN 13 276962306a36Sopenharmony_ci#define FSF_AZ_TX_USER_BUF_ID_WIDTH 20 277062306a36Sopenharmony_ci#define FSF_AZ_TX_USER_BYTE_OFS_LBN 0 277162306a36Sopenharmony_ci#define FSF_AZ_TX_USER_BYTE_OFS_WIDTH 13 277262306a36Sopenharmony_ci 277362306a36Sopenharmony_ci/* USER_EV */ 277462306a36Sopenharmony_ci#define FSF_CZ_USER_QID_LBN 32 277562306a36Sopenharmony_ci#define FSF_CZ_USER_QID_WIDTH 10 277662306a36Sopenharmony_ci#define FSF_CZ_USER_EV_REG_VALUE_LBN 0 277762306a36Sopenharmony_ci#define FSF_CZ_USER_EV_REG_VALUE_WIDTH 32 277862306a36Sopenharmony_ci 277962306a36Sopenharmony_ci/************************************************************************** 278062306a36Sopenharmony_ci * 278162306a36Sopenharmony_ci * Falcon B0 PCIe core indirect registers 278262306a36Sopenharmony_ci * 278362306a36Sopenharmony_ci ************************************************************************** 278462306a36Sopenharmony_ci */ 278562306a36Sopenharmony_ci 278662306a36Sopenharmony_ci#define FPCR_BB_PCIE_DEVICE_CTRL_STAT 0x68 278762306a36Sopenharmony_ci 278862306a36Sopenharmony_ci#define FPCR_BB_PCIE_LINK_CTRL_STAT 0x70 278962306a36Sopenharmony_ci 279062306a36Sopenharmony_ci#define FPCR_BB_ACK_RPL_TIMER 0x700 279162306a36Sopenharmony_ci#define FPCRF_BB_ACK_TL_LBN 0 279262306a36Sopenharmony_ci#define FPCRF_BB_ACK_TL_WIDTH 16 279362306a36Sopenharmony_ci#define FPCRF_BB_RPL_TL_LBN 16 279462306a36Sopenharmony_ci#define FPCRF_BB_RPL_TL_WIDTH 16 279562306a36Sopenharmony_ci 279662306a36Sopenharmony_ci#define FPCR_BB_ACK_FREQ 0x70C 279762306a36Sopenharmony_ci#define FPCRF_BB_ACK_FREQ_LBN 0 279862306a36Sopenharmony_ci#define FPCRF_BB_ACK_FREQ_WIDTH 7 279962306a36Sopenharmony_ci 280062306a36Sopenharmony_ci/************************************************************************** 280162306a36Sopenharmony_ci * 280262306a36Sopenharmony_ci * Pseudo-registers and fields 280362306a36Sopenharmony_ci * 280462306a36Sopenharmony_ci ************************************************************************** 280562306a36Sopenharmony_ci */ 280662306a36Sopenharmony_ci 280762306a36Sopenharmony_ci/* Interrupt acknowledge work-around register (A0/A1 only) */ 280862306a36Sopenharmony_ci#define FR_AA_WORK_AROUND_BROKEN_PCI_READS 0x0070 280962306a36Sopenharmony_ci 281062306a36Sopenharmony_ci/* EE_SPI_HCMD_REG: SPI host command register */ 281162306a36Sopenharmony_ci/* Values for the EE_SPI_HCMD_SF_SEL register field */ 281262306a36Sopenharmony_ci#define FFE_AB_SPI_DEVICE_EEPROM 0 281362306a36Sopenharmony_ci#define FFE_AB_SPI_DEVICE_FLASH 1 281462306a36Sopenharmony_ci 281562306a36Sopenharmony_ci/* NIC_STAT_REG: NIC status register */ 281662306a36Sopenharmony_ci#define FRF_AB_STRAP_10G_LBN 2 281762306a36Sopenharmony_ci#define FRF_AB_STRAP_10G_WIDTH 1 281862306a36Sopenharmony_ci#define FRF_AA_STRAP_PCIE_LBN 0 281962306a36Sopenharmony_ci#define FRF_AA_STRAP_PCIE_WIDTH 1 282062306a36Sopenharmony_ci 282162306a36Sopenharmony_ci/* FATAL_INTR_REG_KER: Fatal interrupt register for Kernel */ 282262306a36Sopenharmony_ci#define FRF_AZ_FATAL_INTR_LBN 0 282362306a36Sopenharmony_ci#define FRF_AZ_FATAL_INTR_WIDTH 12 282462306a36Sopenharmony_ci 282562306a36Sopenharmony_ci/* SRM_CFG_REG: SRAM configuration register */ 282662306a36Sopenharmony_ci/* We treat the number of SRAM banks and bank size as a single field */ 282762306a36Sopenharmony_ci#define FRF_AZ_SRM_NB_SZ_LBN FRF_AZ_SRM_BANK_SIZE_LBN 282862306a36Sopenharmony_ci#define FRF_AZ_SRM_NB_SZ_WIDTH \ 282962306a36Sopenharmony_ci (FRF_AZ_SRM_BANK_SIZE_WIDTH + FRF_AZ_SRM_NUM_BANK_WIDTH) 283062306a36Sopenharmony_ci#define FFE_AB_SRM_NB1_SZ2M 0 283162306a36Sopenharmony_ci#define FFE_AB_SRM_NB1_SZ4M 1 283262306a36Sopenharmony_ci#define FFE_AB_SRM_NB1_SZ8M 2 283362306a36Sopenharmony_ci#define FFE_AB_SRM_NB_SZ_DEF 3 283462306a36Sopenharmony_ci#define FFE_AB_SRM_NB2_SZ4M 4 283562306a36Sopenharmony_ci#define FFE_AB_SRM_NB2_SZ8M 5 283662306a36Sopenharmony_ci#define FFE_AB_SRM_NB2_SZ16M 6 283762306a36Sopenharmony_ci#define FFE_AB_SRM_NB_SZ_RES 7 283862306a36Sopenharmony_ci 283962306a36Sopenharmony_ci/* RX_DESC_UPD_REGP0: Receive descriptor update register. */ 284062306a36Sopenharmony_ci/* We write just the last dword of these registers */ 284162306a36Sopenharmony_ci#define FR_AZ_RX_DESC_UPD_DWORD_P0 \ 284262306a36Sopenharmony_ci (BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \ 284362306a36Sopenharmony_ci FR_BZ_RX_DESC_UPD_P0 + 3 * 4) 284462306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_WPTR_DWORD_LBN (FRF_AZ_RX_DESC_WPTR_LBN - 3 * 32) 284562306a36Sopenharmony_ci#define FRF_AZ_RX_DESC_WPTR_DWORD_WIDTH FRF_AZ_RX_DESC_WPTR_WIDTH 284662306a36Sopenharmony_ci 284762306a36Sopenharmony_ci/* TX_DESC_UPD_REGP0: Transmit descriptor update register. */ 284862306a36Sopenharmony_ci#define FR_AZ_TX_DESC_UPD_DWORD_P0 \ 284962306a36Sopenharmony_ci (BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \ 285062306a36Sopenharmony_ci FR_BZ_TX_DESC_UPD_P0 + 3 * 4) 285162306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_WPTR_DWORD_LBN (FRF_AZ_TX_DESC_WPTR_LBN - 3 * 32) 285262306a36Sopenharmony_ci#define FRF_AZ_TX_DESC_WPTR_DWORD_WIDTH FRF_AZ_TX_DESC_WPTR_WIDTH 285362306a36Sopenharmony_ci 285462306a36Sopenharmony_ci/* GMF_CFG4_REG: GMAC FIFO configuration register 4 */ 285562306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRM_PAUSE_LBN 12 285662306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRM_PAUSE_WIDTH 1 285762306a36Sopenharmony_ci 285862306a36Sopenharmony_ci/* GMF_CFG5_REG: GMAC FIFO configuration register 5 */ 285962306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRMDC_PAUSE_LBN 12 286062306a36Sopenharmony_ci#define FRF_AB_GMF_HSTFLTRFRMDC_PAUSE_WIDTH 1 286162306a36Sopenharmony_ci 286262306a36Sopenharmony_ci/* XM_TX_PARAM_REG: XGMAC transmit parameter register */ 286362306a36Sopenharmony_ci#define FRF_AB_XM_MAX_TX_FRM_SIZE_LBN FRF_AB_XM_MAX_TX_FRM_SIZE_LO_LBN 286462306a36Sopenharmony_ci#define FRF_AB_XM_MAX_TX_FRM_SIZE_WIDTH (FRF_AB_XM_MAX_TX_FRM_SIZE_HI_WIDTH + \ 286562306a36Sopenharmony_ci FRF_AB_XM_MAX_TX_FRM_SIZE_LO_WIDTH) 286662306a36Sopenharmony_ci 286762306a36Sopenharmony_ci/* XM_RX_PARAM_REG: XGMAC receive parameter register */ 286862306a36Sopenharmony_ci#define FRF_AB_XM_MAX_RX_FRM_SIZE_LBN FRF_AB_XM_MAX_RX_FRM_SIZE_LO_LBN 286962306a36Sopenharmony_ci#define FRF_AB_XM_MAX_RX_FRM_SIZE_WIDTH (FRF_AB_XM_MAX_RX_FRM_SIZE_HI_WIDTH + \ 287062306a36Sopenharmony_ci FRF_AB_XM_MAX_RX_FRM_SIZE_LO_WIDTH) 287162306a36Sopenharmony_ci 287262306a36Sopenharmony_ci/* XX_TXDRV_CTL_REG: XAUI SerDes transmit drive control register */ 287362306a36Sopenharmony_ci/* Default values */ 287462306a36Sopenharmony_ci#define FFE_AB_XX_TXDRV_DEQ_DEF 0xe /* deq=.6 */ 287562306a36Sopenharmony_ci#define FFE_AB_XX_TXDRV_DTX_DEF 0x5 /* 1.25 */ 287662306a36Sopenharmony_ci#define FFE_AB_XX_SD_CTL_DRV_DEF 0 /* 20mA */ 287762306a36Sopenharmony_ci 287862306a36Sopenharmony_ci/* XX_CORE_STAT_REG: XAUI XGXS core status register */ 287962306a36Sopenharmony_ci/* XGXS all-lanes status fields */ 288062306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT_LBN FRF_AB_XX_SYNC_STAT0_LBN 288162306a36Sopenharmony_ci#define FRF_AB_XX_SYNC_STAT_WIDTH 4 288262306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_LBN FRF_AB_XX_COMMA_DET_CH0_LBN 288362306a36Sopenharmony_ci#define FRF_AB_XX_COMMA_DET_WIDTH 4 288462306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_LBN FRF_AB_XX_CHAR_ERR_CH0_LBN 288562306a36Sopenharmony_ci#define FRF_AB_XX_CHAR_ERR_WIDTH 4 288662306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_LBN FRF_AB_XX_DISPERR_CH0_LBN 288762306a36Sopenharmony_ci#define FRF_AB_XX_DISPERR_WIDTH 4 288862306a36Sopenharmony_ci#define FFE_AB_XX_STAT_ALL_LANES 0xf 288962306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG_LBN FRF_AB_XX_FORCE_SIG0_VAL_LBN 289062306a36Sopenharmony_ci#define FRF_AB_XX_FORCE_SIG_WIDTH 8 289162306a36Sopenharmony_ci#define FFE_AB_XX_FORCE_SIG_ALL_LANES 0xff 289262306a36Sopenharmony_ci 289362306a36Sopenharmony_ci/* RX_MAC_FILTER_TBL0 */ 289462306a36Sopenharmony_ci/* RMFT_DEST_MAC is wider than 32 bits */ 289562306a36Sopenharmony_ci#define FRF_CZ_RMFT_DEST_MAC_LO_LBN FRF_CZ_RMFT_DEST_MAC_LBN 289662306a36Sopenharmony_ci#define FRF_CZ_RMFT_DEST_MAC_LO_WIDTH 32 289762306a36Sopenharmony_ci#define FRF_CZ_RMFT_DEST_MAC_HI_LBN (FRF_CZ_RMFT_DEST_MAC_LBN + 32) 289862306a36Sopenharmony_ci#define FRF_CZ_RMFT_DEST_MAC_HI_WIDTH (FRF_CZ_RMFT_DEST_MAC_WIDTH - 32) 289962306a36Sopenharmony_ci 290062306a36Sopenharmony_ci/* TX_MAC_FILTER_TBL0 */ 290162306a36Sopenharmony_ci/* TMFT_SRC_MAC is wider than 32 bits */ 290262306a36Sopenharmony_ci#define FRF_CZ_TMFT_SRC_MAC_LO_LBN FRF_CZ_TMFT_SRC_MAC_LBN 290362306a36Sopenharmony_ci#define FRF_CZ_TMFT_SRC_MAC_LO_WIDTH 32 290462306a36Sopenharmony_ci#define FRF_CZ_TMFT_SRC_MAC_HI_LBN (FRF_CZ_TMFT_SRC_MAC_LBN + 32) 290562306a36Sopenharmony_ci#define FRF_CZ_TMFT_SRC_MAC_HI_WIDTH (FRF_CZ_TMFT_SRC_MAC_WIDTH - 32) 290662306a36Sopenharmony_ci 290762306a36Sopenharmony_ci/* TX_PACE_TBL */ 290862306a36Sopenharmony_ci/* Values >20 are documented as reserved, but will result in a queue going 290962306a36Sopenharmony_ci * into the fast bin with a pace value of zero. */ 291062306a36Sopenharmony_ci#define FFE_BZ_TX_PACE_OFF 0 291162306a36Sopenharmony_ci#define FFE_BZ_TX_PACE_RESERVED 21 291262306a36Sopenharmony_ci 291362306a36Sopenharmony_ci/* DRIVER_EV */ 291462306a36Sopenharmony_ci/* Sub-fields of an RX flush completion event */ 291562306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL_LBN 12 291662306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL_WIDTH 1 291762306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_RX_DESCQ_ID_LBN 0 291862306a36Sopenharmony_ci#define FSF_AZ_DRIVER_EV_RX_DESCQ_ID_WIDTH 12 291962306a36Sopenharmony_ci 292062306a36Sopenharmony_ci/* EVENT_ENTRY */ 292162306a36Sopenharmony_ci/* Magic number field for event test */ 292262306a36Sopenharmony_ci#define FSF_AZ_DRV_GEN_EV_MAGIC_LBN 0 292362306a36Sopenharmony_ci#define FSF_AZ_DRV_GEN_EV_MAGIC_WIDTH 32 292462306a36Sopenharmony_ci 292562306a36Sopenharmony_ci/* RX packet prefix */ 292662306a36Sopenharmony_ci#define FS_BZ_RX_PREFIX_HASH_OFST 12 292762306a36Sopenharmony_ci#define FS_BZ_RX_PREFIX_SIZE 16 292862306a36Sopenharmony_ci 292962306a36Sopenharmony_ci#endif /* EF4_FARCH_REGS_H */ 2930