xref: /linux/drivers/net/ethernet/sfc/falcon/farch_regs.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
25a6681e2SEdward Cree /****************************************************************************
35a6681e2SEdward Cree  * Driver for Solarflare network controllers and boards
45a6681e2SEdward Cree  * Copyright 2005-2006 Fen Systems Ltd.
55a6681e2SEdward Cree  * Copyright 2006-2012 Solarflare Communications Inc.
65a6681e2SEdward Cree  */
75a6681e2SEdward Cree 
85a6681e2SEdward Cree #ifndef EF4_FARCH_REGS_H
95a6681e2SEdward Cree #define EF4_FARCH_REGS_H
105a6681e2SEdward Cree 
115a6681e2SEdward Cree /*
125a6681e2SEdward Cree  * Falcon hardware architecture definitions have a name prefix following
135a6681e2SEdward Cree  * the format:
145a6681e2SEdward Cree  *
155a6681e2SEdward Cree  *     F<type>_<min-rev><max-rev>_
165a6681e2SEdward Cree  *
175a6681e2SEdward Cree  * The following <type> strings are used:
185a6681e2SEdward Cree  *
195a6681e2SEdward Cree  *             MMIO register  MC register  Host memory structure
205a6681e2SEdward Cree  * -------------------------------------------------------------
215a6681e2SEdward Cree  * Address     R              MCR
225a6681e2SEdward Cree  * Bitfield    RF             MCRF         SF
235a6681e2SEdward Cree  * Enumerator  FE             MCFE         SE
245a6681e2SEdward Cree  *
255a6681e2SEdward Cree  * <min-rev> is the first revision to which the definition applies:
265a6681e2SEdward Cree  *
275a6681e2SEdward Cree  *     A: Falcon A1 (SFC4000AB)
285a6681e2SEdward Cree  *     B: Falcon B0 (SFC4000BA)
295a6681e2SEdward Cree  *     C: Siena A0 (SFL9021AA)
305a6681e2SEdward Cree  *
315a6681e2SEdward Cree  * If the definition has been changed or removed in later revisions
325a6681e2SEdward Cree  * then <max-rev> is the last revision to which the definition applies;
335a6681e2SEdward Cree  * otherwise it is "Z".
345a6681e2SEdward Cree  */
355a6681e2SEdward Cree 
365a6681e2SEdward Cree /**************************************************************************
375a6681e2SEdward Cree  *
385a6681e2SEdward Cree  * Falcon/Siena registers and descriptors
395a6681e2SEdward Cree  *
405a6681e2SEdward Cree  **************************************************************************
415a6681e2SEdward Cree  */
425a6681e2SEdward Cree 
435a6681e2SEdward Cree /* ADR_REGION_REG: Address region register */
445a6681e2SEdward Cree #define	FR_AZ_ADR_REGION 0x00000000
455a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION3_LBN 96
465a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION3_WIDTH 18
475a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION2_LBN 64
485a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION2_WIDTH 18
495a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION1_LBN 32
505a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION1_WIDTH 18
515a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION0_LBN 0
525a6681e2SEdward Cree #define	FRF_AZ_ADR_REGION0_WIDTH 18
535a6681e2SEdward Cree 
545a6681e2SEdward Cree /* INT_EN_REG_KER: Kernel driver Interrupt enable register */
555a6681e2SEdward Cree #define	FR_AZ_INT_EN_KER 0x00000010
565a6681e2SEdward Cree #define	FRF_AZ_KER_INT_LEVE_SEL_LBN 8
575a6681e2SEdward Cree #define	FRF_AZ_KER_INT_LEVE_SEL_WIDTH 6
585a6681e2SEdward Cree #define	FRF_AZ_KER_INT_CHAR_LBN 4
595a6681e2SEdward Cree #define	FRF_AZ_KER_INT_CHAR_WIDTH 1
605a6681e2SEdward Cree #define	FRF_AZ_KER_INT_KER_LBN 3
615a6681e2SEdward Cree #define	FRF_AZ_KER_INT_KER_WIDTH 1
625a6681e2SEdward Cree #define	FRF_AZ_DRV_INT_EN_KER_LBN 0
635a6681e2SEdward Cree #define	FRF_AZ_DRV_INT_EN_KER_WIDTH 1
645a6681e2SEdward Cree 
655a6681e2SEdward Cree /* INT_EN_REG_CHAR: Char Driver interrupt enable register */
665a6681e2SEdward Cree #define	FR_BZ_INT_EN_CHAR 0x00000020
675a6681e2SEdward Cree #define	FRF_BZ_CHAR_INT_LEVE_SEL_LBN 8
685a6681e2SEdward Cree #define	FRF_BZ_CHAR_INT_LEVE_SEL_WIDTH 6
695a6681e2SEdward Cree #define	FRF_BZ_CHAR_INT_CHAR_LBN 4
705a6681e2SEdward Cree #define	FRF_BZ_CHAR_INT_CHAR_WIDTH 1
715a6681e2SEdward Cree #define	FRF_BZ_CHAR_INT_KER_LBN 3
725a6681e2SEdward Cree #define	FRF_BZ_CHAR_INT_KER_WIDTH 1
735a6681e2SEdward Cree #define	FRF_BZ_DRV_INT_EN_CHAR_LBN 0
745a6681e2SEdward Cree #define	FRF_BZ_DRV_INT_EN_CHAR_WIDTH 1
755a6681e2SEdward Cree 
765a6681e2SEdward Cree /* INT_ADR_REG_KER: Interrupt host address for Kernel driver */
775a6681e2SEdward Cree #define	FR_AZ_INT_ADR_KER 0x00000030
785a6681e2SEdward Cree #define	FRF_AZ_NORM_INT_VEC_DIS_KER_LBN 64
795a6681e2SEdward Cree #define	FRF_AZ_NORM_INT_VEC_DIS_KER_WIDTH 1
805a6681e2SEdward Cree #define	FRF_AZ_INT_ADR_KER_LBN 0
815a6681e2SEdward Cree #define	FRF_AZ_INT_ADR_KER_WIDTH 64
825a6681e2SEdward Cree 
835a6681e2SEdward Cree /* INT_ADR_REG_CHAR: Interrupt host address for Char driver */
845a6681e2SEdward Cree #define	FR_BZ_INT_ADR_CHAR 0x00000040
855a6681e2SEdward Cree #define	FRF_BZ_NORM_INT_VEC_DIS_CHAR_LBN 64
865a6681e2SEdward Cree #define	FRF_BZ_NORM_INT_VEC_DIS_CHAR_WIDTH 1
875a6681e2SEdward Cree #define	FRF_BZ_INT_ADR_CHAR_LBN 0
885a6681e2SEdward Cree #define	FRF_BZ_INT_ADR_CHAR_WIDTH 64
895a6681e2SEdward Cree 
905a6681e2SEdward Cree /* INT_ACK_KER: Kernel interrupt acknowledge register */
915a6681e2SEdward Cree #define	FR_AA_INT_ACK_KER 0x00000050
925a6681e2SEdward Cree #define	FRF_AA_INT_ACK_KER_FIELD_LBN 0
935a6681e2SEdward Cree #define	FRF_AA_INT_ACK_KER_FIELD_WIDTH 32
945a6681e2SEdward Cree 
955a6681e2SEdward Cree /* INT_ISR0_REG: Function 0 Interrupt Acknowledge Status register */
965a6681e2SEdward Cree #define	FR_BZ_INT_ISR0 0x00000090
975a6681e2SEdward Cree #define	FRF_BZ_INT_ISR_REG_LBN 0
985a6681e2SEdward Cree #define	FRF_BZ_INT_ISR_REG_WIDTH 64
995a6681e2SEdward Cree 
1005a6681e2SEdward Cree /* HW_INIT_REG: Hardware initialization register */
1015a6681e2SEdward Cree #define	FR_AZ_HW_INIT 0x000000c0
1025a6681e2SEdward Cree #define	FRF_BB_BDMRD_CPLF_FULL_LBN 124
1035a6681e2SEdward Cree #define	FRF_BB_BDMRD_CPLF_FULL_WIDTH 1
1045a6681e2SEdward Cree #define	FRF_BB_PCIE_CPL_TIMEOUT_CTRL_LBN 121
1055a6681e2SEdward Cree #define	FRF_BB_PCIE_CPL_TIMEOUT_CTRL_WIDTH 3
1065a6681e2SEdward Cree #define	FRF_CZ_TX_MRG_TAGS_LBN 120
1075a6681e2SEdward Cree #define	FRF_CZ_TX_MRG_TAGS_WIDTH 1
1085a6681e2SEdward Cree #define	FRF_AB_TRGT_MASK_ALL_LBN 100
1095a6681e2SEdward Cree #define	FRF_AB_TRGT_MASK_ALL_WIDTH 1
1105a6681e2SEdward Cree #define	FRF_AZ_DOORBELL_DROP_LBN 92
1115a6681e2SEdward Cree #define	FRF_AZ_DOORBELL_DROP_WIDTH 8
1125a6681e2SEdward Cree #define	FRF_AB_TX_RREQ_MASK_EN_LBN 76
1135a6681e2SEdward Cree #define	FRF_AB_TX_RREQ_MASK_EN_WIDTH 1
1145a6681e2SEdward Cree #define	FRF_AB_PE_EIDLE_DIS_LBN 75
1155a6681e2SEdward Cree #define	FRF_AB_PE_EIDLE_DIS_WIDTH 1
1165a6681e2SEdward Cree #define	FRF_AA_FC_BLOCKING_EN_LBN 45
1175a6681e2SEdward Cree #define	FRF_AA_FC_BLOCKING_EN_WIDTH 1
1185a6681e2SEdward Cree #define	FRF_BZ_B2B_REQ_EN_LBN 45
1195a6681e2SEdward Cree #define	FRF_BZ_B2B_REQ_EN_WIDTH 1
1205a6681e2SEdward Cree #define	FRF_AA_B2B_REQ_EN_LBN 44
1215a6681e2SEdward Cree #define	FRF_AA_B2B_REQ_EN_WIDTH 1
1225a6681e2SEdward Cree #define	FRF_BB_FC_BLOCKING_EN_LBN 44
1235a6681e2SEdward Cree #define	FRF_BB_FC_BLOCKING_EN_WIDTH 1
1245a6681e2SEdward Cree #define	FRF_AZ_POST_WR_MASK_LBN 40
1255a6681e2SEdward Cree #define	FRF_AZ_POST_WR_MASK_WIDTH 4
1265a6681e2SEdward Cree #define	FRF_AZ_TLP_TC_LBN 34
1275a6681e2SEdward Cree #define	FRF_AZ_TLP_TC_WIDTH 3
1285a6681e2SEdward Cree #define	FRF_AZ_TLP_ATTR_LBN 32
1295a6681e2SEdward Cree #define	FRF_AZ_TLP_ATTR_WIDTH 2
1305a6681e2SEdward Cree #define	FRF_AB_INTB_VEC_LBN 24
1315a6681e2SEdward Cree #define	FRF_AB_INTB_VEC_WIDTH 5
1325a6681e2SEdward Cree #define	FRF_AB_INTA_VEC_LBN 16
1335a6681e2SEdward Cree #define	FRF_AB_INTA_VEC_WIDTH 5
1345a6681e2SEdward Cree #define	FRF_AZ_WD_TIMER_LBN 8
1355a6681e2SEdward Cree #define	FRF_AZ_WD_TIMER_WIDTH 8
1365a6681e2SEdward Cree #define	FRF_AZ_US_DISABLE_LBN 5
1375a6681e2SEdward Cree #define	FRF_AZ_US_DISABLE_WIDTH 1
1385a6681e2SEdward Cree #define	FRF_AZ_TLP_EP_LBN 4
1395a6681e2SEdward Cree #define	FRF_AZ_TLP_EP_WIDTH 1
1405a6681e2SEdward Cree #define	FRF_AZ_ATTR_SEL_LBN 3
1415a6681e2SEdward Cree #define	FRF_AZ_ATTR_SEL_WIDTH 1
1425a6681e2SEdward Cree #define	FRF_AZ_TD_SEL_LBN 1
1435a6681e2SEdward Cree #define	FRF_AZ_TD_SEL_WIDTH 1
1445a6681e2SEdward Cree #define	FRF_AZ_TLP_TD_LBN 0
1455a6681e2SEdward Cree #define	FRF_AZ_TLP_TD_WIDTH 1
1465a6681e2SEdward Cree 
1475a6681e2SEdward Cree /* EE_SPI_HCMD_REG: SPI host command register */
1485a6681e2SEdward Cree #define	FR_AB_EE_SPI_HCMD 0x00000100
1495a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_CMD_EN_LBN 31
1505a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_CMD_EN_WIDTH 1
1515a6681e2SEdward Cree #define	FRF_AB_EE_WR_TIMER_ACTIVE_LBN 28
1525a6681e2SEdward Cree #define	FRF_AB_EE_WR_TIMER_ACTIVE_WIDTH 1
1535a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_SF_SEL_LBN 24
1545a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_SF_SEL_WIDTH 1
1555a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_DABCNT_LBN 16
1565a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_DABCNT_WIDTH 5
1575a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_READ_LBN 15
1585a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_READ_WIDTH 1
1595a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_DUBCNT_LBN 12
1605a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_DUBCNT_WIDTH 2
1615a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_ADBCNT_LBN 8
1625a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_ADBCNT_WIDTH 2
1635a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_ENC_LBN 0
1645a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HCMD_ENC_WIDTH 8
1655a6681e2SEdward Cree 
1665a6681e2SEdward Cree /* USR_EV_CFG: User Level Event Configuration register */
1675a6681e2SEdward Cree #define	FR_CZ_USR_EV_CFG 0x00000100
1685a6681e2SEdward Cree #define	FRF_CZ_USREV_DIS_LBN 16
1695a6681e2SEdward Cree #define	FRF_CZ_USREV_DIS_WIDTH 1
1705a6681e2SEdward Cree #define	FRF_CZ_DFLT_EVQ_LBN 0
1715a6681e2SEdward Cree #define	FRF_CZ_DFLT_EVQ_WIDTH 10
1725a6681e2SEdward Cree 
1735a6681e2SEdward Cree /* EE_SPI_HADR_REG: SPI host address register */
1745a6681e2SEdward Cree #define	FR_AB_EE_SPI_HADR 0x00000110
1755a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HADR_DUBYTE_LBN 24
1765a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HADR_DUBYTE_WIDTH 8
1775a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HADR_ADR_LBN 0
1785a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HADR_ADR_WIDTH 24
1795a6681e2SEdward Cree 
1805a6681e2SEdward Cree /* EE_SPI_HDATA_REG: SPI host data register */
1815a6681e2SEdward Cree #define	FR_AB_EE_SPI_HDATA 0x00000120
1825a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA3_LBN 96
1835a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA3_WIDTH 32
1845a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA2_LBN 64
1855a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA2_WIDTH 32
1865a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA1_LBN 32
1875a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA1_WIDTH 32
1885a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA0_LBN 0
1895a6681e2SEdward Cree #define	FRF_AB_EE_SPI_HDATA0_WIDTH 32
1905a6681e2SEdward Cree 
1915a6681e2SEdward Cree /* EE_BASE_PAGE_REG: Expansion ROM base mirror register */
1925a6681e2SEdward Cree #define	FR_AB_EE_BASE_PAGE 0x00000130
1935a6681e2SEdward Cree #define	FRF_AB_EE_EXPROM_MASK_LBN 16
1945a6681e2SEdward Cree #define	FRF_AB_EE_EXPROM_MASK_WIDTH 13
1955a6681e2SEdward Cree #define	FRF_AB_EE_EXP_ROM_WINDOW_BASE_LBN 0
1965a6681e2SEdward Cree #define	FRF_AB_EE_EXP_ROM_WINDOW_BASE_WIDTH 13
1975a6681e2SEdward Cree 
1985a6681e2SEdward Cree /* EE_VPD_CFG0_REG: SPI/VPD configuration register 0 */
1995a6681e2SEdward Cree #define	FR_AB_EE_VPD_CFG0 0x00000140
2005a6681e2SEdward Cree #define	FRF_AB_EE_SF_FASTRD_EN_LBN 127
2015a6681e2SEdward Cree #define	FRF_AB_EE_SF_FASTRD_EN_WIDTH 1
2025a6681e2SEdward Cree #define	FRF_AB_EE_SF_CLOCK_DIV_LBN 120
2035a6681e2SEdward Cree #define	FRF_AB_EE_SF_CLOCK_DIV_WIDTH 7
2045a6681e2SEdward Cree #define	FRF_AB_EE_VPD_WIP_POLL_LBN 119
2055a6681e2SEdward Cree #define	FRF_AB_EE_VPD_WIP_POLL_WIDTH 1
2065a6681e2SEdward Cree #define	FRF_AB_EE_EE_CLOCK_DIV_LBN 112
2075a6681e2SEdward Cree #define	FRF_AB_EE_EE_CLOCK_DIV_WIDTH 7
2085a6681e2SEdward Cree #define	FRF_AB_EE_EE_WR_TMR_VALUE_LBN 96
2095a6681e2SEdward Cree #define	FRF_AB_EE_EE_WR_TMR_VALUE_WIDTH 16
2105a6681e2SEdward Cree #define	FRF_AB_EE_VPDW_LENGTH_LBN 80
2115a6681e2SEdward Cree #define	FRF_AB_EE_VPDW_LENGTH_WIDTH 15
2125a6681e2SEdward Cree #define	FRF_AB_EE_VPDW_BASE_LBN 64
2135a6681e2SEdward Cree #define	FRF_AB_EE_VPDW_BASE_WIDTH 15
2145a6681e2SEdward Cree #define	FRF_AB_EE_VPD_WR_CMD_EN_LBN 56
2155a6681e2SEdward Cree #define	FRF_AB_EE_VPD_WR_CMD_EN_WIDTH 8
2165a6681e2SEdward Cree #define	FRF_AB_EE_VPD_BASE_LBN 32
2175a6681e2SEdward Cree #define	FRF_AB_EE_VPD_BASE_WIDTH 24
2185a6681e2SEdward Cree #define	FRF_AB_EE_VPD_LENGTH_LBN 16
2195a6681e2SEdward Cree #define	FRF_AB_EE_VPD_LENGTH_WIDTH 15
2205a6681e2SEdward Cree #define	FRF_AB_EE_VPD_AD_SIZE_LBN 8
2215a6681e2SEdward Cree #define	FRF_AB_EE_VPD_AD_SIZE_WIDTH 5
2225a6681e2SEdward Cree #define	FRF_AB_EE_VPD_ACCESS_ON_LBN 5
2235a6681e2SEdward Cree #define	FRF_AB_EE_VPD_ACCESS_ON_WIDTH 1
2245a6681e2SEdward Cree #define	FRF_AB_EE_VPD_ACCESS_BLOCK_LBN 4
2255a6681e2SEdward Cree #define	FRF_AB_EE_VPD_ACCESS_BLOCK_WIDTH 1
2265a6681e2SEdward Cree #define	FRF_AB_EE_VPD_DEV_SF_SEL_LBN 2
2275a6681e2SEdward Cree #define	FRF_AB_EE_VPD_DEV_SF_SEL_WIDTH 1
2285a6681e2SEdward Cree #define	FRF_AB_EE_VPD_EN_AD9_MODE_LBN 1
2295a6681e2SEdward Cree #define	FRF_AB_EE_VPD_EN_AD9_MODE_WIDTH 1
2305a6681e2SEdward Cree #define	FRF_AB_EE_VPD_EN_LBN 0
2315a6681e2SEdward Cree #define	FRF_AB_EE_VPD_EN_WIDTH 1
2325a6681e2SEdward Cree 
2335a6681e2SEdward Cree /* EE_VPD_SW_CNTL_REG: VPD access SW control register */
2345a6681e2SEdward Cree #define	FR_AB_EE_VPD_SW_CNTL 0x00000150
2355a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYCLE_PENDING_LBN 31
2365a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYCLE_PENDING_WIDTH 1
2375a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYC_WRITE_LBN 28
2385a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYC_WRITE_WIDTH 1
2395a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYC_ADR_LBN 0
2405a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYC_ADR_WIDTH 15
2415a6681e2SEdward Cree 
2425a6681e2SEdward Cree /* EE_VPD_SW_DATA_REG: VPD access SW data register */
2435a6681e2SEdward Cree #define	FR_AB_EE_VPD_SW_DATA 0x00000160
2445a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYC_DAT_LBN 0
2455a6681e2SEdward Cree #define	FRF_AB_EE_VPD_CYC_DAT_WIDTH 32
2465a6681e2SEdward Cree 
2475a6681e2SEdward Cree /* PBMX_DBG_IADDR_REG: Capture Module address register */
2485a6681e2SEdward Cree #define	FR_CZ_PBMX_DBG_IADDR 0x000001f0
2495a6681e2SEdward Cree #define	FRF_CZ_PBMX_DBG_IADDR_LBN 0
2505a6681e2SEdward Cree #define	FRF_CZ_PBMX_DBG_IADDR_WIDTH 32
2515a6681e2SEdward Cree 
2525a6681e2SEdward Cree /* PCIE_CORE_INDIRECT_REG: Indirect Access to PCIE Core registers */
2535a6681e2SEdward Cree #define	FR_BB_PCIE_CORE_INDIRECT 0x000001f0
2545a6681e2SEdward Cree #define	FRF_BB_PCIE_CORE_TARGET_DATA_LBN 32
2555a6681e2SEdward Cree #define	FRF_BB_PCIE_CORE_TARGET_DATA_WIDTH 32
2565a6681e2SEdward Cree #define	FRF_BB_PCIE_CORE_INDIRECT_ACCESS_DIR_LBN 15
2575a6681e2SEdward Cree #define	FRF_BB_PCIE_CORE_INDIRECT_ACCESS_DIR_WIDTH 1
2585a6681e2SEdward Cree #define	FRF_BB_PCIE_CORE_TARGET_REG_ADRS_LBN 0
2595a6681e2SEdward Cree #define	FRF_BB_PCIE_CORE_TARGET_REG_ADRS_WIDTH 12
2605a6681e2SEdward Cree 
2615a6681e2SEdward Cree /* PBMX_DBG_IDATA_REG: Capture Module data register */
2625a6681e2SEdward Cree #define	FR_CZ_PBMX_DBG_IDATA 0x000001f8
2635a6681e2SEdward Cree #define	FRF_CZ_PBMX_DBG_IDATA_LBN 0
2645a6681e2SEdward Cree #define	FRF_CZ_PBMX_DBG_IDATA_WIDTH 64
2655a6681e2SEdward Cree 
2665a6681e2SEdward Cree /* NIC_STAT_REG: NIC status register */
2675a6681e2SEdward Cree #define	FR_AB_NIC_STAT 0x00000200
2685a6681e2SEdward Cree #define	FRF_BB_AER_DIS_LBN 34
2695a6681e2SEdward Cree #define	FRF_BB_AER_DIS_WIDTH 1
2705a6681e2SEdward Cree #define	FRF_BB_EE_STRAP_EN_LBN 31
2715a6681e2SEdward Cree #define	FRF_BB_EE_STRAP_EN_WIDTH 1
2725a6681e2SEdward Cree #define	FRF_BB_EE_STRAP_LBN 24
2735a6681e2SEdward Cree #define	FRF_BB_EE_STRAP_WIDTH 4
2745a6681e2SEdward Cree #define	FRF_BB_REVISION_ID_LBN 17
2755a6681e2SEdward Cree #define	FRF_BB_REVISION_ID_WIDTH 7
2765a6681e2SEdward Cree #define	FRF_AB_ONCHIP_SRAM_LBN 16
2775a6681e2SEdward Cree #define	FRF_AB_ONCHIP_SRAM_WIDTH 1
2785a6681e2SEdward Cree #define	FRF_AB_SF_PRST_LBN 9
2795a6681e2SEdward Cree #define	FRF_AB_SF_PRST_WIDTH 1
2805a6681e2SEdward Cree #define	FRF_AB_EE_PRST_LBN 8
2815a6681e2SEdward Cree #define	FRF_AB_EE_PRST_WIDTH 1
2825a6681e2SEdward Cree #define	FRF_AB_ATE_MODE_LBN 3
2835a6681e2SEdward Cree #define	FRF_AB_ATE_MODE_WIDTH 1
2845a6681e2SEdward Cree #define	FRF_AB_STRAP_PINS_LBN 0
2855a6681e2SEdward Cree #define	FRF_AB_STRAP_PINS_WIDTH 3
2865a6681e2SEdward Cree 
2875a6681e2SEdward Cree /* GPIO_CTL_REG: GPIO control register */
2885a6681e2SEdward Cree #define	FR_AB_GPIO_CTL 0x00000210
2895a6681e2SEdward Cree #define	FRF_AB_GPIO_OUT3_LBN 112
2905a6681e2SEdward Cree #define	FRF_AB_GPIO_OUT3_WIDTH 16
2915a6681e2SEdward Cree #define	FRF_AB_GPIO_IN3_LBN 104
2925a6681e2SEdward Cree #define	FRF_AB_GPIO_IN3_WIDTH 8
2935a6681e2SEdward Cree #define	FRF_AB_GPIO_PWRUP_VALUE3_LBN 96
2945a6681e2SEdward Cree #define	FRF_AB_GPIO_PWRUP_VALUE3_WIDTH 8
2955a6681e2SEdward Cree #define	FRF_AB_GPIO_OUT2_LBN 80
2965a6681e2SEdward Cree #define	FRF_AB_GPIO_OUT2_WIDTH 16
2975a6681e2SEdward Cree #define	FRF_AB_GPIO_IN2_LBN 72
2985a6681e2SEdward Cree #define	FRF_AB_GPIO_IN2_WIDTH 8
2995a6681e2SEdward Cree #define	FRF_AB_GPIO_PWRUP_VALUE2_LBN 64
3005a6681e2SEdward Cree #define	FRF_AB_GPIO_PWRUP_VALUE2_WIDTH 8
3015a6681e2SEdward Cree #define	FRF_AB_GPIO15_OEN_LBN 63
3025a6681e2SEdward Cree #define	FRF_AB_GPIO15_OEN_WIDTH 1
3035a6681e2SEdward Cree #define	FRF_AB_GPIO14_OEN_LBN 62
3045a6681e2SEdward Cree #define	FRF_AB_GPIO14_OEN_WIDTH 1
3055a6681e2SEdward Cree #define	FRF_AB_GPIO13_OEN_LBN 61
3065a6681e2SEdward Cree #define	FRF_AB_GPIO13_OEN_WIDTH 1
3075a6681e2SEdward Cree #define	FRF_AB_GPIO12_OEN_LBN 60
3085a6681e2SEdward Cree #define	FRF_AB_GPIO12_OEN_WIDTH 1
3095a6681e2SEdward Cree #define	FRF_AB_GPIO11_OEN_LBN 59
3105a6681e2SEdward Cree #define	FRF_AB_GPIO11_OEN_WIDTH 1
3115a6681e2SEdward Cree #define	FRF_AB_GPIO10_OEN_LBN 58
3125a6681e2SEdward Cree #define	FRF_AB_GPIO10_OEN_WIDTH 1
3135a6681e2SEdward Cree #define	FRF_AB_GPIO9_OEN_LBN 57
3145a6681e2SEdward Cree #define	FRF_AB_GPIO9_OEN_WIDTH 1
3155a6681e2SEdward Cree #define	FRF_AB_GPIO8_OEN_LBN 56
3165a6681e2SEdward Cree #define	FRF_AB_GPIO8_OEN_WIDTH 1
3175a6681e2SEdward Cree #define	FRF_AB_GPIO15_OUT_LBN 55
3185a6681e2SEdward Cree #define	FRF_AB_GPIO15_OUT_WIDTH 1
3195a6681e2SEdward Cree #define	FRF_AB_GPIO14_OUT_LBN 54
3205a6681e2SEdward Cree #define	FRF_AB_GPIO14_OUT_WIDTH 1
3215a6681e2SEdward Cree #define	FRF_AB_GPIO13_OUT_LBN 53
3225a6681e2SEdward Cree #define	FRF_AB_GPIO13_OUT_WIDTH 1
3235a6681e2SEdward Cree #define	FRF_AB_GPIO12_OUT_LBN 52
3245a6681e2SEdward Cree #define	FRF_AB_GPIO12_OUT_WIDTH 1
3255a6681e2SEdward Cree #define	FRF_AB_GPIO11_OUT_LBN 51
3265a6681e2SEdward Cree #define	FRF_AB_GPIO11_OUT_WIDTH 1
3275a6681e2SEdward Cree #define	FRF_AB_GPIO10_OUT_LBN 50
3285a6681e2SEdward Cree #define	FRF_AB_GPIO10_OUT_WIDTH 1
3295a6681e2SEdward Cree #define	FRF_AB_GPIO9_OUT_LBN 49
3305a6681e2SEdward Cree #define	FRF_AB_GPIO9_OUT_WIDTH 1
3315a6681e2SEdward Cree #define	FRF_AB_GPIO8_OUT_LBN 48
3325a6681e2SEdward Cree #define	FRF_AB_GPIO8_OUT_WIDTH 1
3335a6681e2SEdward Cree #define	FRF_AB_GPIO15_IN_LBN 47
3345a6681e2SEdward Cree #define	FRF_AB_GPIO15_IN_WIDTH 1
3355a6681e2SEdward Cree #define	FRF_AB_GPIO14_IN_LBN 46
3365a6681e2SEdward Cree #define	FRF_AB_GPIO14_IN_WIDTH 1
3375a6681e2SEdward Cree #define	FRF_AB_GPIO13_IN_LBN 45
3385a6681e2SEdward Cree #define	FRF_AB_GPIO13_IN_WIDTH 1
3395a6681e2SEdward Cree #define	FRF_AB_GPIO12_IN_LBN 44
3405a6681e2SEdward Cree #define	FRF_AB_GPIO12_IN_WIDTH 1
3415a6681e2SEdward Cree #define	FRF_AB_GPIO11_IN_LBN 43
3425a6681e2SEdward Cree #define	FRF_AB_GPIO11_IN_WIDTH 1
3435a6681e2SEdward Cree #define	FRF_AB_GPIO10_IN_LBN 42
3445a6681e2SEdward Cree #define	FRF_AB_GPIO10_IN_WIDTH 1
3455a6681e2SEdward Cree #define	FRF_AB_GPIO9_IN_LBN 41
3465a6681e2SEdward Cree #define	FRF_AB_GPIO9_IN_WIDTH 1
3475a6681e2SEdward Cree #define	FRF_AB_GPIO8_IN_LBN 40
3485a6681e2SEdward Cree #define	FRF_AB_GPIO8_IN_WIDTH 1
3495a6681e2SEdward Cree #define	FRF_AB_GPIO15_PWRUP_VALUE_LBN 39
3505a6681e2SEdward Cree #define	FRF_AB_GPIO15_PWRUP_VALUE_WIDTH 1
3515a6681e2SEdward Cree #define	FRF_AB_GPIO14_PWRUP_VALUE_LBN 38
3525a6681e2SEdward Cree #define	FRF_AB_GPIO14_PWRUP_VALUE_WIDTH 1
3535a6681e2SEdward Cree #define	FRF_AB_GPIO13_PWRUP_VALUE_LBN 37
3545a6681e2SEdward Cree #define	FRF_AB_GPIO13_PWRUP_VALUE_WIDTH 1
3555a6681e2SEdward Cree #define	FRF_AB_GPIO12_PWRUP_VALUE_LBN 36
3565a6681e2SEdward Cree #define	FRF_AB_GPIO12_PWRUP_VALUE_WIDTH 1
3575a6681e2SEdward Cree #define	FRF_AB_GPIO11_PWRUP_VALUE_LBN 35
3585a6681e2SEdward Cree #define	FRF_AB_GPIO11_PWRUP_VALUE_WIDTH 1
3595a6681e2SEdward Cree #define	FRF_AB_GPIO10_PWRUP_VALUE_LBN 34
3605a6681e2SEdward Cree #define	FRF_AB_GPIO10_PWRUP_VALUE_WIDTH 1
3615a6681e2SEdward Cree #define	FRF_AB_GPIO9_PWRUP_VALUE_LBN 33
3625a6681e2SEdward Cree #define	FRF_AB_GPIO9_PWRUP_VALUE_WIDTH 1
3635a6681e2SEdward Cree #define	FRF_AB_GPIO8_PWRUP_VALUE_LBN 32
3645a6681e2SEdward Cree #define	FRF_AB_GPIO8_PWRUP_VALUE_WIDTH 1
3655a6681e2SEdward Cree #define	FRF_AB_CLK156_OUT_EN_LBN 31
3665a6681e2SEdward Cree #define	FRF_AB_CLK156_OUT_EN_WIDTH 1
3675a6681e2SEdward Cree #define	FRF_AB_USE_NIC_CLK_LBN 30
3685a6681e2SEdward Cree #define	FRF_AB_USE_NIC_CLK_WIDTH 1
3695a6681e2SEdward Cree #define	FRF_AB_GPIO5_OEN_LBN 29
3705a6681e2SEdward Cree #define	FRF_AB_GPIO5_OEN_WIDTH 1
3715a6681e2SEdward Cree #define	FRF_AB_GPIO4_OEN_LBN 28
3725a6681e2SEdward Cree #define	FRF_AB_GPIO4_OEN_WIDTH 1
3735a6681e2SEdward Cree #define	FRF_AB_GPIO3_OEN_LBN 27
3745a6681e2SEdward Cree #define	FRF_AB_GPIO3_OEN_WIDTH 1
3755a6681e2SEdward Cree #define	FRF_AB_GPIO2_OEN_LBN 26
3765a6681e2SEdward Cree #define	FRF_AB_GPIO2_OEN_WIDTH 1
3775a6681e2SEdward Cree #define	FRF_AB_GPIO1_OEN_LBN 25
3785a6681e2SEdward Cree #define	FRF_AB_GPIO1_OEN_WIDTH 1
3795a6681e2SEdward Cree #define	FRF_AB_GPIO0_OEN_LBN 24
3805a6681e2SEdward Cree #define	FRF_AB_GPIO0_OEN_WIDTH 1
3815a6681e2SEdward Cree #define	FRF_AB_GPIO7_OUT_LBN 23
3825a6681e2SEdward Cree #define	FRF_AB_GPIO7_OUT_WIDTH 1
3835a6681e2SEdward Cree #define	FRF_AB_GPIO6_OUT_LBN 22
3845a6681e2SEdward Cree #define	FRF_AB_GPIO6_OUT_WIDTH 1
3855a6681e2SEdward Cree #define	FRF_AB_GPIO5_OUT_LBN 21
3865a6681e2SEdward Cree #define	FRF_AB_GPIO5_OUT_WIDTH 1
3875a6681e2SEdward Cree #define	FRF_AB_GPIO4_OUT_LBN 20
3885a6681e2SEdward Cree #define	FRF_AB_GPIO4_OUT_WIDTH 1
3895a6681e2SEdward Cree #define	FRF_AB_GPIO3_OUT_LBN 19
3905a6681e2SEdward Cree #define	FRF_AB_GPIO3_OUT_WIDTH 1
3915a6681e2SEdward Cree #define	FRF_AB_GPIO2_OUT_LBN 18
3925a6681e2SEdward Cree #define	FRF_AB_GPIO2_OUT_WIDTH 1
3935a6681e2SEdward Cree #define	FRF_AB_GPIO1_OUT_LBN 17
3945a6681e2SEdward Cree #define	FRF_AB_GPIO1_OUT_WIDTH 1
3955a6681e2SEdward Cree #define	FRF_AB_GPIO0_OUT_LBN 16
3965a6681e2SEdward Cree #define	FRF_AB_GPIO0_OUT_WIDTH 1
3975a6681e2SEdward Cree #define	FRF_AB_GPIO7_IN_LBN 15
3985a6681e2SEdward Cree #define	FRF_AB_GPIO7_IN_WIDTH 1
3995a6681e2SEdward Cree #define	FRF_AB_GPIO6_IN_LBN 14
4005a6681e2SEdward Cree #define	FRF_AB_GPIO6_IN_WIDTH 1
4015a6681e2SEdward Cree #define	FRF_AB_GPIO5_IN_LBN 13
4025a6681e2SEdward Cree #define	FRF_AB_GPIO5_IN_WIDTH 1
4035a6681e2SEdward Cree #define	FRF_AB_GPIO4_IN_LBN 12
4045a6681e2SEdward Cree #define	FRF_AB_GPIO4_IN_WIDTH 1
4055a6681e2SEdward Cree #define	FRF_AB_GPIO3_IN_LBN 11
4065a6681e2SEdward Cree #define	FRF_AB_GPIO3_IN_WIDTH 1
4075a6681e2SEdward Cree #define	FRF_AB_GPIO2_IN_LBN 10
4085a6681e2SEdward Cree #define	FRF_AB_GPIO2_IN_WIDTH 1
4095a6681e2SEdward Cree #define	FRF_AB_GPIO1_IN_LBN 9
4105a6681e2SEdward Cree #define	FRF_AB_GPIO1_IN_WIDTH 1
4115a6681e2SEdward Cree #define	FRF_AB_GPIO0_IN_LBN 8
4125a6681e2SEdward Cree #define	FRF_AB_GPIO0_IN_WIDTH 1
4135a6681e2SEdward Cree #define	FRF_AB_GPIO7_PWRUP_VALUE_LBN 7
4145a6681e2SEdward Cree #define	FRF_AB_GPIO7_PWRUP_VALUE_WIDTH 1
4155a6681e2SEdward Cree #define	FRF_AB_GPIO6_PWRUP_VALUE_LBN 6
4165a6681e2SEdward Cree #define	FRF_AB_GPIO6_PWRUP_VALUE_WIDTH 1
4175a6681e2SEdward Cree #define	FRF_AB_GPIO5_PWRUP_VALUE_LBN 5
4185a6681e2SEdward Cree #define	FRF_AB_GPIO5_PWRUP_VALUE_WIDTH 1
4195a6681e2SEdward Cree #define	FRF_AB_GPIO4_PWRUP_VALUE_LBN 4
4205a6681e2SEdward Cree #define	FRF_AB_GPIO4_PWRUP_VALUE_WIDTH 1
4215a6681e2SEdward Cree #define	FRF_AB_GPIO3_PWRUP_VALUE_LBN 3
4225a6681e2SEdward Cree #define	FRF_AB_GPIO3_PWRUP_VALUE_WIDTH 1
4235a6681e2SEdward Cree #define	FRF_AB_GPIO2_PWRUP_VALUE_LBN 2
4245a6681e2SEdward Cree #define	FRF_AB_GPIO2_PWRUP_VALUE_WIDTH 1
4255a6681e2SEdward Cree #define	FRF_AB_GPIO1_PWRUP_VALUE_LBN 1
4265a6681e2SEdward Cree #define	FRF_AB_GPIO1_PWRUP_VALUE_WIDTH 1
4275a6681e2SEdward Cree #define	FRF_AB_GPIO0_PWRUP_VALUE_LBN 0
4285a6681e2SEdward Cree #define	FRF_AB_GPIO0_PWRUP_VALUE_WIDTH 1
4295a6681e2SEdward Cree 
4305a6681e2SEdward Cree /* GLB_CTL_REG: Global control register */
4315a6681e2SEdward Cree #define	FR_AB_GLB_CTL 0x00000220
4325a6681e2SEdward Cree #define	FRF_AB_EXT_PHY_RST_CTL_LBN 63
4335a6681e2SEdward Cree #define	FRF_AB_EXT_PHY_RST_CTL_WIDTH 1
4345a6681e2SEdward Cree #define	FRF_AB_XAUI_SD_RST_CTL_LBN 62
4355a6681e2SEdward Cree #define	FRF_AB_XAUI_SD_RST_CTL_WIDTH 1
4365a6681e2SEdward Cree #define	FRF_AB_PCIE_SD_RST_CTL_LBN 61
4375a6681e2SEdward Cree #define	FRF_AB_PCIE_SD_RST_CTL_WIDTH 1
4385a6681e2SEdward Cree #define	FRF_AA_PCIX_RST_CTL_LBN 60
4395a6681e2SEdward Cree #define	FRF_AA_PCIX_RST_CTL_WIDTH 1
4405a6681e2SEdward Cree #define	FRF_BB_BIU_RST_CTL_LBN 60
4415a6681e2SEdward Cree #define	FRF_BB_BIU_RST_CTL_WIDTH 1
4425a6681e2SEdward Cree #define	FRF_AB_PCIE_STKY_RST_CTL_LBN 59
4435a6681e2SEdward Cree #define	FRF_AB_PCIE_STKY_RST_CTL_WIDTH 1
4445a6681e2SEdward Cree #define	FRF_AB_PCIE_NSTKY_RST_CTL_LBN 58
4455a6681e2SEdward Cree #define	FRF_AB_PCIE_NSTKY_RST_CTL_WIDTH 1
4465a6681e2SEdward Cree #define	FRF_AB_PCIE_CORE_RST_CTL_LBN 57
4475a6681e2SEdward Cree #define	FRF_AB_PCIE_CORE_RST_CTL_WIDTH 1
4485a6681e2SEdward Cree #define	FRF_AB_XGRX_RST_CTL_LBN 56
4495a6681e2SEdward Cree #define	FRF_AB_XGRX_RST_CTL_WIDTH 1
4505a6681e2SEdward Cree #define	FRF_AB_XGTX_RST_CTL_LBN 55
4515a6681e2SEdward Cree #define	FRF_AB_XGTX_RST_CTL_WIDTH 1
4525a6681e2SEdward Cree #define	FRF_AB_EM_RST_CTL_LBN 54
4535a6681e2SEdward Cree #define	FRF_AB_EM_RST_CTL_WIDTH 1
4545a6681e2SEdward Cree #define	FRF_AB_EV_RST_CTL_LBN 53
4555a6681e2SEdward Cree #define	FRF_AB_EV_RST_CTL_WIDTH 1
4565a6681e2SEdward Cree #define	FRF_AB_SR_RST_CTL_LBN 52
4575a6681e2SEdward Cree #define	FRF_AB_SR_RST_CTL_WIDTH 1
4585a6681e2SEdward Cree #define	FRF_AB_RX_RST_CTL_LBN 51
4595a6681e2SEdward Cree #define	FRF_AB_RX_RST_CTL_WIDTH 1
4605a6681e2SEdward Cree #define	FRF_AB_TX_RST_CTL_LBN 50
4615a6681e2SEdward Cree #define	FRF_AB_TX_RST_CTL_WIDTH 1
4625a6681e2SEdward Cree #define	FRF_AB_EE_RST_CTL_LBN 49
4635a6681e2SEdward Cree #define	FRF_AB_EE_RST_CTL_WIDTH 1
4645a6681e2SEdward Cree #define	FRF_AB_CS_RST_CTL_LBN 48
4655a6681e2SEdward Cree #define	FRF_AB_CS_RST_CTL_WIDTH 1
4665a6681e2SEdward Cree #define	FRF_AB_HOT_RST_CTL_LBN 40
4675a6681e2SEdward Cree #define	FRF_AB_HOT_RST_CTL_WIDTH 2
4685a6681e2SEdward Cree #define	FRF_AB_RST_EXT_PHY_LBN 31
4695a6681e2SEdward Cree #define	FRF_AB_RST_EXT_PHY_WIDTH 1
4705a6681e2SEdward Cree #define	FRF_AB_RST_XAUI_SD_LBN 30
4715a6681e2SEdward Cree #define	FRF_AB_RST_XAUI_SD_WIDTH 1
4725a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_SD_LBN 29
4735a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_SD_WIDTH 1
4745a6681e2SEdward Cree #define	FRF_AA_RST_PCIX_LBN 28
4755a6681e2SEdward Cree #define	FRF_AA_RST_PCIX_WIDTH 1
4765a6681e2SEdward Cree #define	FRF_BB_RST_BIU_LBN 28
4775a6681e2SEdward Cree #define	FRF_BB_RST_BIU_WIDTH 1
4785a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_STKY_LBN 27
4795a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_STKY_WIDTH 1
4805a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_NSTKY_LBN 26
4815a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_NSTKY_WIDTH 1
4825a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_CORE_LBN 25
4835a6681e2SEdward Cree #define	FRF_AB_RST_PCIE_CORE_WIDTH 1
4845a6681e2SEdward Cree #define	FRF_AB_RST_XGRX_LBN 24
4855a6681e2SEdward Cree #define	FRF_AB_RST_XGRX_WIDTH 1
4865a6681e2SEdward Cree #define	FRF_AB_RST_XGTX_LBN 23
4875a6681e2SEdward Cree #define	FRF_AB_RST_XGTX_WIDTH 1
4885a6681e2SEdward Cree #define	FRF_AB_RST_EM_LBN 22
4895a6681e2SEdward Cree #define	FRF_AB_RST_EM_WIDTH 1
4905a6681e2SEdward Cree #define	FRF_AB_RST_EV_LBN 21
4915a6681e2SEdward Cree #define	FRF_AB_RST_EV_WIDTH 1
4925a6681e2SEdward Cree #define	FRF_AB_RST_SR_LBN 20
4935a6681e2SEdward Cree #define	FRF_AB_RST_SR_WIDTH 1
4945a6681e2SEdward Cree #define	FRF_AB_RST_RX_LBN 19
4955a6681e2SEdward Cree #define	FRF_AB_RST_RX_WIDTH 1
4965a6681e2SEdward Cree #define	FRF_AB_RST_TX_LBN 18
4975a6681e2SEdward Cree #define	FRF_AB_RST_TX_WIDTH 1
4985a6681e2SEdward Cree #define	FRF_AB_RST_SF_LBN 17
4995a6681e2SEdward Cree #define	FRF_AB_RST_SF_WIDTH 1
5005a6681e2SEdward Cree #define	FRF_AB_RST_CS_LBN 16
5015a6681e2SEdward Cree #define	FRF_AB_RST_CS_WIDTH 1
5025a6681e2SEdward Cree #define	FRF_AB_INT_RST_DUR_LBN 4
5035a6681e2SEdward Cree #define	FRF_AB_INT_RST_DUR_WIDTH 3
5045a6681e2SEdward Cree #define	FRF_AB_EXT_PHY_RST_DUR_LBN 1
5055a6681e2SEdward Cree #define	FRF_AB_EXT_PHY_RST_DUR_WIDTH 3
5065a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_10240US 7
5075a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_5120US 6
5085a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_2560US 5
5095a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_1280US 4
5105a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_640US 3
5115a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_320US 2
5125a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_160US 1
5135a6681e2SEdward Cree #define	FFE_AB_EXT_PHY_RST_DUR_80US 0
5145a6681e2SEdward Cree #define	FRF_AB_SWRST_LBN 0
5155a6681e2SEdward Cree #define	FRF_AB_SWRST_WIDTH 1
5165a6681e2SEdward Cree 
5175a6681e2SEdward Cree /* FATAL_INTR_REG_KER: Fatal interrupt register for Kernel */
5185a6681e2SEdward Cree #define	FR_AZ_FATAL_INTR_KER 0x00000230
5195a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_KER_EN_LBN 44
5205a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_KER_EN_WIDTH 1
5215a6681e2SEdward Cree #define	FRF_AB_PCI_BUSERR_INT_KER_EN_LBN 43
5225a6681e2SEdward Cree #define	FRF_AB_PCI_BUSERR_INT_KER_EN_WIDTH 1
5235a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_KER_EN_LBN 43
5245a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_KER_EN_WIDTH 1
5255a6681e2SEdward Cree #define	FRF_AZ_SRAM_OOB_INT_KER_EN_LBN 42
5265a6681e2SEdward Cree #define	FRF_AZ_SRAM_OOB_INT_KER_EN_WIDTH 1
5275a6681e2SEdward Cree #define	FRF_AZ_BUFID_OOB_INT_KER_EN_LBN 41
5285a6681e2SEdward Cree #define	FRF_AZ_BUFID_OOB_INT_KER_EN_WIDTH 1
5295a6681e2SEdward Cree #define	FRF_AZ_MEM_PERR_INT_KER_EN_LBN 40
5305a6681e2SEdward Cree #define	FRF_AZ_MEM_PERR_INT_KER_EN_WIDTH 1
5315a6681e2SEdward Cree #define	FRF_AZ_RBUF_OWN_INT_KER_EN_LBN 39
5325a6681e2SEdward Cree #define	FRF_AZ_RBUF_OWN_INT_KER_EN_WIDTH 1
5335a6681e2SEdward Cree #define	FRF_AZ_TBUF_OWN_INT_KER_EN_LBN 38
5345a6681e2SEdward Cree #define	FRF_AZ_TBUF_OWN_INT_KER_EN_WIDTH 1
5355a6681e2SEdward Cree #define	FRF_AZ_RDESCQ_OWN_INT_KER_EN_LBN 37
5365a6681e2SEdward Cree #define	FRF_AZ_RDESCQ_OWN_INT_KER_EN_WIDTH 1
5375a6681e2SEdward Cree #define	FRF_AZ_TDESCQ_OWN_INT_KER_EN_LBN 36
5385a6681e2SEdward Cree #define	FRF_AZ_TDESCQ_OWN_INT_KER_EN_WIDTH 1
5395a6681e2SEdward Cree #define	FRF_AZ_EVQ_OWN_INT_KER_EN_LBN 35
5405a6681e2SEdward Cree #define	FRF_AZ_EVQ_OWN_INT_KER_EN_WIDTH 1
5415a6681e2SEdward Cree #define	FRF_AZ_EVF_OFLO_INT_KER_EN_LBN 34
5425a6681e2SEdward Cree #define	FRF_AZ_EVF_OFLO_INT_KER_EN_WIDTH 1
5435a6681e2SEdward Cree #define	FRF_AZ_ILL_ADR_INT_KER_EN_LBN 33
5445a6681e2SEdward Cree #define	FRF_AZ_ILL_ADR_INT_KER_EN_WIDTH 1
5455a6681e2SEdward Cree #define	FRF_AZ_SRM_PERR_INT_KER_EN_LBN 32
5465a6681e2SEdward Cree #define	FRF_AZ_SRM_PERR_INT_KER_EN_WIDTH 1
5475a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_KER_LBN 12
5485a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_KER_WIDTH 1
5495a6681e2SEdward Cree #define	FRF_AB_PCI_BUSERR_INT_KER_LBN 11
5505a6681e2SEdward Cree #define	FRF_AB_PCI_BUSERR_INT_KER_WIDTH 1
5515a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_KER_LBN 11
5525a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_KER_WIDTH 1
5535a6681e2SEdward Cree #define	FRF_AZ_SRAM_OOB_INT_KER_LBN 10
5545a6681e2SEdward Cree #define	FRF_AZ_SRAM_OOB_INT_KER_WIDTH 1
5555a6681e2SEdward Cree #define	FRF_AZ_BUFID_DC_OOB_INT_KER_LBN 9
5565a6681e2SEdward Cree #define	FRF_AZ_BUFID_DC_OOB_INT_KER_WIDTH 1
5575a6681e2SEdward Cree #define	FRF_AZ_MEM_PERR_INT_KER_LBN 8
5585a6681e2SEdward Cree #define	FRF_AZ_MEM_PERR_INT_KER_WIDTH 1
5595a6681e2SEdward Cree #define	FRF_AZ_RBUF_OWN_INT_KER_LBN 7
5605a6681e2SEdward Cree #define	FRF_AZ_RBUF_OWN_INT_KER_WIDTH 1
5615a6681e2SEdward Cree #define	FRF_AZ_TBUF_OWN_INT_KER_LBN 6
5625a6681e2SEdward Cree #define	FRF_AZ_TBUF_OWN_INT_KER_WIDTH 1
5635a6681e2SEdward Cree #define	FRF_AZ_RDESCQ_OWN_INT_KER_LBN 5
5645a6681e2SEdward Cree #define	FRF_AZ_RDESCQ_OWN_INT_KER_WIDTH 1
5655a6681e2SEdward Cree #define	FRF_AZ_TDESCQ_OWN_INT_KER_LBN 4
5665a6681e2SEdward Cree #define	FRF_AZ_TDESCQ_OWN_INT_KER_WIDTH 1
5675a6681e2SEdward Cree #define	FRF_AZ_EVQ_OWN_INT_KER_LBN 3
5685a6681e2SEdward Cree #define	FRF_AZ_EVQ_OWN_INT_KER_WIDTH 1
5695a6681e2SEdward Cree #define	FRF_AZ_EVF_OFLO_INT_KER_LBN 2
5705a6681e2SEdward Cree #define	FRF_AZ_EVF_OFLO_INT_KER_WIDTH 1
5715a6681e2SEdward Cree #define	FRF_AZ_ILL_ADR_INT_KER_LBN 1
5725a6681e2SEdward Cree #define	FRF_AZ_ILL_ADR_INT_KER_WIDTH 1
5735a6681e2SEdward Cree #define	FRF_AZ_SRM_PERR_INT_KER_LBN 0
5745a6681e2SEdward Cree #define	FRF_AZ_SRM_PERR_INT_KER_WIDTH 1
5755a6681e2SEdward Cree 
5765a6681e2SEdward Cree /* FATAL_INTR_REG_CHAR: Fatal interrupt register for Char */
5775a6681e2SEdward Cree #define	FR_BZ_FATAL_INTR_CHAR 0x00000240
5785a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_CHAR_EN_LBN 44
5795a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_CHAR_EN_WIDTH 1
5805a6681e2SEdward Cree #define	FRF_BB_PCI_BUSERR_INT_CHAR_EN_LBN 43
5815a6681e2SEdward Cree #define	FRF_BB_PCI_BUSERR_INT_CHAR_EN_WIDTH 1
5825a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_CHAR_EN_LBN 43
5835a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_CHAR_EN_WIDTH 1
5845a6681e2SEdward Cree #define	FRF_BZ_SRAM_OOB_INT_CHAR_EN_LBN 42
5855a6681e2SEdward Cree #define	FRF_BZ_SRAM_OOB_INT_CHAR_EN_WIDTH 1
5865a6681e2SEdward Cree #define	FRF_BZ_BUFID_OOB_INT_CHAR_EN_LBN 41
5875a6681e2SEdward Cree #define	FRF_BZ_BUFID_OOB_INT_CHAR_EN_WIDTH 1
5885a6681e2SEdward Cree #define	FRF_BZ_MEM_PERR_INT_CHAR_EN_LBN 40
5895a6681e2SEdward Cree #define	FRF_BZ_MEM_PERR_INT_CHAR_EN_WIDTH 1
5905a6681e2SEdward Cree #define	FRF_BZ_RBUF_OWN_INT_CHAR_EN_LBN 39
5915a6681e2SEdward Cree #define	FRF_BZ_RBUF_OWN_INT_CHAR_EN_WIDTH 1
5925a6681e2SEdward Cree #define	FRF_BZ_TBUF_OWN_INT_CHAR_EN_LBN 38
5935a6681e2SEdward Cree #define	FRF_BZ_TBUF_OWN_INT_CHAR_EN_WIDTH 1
5945a6681e2SEdward Cree #define	FRF_BZ_RDESCQ_OWN_INT_CHAR_EN_LBN 37
5955a6681e2SEdward Cree #define	FRF_BZ_RDESCQ_OWN_INT_CHAR_EN_WIDTH 1
5965a6681e2SEdward Cree #define	FRF_BZ_TDESCQ_OWN_INT_CHAR_EN_LBN 36
5975a6681e2SEdward Cree #define	FRF_BZ_TDESCQ_OWN_INT_CHAR_EN_WIDTH 1
5985a6681e2SEdward Cree #define	FRF_BZ_EVQ_OWN_INT_CHAR_EN_LBN 35
5995a6681e2SEdward Cree #define	FRF_BZ_EVQ_OWN_INT_CHAR_EN_WIDTH 1
6005a6681e2SEdward Cree #define	FRF_BZ_EVF_OFLO_INT_CHAR_EN_LBN 34
6015a6681e2SEdward Cree #define	FRF_BZ_EVF_OFLO_INT_CHAR_EN_WIDTH 1
6025a6681e2SEdward Cree #define	FRF_BZ_ILL_ADR_INT_CHAR_EN_LBN 33
6035a6681e2SEdward Cree #define	FRF_BZ_ILL_ADR_INT_CHAR_EN_WIDTH 1
6045a6681e2SEdward Cree #define	FRF_BZ_SRM_PERR_INT_CHAR_EN_LBN 32
6055a6681e2SEdward Cree #define	FRF_BZ_SRM_PERR_INT_CHAR_EN_WIDTH 1
6065a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_CHAR_LBN 12
6075a6681e2SEdward Cree #define	FRF_CZ_SRAM_PERR_INT_P_CHAR_WIDTH 1
6085a6681e2SEdward Cree #define	FRF_BB_PCI_BUSERR_INT_CHAR_LBN 11
6095a6681e2SEdward Cree #define	FRF_BB_PCI_BUSERR_INT_CHAR_WIDTH 1
6105a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_CHAR_LBN 11
6115a6681e2SEdward Cree #define	FRF_CZ_MBU_PERR_INT_CHAR_WIDTH 1
6125a6681e2SEdward Cree #define	FRF_BZ_SRAM_OOB_INT_CHAR_LBN 10
6135a6681e2SEdward Cree #define	FRF_BZ_SRAM_OOB_INT_CHAR_WIDTH 1
6145a6681e2SEdward Cree #define	FRF_BZ_BUFID_DC_OOB_INT_CHAR_LBN 9
6155a6681e2SEdward Cree #define	FRF_BZ_BUFID_DC_OOB_INT_CHAR_WIDTH 1
6165a6681e2SEdward Cree #define	FRF_BZ_MEM_PERR_INT_CHAR_LBN 8
6175a6681e2SEdward Cree #define	FRF_BZ_MEM_PERR_INT_CHAR_WIDTH 1
6185a6681e2SEdward Cree #define	FRF_BZ_RBUF_OWN_INT_CHAR_LBN 7
6195a6681e2SEdward Cree #define	FRF_BZ_RBUF_OWN_INT_CHAR_WIDTH 1
6205a6681e2SEdward Cree #define	FRF_BZ_TBUF_OWN_INT_CHAR_LBN 6
6215a6681e2SEdward Cree #define	FRF_BZ_TBUF_OWN_INT_CHAR_WIDTH 1
6225a6681e2SEdward Cree #define	FRF_BZ_RDESCQ_OWN_INT_CHAR_LBN 5
6235a6681e2SEdward Cree #define	FRF_BZ_RDESCQ_OWN_INT_CHAR_WIDTH 1
6245a6681e2SEdward Cree #define	FRF_BZ_TDESCQ_OWN_INT_CHAR_LBN 4
6255a6681e2SEdward Cree #define	FRF_BZ_TDESCQ_OWN_INT_CHAR_WIDTH 1
6265a6681e2SEdward Cree #define	FRF_BZ_EVQ_OWN_INT_CHAR_LBN 3
6275a6681e2SEdward Cree #define	FRF_BZ_EVQ_OWN_INT_CHAR_WIDTH 1
6285a6681e2SEdward Cree #define	FRF_BZ_EVF_OFLO_INT_CHAR_LBN 2
6295a6681e2SEdward Cree #define	FRF_BZ_EVF_OFLO_INT_CHAR_WIDTH 1
6305a6681e2SEdward Cree #define	FRF_BZ_ILL_ADR_INT_CHAR_LBN 1
6315a6681e2SEdward Cree #define	FRF_BZ_ILL_ADR_INT_CHAR_WIDTH 1
6325a6681e2SEdward Cree #define	FRF_BZ_SRM_PERR_INT_CHAR_LBN 0
6335a6681e2SEdward Cree #define	FRF_BZ_SRM_PERR_INT_CHAR_WIDTH 1
6345a6681e2SEdward Cree 
6355a6681e2SEdward Cree /* DP_CTRL_REG: Datapath control register */
6365a6681e2SEdward Cree #define	FR_BZ_DP_CTRL 0x00000250
6375a6681e2SEdward Cree #define	FRF_BZ_FLS_EVQ_ID_LBN 0
6385a6681e2SEdward Cree #define	FRF_BZ_FLS_EVQ_ID_WIDTH 12
6395a6681e2SEdward Cree 
6405a6681e2SEdward Cree /* MEM_STAT_REG: Memory status register */
6415a6681e2SEdward Cree #define	FR_AZ_MEM_STAT 0x00000260
6425a6681e2SEdward Cree #define	FRF_AB_MEM_PERR_VEC_LBN 53
6435a6681e2SEdward Cree #define	FRF_AB_MEM_PERR_VEC_WIDTH 38
6445a6681e2SEdward Cree #define	FRF_AB_MBIST_CORR_LBN 38
6455a6681e2SEdward Cree #define	FRF_AB_MBIST_CORR_WIDTH 15
6465a6681e2SEdward Cree #define	FRF_AB_MBIST_ERR_LBN 0
6475a6681e2SEdward Cree #define	FRF_AB_MBIST_ERR_WIDTH 40
6485a6681e2SEdward Cree #define	FRF_CZ_MEM_PERR_VEC_LBN 0
6495a6681e2SEdward Cree #define	FRF_CZ_MEM_PERR_VEC_WIDTH 35
6505a6681e2SEdward Cree 
6515a6681e2SEdward Cree /* CS_DEBUG_REG: Debug register */
6525a6681e2SEdward Cree #define	FR_AZ_CS_DEBUG 0x00000270
6535a6681e2SEdward Cree #define	FRF_AB_GLB_DEBUG2_SEL_LBN 50
6545a6681e2SEdward Cree #define	FRF_AB_GLB_DEBUG2_SEL_WIDTH 3
6555a6681e2SEdward Cree #define	FRF_AB_DEBUG_BLK_SEL2_LBN 47
6565a6681e2SEdward Cree #define	FRF_AB_DEBUG_BLK_SEL2_WIDTH 3
6575a6681e2SEdward Cree #define	FRF_AB_DEBUG_BLK_SEL1_LBN 44
6585a6681e2SEdward Cree #define	FRF_AB_DEBUG_BLK_SEL1_WIDTH 3
6595a6681e2SEdward Cree #define	FRF_AB_DEBUG_BLK_SEL0_LBN 41
6605a6681e2SEdward Cree #define	FRF_AB_DEBUG_BLK_SEL0_WIDTH 3
6615a6681e2SEdward Cree #define	FRF_CZ_CS_PORT_NUM_LBN 40
6625a6681e2SEdward Cree #define	FRF_CZ_CS_PORT_NUM_WIDTH 2
6635a6681e2SEdward Cree #define	FRF_AB_MISC_DEBUG_ADDR_LBN 36
6645a6681e2SEdward Cree #define	FRF_AB_MISC_DEBUG_ADDR_WIDTH 5
6655a6681e2SEdward Cree #define	FRF_AB_SERDES_DEBUG_ADDR_LBN 31
6665a6681e2SEdward Cree #define	FRF_AB_SERDES_DEBUG_ADDR_WIDTH 5
6675a6681e2SEdward Cree #define	FRF_CZ_CS_PORT_FPE_LBN 1
6685a6681e2SEdward Cree #define	FRF_CZ_CS_PORT_FPE_WIDTH 35
6695a6681e2SEdward Cree #define	FRF_AB_EM_DEBUG_ADDR_LBN 26
6705a6681e2SEdward Cree #define	FRF_AB_EM_DEBUG_ADDR_WIDTH 5
6715a6681e2SEdward Cree #define	FRF_AB_SR_DEBUG_ADDR_LBN 21
6725a6681e2SEdward Cree #define	FRF_AB_SR_DEBUG_ADDR_WIDTH 5
6735a6681e2SEdward Cree #define	FRF_AB_EV_DEBUG_ADDR_LBN 16
6745a6681e2SEdward Cree #define	FRF_AB_EV_DEBUG_ADDR_WIDTH 5
6755a6681e2SEdward Cree #define	FRF_AB_RX_DEBUG_ADDR_LBN 11
6765a6681e2SEdward Cree #define	FRF_AB_RX_DEBUG_ADDR_WIDTH 5
6775a6681e2SEdward Cree #define	FRF_AB_TX_DEBUG_ADDR_LBN 6
6785a6681e2SEdward Cree #define	FRF_AB_TX_DEBUG_ADDR_WIDTH 5
6795a6681e2SEdward Cree #define	FRF_AB_CS_BIU_DEBUG_ADDR_LBN 1
6805a6681e2SEdward Cree #define	FRF_AB_CS_BIU_DEBUG_ADDR_WIDTH 5
6815a6681e2SEdward Cree #define	FRF_AZ_CS_DEBUG_EN_LBN 0
6825a6681e2SEdward Cree #define	FRF_AZ_CS_DEBUG_EN_WIDTH 1
6835a6681e2SEdward Cree 
6845a6681e2SEdward Cree /* DRIVER_REG: Driver scratch register [0-7] */
6855a6681e2SEdward Cree #define	FR_AZ_DRIVER 0x00000280
6865a6681e2SEdward Cree #define	FR_AZ_DRIVER_STEP 16
6875a6681e2SEdward Cree #define	FR_AZ_DRIVER_ROWS 8
6885a6681e2SEdward Cree #define	FRF_AZ_DRIVER_DW0_LBN 0
6895a6681e2SEdward Cree #define	FRF_AZ_DRIVER_DW0_WIDTH 32
6905a6681e2SEdward Cree 
6915a6681e2SEdward Cree /* ALTERA_BUILD_REG: Altera build register */
6925a6681e2SEdward Cree #define	FR_AZ_ALTERA_BUILD 0x00000300
6935a6681e2SEdward Cree #define	FRF_AZ_ALTERA_BUILD_VER_LBN 0
6945a6681e2SEdward Cree #define	FRF_AZ_ALTERA_BUILD_VER_WIDTH 32
6955a6681e2SEdward Cree 
6965a6681e2SEdward Cree /* CSR_SPARE_REG: Spare register */
6975a6681e2SEdward Cree #define	FR_AZ_CSR_SPARE 0x00000310
6985a6681e2SEdward Cree #define	FRF_AB_MEM_PERR_EN_LBN 64
6995a6681e2SEdward Cree #define	FRF_AB_MEM_PERR_EN_WIDTH 38
7005a6681e2SEdward Cree #define	FRF_CZ_MEM_PERR_EN_LBN 64
7015a6681e2SEdward Cree #define	FRF_CZ_MEM_PERR_EN_WIDTH 35
7025a6681e2SEdward Cree #define	FRF_AB_MEM_PERR_EN_TX_DATA_LBN 72
7035a6681e2SEdward Cree #define	FRF_AB_MEM_PERR_EN_TX_DATA_WIDTH 2
7045a6681e2SEdward Cree #define	FRF_AZ_CSR_SPARE_BITS_LBN 0
7055a6681e2SEdward Cree #define	FRF_AZ_CSR_SPARE_BITS_WIDTH 32
7065a6681e2SEdward Cree 
7075a6681e2SEdward Cree /* PCIE_SD_CTL0123_REG: PCIE SerDes control register 0 to 3 */
7085a6681e2SEdward Cree #define	FR_AB_PCIE_SD_CTL0123 0x00000320
7095a6681e2SEdward Cree #define	FRF_AB_PCIE_TESTSIG_H_LBN 96
7105a6681e2SEdward Cree #define	FRF_AB_PCIE_TESTSIG_H_WIDTH 19
7115a6681e2SEdward Cree #define	FRF_AB_PCIE_TESTSIG_L_LBN 64
7125a6681e2SEdward Cree #define	FRF_AB_PCIE_TESTSIG_L_WIDTH 19
7135a6681e2SEdward Cree #define	FRF_AB_PCIE_OFFSET_LBN 56
7145a6681e2SEdward Cree #define	FRF_AB_PCIE_OFFSET_WIDTH 8
7155a6681e2SEdward Cree #define	FRF_AB_PCIE_OFFSETEN_H_LBN 55
7165a6681e2SEdward Cree #define	FRF_AB_PCIE_OFFSETEN_H_WIDTH 1
7175a6681e2SEdward Cree #define	FRF_AB_PCIE_OFFSETEN_L_LBN 54
7185a6681e2SEdward Cree #define	FRF_AB_PCIE_OFFSETEN_L_WIDTH 1
7195a6681e2SEdward Cree #define	FRF_AB_PCIE_HIVMODE_H_LBN 53
7205a6681e2SEdward Cree #define	FRF_AB_PCIE_HIVMODE_H_WIDTH 1
7215a6681e2SEdward Cree #define	FRF_AB_PCIE_HIVMODE_L_LBN 52
7225a6681e2SEdward Cree #define	FRF_AB_PCIE_HIVMODE_L_WIDTH 1
7235a6681e2SEdward Cree #define	FRF_AB_PCIE_PARRESET_H_LBN 51
7245a6681e2SEdward Cree #define	FRF_AB_PCIE_PARRESET_H_WIDTH 1
7255a6681e2SEdward Cree #define	FRF_AB_PCIE_PARRESET_L_LBN 50
7265a6681e2SEdward Cree #define	FRF_AB_PCIE_PARRESET_L_WIDTH 1
7275a6681e2SEdward Cree #define	FRF_AB_PCIE_LPBKWDRV_H_LBN 49
7285a6681e2SEdward Cree #define	FRF_AB_PCIE_LPBKWDRV_H_WIDTH 1
7295a6681e2SEdward Cree #define	FRF_AB_PCIE_LPBKWDRV_L_LBN 48
7305a6681e2SEdward Cree #define	FRF_AB_PCIE_LPBKWDRV_L_WIDTH 1
7315a6681e2SEdward Cree #define	FRF_AB_PCIE_LPBK_LBN 40
7325a6681e2SEdward Cree #define	FRF_AB_PCIE_LPBK_WIDTH 8
7335a6681e2SEdward Cree #define	FRF_AB_PCIE_PARLPBK_LBN 32
7345a6681e2SEdward Cree #define	FRF_AB_PCIE_PARLPBK_WIDTH 8
7355a6681e2SEdward Cree #define	FRF_AB_PCIE_RXTERMADJ_H_LBN 30
7365a6681e2SEdward Cree #define	FRF_AB_PCIE_RXTERMADJ_H_WIDTH 2
7375a6681e2SEdward Cree #define	FRF_AB_PCIE_RXTERMADJ_L_LBN 28
7385a6681e2SEdward Cree #define	FRF_AB_PCIE_RXTERMADJ_L_WIDTH 2
7395a6681e2SEdward Cree #define	FFE_AB_PCIE_RXTERMADJ_MIN15PCNT 3
7405a6681e2SEdward Cree #define	FFE_AB_PCIE_RXTERMADJ_PL10PCNT 2
7415a6681e2SEdward Cree #define	FFE_AB_PCIE_RXTERMADJ_MIN17PCNT 1
7425a6681e2SEdward Cree #define	FFE_AB_PCIE_RXTERMADJ_NOMNL 0
7435a6681e2SEdward Cree #define	FRF_AB_PCIE_TXTERMADJ_H_LBN 26
7445a6681e2SEdward Cree #define	FRF_AB_PCIE_TXTERMADJ_H_WIDTH 2
7455a6681e2SEdward Cree #define	FRF_AB_PCIE_TXTERMADJ_L_LBN 24
7465a6681e2SEdward Cree #define	FRF_AB_PCIE_TXTERMADJ_L_WIDTH 2
7475a6681e2SEdward Cree #define	FFE_AB_PCIE_TXTERMADJ_MIN15PCNT 3
7485a6681e2SEdward Cree #define	FFE_AB_PCIE_TXTERMADJ_PL10PCNT 2
7495a6681e2SEdward Cree #define	FFE_AB_PCIE_TXTERMADJ_MIN17PCNT 1
7505a6681e2SEdward Cree #define	FFE_AB_PCIE_TXTERMADJ_NOMNL 0
7515a6681e2SEdward Cree #define	FRF_AB_PCIE_RXEQCTL_H_LBN 18
7525a6681e2SEdward Cree #define	FRF_AB_PCIE_RXEQCTL_H_WIDTH 2
7535a6681e2SEdward Cree #define	FRF_AB_PCIE_RXEQCTL_L_LBN 16
7545a6681e2SEdward Cree #define	FRF_AB_PCIE_RXEQCTL_L_WIDTH 2
7555a6681e2SEdward Cree #define	FFE_AB_PCIE_RXEQCTL_OFF_ALT 3
7565a6681e2SEdward Cree #define	FFE_AB_PCIE_RXEQCTL_OFF 2
7575a6681e2SEdward Cree #define	FFE_AB_PCIE_RXEQCTL_MIN 1
7585a6681e2SEdward Cree #define	FFE_AB_PCIE_RXEQCTL_MAX 0
7595a6681e2SEdward Cree #define	FRF_AB_PCIE_HIDRV_LBN 8
7605a6681e2SEdward Cree #define	FRF_AB_PCIE_HIDRV_WIDTH 8
7615a6681e2SEdward Cree #define	FRF_AB_PCIE_LODRV_LBN 0
7625a6681e2SEdward Cree #define	FRF_AB_PCIE_LODRV_WIDTH 8
7635a6681e2SEdward Cree 
7645a6681e2SEdward Cree /* PCIE_SD_CTL45_REG: PCIE SerDes control register 4 and 5 */
7655a6681e2SEdward Cree #define	FR_AB_PCIE_SD_CTL45 0x00000330
7665a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX7_LBN 60
7675a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX7_WIDTH 4
7685a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX6_LBN 56
7695a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX6_WIDTH 4
7705a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX5_LBN 52
7715a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX5_WIDTH 4
7725a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX4_LBN 48
7735a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX4_WIDTH 4
7745a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX3_LBN 44
7755a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX3_WIDTH 4
7765a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX2_LBN 40
7775a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX2_WIDTH 4
7785a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX1_LBN 36
7795a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX1_WIDTH 4
7805a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX0_LBN 32
7815a6681e2SEdward Cree #define	FRF_AB_PCIE_DTX0_WIDTH 4
7825a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ7_LBN 28
7835a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ7_WIDTH 4
7845a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ6_LBN 24
7855a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ6_WIDTH 4
7865a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ5_LBN 20
7875a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ5_WIDTH 4
7885a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ4_LBN 16
7895a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ4_WIDTH 4
7905a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ3_LBN 12
7915a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ3_WIDTH 4
7925a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ2_LBN 8
7935a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ2_WIDTH 4
7945a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ1_LBN 4
7955a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ1_WIDTH 4
7965a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ0_LBN 0
7975a6681e2SEdward Cree #define	FRF_AB_PCIE_DEQ0_WIDTH 4
7985a6681e2SEdward Cree 
7995a6681e2SEdward Cree /* PCIE_PCS_CTL_STAT_REG: PCIE PCS control and status register */
8005a6681e2SEdward Cree #define	FR_AB_PCIE_PCS_CTL_STAT 0x00000340
8015a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRCOUNT0_H_LBN 52
8025a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRCOUNT0_H_WIDTH 4
8035a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRCOUNT0_L_LBN 48
8045a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRCOUNT0_L_WIDTH 4
8055a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERR_LBN 40
8065a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERR_WIDTH 8
8075a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRH0_LBN 32
8085a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRH0_WIDTH 8
8095a6681e2SEdward Cree #define	FRF_AB_PCIE_FASTINIT_H_LBN 15
8105a6681e2SEdward Cree #define	FRF_AB_PCIE_FASTINIT_H_WIDTH 1
8115a6681e2SEdward Cree #define	FRF_AB_PCIE_FASTINIT_L_LBN 14
8125a6681e2SEdward Cree #define	FRF_AB_PCIE_FASTINIT_L_WIDTH 1
8135a6681e2SEdward Cree #define	FRF_AB_PCIE_CTCDISABLE_H_LBN 13
8145a6681e2SEdward Cree #define	FRF_AB_PCIE_CTCDISABLE_H_WIDTH 1
8155a6681e2SEdward Cree #define	FRF_AB_PCIE_CTCDISABLE_L_LBN 12
8165a6681e2SEdward Cree #define	FRF_AB_PCIE_CTCDISABLE_L_WIDTH 1
8175a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSSYNC_H_LBN 11
8185a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSSYNC_H_WIDTH 1
8195a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSSYNC_L_LBN 10
8205a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSSYNC_L_WIDTH 1
8215a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRACK_H_LBN 9
8225a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRACK_H_WIDTH 1
8235a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRACK_L_LBN 8
8245a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSERRACK_L_WIDTH 1
8255a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSSEL_LBN 0
8265a6681e2SEdward Cree #define	FRF_AB_PCIE_PRBSSEL_WIDTH 8
8275a6681e2SEdward Cree 
8285a6681e2SEdward Cree /* DEBUG_DATA_OUT_REG: Live Debug and Debug 2 out ports */
8295a6681e2SEdward Cree #define	FR_BB_DEBUG_DATA_OUT 0x00000350
8305a6681e2SEdward Cree #define	FRF_BB_DEBUG2_PORT_LBN 25
8315a6681e2SEdward Cree #define	FRF_BB_DEBUG2_PORT_WIDTH 15
8325a6681e2SEdward Cree #define	FRF_BB_DEBUG1_PORT_LBN 0
8335a6681e2SEdward Cree #define	FRF_BB_DEBUG1_PORT_WIDTH 25
8345a6681e2SEdward Cree 
8355a6681e2SEdward Cree /* EVQ_RPTR_REGP0: Event queue read pointer register */
8365a6681e2SEdward Cree #define	FR_BZ_EVQ_RPTR_P0 0x00000400
8375a6681e2SEdward Cree #define	FR_BZ_EVQ_RPTR_P0_STEP 8192
8385a6681e2SEdward Cree #define	FR_BZ_EVQ_RPTR_P0_ROWS 1024
8395a6681e2SEdward Cree /* EVQ_RPTR_REG_KER: Event queue read pointer register */
8405a6681e2SEdward Cree #define	FR_AA_EVQ_RPTR_KER 0x00011b00
8415a6681e2SEdward Cree #define	FR_AA_EVQ_RPTR_KER_STEP 4
8425a6681e2SEdward Cree #define	FR_AA_EVQ_RPTR_KER_ROWS 4
8435a6681e2SEdward Cree /* EVQ_RPTR_REG: Event queue read pointer register */
8445a6681e2SEdward Cree #define	FR_BZ_EVQ_RPTR 0x00fa0000
8455a6681e2SEdward Cree #define	FR_BZ_EVQ_RPTR_STEP 16
8465a6681e2SEdward Cree #define	FR_BB_EVQ_RPTR_ROWS 4096
8475a6681e2SEdward Cree #define	FR_CZ_EVQ_RPTR_ROWS 1024
8485a6681e2SEdward Cree /* EVQ_RPTR_REGP123: Event queue read pointer register */
8495a6681e2SEdward Cree #define	FR_BB_EVQ_RPTR_P123 0x01000400
8505a6681e2SEdward Cree #define	FR_BB_EVQ_RPTR_P123_STEP 8192
8515a6681e2SEdward Cree #define	FR_BB_EVQ_RPTR_P123_ROWS 3072
8525a6681e2SEdward Cree #define	FRF_AZ_EVQ_RPTR_VLD_LBN 15
8535a6681e2SEdward Cree #define	FRF_AZ_EVQ_RPTR_VLD_WIDTH 1
8545a6681e2SEdward Cree #define	FRF_AZ_EVQ_RPTR_LBN 0
8555a6681e2SEdward Cree #define	FRF_AZ_EVQ_RPTR_WIDTH 15
8565a6681e2SEdward Cree 
8575a6681e2SEdward Cree /* TIMER_COMMAND_REGP0: Timer Command Registers */
8585a6681e2SEdward Cree #define	FR_BZ_TIMER_COMMAND_P0 0x00000420
8595a6681e2SEdward Cree #define	FR_BZ_TIMER_COMMAND_P0_STEP 8192
8605a6681e2SEdward Cree #define	FR_BZ_TIMER_COMMAND_P0_ROWS 1024
8615a6681e2SEdward Cree /* TIMER_COMMAND_REG_KER: Timer Command Registers */
8625a6681e2SEdward Cree #define	FR_AA_TIMER_COMMAND_KER 0x00000420
8635a6681e2SEdward Cree #define	FR_AA_TIMER_COMMAND_KER_STEP 8192
8645a6681e2SEdward Cree #define	FR_AA_TIMER_COMMAND_KER_ROWS 4
8655a6681e2SEdward Cree /* TIMER_COMMAND_REGP123: Timer Command Registers */
8665a6681e2SEdward Cree #define	FR_BB_TIMER_COMMAND_P123 0x01000420
8675a6681e2SEdward Cree #define	FR_BB_TIMER_COMMAND_P123_STEP 8192
8685a6681e2SEdward Cree #define	FR_BB_TIMER_COMMAND_P123_ROWS 3072
8695a6681e2SEdward Cree #define	FRF_CZ_TC_TIMER_MODE_LBN 14
8705a6681e2SEdward Cree #define	FRF_CZ_TC_TIMER_MODE_WIDTH 2
8715a6681e2SEdward Cree #define	FRF_AB_TC_TIMER_MODE_LBN 12
8725a6681e2SEdward Cree #define	FRF_AB_TC_TIMER_MODE_WIDTH 2
8735a6681e2SEdward Cree #define	FRF_CZ_TC_TIMER_VAL_LBN 0
8745a6681e2SEdward Cree #define	FRF_CZ_TC_TIMER_VAL_WIDTH 14
8755a6681e2SEdward Cree #define	FRF_AB_TC_TIMER_VAL_LBN 0
8765a6681e2SEdward Cree #define	FRF_AB_TC_TIMER_VAL_WIDTH 12
8775a6681e2SEdward Cree 
8785a6681e2SEdward Cree /* DRV_EV_REG: Driver generated event register */
8795a6681e2SEdward Cree #define	FR_AZ_DRV_EV 0x00000440
8805a6681e2SEdward Cree #define	FRF_AZ_DRV_EV_QID_LBN 64
8815a6681e2SEdward Cree #define	FRF_AZ_DRV_EV_QID_WIDTH 12
8825a6681e2SEdward Cree #define	FRF_AZ_DRV_EV_DATA_LBN 0
8835a6681e2SEdward Cree #define	FRF_AZ_DRV_EV_DATA_WIDTH 64
8845a6681e2SEdward Cree 
8855a6681e2SEdward Cree /* EVQ_CTL_REG: Event queue control register */
8865a6681e2SEdward Cree #define	FR_AZ_EVQ_CTL 0x00000450
8875a6681e2SEdward Cree #define	FRF_CZ_RX_EVQ_WAKEUP_MASK_LBN 15
8885a6681e2SEdward Cree #define	FRF_CZ_RX_EVQ_WAKEUP_MASK_WIDTH 10
8895a6681e2SEdward Cree #define	FRF_BB_RX_EVQ_WAKEUP_MASK_LBN 15
8905a6681e2SEdward Cree #define	FRF_BB_RX_EVQ_WAKEUP_MASK_WIDTH 6
8915a6681e2SEdward Cree #define	FRF_AZ_EVQ_OWNERR_CTL_LBN 14
8925a6681e2SEdward Cree #define	FRF_AZ_EVQ_OWNERR_CTL_WIDTH 1
8935a6681e2SEdward Cree #define	FRF_AZ_EVQ_FIFO_AF_TH_LBN 7
8945a6681e2SEdward Cree #define	FRF_AZ_EVQ_FIFO_AF_TH_WIDTH 7
8955a6681e2SEdward Cree #define	FRF_AZ_EVQ_FIFO_NOTAF_TH_LBN 0
8965a6681e2SEdward Cree #define	FRF_AZ_EVQ_FIFO_NOTAF_TH_WIDTH 7
8975a6681e2SEdward Cree 
8985a6681e2SEdward Cree /* EVQ_CNT1_REG: Event counter 1 register */
8995a6681e2SEdward Cree #define	FR_AZ_EVQ_CNT1 0x00000460
9005a6681e2SEdward Cree #define	FRF_AZ_EVQ_CNT_PRE_FIFO_LBN 120
9015a6681e2SEdward Cree #define	FRF_AZ_EVQ_CNT_PRE_FIFO_WIDTH 7
9025a6681e2SEdward Cree #define	FRF_AZ_EVQ_CNT_TOBIU_LBN 100
9035a6681e2SEdward Cree #define	FRF_AZ_EVQ_CNT_TOBIU_WIDTH 20
9045a6681e2SEdward Cree #define	FRF_AZ_EVQ_TX_REQ_CNT_LBN 80
9055a6681e2SEdward Cree #define	FRF_AZ_EVQ_TX_REQ_CNT_WIDTH 20
9065a6681e2SEdward Cree #define	FRF_AZ_EVQ_RX_REQ_CNT_LBN 60
9075a6681e2SEdward Cree #define	FRF_AZ_EVQ_RX_REQ_CNT_WIDTH 20
9085a6681e2SEdward Cree #define	FRF_AZ_EVQ_EM_REQ_CNT_LBN 40
9095a6681e2SEdward Cree #define	FRF_AZ_EVQ_EM_REQ_CNT_WIDTH 20
9105a6681e2SEdward Cree #define	FRF_AZ_EVQ_CSR_REQ_CNT_LBN 20
9115a6681e2SEdward Cree #define	FRF_AZ_EVQ_CSR_REQ_CNT_WIDTH 20
9125a6681e2SEdward Cree #define	FRF_AZ_EVQ_ERR_REQ_CNT_LBN 0
9135a6681e2SEdward Cree #define	FRF_AZ_EVQ_ERR_REQ_CNT_WIDTH 20
9145a6681e2SEdward Cree 
9155a6681e2SEdward Cree /* EVQ_CNT2_REG: Event counter 2 register */
9165a6681e2SEdward Cree #define	FR_AZ_EVQ_CNT2 0x00000470
9175a6681e2SEdward Cree #define	FRF_AZ_EVQ_UPD_REQ_CNT_LBN 104
9185a6681e2SEdward Cree #define	FRF_AZ_EVQ_UPD_REQ_CNT_WIDTH 20
9195a6681e2SEdward Cree #define	FRF_AZ_EVQ_CLR_REQ_CNT_LBN 84
9205a6681e2SEdward Cree #define	FRF_AZ_EVQ_CLR_REQ_CNT_WIDTH 20
9215a6681e2SEdward Cree #define	FRF_AZ_EVQ_RDY_CNT_LBN 80
9225a6681e2SEdward Cree #define	FRF_AZ_EVQ_RDY_CNT_WIDTH 4
9235a6681e2SEdward Cree #define	FRF_AZ_EVQ_WU_REQ_CNT_LBN 60
9245a6681e2SEdward Cree #define	FRF_AZ_EVQ_WU_REQ_CNT_WIDTH 20
9255a6681e2SEdward Cree #define	FRF_AZ_EVQ_WET_REQ_CNT_LBN 40
9265a6681e2SEdward Cree #define	FRF_AZ_EVQ_WET_REQ_CNT_WIDTH 20
9275a6681e2SEdward Cree #define	FRF_AZ_EVQ_INIT_REQ_CNT_LBN 20
9285a6681e2SEdward Cree #define	FRF_AZ_EVQ_INIT_REQ_CNT_WIDTH 20
9295a6681e2SEdward Cree #define	FRF_AZ_EVQ_TM_REQ_CNT_LBN 0
9305a6681e2SEdward Cree #define	FRF_AZ_EVQ_TM_REQ_CNT_WIDTH 20
9315a6681e2SEdward Cree 
9325a6681e2SEdward Cree /* USR_EV_REG: Event mailbox register */
9335a6681e2SEdward Cree #define	FR_CZ_USR_EV 0x00000540
9345a6681e2SEdward Cree #define	FR_CZ_USR_EV_STEP 8192
9355a6681e2SEdward Cree #define	FR_CZ_USR_EV_ROWS 1024
9365a6681e2SEdward Cree #define	FRF_CZ_USR_EV_DATA_LBN 0
9375a6681e2SEdward Cree #define	FRF_CZ_USR_EV_DATA_WIDTH 32
9385a6681e2SEdward Cree 
9395a6681e2SEdward Cree /* BUF_TBL_CFG_REG: Buffer table configuration register */
9405a6681e2SEdward Cree #define	FR_AZ_BUF_TBL_CFG 0x00000600
9415a6681e2SEdward Cree #define	FRF_AZ_BUF_TBL_MODE_LBN 3
9425a6681e2SEdward Cree #define	FRF_AZ_BUF_TBL_MODE_WIDTH 1
9435a6681e2SEdward Cree 
9445a6681e2SEdward Cree /* SRM_RX_DC_CFG_REG: SRAM receive descriptor cache configuration register */
9455a6681e2SEdward Cree #define	FR_AZ_SRM_RX_DC_CFG 0x00000610
9465a6681e2SEdward Cree #define	FRF_AZ_SRM_CLK_TMP_EN_LBN 21
9475a6681e2SEdward Cree #define	FRF_AZ_SRM_CLK_TMP_EN_WIDTH 1
9485a6681e2SEdward Cree #define	FRF_AZ_SRM_RX_DC_BASE_ADR_LBN 0
9495a6681e2SEdward Cree #define	FRF_AZ_SRM_RX_DC_BASE_ADR_WIDTH 21
9505a6681e2SEdward Cree 
9515a6681e2SEdward Cree /* SRM_TX_DC_CFG_REG: SRAM transmit descriptor cache configuration register */
9525a6681e2SEdward Cree #define	FR_AZ_SRM_TX_DC_CFG 0x00000620
9535a6681e2SEdward Cree #define	FRF_AZ_SRM_TX_DC_BASE_ADR_LBN 0
9545a6681e2SEdward Cree #define	FRF_AZ_SRM_TX_DC_BASE_ADR_WIDTH 21
9555a6681e2SEdward Cree 
9565a6681e2SEdward Cree /* SRM_CFG_REG: SRAM configuration register */
9575a6681e2SEdward Cree #define	FR_AZ_SRM_CFG 0x00000630
9585a6681e2SEdward Cree #define	FRF_AZ_SRM_OOB_ADR_INTEN_LBN 5
9595a6681e2SEdward Cree #define	FRF_AZ_SRM_OOB_ADR_INTEN_WIDTH 1
9605a6681e2SEdward Cree #define	FRF_AZ_SRM_OOB_BUF_INTEN_LBN 4
9615a6681e2SEdward Cree #define	FRF_AZ_SRM_OOB_BUF_INTEN_WIDTH 1
9625a6681e2SEdward Cree #define	FRF_AZ_SRM_INIT_EN_LBN 3
9635a6681e2SEdward Cree #define	FRF_AZ_SRM_INIT_EN_WIDTH 1
9645a6681e2SEdward Cree #define	FRF_AZ_SRM_NUM_BANK_LBN 2
9655a6681e2SEdward Cree #define	FRF_AZ_SRM_NUM_BANK_WIDTH 1
9665a6681e2SEdward Cree #define	FRF_AZ_SRM_BANK_SIZE_LBN 0
9675a6681e2SEdward Cree #define	FRF_AZ_SRM_BANK_SIZE_WIDTH 2
9685a6681e2SEdward Cree 
9695a6681e2SEdward Cree /* BUF_TBL_UPD_REG: Buffer table update register */
9705a6681e2SEdward Cree #define	FR_AZ_BUF_TBL_UPD 0x00000650
9715a6681e2SEdward Cree #define	FRF_AZ_BUF_UPD_CMD_LBN 63
9725a6681e2SEdward Cree #define	FRF_AZ_BUF_UPD_CMD_WIDTH 1
9735a6681e2SEdward Cree #define	FRF_AZ_BUF_CLR_CMD_LBN 62
9745a6681e2SEdward Cree #define	FRF_AZ_BUF_CLR_CMD_WIDTH 1
9755a6681e2SEdward Cree #define	FRF_AZ_BUF_CLR_END_ID_LBN 32
9765a6681e2SEdward Cree #define	FRF_AZ_BUF_CLR_END_ID_WIDTH 20
9775a6681e2SEdward Cree #define	FRF_AZ_BUF_CLR_START_ID_LBN 0
9785a6681e2SEdward Cree #define	FRF_AZ_BUF_CLR_START_ID_WIDTH 20
9795a6681e2SEdward Cree 
9805a6681e2SEdward Cree /* SRM_UPD_EVQ_REG: Buffer table update register */
9815a6681e2SEdward Cree #define	FR_AZ_SRM_UPD_EVQ 0x00000660
9825a6681e2SEdward Cree #define	FRF_AZ_SRM_UPD_EVQ_ID_LBN 0
9835a6681e2SEdward Cree #define	FRF_AZ_SRM_UPD_EVQ_ID_WIDTH 12
9845a6681e2SEdward Cree 
9855a6681e2SEdward Cree /* SRAM_PARITY_REG: SRAM parity register. */
9865a6681e2SEdward Cree #define	FR_AZ_SRAM_PARITY 0x00000670
9875a6681e2SEdward Cree #define	FRF_CZ_BYPASS_ECC_LBN 3
9885a6681e2SEdward Cree #define	FRF_CZ_BYPASS_ECC_WIDTH 1
9895a6681e2SEdward Cree #define	FRF_CZ_SEC_INT_LBN 2
9905a6681e2SEdward Cree #define	FRF_CZ_SEC_INT_WIDTH 1
9915a6681e2SEdward Cree #define	FRF_CZ_FORCE_SRAM_DOUBLE_ERR_LBN 1
9925a6681e2SEdward Cree #define	FRF_CZ_FORCE_SRAM_DOUBLE_ERR_WIDTH 1
9935a6681e2SEdward Cree #define	FRF_AB_FORCE_SRAM_PERR_LBN 0
9945a6681e2SEdward Cree #define	FRF_AB_FORCE_SRAM_PERR_WIDTH 1
9955a6681e2SEdward Cree #define	FRF_CZ_FORCE_SRAM_SINGLE_ERR_LBN 0
9965a6681e2SEdward Cree #define	FRF_CZ_FORCE_SRAM_SINGLE_ERR_WIDTH 1
9975a6681e2SEdward Cree 
9985a6681e2SEdward Cree /* RX_CFG_REG: Receive configuration register */
9995a6681e2SEdward Cree #define	FR_AZ_RX_CFG 0x00000800
10005a6681e2SEdward Cree #define	FRF_CZ_RX_MIN_KBUF_SIZE_LBN 72
10015a6681e2SEdward Cree #define	FRF_CZ_RX_MIN_KBUF_SIZE_WIDTH 14
10025a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_EN_LBN 71
10035a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_EN_WIDTH 1
10045a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_PLD_BUF_SIZE_LBN 62
10055a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_PLD_BUF_SIZE_WIDTH 9
10065a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_HDR_BUF_SIZE_LBN 53
10075a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_HDR_BUF_SIZE_WIDTH 9
10085a6681e2SEdward Cree #define	FRF_CZ_RX_PRE_RFF_IPG_LBN 49
10095a6681e2SEdward Cree #define	FRF_CZ_RX_PRE_RFF_IPG_WIDTH 4
10105a6681e2SEdward Cree #define	FRF_BZ_RX_TCP_SUP_LBN 48
10115a6681e2SEdward Cree #define	FRF_BZ_RX_TCP_SUP_WIDTH 1
10125a6681e2SEdward Cree #define	FRF_BZ_RX_INGR_EN_LBN 47
10135a6681e2SEdward Cree #define	FRF_BZ_RX_INGR_EN_WIDTH 1
10145a6681e2SEdward Cree #define	FRF_BZ_RX_IP_HASH_LBN 46
10155a6681e2SEdward Cree #define	FRF_BZ_RX_IP_HASH_WIDTH 1
10165a6681e2SEdward Cree #define	FRF_BZ_RX_HASH_ALG_LBN 45
10175a6681e2SEdward Cree #define	FRF_BZ_RX_HASH_ALG_WIDTH 1
10185a6681e2SEdward Cree #define	FRF_BZ_RX_HASH_INSRT_HDR_LBN 44
10195a6681e2SEdward Cree #define	FRF_BZ_RX_HASH_INSRT_HDR_WIDTH 1
10205a6681e2SEdward Cree #define	FRF_BZ_RX_DESC_PUSH_EN_LBN 43
10215a6681e2SEdward Cree #define	FRF_BZ_RX_DESC_PUSH_EN_WIDTH 1
10225a6681e2SEdward Cree #define	FRF_BZ_RX_RDW_PATCH_EN_LBN 42
10235a6681e2SEdward Cree #define	FRF_BZ_RX_RDW_PATCH_EN_WIDTH 1
10245a6681e2SEdward Cree #define	FRF_BB_RX_PCI_BURST_SIZE_LBN 39
10255a6681e2SEdward Cree #define	FRF_BB_RX_PCI_BURST_SIZE_WIDTH 3
10265a6681e2SEdward Cree #define	FRF_BZ_RX_OWNERR_CTL_LBN 38
10275a6681e2SEdward Cree #define	FRF_BZ_RX_OWNERR_CTL_WIDTH 1
10285a6681e2SEdward Cree #define	FRF_BZ_RX_XON_TX_TH_LBN 33
10295a6681e2SEdward Cree #define	FRF_BZ_RX_XON_TX_TH_WIDTH 5
10305a6681e2SEdward Cree #define	FRF_AA_RX_DESC_PUSH_EN_LBN 35
10315a6681e2SEdward Cree #define	FRF_AA_RX_DESC_PUSH_EN_WIDTH 1
10325a6681e2SEdward Cree #define	FRF_AA_RX_RDW_PATCH_EN_LBN 34
10335a6681e2SEdward Cree #define	FRF_AA_RX_RDW_PATCH_EN_WIDTH 1
10345a6681e2SEdward Cree #define	FRF_AA_RX_PCI_BURST_SIZE_LBN 31
10355a6681e2SEdward Cree #define	FRF_AA_RX_PCI_BURST_SIZE_WIDTH 3
10365a6681e2SEdward Cree #define	FRF_BZ_RX_XOFF_TX_TH_LBN 28
10375a6681e2SEdward Cree #define	FRF_BZ_RX_XOFF_TX_TH_WIDTH 5
10385a6681e2SEdward Cree #define	FRF_AA_RX_OWNERR_CTL_LBN 30
10395a6681e2SEdward Cree #define	FRF_AA_RX_OWNERR_CTL_WIDTH 1
10405a6681e2SEdward Cree #define	FRF_AA_RX_XON_TX_TH_LBN 25
10415a6681e2SEdward Cree #define	FRF_AA_RX_XON_TX_TH_WIDTH 5
10425a6681e2SEdward Cree #define	FRF_BZ_RX_USR_BUF_SIZE_LBN 19
10435a6681e2SEdward Cree #define	FRF_BZ_RX_USR_BUF_SIZE_WIDTH 9
10445a6681e2SEdward Cree #define	FRF_AA_RX_XOFF_TX_TH_LBN 20
10455a6681e2SEdward Cree #define	FRF_AA_RX_XOFF_TX_TH_WIDTH 5
10465a6681e2SEdward Cree #define	FRF_AA_RX_USR_BUF_SIZE_LBN 11
10475a6681e2SEdward Cree #define	FRF_AA_RX_USR_BUF_SIZE_WIDTH 9
10485a6681e2SEdward Cree #define	FRF_BZ_RX_XON_MAC_TH_LBN 10
10495a6681e2SEdward Cree #define	FRF_BZ_RX_XON_MAC_TH_WIDTH 9
10505a6681e2SEdward Cree #define	FRF_AA_RX_XON_MAC_TH_LBN 6
10515a6681e2SEdward Cree #define	FRF_AA_RX_XON_MAC_TH_WIDTH 5
10525a6681e2SEdward Cree #define	FRF_BZ_RX_XOFF_MAC_TH_LBN 1
10535a6681e2SEdward Cree #define	FRF_BZ_RX_XOFF_MAC_TH_WIDTH 9
10545a6681e2SEdward Cree #define	FRF_AA_RX_XOFF_MAC_TH_LBN 1
10555a6681e2SEdward Cree #define	FRF_AA_RX_XOFF_MAC_TH_WIDTH 5
10565a6681e2SEdward Cree #define	FRF_AZ_RX_XOFF_MAC_EN_LBN 0
10575a6681e2SEdward Cree #define	FRF_AZ_RX_XOFF_MAC_EN_WIDTH 1
10585a6681e2SEdward Cree 
10595a6681e2SEdward Cree /* RX_FILTER_CTL_REG: Receive filter control registers */
10605a6681e2SEdward Cree #define	FR_BZ_RX_FILTER_CTL 0x00000810
10615a6681e2SEdward Cree #define	FRF_CZ_ETHERNET_WILDCARD_SEARCH_LIMIT_LBN 94
10625a6681e2SEdward Cree #define	FRF_CZ_ETHERNET_WILDCARD_SEARCH_LIMIT_WIDTH 8
10635a6681e2SEdward Cree #define	FRF_CZ_ETHERNET_FULL_SEARCH_LIMIT_LBN 86
10645a6681e2SEdward Cree #define	FRF_CZ_ETHERNET_FULL_SEARCH_LIMIT_WIDTH 8
10655a6681e2SEdward Cree #define	FRF_CZ_RX_FILTER_ALL_VLAN_ETHERTYPES_LBN 85
10665a6681e2SEdward Cree #define	FRF_CZ_RX_FILTER_ALL_VLAN_ETHERTYPES_WIDTH 1
10675a6681e2SEdward Cree #define	FRF_CZ_RX_VLAN_MATCH_ETHERTYPE_LBN 69
10685a6681e2SEdward Cree #define	FRF_CZ_RX_VLAN_MATCH_ETHERTYPE_WIDTH 16
10695a6681e2SEdward Cree #define	FRF_CZ_MULTICAST_NOMATCH_Q_ID_LBN 57
10705a6681e2SEdward Cree #define	FRF_CZ_MULTICAST_NOMATCH_Q_ID_WIDTH 12
10715a6681e2SEdward Cree #define	FRF_CZ_MULTICAST_NOMATCH_RSS_ENABLED_LBN 56
10725a6681e2SEdward Cree #define	FRF_CZ_MULTICAST_NOMATCH_RSS_ENABLED_WIDTH 1
10735a6681e2SEdward Cree #define	FRF_CZ_MULTICAST_NOMATCH_IP_OVERRIDE_LBN 55
10745a6681e2SEdward Cree #define	FRF_CZ_MULTICAST_NOMATCH_IP_OVERRIDE_WIDTH 1
10755a6681e2SEdward Cree #define	FRF_CZ_UNICAST_NOMATCH_Q_ID_LBN 43
10765a6681e2SEdward Cree #define	FRF_CZ_UNICAST_NOMATCH_Q_ID_WIDTH 12
10775a6681e2SEdward Cree #define	FRF_CZ_UNICAST_NOMATCH_RSS_ENABLED_LBN 42
10785a6681e2SEdward Cree #define	FRF_CZ_UNICAST_NOMATCH_RSS_ENABLED_WIDTH 1
10795a6681e2SEdward Cree #define	FRF_CZ_UNICAST_NOMATCH_IP_OVERRIDE_LBN 41
10805a6681e2SEdward Cree #define	FRF_CZ_UNICAST_NOMATCH_IP_OVERRIDE_WIDTH 1
10815a6681e2SEdward Cree #define	FRF_BZ_SCATTER_ENBL_NO_MATCH_Q_LBN 40
10825a6681e2SEdward Cree #define	FRF_BZ_SCATTER_ENBL_NO_MATCH_Q_WIDTH 1
10835a6681e2SEdward Cree #define	FRF_BZ_UDP_FULL_SRCH_LIMIT_LBN 32
10845a6681e2SEdward Cree #define	FRF_BZ_UDP_FULL_SRCH_LIMIT_WIDTH 8
10855a6681e2SEdward Cree #define	FRF_BZ_NUM_KER_LBN 24
10865a6681e2SEdward Cree #define	FRF_BZ_NUM_KER_WIDTH 2
10875a6681e2SEdward Cree #define	FRF_BZ_UDP_WILD_SRCH_LIMIT_LBN 16
10885a6681e2SEdward Cree #define	FRF_BZ_UDP_WILD_SRCH_LIMIT_WIDTH 8
10895a6681e2SEdward Cree #define	FRF_BZ_TCP_WILD_SRCH_LIMIT_LBN 8
10905a6681e2SEdward Cree #define	FRF_BZ_TCP_WILD_SRCH_LIMIT_WIDTH 8
10915a6681e2SEdward Cree #define	FRF_BZ_TCP_FULL_SRCH_LIMIT_LBN 0
10925a6681e2SEdward Cree #define	FRF_BZ_TCP_FULL_SRCH_LIMIT_WIDTH 8
10935a6681e2SEdward Cree 
10945a6681e2SEdward Cree /* RX_FLUSH_DESCQ_REG: Receive flush descriptor queue register */
10955a6681e2SEdward Cree #define	FR_AZ_RX_FLUSH_DESCQ 0x00000820
10965a6681e2SEdward Cree #define	FRF_AZ_RX_FLUSH_DESCQ_CMD_LBN 24
10975a6681e2SEdward Cree #define	FRF_AZ_RX_FLUSH_DESCQ_CMD_WIDTH 1
10985a6681e2SEdward Cree #define	FRF_AZ_RX_FLUSH_DESCQ_LBN 0
10995a6681e2SEdward Cree #define	FRF_AZ_RX_FLUSH_DESCQ_WIDTH 12
11005a6681e2SEdward Cree 
11015a6681e2SEdward Cree /* RX_DESC_UPD_REGP0: Receive descriptor update register. */
11025a6681e2SEdward Cree #define	FR_BZ_RX_DESC_UPD_P0 0x00000830
11035a6681e2SEdward Cree #define	FR_BZ_RX_DESC_UPD_P0_STEP 8192
11045a6681e2SEdward Cree #define	FR_BZ_RX_DESC_UPD_P0_ROWS 1024
11055a6681e2SEdward Cree /* RX_DESC_UPD_REG_KER: Receive descriptor update register. */
11065a6681e2SEdward Cree #define	FR_AA_RX_DESC_UPD_KER 0x00000830
11075a6681e2SEdward Cree #define	FR_AA_RX_DESC_UPD_KER_STEP 8192
11085a6681e2SEdward Cree #define	FR_AA_RX_DESC_UPD_KER_ROWS 4
11095a6681e2SEdward Cree /* RX_DESC_UPD_REGP123: Receive descriptor update register. */
11105a6681e2SEdward Cree #define	FR_BB_RX_DESC_UPD_P123 0x01000830
11115a6681e2SEdward Cree #define	FR_BB_RX_DESC_UPD_P123_STEP 8192
11125a6681e2SEdward Cree #define	FR_BB_RX_DESC_UPD_P123_ROWS 3072
11135a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_WPTR_LBN 96
11145a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_WPTR_WIDTH 12
11155a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_PUSH_CMD_LBN 95
11165a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_PUSH_CMD_WIDTH 1
11175a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_LBN 0
11185a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_WIDTH 64
11195a6681e2SEdward Cree 
11205a6681e2SEdward Cree /* RX_DC_CFG_REG: Receive descriptor cache configuration register */
11215a6681e2SEdward Cree #define	FR_AZ_RX_DC_CFG 0x00000840
11225a6681e2SEdward Cree #define	FRF_AB_RX_MAX_PF_LBN 2
11235a6681e2SEdward Cree #define	FRF_AB_RX_MAX_PF_WIDTH 2
11245a6681e2SEdward Cree #define	FRF_AZ_RX_DC_SIZE_LBN 0
11255a6681e2SEdward Cree #define	FRF_AZ_RX_DC_SIZE_WIDTH 2
11265a6681e2SEdward Cree #define	FFE_AZ_RX_DC_SIZE_64 3
11275a6681e2SEdward Cree #define	FFE_AZ_RX_DC_SIZE_32 2
11285a6681e2SEdward Cree #define	FFE_AZ_RX_DC_SIZE_16 1
11295a6681e2SEdward Cree #define	FFE_AZ_RX_DC_SIZE_8 0
11305a6681e2SEdward Cree 
11315a6681e2SEdward Cree /* RX_DC_PF_WM_REG: Receive descriptor cache pre-fetch watermark register */
11325a6681e2SEdward Cree #define	FR_AZ_RX_DC_PF_WM 0x00000850
11335a6681e2SEdward Cree #define	FRF_AZ_RX_DC_PF_HWM_LBN 6
11345a6681e2SEdward Cree #define	FRF_AZ_RX_DC_PF_HWM_WIDTH 6
11355a6681e2SEdward Cree #define	FRF_AZ_RX_DC_PF_LWM_LBN 0
11365a6681e2SEdward Cree #define	FRF_AZ_RX_DC_PF_LWM_WIDTH 6
11375a6681e2SEdward Cree 
11385a6681e2SEdward Cree /* RX_RSS_TKEY_REG: RSS Toeplitz hash key */
11395a6681e2SEdward Cree #define	FR_BZ_RX_RSS_TKEY 0x00000860
11405a6681e2SEdward Cree #define	FRF_BZ_RX_RSS_TKEY_HI_LBN 64
11415a6681e2SEdward Cree #define	FRF_BZ_RX_RSS_TKEY_HI_WIDTH 64
11425a6681e2SEdward Cree #define	FRF_BZ_RX_RSS_TKEY_LO_LBN 0
11435a6681e2SEdward Cree #define	FRF_BZ_RX_RSS_TKEY_LO_WIDTH 64
11445a6681e2SEdward Cree 
11455a6681e2SEdward Cree /* RX_NODESC_DROP_REG: Receive dropped packet counter register */
11465a6681e2SEdward Cree #define	FR_AZ_RX_NODESC_DROP 0x00000880
11475a6681e2SEdward Cree #define	FRF_CZ_RX_NODESC_DROP_CNT_LBN 0
11485a6681e2SEdward Cree #define	FRF_CZ_RX_NODESC_DROP_CNT_WIDTH 32
11495a6681e2SEdward Cree #define	FRF_AB_RX_NODESC_DROP_CNT_LBN 0
11505a6681e2SEdward Cree #define	FRF_AB_RX_NODESC_DROP_CNT_WIDTH 16
11515a6681e2SEdward Cree 
11525a6681e2SEdward Cree /* RX_SELF_RST_REG: Receive self reset register */
11535a6681e2SEdward Cree #define	FR_AA_RX_SELF_RST 0x00000890
11545a6681e2SEdward Cree #define	FRF_AA_RX_ISCSI_DIS_LBN 17
11555a6681e2SEdward Cree #define	FRF_AA_RX_ISCSI_DIS_WIDTH 1
11565a6681e2SEdward Cree #define	FRF_AA_RX_SW_RST_REG_LBN 16
11575a6681e2SEdward Cree #define	FRF_AA_RX_SW_RST_REG_WIDTH 1
11585a6681e2SEdward Cree #define FRF_AA_RX_NODESC_WAIT_DIS_LBN 9
11595a6681e2SEdward Cree #define FRF_AA_RX_NODESC_WAIT_DIS_WIDTH 1
11605a6681e2SEdward Cree #define	FRF_AA_RX_SELF_RST_EN_LBN 8
11615a6681e2SEdward Cree #define	FRF_AA_RX_SELF_RST_EN_WIDTH 1
11625a6681e2SEdward Cree #define	FRF_AA_RX_MAX_PF_LAT_LBN 4
11635a6681e2SEdward Cree #define	FRF_AA_RX_MAX_PF_LAT_WIDTH 4
11645a6681e2SEdward Cree #define	FRF_AA_RX_MAX_LU_LAT_LBN 0
11655a6681e2SEdward Cree #define	FRF_AA_RX_MAX_LU_LAT_WIDTH 4
11665a6681e2SEdward Cree 
11675a6681e2SEdward Cree /* RX_DEBUG_REG: undocumented register */
11685a6681e2SEdward Cree #define	FR_AZ_RX_DEBUG 0x000008a0
11695a6681e2SEdward Cree #define	FRF_AZ_RX_DEBUG_LBN 0
11705a6681e2SEdward Cree #define	FRF_AZ_RX_DEBUG_WIDTH 64
11715a6681e2SEdward Cree 
11725a6681e2SEdward Cree /* RX_PUSH_DROP_REG: Receive descriptor push dropped counter register */
11735a6681e2SEdward Cree #define	FR_AZ_RX_PUSH_DROP 0x000008b0
11745a6681e2SEdward Cree #define	FRF_AZ_RX_PUSH_DROP_CNT_LBN 0
11755a6681e2SEdward Cree #define	FRF_AZ_RX_PUSH_DROP_CNT_WIDTH 32
11765a6681e2SEdward Cree 
11775a6681e2SEdward Cree /* RX_RSS_IPV6_REG1: IPv6 RSS Toeplitz hash key low bytes */
11785a6681e2SEdward Cree #define	FR_CZ_RX_RSS_IPV6_REG1 0x000008d0
11795a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TKEY_LO_LBN 0
11805a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TKEY_LO_WIDTH 128
11815a6681e2SEdward Cree 
11825a6681e2SEdward Cree /* RX_RSS_IPV6_REG2: IPv6 RSS Toeplitz hash key middle bytes */
11835a6681e2SEdward Cree #define	FR_CZ_RX_RSS_IPV6_REG2 0x000008e0
11845a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TKEY_MID_LBN 0
11855a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TKEY_MID_WIDTH 128
11865a6681e2SEdward Cree 
11875a6681e2SEdward Cree /* RX_RSS_IPV6_REG3: IPv6 RSS Toeplitz hash key upper bytes and IPv6 RSS settings */
11885a6681e2SEdward Cree #define	FR_CZ_RX_RSS_IPV6_REG3 0x000008f0
11895a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_THASH_ENABLE_LBN 66
11905a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_THASH_ENABLE_WIDTH 1
11915a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_IP_THASH_ENABLE_LBN 65
11925a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_IP_THASH_ENABLE_WIDTH 1
11935a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TCP_SUPPRESS_LBN 64
11945a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TCP_SUPPRESS_WIDTH 1
11955a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TKEY_HI_LBN 0
11965a6681e2SEdward Cree #define	FRF_CZ_RX_RSS_IPV6_TKEY_HI_WIDTH 64
11975a6681e2SEdward Cree 
11985a6681e2SEdward Cree /* TX_FLUSH_DESCQ_REG: Transmit flush descriptor queue register */
11995a6681e2SEdward Cree #define	FR_AZ_TX_FLUSH_DESCQ 0x00000a00
12005a6681e2SEdward Cree #define	FRF_AZ_TX_FLUSH_DESCQ_CMD_LBN 12
12015a6681e2SEdward Cree #define	FRF_AZ_TX_FLUSH_DESCQ_CMD_WIDTH 1
12025a6681e2SEdward Cree #define	FRF_AZ_TX_FLUSH_DESCQ_LBN 0
12035a6681e2SEdward Cree #define	FRF_AZ_TX_FLUSH_DESCQ_WIDTH 12
12045a6681e2SEdward Cree 
12055a6681e2SEdward Cree /* TX_DESC_UPD_REGP0: Transmit descriptor update register. */
12065a6681e2SEdward Cree #define	FR_BZ_TX_DESC_UPD_P0 0x00000a10
12075a6681e2SEdward Cree #define	FR_BZ_TX_DESC_UPD_P0_STEP 8192
12085a6681e2SEdward Cree #define	FR_BZ_TX_DESC_UPD_P0_ROWS 1024
12095a6681e2SEdward Cree /* TX_DESC_UPD_REG_KER: Transmit descriptor update register. */
12105a6681e2SEdward Cree #define	FR_AA_TX_DESC_UPD_KER 0x00000a10
12115a6681e2SEdward Cree #define	FR_AA_TX_DESC_UPD_KER_STEP 8192
12125a6681e2SEdward Cree #define	FR_AA_TX_DESC_UPD_KER_ROWS 8
12135a6681e2SEdward Cree /* TX_DESC_UPD_REGP123: Transmit descriptor update register. */
12145a6681e2SEdward Cree #define	FR_BB_TX_DESC_UPD_P123 0x01000a10
12155a6681e2SEdward Cree #define	FR_BB_TX_DESC_UPD_P123_STEP 8192
12165a6681e2SEdward Cree #define	FR_BB_TX_DESC_UPD_P123_ROWS 3072
12175a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_WPTR_LBN 96
12185a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_WPTR_WIDTH 12
12195a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_PUSH_CMD_LBN 95
12205a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_PUSH_CMD_WIDTH 1
12215a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_LBN 0
12225a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_WIDTH 95
12235a6681e2SEdward Cree 
12245a6681e2SEdward Cree /* TX_DC_CFG_REG: Transmit descriptor cache configuration register */
12255a6681e2SEdward Cree #define	FR_AZ_TX_DC_CFG 0x00000a20
12265a6681e2SEdward Cree #define	FRF_AZ_TX_DC_SIZE_LBN 0
12275a6681e2SEdward Cree #define	FRF_AZ_TX_DC_SIZE_WIDTH 2
12285a6681e2SEdward Cree #define	FFE_AZ_TX_DC_SIZE_32 2
12295a6681e2SEdward Cree #define	FFE_AZ_TX_DC_SIZE_16 1
12305a6681e2SEdward Cree #define	FFE_AZ_TX_DC_SIZE_8 0
12315a6681e2SEdward Cree 
12325a6681e2SEdward Cree /* TX_CHKSM_CFG_REG: Transmit checksum configuration register */
12335a6681e2SEdward Cree #define	FR_AA_TX_CHKSM_CFG 0x00000a30
12345a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_96_127_LBN 96
12355a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_96_127_WIDTH 32
12365a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_64_95_LBN 64
12375a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_64_95_WIDTH 32
12385a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_32_63_LBN 32
12395a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_32_63_WIDTH 32
12405a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_0_31_LBN 0
12415a6681e2SEdward Cree #define	FRF_AA_TX_Q_CHKSM_DIS_0_31_WIDTH 32
12425a6681e2SEdward Cree 
12435a6681e2SEdward Cree /* TX_CFG_REG: Transmit configuration register */
12445a6681e2SEdward Cree #define	FR_AZ_TX_CFG 0x00000a50
12455a6681e2SEdward Cree #define	FRF_CZ_TX_CONT_LOOKUP_THRESH_RANGE_LBN 114
12465a6681e2SEdward Cree #define	FRF_CZ_TX_CONT_LOOKUP_THRESH_RANGE_WIDTH 8
12475a6681e2SEdward Cree #define	FRF_CZ_TX_FILTER_TEST_MODE_BIT_LBN 113
12485a6681e2SEdward Cree #define	FRF_CZ_TX_FILTER_TEST_MODE_BIT_WIDTH 1
12495a6681e2SEdward Cree #define	FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE_LBN 105
12505a6681e2SEdward Cree #define	FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE_WIDTH 8
12515a6681e2SEdward Cree #define	FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE_LBN 97
12525a6681e2SEdward Cree #define	FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE_WIDTH 8
12535a6681e2SEdward Cree #define	FRF_CZ_TX_UDPIP_FILTER_WILD_SEARCH_RANGE_LBN 89
12545a6681e2SEdward Cree #define	FRF_CZ_TX_UDPIP_FILTER_WILD_SEARCH_RANGE_WIDTH 8
12555a6681e2SEdward Cree #define	FRF_CZ_TX_UDPIP_FILTER_FULL_SEARCH_RANGE_LBN 81
12565a6681e2SEdward Cree #define	FRF_CZ_TX_UDPIP_FILTER_FULL_SEARCH_RANGE_WIDTH 8
12575a6681e2SEdward Cree #define	FRF_CZ_TX_TCPIP_FILTER_WILD_SEARCH_RANGE_LBN 73
12585a6681e2SEdward Cree #define	FRF_CZ_TX_TCPIP_FILTER_WILD_SEARCH_RANGE_WIDTH 8
12595a6681e2SEdward Cree #define	FRF_CZ_TX_TCPIP_FILTER_FULL_SEARCH_RANGE_LBN 65
12605a6681e2SEdward Cree #define	FRF_CZ_TX_TCPIP_FILTER_FULL_SEARCH_RANGE_WIDTH 8
12615a6681e2SEdward Cree #define	FRF_CZ_TX_FILTER_ALL_VLAN_ETHERTYPES_BIT_LBN 64
12625a6681e2SEdward Cree #define	FRF_CZ_TX_FILTER_ALL_VLAN_ETHERTYPES_BIT_WIDTH 1
12635a6681e2SEdward Cree #define	FRF_CZ_TX_VLAN_MATCH_ETHERTYPE_RANGE_LBN 48
12645a6681e2SEdward Cree #define	FRF_CZ_TX_VLAN_MATCH_ETHERTYPE_RANGE_WIDTH 16
12655a6681e2SEdward Cree #define	FRF_CZ_TX_FILTER_EN_BIT_LBN 47
12665a6681e2SEdward Cree #define	FRF_CZ_TX_FILTER_EN_BIT_WIDTH 1
12675a6681e2SEdward Cree #define	FRF_AZ_TX_IP_ID_P0_OFS_LBN 16
12685a6681e2SEdward Cree #define	FRF_AZ_TX_IP_ID_P0_OFS_WIDTH 15
12695a6681e2SEdward Cree #define	FRF_AZ_TX_NO_EOP_DISC_EN_LBN 5
12705a6681e2SEdward Cree #define	FRF_AZ_TX_NO_EOP_DISC_EN_WIDTH 1
12715a6681e2SEdward Cree #define	FRF_AZ_TX_P1_PRI_EN_LBN 4
12725a6681e2SEdward Cree #define	FRF_AZ_TX_P1_PRI_EN_WIDTH 1
12735a6681e2SEdward Cree #define	FRF_AZ_TX_OWNERR_CTL_LBN 2
12745a6681e2SEdward Cree #define	FRF_AZ_TX_OWNERR_CTL_WIDTH 1
12755a6681e2SEdward Cree #define	FRF_AA_TX_NON_IP_DROP_DIS_LBN 1
12765a6681e2SEdward Cree #define	FRF_AA_TX_NON_IP_DROP_DIS_WIDTH 1
12775a6681e2SEdward Cree #define	FRF_AZ_TX_IP_ID_REP_EN_LBN 0
12785a6681e2SEdward Cree #define	FRF_AZ_TX_IP_ID_REP_EN_WIDTH 1
12795a6681e2SEdward Cree 
12805a6681e2SEdward Cree /* TX_PUSH_DROP_REG: Transmit push dropped register */
12815a6681e2SEdward Cree #define	FR_AZ_TX_PUSH_DROP 0x00000a60
12825a6681e2SEdward Cree #define	FRF_AZ_TX_PUSH_DROP_CNT_LBN 0
12835a6681e2SEdward Cree #define	FRF_AZ_TX_PUSH_DROP_CNT_WIDTH 32
12845a6681e2SEdward Cree 
12855a6681e2SEdward Cree /* TX_RESERVED_REG: Transmit configuration register */
12865a6681e2SEdward Cree #define	FR_AZ_TX_RESERVED 0x00000a80
12875a6681e2SEdward Cree #define	FRF_AZ_TX_EVT_CNT_LBN 121
12885a6681e2SEdward Cree #define	FRF_AZ_TX_EVT_CNT_WIDTH 7
12895a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_AGE_CNT_LBN 119
12905a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_AGE_CNT_WIDTH 2
12915a6681e2SEdward Cree #define	FRF_AZ_TX_RD_COMP_TMR_LBN 96
12925a6681e2SEdward Cree #define	FRF_AZ_TX_RD_COMP_TMR_WIDTH 23
12935a6681e2SEdward Cree #define	FRF_AZ_TX_PUSH_EN_LBN 89
12945a6681e2SEdward Cree #define	FRF_AZ_TX_PUSH_EN_WIDTH 1
12955a6681e2SEdward Cree #define	FRF_AZ_TX_PUSH_CHK_DIS_LBN 88
12965a6681e2SEdward Cree #define	FRF_AZ_TX_PUSH_CHK_DIS_WIDTH 1
12975a6681e2SEdward Cree #define	FRF_AZ_TX_D_FF_FULL_P0_LBN 85
12985a6681e2SEdward Cree #define	FRF_AZ_TX_D_FF_FULL_P0_WIDTH 1
12995a6681e2SEdward Cree #define	FRF_AZ_TX_DMAR_ST_P0_LBN 81
13005a6681e2SEdward Cree #define	FRF_AZ_TX_DMAR_ST_P0_WIDTH 1
13015a6681e2SEdward Cree #define	FRF_AZ_TX_DMAQ_ST_LBN 78
13025a6681e2SEdward Cree #define	FRF_AZ_TX_DMAQ_ST_WIDTH 1
13035a6681e2SEdward Cree #define	FRF_AZ_TX_RX_SPACER_LBN 64
13045a6681e2SEdward Cree #define	FRF_AZ_TX_RX_SPACER_WIDTH 8
13055a6681e2SEdward Cree #define	FRF_AZ_TX_DROP_ABORT_EN_LBN 60
13065a6681e2SEdward Cree #define	FRF_AZ_TX_DROP_ABORT_EN_WIDTH 1
13075a6681e2SEdward Cree #define	FRF_AZ_TX_SOFT_EVT_EN_LBN 59
13085a6681e2SEdward Cree #define	FRF_AZ_TX_SOFT_EVT_EN_WIDTH 1
13095a6681e2SEdward Cree #define	FRF_AZ_TX_PS_EVT_DIS_LBN 58
13105a6681e2SEdward Cree #define	FRF_AZ_TX_PS_EVT_DIS_WIDTH 1
13115a6681e2SEdward Cree #define	FRF_AZ_TX_RX_SPACER_EN_LBN 57
13125a6681e2SEdward Cree #define	FRF_AZ_TX_RX_SPACER_EN_WIDTH 1
13135a6681e2SEdward Cree #define	FRF_AZ_TX_XP_TIMER_LBN 52
13145a6681e2SEdward Cree #define	FRF_AZ_TX_XP_TIMER_WIDTH 5
13155a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_SPACER_LBN 44
13165a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_SPACER_WIDTH 8
13175a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_WD_TMR_LBN 22
13185a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_WD_TMR_WIDTH 22
13195a6681e2SEdward Cree #define	FRF_AZ_TX_ONLY1TAG_LBN 21
13205a6681e2SEdward Cree #define	FRF_AZ_TX_ONLY1TAG_WIDTH 1
13215a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_THRESHOLD_LBN 19
13225a6681e2SEdward Cree #define	FRF_AZ_TX_PREF_THRESHOLD_WIDTH 2
13235a6681e2SEdward Cree #define	FRF_AZ_TX_ONE_PKT_PER_Q_LBN 18
13245a6681e2SEdward Cree #define	FRF_AZ_TX_ONE_PKT_PER_Q_WIDTH 1
13255a6681e2SEdward Cree #define	FRF_AZ_TX_DIS_NON_IP_EV_LBN 17
13265a6681e2SEdward Cree #define	FRF_AZ_TX_DIS_NON_IP_EV_WIDTH 1
13275a6681e2SEdward Cree #define	FRF_AA_TX_DMA_FF_THR_LBN 16
13285a6681e2SEdward Cree #define	FRF_AA_TX_DMA_FF_THR_WIDTH 1
13295a6681e2SEdward Cree #define	FRF_AZ_TX_DMA_SPACER_LBN 8
13305a6681e2SEdward Cree #define	FRF_AZ_TX_DMA_SPACER_WIDTH 8
13315a6681e2SEdward Cree #define	FRF_AA_TX_TCP_DIS_LBN 7
13325a6681e2SEdward Cree #define	FRF_AA_TX_TCP_DIS_WIDTH 1
13335a6681e2SEdward Cree #define	FRF_BZ_TX_FLUSH_MIN_LEN_EN_LBN 7
13345a6681e2SEdward Cree #define	FRF_BZ_TX_FLUSH_MIN_LEN_EN_WIDTH 1
13355a6681e2SEdward Cree #define	FRF_AA_TX_IP_DIS_LBN 6
13365a6681e2SEdward Cree #define	FRF_AA_TX_IP_DIS_WIDTH 1
13375a6681e2SEdward Cree #define	FRF_AZ_TX_MAX_CPL_LBN 2
13385a6681e2SEdward Cree #define	FRF_AZ_TX_MAX_CPL_WIDTH 2
13395a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_CPL_16 3
13405a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_CPL_8 2
13415a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_CPL_4 1
13425a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_CPL_NOLIMIT 0
13435a6681e2SEdward Cree #define	FRF_AZ_TX_MAX_PREF_LBN 0
13445a6681e2SEdward Cree #define	FRF_AZ_TX_MAX_PREF_WIDTH 2
13455a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_PREF_32 3
13465a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_PREF_16 2
13475a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_PREF_8 1
13485a6681e2SEdward Cree #define	FFE_AZ_TX_MAX_PREF_OFF 0
13495a6681e2SEdward Cree 
13505a6681e2SEdward Cree /* TX_PACE_REG: Transmit pace control register */
13515a6681e2SEdward Cree #define	FR_BZ_TX_PACE 0x00000a90
13525a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_SB_NOT_AF_LBN 19
13535a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_SB_NOT_AF_WIDTH 10
13545a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_SB_AF_LBN 9
13555a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_SB_AF_WIDTH 10
13565a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_FB_BASE_LBN 5
13575a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_FB_BASE_WIDTH 4
13585a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_BIN_TH_LBN 0
13595a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_BIN_TH_WIDTH 5
13605a6681e2SEdward Cree 
13615a6681e2SEdward Cree /* TX_PACE_DROP_QID_REG: PACE Drop QID Counter */
13625a6681e2SEdward Cree #define	FR_BZ_TX_PACE_DROP_QID 0x00000aa0
13635a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_QID_DRP_CNT_LBN 0
13645a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_QID_DRP_CNT_WIDTH 16
13655a6681e2SEdward Cree 
13665a6681e2SEdward Cree /* TX_VLAN_REG: Transmit VLAN tag register */
13675a6681e2SEdward Cree #define	FR_BB_TX_VLAN 0x00000ae0
13685a6681e2SEdward Cree #define	FRF_BB_TX_VLAN_EN_LBN 127
13695a6681e2SEdward Cree #define	FRF_BB_TX_VLAN_EN_WIDTH 1
13705a6681e2SEdward Cree #define	FRF_BB_TX_VLAN7_PORT1_EN_LBN 125
13715a6681e2SEdward Cree #define	FRF_BB_TX_VLAN7_PORT1_EN_WIDTH 1
13725a6681e2SEdward Cree #define	FRF_BB_TX_VLAN7_PORT0_EN_LBN 124
13735a6681e2SEdward Cree #define	FRF_BB_TX_VLAN7_PORT0_EN_WIDTH 1
13745a6681e2SEdward Cree #define	FRF_BB_TX_VLAN7_LBN 112
13755a6681e2SEdward Cree #define	FRF_BB_TX_VLAN7_WIDTH 12
13765a6681e2SEdward Cree #define	FRF_BB_TX_VLAN6_PORT1_EN_LBN 109
13775a6681e2SEdward Cree #define	FRF_BB_TX_VLAN6_PORT1_EN_WIDTH 1
13785a6681e2SEdward Cree #define	FRF_BB_TX_VLAN6_PORT0_EN_LBN 108
13795a6681e2SEdward Cree #define	FRF_BB_TX_VLAN6_PORT0_EN_WIDTH 1
13805a6681e2SEdward Cree #define	FRF_BB_TX_VLAN6_LBN 96
13815a6681e2SEdward Cree #define	FRF_BB_TX_VLAN6_WIDTH 12
13825a6681e2SEdward Cree #define	FRF_BB_TX_VLAN5_PORT1_EN_LBN 93
13835a6681e2SEdward Cree #define	FRF_BB_TX_VLAN5_PORT1_EN_WIDTH 1
13845a6681e2SEdward Cree #define	FRF_BB_TX_VLAN5_PORT0_EN_LBN 92
13855a6681e2SEdward Cree #define	FRF_BB_TX_VLAN5_PORT0_EN_WIDTH 1
13865a6681e2SEdward Cree #define	FRF_BB_TX_VLAN5_LBN 80
13875a6681e2SEdward Cree #define	FRF_BB_TX_VLAN5_WIDTH 12
13885a6681e2SEdward Cree #define	FRF_BB_TX_VLAN4_PORT1_EN_LBN 77
13895a6681e2SEdward Cree #define	FRF_BB_TX_VLAN4_PORT1_EN_WIDTH 1
13905a6681e2SEdward Cree #define	FRF_BB_TX_VLAN4_PORT0_EN_LBN 76
13915a6681e2SEdward Cree #define	FRF_BB_TX_VLAN4_PORT0_EN_WIDTH 1
13925a6681e2SEdward Cree #define	FRF_BB_TX_VLAN4_LBN 64
13935a6681e2SEdward Cree #define	FRF_BB_TX_VLAN4_WIDTH 12
13945a6681e2SEdward Cree #define	FRF_BB_TX_VLAN3_PORT1_EN_LBN 61
13955a6681e2SEdward Cree #define	FRF_BB_TX_VLAN3_PORT1_EN_WIDTH 1
13965a6681e2SEdward Cree #define	FRF_BB_TX_VLAN3_PORT0_EN_LBN 60
13975a6681e2SEdward Cree #define	FRF_BB_TX_VLAN3_PORT0_EN_WIDTH 1
13985a6681e2SEdward Cree #define	FRF_BB_TX_VLAN3_LBN 48
13995a6681e2SEdward Cree #define	FRF_BB_TX_VLAN3_WIDTH 12
14005a6681e2SEdward Cree #define	FRF_BB_TX_VLAN2_PORT1_EN_LBN 45
14015a6681e2SEdward Cree #define	FRF_BB_TX_VLAN2_PORT1_EN_WIDTH 1
14025a6681e2SEdward Cree #define	FRF_BB_TX_VLAN2_PORT0_EN_LBN 44
14035a6681e2SEdward Cree #define	FRF_BB_TX_VLAN2_PORT0_EN_WIDTH 1
14045a6681e2SEdward Cree #define	FRF_BB_TX_VLAN2_LBN 32
14055a6681e2SEdward Cree #define	FRF_BB_TX_VLAN2_WIDTH 12
14065a6681e2SEdward Cree #define	FRF_BB_TX_VLAN1_PORT1_EN_LBN 29
14075a6681e2SEdward Cree #define	FRF_BB_TX_VLAN1_PORT1_EN_WIDTH 1
14085a6681e2SEdward Cree #define	FRF_BB_TX_VLAN1_PORT0_EN_LBN 28
14095a6681e2SEdward Cree #define	FRF_BB_TX_VLAN1_PORT0_EN_WIDTH 1
14105a6681e2SEdward Cree #define	FRF_BB_TX_VLAN1_LBN 16
14115a6681e2SEdward Cree #define	FRF_BB_TX_VLAN1_WIDTH 12
14125a6681e2SEdward Cree #define	FRF_BB_TX_VLAN0_PORT1_EN_LBN 13
14135a6681e2SEdward Cree #define	FRF_BB_TX_VLAN0_PORT1_EN_WIDTH 1
14145a6681e2SEdward Cree #define	FRF_BB_TX_VLAN0_PORT0_EN_LBN 12
14155a6681e2SEdward Cree #define	FRF_BB_TX_VLAN0_PORT0_EN_WIDTH 1
14165a6681e2SEdward Cree #define	FRF_BB_TX_VLAN0_LBN 0
14175a6681e2SEdward Cree #define	FRF_BB_TX_VLAN0_WIDTH 12
14185a6681e2SEdward Cree 
14195a6681e2SEdward Cree /* TX_IPFIL_PORTEN_REG: Transmit filter control register */
14205a6681e2SEdward Cree #define	FR_BZ_TX_IPFIL_PORTEN 0x00000af0
14215a6681e2SEdward Cree #define	FRF_BZ_TX_MADR0_FIL_EN_LBN 64
14225a6681e2SEdward Cree #define	FRF_BZ_TX_MADR0_FIL_EN_WIDTH 1
14235a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL31_PORT_EN_LBN 62
14245a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL31_PORT_EN_WIDTH 1
14255a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL30_PORT_EN_LBN 60
14265a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL30_PORT_EN_WIDTH 1
14275a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL29_PORT_EN_LBN 58
14285a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL29_PORT_EN_WIDTH 1
14295a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL28_PORT_EN_LBN 56
14305a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL28_PORT_EN_WIDTH 1
14315a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL27_PORT_EN_LBN 54
14325a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL27_PORT_EN_WIDTH 1
14335a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL26_PORT_EN_LBN 52
14345a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL26_PORT_EN_WIDTH 1
14355a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL25_PORT_EN_LBN 50
14365a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL25_PORT_EN_WIDTH 1
14375a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL24_PORT_EN_LBN 48
14385a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL24_PORT_EN_WIDTH 1
14395a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL23_PORT_EN_LBN 46
14405a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL23_PORT_EN_WIDTH 1
14415a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL22_PORT_EN_LBN 44
14425a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL22_PORT_EN_WIDTH 1
14435a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL21_PORT_EN_LBN 42
14445a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL21_PORT_EN_WIDTH 1
14455a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL20_PORT_EN_LBN 40
14465a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL20_PORT_EN_WIDTH 1
14475a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL19_PORT_EN_LBN 38
14485a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL19_PORT_EN_WIDTH 1
14495a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL18_PORT_EN_LBN 36
14505a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL18_PORT_EN_WIDTH 1
14515a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL17_PORT_EN_LBN 34
14525a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL17_PORT_EN_WIDTH 1
14535a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL16_PORT_EN_LBN 32
14545a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL16_PORT_EN_WIDTH 1
14555a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL15_PORT_EN_LBN 30
14565a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL15_PORT_EN_WIDTH 1
14575a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL14_PORT_EN_LBN 28
14585a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL14_PORT_EN_WIDTH 1
14595a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL13_PORT_EN_LBN 26
14605a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL13_PORT_EN_WIDTH 1
14615a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL12_PORT_EN_LBN 24
14625a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL12_PORT_EN_WIDTH 1
14635a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL11_PORT_EN_LBN 22
14645a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL11_PORT_EN_WIDTH 1
14655a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL10_PORT_EN_LBN 20
14665a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL10_PORT_EN_WIDTH 1
14675a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL9_PORT_EN_LBN 18
14685a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL9_PORT_EN_WIDTH 1
14695a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL8_PORT_EN_LBN 16
14705a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL8_PORT_EN_WIDTH 1
14715a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL7_PORT_EN_LBN 14
14725a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL7_PORT_EN_WIDTH 1
14735a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL6_PORT_EN_LBN 12
14745a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL6_PORT_EN_WIDTH 1
14755a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL5_PORT_EN_LBN 10
14765a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL5_PORT_EN_WIDTH 1
14775a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL4_PORT_EN_LBN 8
14785a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL4_PORT_EN_WIDTH 1
14795a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL3_PORT_EN_LBN 6
14805a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL3_PORT_EN_WIDTH 1
14815a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL2_PORT_EN_LBN 4
14825a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL2_PORT_EN_WIDTH 1
14835a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL1_PORT_EN_LBN 2
14845a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL1_PORT_EN_WIDTH 1
14855a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL0_PORT_EN_LBN 0
14865a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL0_PORT_EN_WIDTH 1
14875a6681e2SEdward Cree 
14885a6681e2SEdward Cree /* TX_IPFIL_TBL: Transmit IP source address filter table */
14895a6681e2SEdward Cree #define	FR_BB_TX_IPFIL_TBL 0x00000b00
14905a6681e2SEdward Cree #define	FR_BB_TX_IPFIL_TBL_STEP 16
14915a6681e2SEdward Cree #define	FR_BB_TX_IPFIL_TBL_ROWS 16
14925a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL_MASK_1_LBN 96
14935a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL_MASK_1_WIDTH 32
14945a6681e2SEdward Cree #define	FRF_BB_TX_IP_SRC_ADR_1_LBN 64
14955a6681e2SEdward Cree #define	FRF_BB_TX_IP_SRC_ADR_1_WIDTH 32
14965a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL_MASK_0_LBN 32
14975a6681e2SEdward Cree #define	FRF_BB_TX_IPFIL_MASK_0_WIDTH 32
14985a6681e2SEdward Cree #define	FRF_BB_TX_IP_SRC_ADR_0_LBN 0
14995a6681e2SEdward Cree #define	FRF_BB_TX_IP_SRC_ADR_0_WIDTH 32
15005a6681e2SEdward Cree 
15015a6681e2SEdward Cree /* MD_TXD_REG: PHY management transmit data register */
15025a6681e2SEdward Cree #define	FR_AB_MD_TXD 0x00000c00
15035a6681e2SEdward Cree #define	FRF_AB_MD_TXD_LBN 0
15045a6681e2SEdward Cree #define	FRF_AB_MD_TXD_WIDTH 16
15055a6681e2SEdward Cree 
15065a6681e2SEdward Cree /* MD_RXD_REG: PHY management receive data register */
15075a6681e2SEdward Cree #define	FR_AB_MD_RXD 0x00000c10
15085a6681e2SEdward Cree #define	FRF_AB_MD_RXD_LBN 0
15095a6681e2SEdward Cree #define	FRF_AB_MD_RXD_WIDTH 16
15105a6681e2SEdward Cree 
15115a6681e2SEdward Cree /* MD_CS_REG: PHY management configuration & status register */
15125a6681e2SEdward Cree #define	FR_AB_MD_CS 0x00000c20
15135a6681e2SEdward Cree #define	FRF_AB_MD_RD_EN_CMD_LBN 15
15145a6681e2SEdward Cree #define	FRF_AB_MD_RD_EN_CMD_WIDTH 1
15155a6681e2SEdward Cree #define	FRF_AB_MD_WR_EN_CMD_LBN 14
15165a6681e2SEdward Cree #define	FRF_AB_MD_WR_EN_CMD_WIDTH 1
15175a6681e2SEdward Cree #define	FRF_AB_MD_ADDR_CMD_LBN 13
15185a6681e2SEdward Cree #define	FRF_AB_MD_ADDR_CMD_WIDTH 1
15195a6681e2SEdward Cree #define	FRF_AB_MD_PT_LBN 7
15205a6681e2SEdward Cree #define	FRF_AB_MD_PT_WIDTH 3
15215a6681e2SEdward Cree #define	FRF_AB_MD_PL_LBN 6
15225a6681e2SEdward Cree #define	FRF_AB_MD_PL_WIDTH 1
15235a6681e2SEdward Cree #define	FRF_AB_MD_INT_CLR_LBN 5
15245a6681e2SEdward Cree #define	FRF_AB_MD_INT_CLR_WIDTH 1
15255a6681e2SEdward Cree #define	FRF_AB_MD_GC_LBN 4
15265a6681e2SEdward Cree #define	FRF_AB_MD_GC_WIDTH 1
15275a6681e2SEdward Cree #define	FRF_AB_MD_PRSP_LBN 3
15285a6681e2SEdward Cree #define	FRF_AB_MD_PRSP_WIDTH 1
15295a6681e2SEdward Cree #define	FRF_AB_MD_RIC_LBN 2
15305a6681e2SEdward Cree #define	FRF_AB_MD_RIC_WIDTH 1
15315a6681e2SEdward Cree #define	FRF_AB_MD_RDC_LBN 1
15325a6681e2SEdward Cree #define	FRF_AB_MD_RDC_WIDTH 1
15335a6681e2SEdward Cree #define	FRF_AB_MD_WRC_LBN 0
15345a6681e2SEdward Cree #define	FRF_AB_MD_WRC_WIDTH 1
15355a6681e2SEdward Cree 
15365a6681e2SEdward Cree /* MD_PHY_ADR_REG: PHY management PHY address register */
15375a6681e2SEdward Cree #define	FR_AB_MD_PHY_ADR 0x00000c30
15385a6681e2SEdward Cree #define	FRF_AB_MD_PHY_ADR_LBN 0
15395a6681e2SEdward Cree #define	FRF_AB_MD_PHY_ADR_WIDTH 16
15405a6681e2SEdward Cree 
15415a6681e2SEdward Cree /* MD_ID_REG: PHY management ID register */
15425a6681e2SEdward Cree #define	FR_AB_MD_ID 0x00000c40
15435a6681e2SEdward Cree #define	FRF_AB_MD_PRT_ADR_LBN 11
15445a6681e2SEdward Cree #define	FRF_AB_MD_PRT_ADR_WIDTH 5
15455a6681e2SEdward Cree #define	FRF_AB_MD_DEV_ADR_LBN 6
15465a6681e2SEdward Cree #define	FRF_AB_MD_DEV_ADR_WIDTH 5
15475a6681e2SEdward Cree 
15485a6681e2SEdward Cree /* MD_STAT_REG: PHY management status & mask register */
15495a6681e2SEdward Cree #define	FR_AB_MD_STAT 0x00000c50
15505a6681e2SEdward Cree #define	FRF_AB_MD_PINT_LBN 4
15515a6681e2SEdward Cree #define	FRF_AB_MD_PINT_WIDTH 1
15525a6681e2SEdward Cree #define	FRF_AB_MD_DONE_LBN 3
15535a6681e2SEdward Cree #define	FRF_AB_MD_DONE_WIDTH 1
15545a6681e2SEdward Cree #define	FRF_AB_MD_BSERR_LBN 2
15555a6681e2SEdward Cree #define	FRF_AB_MD_BSERR_WIDTH 1
15565a6681e2SEdward Cree #define	FRF_AB_MD_LNFL_LBN 1
15575a6681e2SEdward Cree #define	FRF_AB_MD_LNFL_WIDTH 1
15585a6681e2SEdward Cree #define	FRF_AB_MD_BSY_LBN 0
15595a6681e2SEdward Cree #define	FRF_AB_MD_BSY_WIDTH 1
15605a6681e2SEdward Cree 
15615a6681e2SEdward Cree /* MAC_STAT_DMA_REG: Port MAC statistical counter DMA register */
15625a6681e2SEdward Cree #define	FR_AB_MAC_STAT_DMA 0x00000c60
15635a6681e2SEdward Cree #define	FRF_AB_MAC_STAT_DMA_CMD_LBN 48
15645a6681e2SEdward Cree #define	FRF_AB_MAC_STAT_DMA_CMD_WIDTH 1
15655a6681e2SEdward Cree #define	FRF_AB_MAC_STAT_DMA_ADR_LBN 0
15665a6681e2SEdward Cree #define	FRF_AB_MAC_STAT_DMA_ADR_WIDTH 48
15675a6681e2SEdward Cree 
15685a6681e2SEdward Cree /* MAC_CTRL_REG: Port MAC control register */
15695a6681e2SEdward Cree #define	FR_AB_MAC_CTRL 0x00000c80
15705a6681e2SEdward Cree #define	FRF_AB_MAC_XOFF_VAL_LBN 16
15715a6681e2SEdward Cree #define	FRF_AB_MAC_XOFF_VAL_WIDTH 16
15725a6681e2SEdward Cree #define	FRF_BB_TXFIFO_DRAIN_EN_LBN 7
15735a6681e2SEdward Cree #define	FRF_BB_TXFIFO_DRAIN_EN_WIDTH 1
15745a6681e2SEdward Cree #define	FRF_AB_MAC_XG_DISTXCRC_LBN 5
15755a6681e2SEdward Cree #define	FRF_AB_MAC_XG_DISTXCRC_WIDTH 1
15765a6681e2SEdward Cree #define	FRF_AB_MAC_BCAD_ACPT_LBN 4
15775a6681e2SEdward Cree #define	FRF_AB_MAC_BCAD_ACPT_WIDTH 1
15785a6681e2SEdward Cree #define	FRF_AB_MAC_UC_PROM_LBN 3
15795a6681e2SEdward Cree #define	FRF_AB_MAC_UC_PROM_WIDTH 1
15805a6681e2SEdward Cree #define	FRF_AB_MAC_LINK_STATUS_LBN 2
15815a6681e2SEdward Cree #define	FRF_AB_MAC_LINK_STATUS_WIDTH 1
15825a6681e2SEdward Cree #define	FRF_AB_MAC_SPEED_LBN 0
15835a6681e2SEdward Cree #define	FRF_AB_MAC_SPEED_WIDTH 2
15845a6681e2SEdward Cree #define	FFE_AB_MAC_SPEED_10G 3
15855a6681e2SEdward Cree #define	FFE_AB_MAC_SPEED_1G 2
15865a6681e2SEdward Cree #define	FFE_AB_MAC_SPEED_100M 1
15875a6681e2SEdward Cree #define	FFE_AB_MAC_SPEED_10M 0
15885a6681e2SEdward Cree 
15895a6681e2SEdward Cree /* GEN_MODE_REG: General Purpose mode register (external interrupt mask) */
15905a6681e2SEdward Cree #define	FR_BB_GEN_MODE 0x00000c90
15915a6681e2SEdward Cree #define	FRF_BB_XFP_PHY_INT_POL_SEL_LBN 3
15925a6681e2SEdward Cree #define	FRF_BB_XFP_PHY_INT_POL_SEL_WIDTH 1
15935a6681e2SEdward Cree #define	FRF_BB_XG_PHY_INT_POL_SEL_LBN 2
15945a6681e2SEdward Cree #define	FRF_BB_XG_PHY_INT_POL_SEL_WIDTH 1
15955a6681e2SEdward Cree #define	FRF_BB_XFP_PHY_INT_MASK_LBN 1
15965a6681e2SEdward Cree #define	FRF_BB_XFP_PHY_INT_MASK_WIDTH 1
15975a6681e2SEdward Cree #define	FRF_BB_XG_PHY_INT_MASK_LBN 0
15985a6681e2SEdward Cree #define	FRF_BB_XG_PHY_INT_MASK_WIDTH 1
15995a6681e2SEdward Cree 
16005a6681e2SEdward Cree /* MAC_MC_HASH_REG0: Multicast address hash table */
16015a6681e2SEdward Cree #define	FR_AB_MAC_MC_HASH_REG0 0x00000ca0
16025a6681e2SEdward Cree #define	FRF_AB_MAC_MCAST_HASH0_LBN 0
16035a6681e2SEdward Cree #define	FRF_AB_MAC_MCAST_HASH0_WIDTH 128
16045a6681e2SEdward Cree 
16055a6681e2SEdward Cree /* MAC_MC_HASH_REG1: Multicast address hash table */
16065a6681e2SEdward Cree #define	FR_AB_MAC_MC_HASH_REG1 0x00000cb0
16075a6681e2SEdward Cree #define	FRF_AB_MAC_MCAST_HASH1_LBN 0
16085a6681e2SEdward Cree #define	FRF_AB_MAC_MCAST_HASH1_WIDTH 128
16095a6681e2SEdward Cree 
16105a6681e2SEdward Cree /* GM_CFG1_REG: GMAC configuration register 1 */
16115a6681e2SEdward Cree #define	FR_AB_GM_CFG1 0x00000e00
16125a6681e2SEdward Cree #define	FRF_AB_GM_SW_RST_LBN 31
16135a6681e2SEdward Cree #define	FRF_AB_GM_SW_RST_WIDTH 1
16145a6681e2SEdward Cree #define	FRF_AB_GM_SIM_RST_LBN 30
16155a6681e2SEdward Cree #define	FRF_AB_GM_SIM_RST_WIDTH 1
16165a6681e2SEdward Cree #define	FRF_AB_GM_RST_RX_MAC_CTL_LBN 19
16175a6681e2SEdward Cree #define	FRF_AB_GM_RST_RX_MAC_CTL_WIDTH 1
16185a6681e2SEdward Cree #define	FRF_AB_GM_RST_TX_MAC_CTL_LBN 18
16195a6681e2SEdward Cree #define	FRF_AB_GM_RST_TX_MAC_CTL_WIDTH 1
16205a6681e2SEdward Cree #define	FRF_AB_GM_RST_RX_FUNC_LBN 17
16215a6681e2SEdward Cree #define	FRF_AB_GM_RST_RX_FUNC_WIDTH 1
16225a6681e2SEdward Cree #define	FRF_AB_GM_RST_TX_FUNC_LBN 16
16235a6681e2SEdward Cree #define	FRF_AB_GM_RST_TX_FUNC_WIDTH 1
16245a6681e2SEdward Cree #define	FRF_AB_GM_LOOP_LBN 8
16255a6681e2SEdward Cree #define	FRF_AB_GM_LOOP_WIDTH 1
16265a6681e2SEdward Cree #define	FRF_AB_GM_RX_FC_EN_LBN 5
16275a6681e2SEdward Cree #define	FRF_AB_GM_RX_FC_EN_WIDTH 1
16285a6681e2SEdward Cree #define	FRF_AB_GM_TX_FC_EN_LBN 4
16295a6681e2SEdward Cree #define	FRF_AB_GM_TX_FC_EN_WIDTH 1
16305a6681e2SEdward Cree #define	FRF_AB_GM_SYNC_RXEN_LBN 3
16315a6681e2SEdward Cree #define	FRF_AB_GM_SYNC_RXEN_WIDTH 1
16325a6681e2SEdward Cree #define	FRF_AB_GM_RX_EN_LBN 2
16335a6681e2SEdward Cree #define	FRF_AB_GM_RX_EN_WIDTH 1
16345a6681e2SEdward Cree #define	FRF_AB_GM_SYNC_TXEN_LBN 1
16355a6681e2SEdward Cree #define	FRF_AB_GM_SYNC_TXEN_WIDTH 1
16365a6681e2SEdward Cree #define	FRF_AB_GM_TX_EN_LBN 0
16375a6681e2SEdward Cree #define	FRF_AB_GM_TX_EN_WIDTH 1
16385a6681e2SEdward Cree 
16395a6681e2SEdward Cree /* GM_CFG2_REG: GMAC configuration register 2 */
16405a6681e2SEdward Cree #define	FR_AB_GM_CFG2 0x00000e10
16415a6681e2SEdward Cree #define	FRF_AB_GM_PAMBL_LEN_LBN 12
16425a6681e2SEdward Cree #define	FRF_AB_GM_PAMBL_LEN_WIDTH 4
16435a6681e2SEdward Cree #define	FRF_AB_GM_IF_MODE_LBN 8
16445a6681e2SEdward Cree #define	FRF_AB_GM_IF_MODE_WIDTH 2
16455a6681e2SEdward Cree #define	FFE_AB_IF_MODE_BYTE_MODE 2
16465a6681e2SEdward Cree #define	FFE_AB_IF_MODE_NIBBLE_MODE 1
16475a6681e2SEdward Cree #define	FRF_AB_GM_HUGE_FRM_EN_LBN 5
16485a6681e2SEdward Cree #define	FRF_AB_GM_HUGE_FRM_EN_WIDTH 1
16495a6681e2SEdward Cree #define	FRF_AB_GM_LEN_CHK_LBN 4
16505a6681e2SEdward Cree #define	FRF_AB_GM_LEN_CHK_WIDTH 1
16515a6681e2SEdward Cree #define	FRF_AB_GM_PAD_CRC_EN_LBN 2
16525a6681e2SEdward Cree #define	FRF_AB_GM_PAD_CRC_EN_WIDTH 1
16535a6681e2SEdward Cree #define	FRF_AB_GM_CRC_EN_LBN 1
16545a6681e2SEdward Cree #define	FRF_AB_GM_CRC_EN_WIDTH 1
16555a6681e2SEdward Cree #define	FRF_AB_GM_FD_LBN 0
16565a6681e2SEdward Cree #define	FRF_AB_GM_FD_WIDTH 1
16575a6681e2SEdward Cree 
16585a6681e2SEdward Cree /* GM_IPG_REG: GMAC IPG register */
16595a6681e2SEdward Cree #define	FR_AB_GM_IPG 0x00000e20
16605a6681e2SEdward Cree #define	FRF_AB_GM_NONB2B_IPG1_LBN 24
16615a6681e2SEdward Cree #define	FRF_AB_GM_NONB2B_IPG1_WIDTH 7
16625a6681e2SEdward Cree #define	FRF_AB_GM_NONB2B_IPG2_LBN 16
16635a6681e2SEdward Cree #define	FRF_AB_GM_NONB2B_IPG2_WIDTH 7
16645a6681e2SEdward Cree #define	FRF_AB_GM_MIN_IPG_ENF_LBN 8
16655a6681e2SEdward Cree #define	FRF_AB_GM_MIN_IPG_ENF_WIDTH 8
16665a6681e2SEdward Cree #define	FRF_AB_GM_B2B_IPG_LBN 0
16675a6681e2SEdward Cree #define	FRF_AB_GM_B2B_IPG_WIDTH 7
16685a6681e2SEdward Cree 
16695a6681e2SEdward Cree /* GM_HD_REG: GMAC half duplex register */
16705a6681e2SEdward Cree #define	FR_AB_GM_HD 0x00000e30
16715a6681e2SEdward Cree #define	FRF_AB_GM_ALT_BOFF_VAL_LBN 20
16725a6681e2SEdward Cree #define	FRF_AB_GM_ALT_BOFF_VAL_WIDTH 4
16735a6681e2SEdward Cree #define	FRF_AB_GM_ALT_BOFF_EN_LBN 19
16745a6681e2SEdward Cree #define	FRF_AB_GM_ALT_BOFF_EN_WIDTH 1
16755a6681e2SEdward Cree #define	FRF_AB_GM_BP_NO_BOFF_LBN 18
16765a6681e2SEdward Cree #define	FRF_AB_GM_BP_NO_BOFF_WIDTH 1
16775a6681e2SEdward Cree #define	FRF_AB_GM_DIS_BOFF_LBN 17
16785a6681e2SEdward Cree #define	FRF_AB_GM_DIS_BOFF_WIDTH 1
16795a6681e2SEdward Cree #define	FRF_AB_GM_EXDEF_TX_EN_LBN 16
16805a6681e2SEdward Cree #define	FRF_AB_GM_EXDEF_TX_EN_WIDTH 1
16815a6681e2SEdward Cree #define	FRF_AB_GM_RTRY_LIMIT_LBN 12
16825a6681e2SEdward Cree #define	FRF_AB_GM_RTRY_LIMIT_WIDTH 4
16835a6681e2SEdward Cree #define	FRF_AB_GM_COL_WIN_LBN 0
16845a6681e2SEdward Cree #define	FRF_AB_GM_COL_WIN_WIDTH 10
16855a6681e2SEdward Cree 
16865a6681e2SEdward Cree /* GM_MAX_FLEN_REG: GMAC maximum frame length register */
16875a6681e2SEdward Cree #define	FR_AB_GM_MAX_FLEN 0x00000e40
16885a6681e2SEdward Cree #define	FRF_AB_GM_MAX_FLEN_LBN 0
16895a6681e2SEdward Cree #define	FRF_AB_GM_MAX_FLEN_WIDTH 16
16905a6681e2SEdward Cree 
16915a6681e2SEdward Cree /* GM_TEST_REG: GMAC test register */
16925a6681e2SEdward Cree #define	FR_AB_GM_TEST 0x00000e70
16935a6681e2SEdward Cree #define	FRF_AB_GM_MAX_BOFF_LBN 3
16945a6681e2SEdward Cree #define	FRF_AB_GM_MAX_BOFF_WIDTH 1
16955a6681e2SEdward Cree #define	FRF_AB_GM_REG_TX_FLOW_EN_LBN 2
16965a6681e2SEdward Cree #define	FRF_AB_GM_REG_TX_FLOW_EN_WIDTH 1
16975a6681e2SEdward Cree #define	FRF_AB_GM_TEST_PAUSE_LBN 1
16985a6681e2SEdward Cree #define	FRF_AB_GM_TEST_PAUSE_WIDTH 1
16995a6681e2SEdward Cree #define	FRF_AB_GM_SHORT_SLOT_LBN 0
17005a6681e2SEdward Cree #define	FRF_AB_GM_SHORT_SLOT_WIDTH 1
17015a6681e2SEdward Cree 
17025a6681e2SEdward Cree /* GM_ADR1_REG: GMAC station address register 1 */
17035a6681e2SEdward Cree #define	FR_AB_GM_ADR1 0x00000f00
17045a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B0_LBN 24
17055a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B0_WIDTH 8
17065a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B1_LBN 16
17075a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B1_WIDTH 8
17085a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B2_LBN 8
17095a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B2_WIDTH 8
17105a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B3_LBN 0
17115a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B3_WIDTH 8
17125a6681e2SEdward Cree 
17135a6681e2SEdward Cree /* GM_ADR2_REG: GMAC station address register 2 */
17145a6681e2SEdward Cree #define	FR_AB_GM_ADR2 0x00000f10
17155a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B4_LBN 24
17165a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B4_WIDTH 8
17175a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B5_LBN 16
17185a6681e2SEdward Cree #define	FRF_AB_GM_ADR_B5_WIDTH 8
17195a6681e2SEdward Cree 
17205a6681e2SEdward Cree /* GMF_CFG0_REG: GMAC FIFO configuration register 0 */
17215a6681e2SEdward Cree #define	FR_AB_GMF_CFG0 0x00000f20
17225a6681e2SEdward Cree #define	FRF_AB_GMF_FTFENRPLY_LBN 20
17235a6681e2SEdward Cree #define	FRF_AB_GMF_FTFENRPLY_WIDTH 1
17245a6681e2SEdward Cree #define	FRF_AB_GMF_STFENRPLY_LBN 19
17255a6681e2SEdward Cree #define	FRF_AB_GMF_STFENRPLY_WIDTH 1
17265a6681e2SEdward Cree #define	FRF_AB_GMF_FRFENRPLY_LBN 18
17275a6681e2SEdward Cree #define	FRF_AB_GMF_FRFENRPLY_WIDTH 1
17285a6681e2SEdward Cree #define	FRF_AB_GMF_SRFENRPLY_LBN 17
17295a6681e2SEdward Cree #define	FRF_AB_GMF_SRFENRPLY_WIDTH 1
17305a6681e2SEdward Cree #define	FRF_AB_GMF_WTMENRPLY_LBN 16
17315a6681e2SEdward Cree #define	FRF_AB_GMF_WTMENRPLY_WIDTH 1
17325a6681e2SEdward Cree #define	FRF_AB_GMF_FTFENREQ_LBN 12
17335a6681e2SEdward Cree #define	FRF_AB_GMF_FTFENREQ_WIDTH 1
17345a6681e2SEdward Cree #define	FRF_AB_GMF_STFENREQ_LBN 11
17355a6681e2SEdward Cree #define	FRF_AB_GMF_STFENREQ_WIDTH 1
17365a6681e2SEdward Cree #define	FRF_AB_GMF_FRFENREQ_LBN 10
17375a6681e2SEdward Cree #define	FRF_AB_GMF_FRFENREQ_WIDTH 1
17385a6681e2SEdward Cree #define	FRF_AB_GMF_SRFENREQ_LBN 9
17395a6681e2SEdward Cree #define	FRF_AB_GMF_SRFENREQ_WIDTH 1
17405a6681e2SEdward Cree #define	FRF_AB_GMF_WTMENREQ_LBN 8
17415a6681e2SEdward Cree #define	FRF_AB_GMF_WTMENREQ_WIDTH 1
17425a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTFT_LBN 4
17435a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTFT_WIDTH 1
17445a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTST_LBN 3
17455a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTST_WIDTH 1
17465a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTFR_LBN 2
17475a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTFR_WIDTH 1
17485a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTSR_LBN 1
17495a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTSR_WIDTH 1
17505a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTWT_LBN 0
17515a6681e2SEdward Cree #define	FRF_AB_GMF_HSTRSTWT_WIDTH 1
17525a6681e2SEdward Cree 
17535a6681e2SEdward Cree /* GMF_CFG1_REG: GMAC FIFO configuration register 1 */
17545a6681e2SEdward Cree #define	FR_AB_GMF_CFG1 0x00000f30
17555a6681e2SEdward Cree #define	FRF_AB_GMF_CFGFRTH_LBN 16
17565a6681e2SEdward Cree #define	FRF_AB_GMF_CFGFRTH_WIDTH 5
17575a6681e2SEdward Cree #define	FRF_AB_GMF_CFGXOFFRTX_LBN 0
17585a6681e2SEdward Cree #define	FRF_AB_GMF_CFGXOFFRTX_WIDTH 16
17595a6681e2SEdward Cree 
17605a6681e2SEdward Cree /* GMF_CFG2_REG: GMAC FIFO configuration register 2 */
17615a6681e2SEdward Cree #define	FR_AB_GMF_CFG2 0x00000f40
17625a6681e2SEdward Cree #define	FRF_AB_GMF_CFGHWM_LBN 16
17635a6681e2SEdward Cree #define	FRF_AB_GMF_CFGHWM_WIDTH 6
17645a6681e2SEdward Cree #define	FRF_AB_GMF_CFGLWM_LBN 0
17655a6681e2SEdward Cree #define	FRF_AB_GMF_CFGLWM_WIDTH 6
17665a6681e2SEdward Cree 
17675a6681e2SEdward Cree /* GMF_CFG3_REG: GMAC FIFO configuration register 3 */
17685a6681e2SEdward Cree #define	FR_AB_GMF_CFG3 0x00000f50
17695a6681e2SEdward Cree #define	FRF_AB_GMF_CFGHWMFT_LBN 16
17705a6681e2SEdward Cree #define	FRF_AB_GMF_CFGHWMFT_WIDTH 6
17715a6681e2SEdward Cree #define	FRF_AB_GMF_CFGFTTH_LBN 0
17725a6681e2SEdward Cree #define	FRF_AB_GMF_CFGFTTH_WIDTH 6
17735a6681e2SEdward Cree 
17745a6681e2SEdward Cree /* GMF_CFG4_REG: GMAC FIFO configuration register 4 */
17755a6681e2SEdward Cree #define	FR_AB_GMF_CFG4 0x00000f60
17765a6681e2SEdward Cree #define	FRF_AB_GMF_HSTFLTRFRM_LBN 0
17775a6681e2SEdward Cree #define	FRF_AB_GMF_HSTFLTRFRM_WIDTH 18
17785a6681e2SEdward Cree 
17795a6681e2SEdward Cree /* GMF_CFG5_REG: GMAC FIFO configuration register 5 */
17805a6681e2SEdward Cree #define	FR_AB_GMF_CFG5 0x00000f70
17815a6681e2SEdward Cree #define	FRF_AB_GMF_CFGHDPLX_LBN 22
17825a6681e2SEdward Cree #define	FRF_AB_GMF_CFGHDPLX_WIDTH 1
17835a6681e2SEdward Cree #define	FRF_AB_GMF_SRFULL_LBN 21
17845a6681e2SEdward Cree #define	FRF_AB_GMF_SRFULL_WIDTH 1
17855a6681e2SEdward Cree #define	FRF_AB_GMF_HSTSRFULLCLR_LBN 20
17865a6681e2SEdward Cree #define	FRF_AB_GMF_HSTSRFULLCLR_WIDTH 1
17875a6681e2SEdward Cree #define	FRF_AB_GMF_CFGBYTMODE_LBN 19
17885a6681e2SEdward Cree #define	FRF_AB_GMF_CFGBYTMODE_WIDTH 1
17895a6681e2SEdward Cree #define	FRF_AB_GMF_HSTDRPLT64_LBN 18
17905a6681e2SEdward Cree #define	FRF_AB_GMF_HSTDRPLT64_WIDTH 1
17915a6681e2SEdward Cree #define	FRF_AB_GMF_HSTFLTRFRMDC_LBN 0
17925a6681e2SEdward Cree #define	FRF_AB_GMF_HSTFLTRFRMDC_WIDTH 18
17935a6681e2SEdward Cree 
17945a6681e2SEdward Cree /* TX_SRC_MAC_TBL: Transmit IP source address filter table */
17955a6681e2SEdward Cree #define	FR_BB_TX_SRC_MAC_TBL 0x00001000
17965a6681e2SEdward Cree #define	FR_BB_TX_SRC_MAC_TBL_STEP 16
17975a6681e2SEdward Cree #define	FR_BB_TX_SRC_MAC_TBL_ROWS 16
17985a6681e2SEdward Cree #define	FRF_BB_TX_SRC_MAC_ADR_1_LBN 64
17995a6681e2SEdward Cree #define	FRF_BB_TX_SRC_MAC_ADR_1_WIDTH 48
18005a6681e2SEdward Cree #define	FRF_BB_TX_SRC_MAC_ADR_0_LBN 0
18015a6681e2SEdward Cree #define	FRF_BB_TX_SRC_MAC_ADR_0_WIDTH 48
18025a6681e2SEdward Cree 
18035a6681e2SEdward Cree /* TX_SRC_MAC_CTL_REG: Transmit MAC source address filter control */
18045a6681e2SEdward Cree #define	FR_BB_TX_SRC_MAC_CTL 0x00001100
18055a6681e2SEdward Cree #define	FRF_BB_TX_SRC_DROP_CTR_LBN 16
18065a6681e2SEdward Cree #define	FRF_BB_TX_SRC_DROP_CTR_WIDTH 16
18075a6681e2SEdward Cree #define	FRF_BB_TX_SRC_FLTR_EN_LBN 15
18085a6681e2SEdward Cree #define	FRF_BB_TX_SRC_FLTR_EN_WIDTH 1
18095a6681e2SEdward Cree #define	FRF_BB_TX_DROP_CTR_CLR_LBN 12
18105a6681e2SEdward Cree #define	FRF_BB_TX_DROP_CTR_CLR_WIDTH 1
18115a6681e2SEdward Cree #define	FRF_BB_TX_MAC_QID_SEL_LBN 0
18125a6681e2SEdward Cree #define	FRF_BB_TX_MAC_QID_SEL_WIDTH 3
18135a6681e2SEdward Cree 
18145a6681e2SEdward Cree /* XM_ADR_LO_REG: XGMAC address register low */
18155a6681e2SEdward Cree #define	FR_AB_XM_ADR_LO 0x00001200
18165a6681e2SEdward Cree #define	FRF_AB_XM_ADR_LO_LBN 0
18175a6681e2SEdward Cree #define	FRF_AB_XM_ADR_LO_WIDTH 32
18185a6681e2SEdward Cree 
18195a6681e2SEdward Cree /* XM_ADR_HI_REG: XGMAC address register high */
18205a6681e2SEdward Cree #define	FR_AB_XM_ADR_HI 0x00001210
18215a6681e2SEdward Cree #define	FRF_AB_XM_ADR_HI_LBN 0
18225a6681e2SEdward Cree #define	FRF_AB_XM_ADR_HI_WIDTH 16
18235a6681e2SEdward Cree 
18245a6681e2SEdward Cree /* XM_GLB_CFG_REG: XGMAC global configuration */
18255a6681e2SEdward Cree #define	FR_AB_XM_GLB_CFG 0x00001220
18265a6681e2SEdward Cree #define	FRF_AB_XM_RMTFLT_GEN_LBN 17
18275a6681e2SEdward Cree #define	FRF_AB_XM_RMTFLT_GEN_WIDTH 1
18285a6681e2SEdward Cree #define	FRF_AB_XM_DEBUG_MODE_LBN 16
18295a6681e2SEdward Cree #define	FRF_AB_XM_DEBUG_MODE_WIDTH 1
18305a6681e2SEdward Cree #define	FRF_AB_XM_RX_STAT_EN_LBN 11
18315a6681e2SEdward Cree #define	FRF_AB_XM_RX_STAT_EN_WIDTH 1
18325a6681e2SEdward Cree #define	FRF_AB_XM_TX_STAT_EN_LBN 10
18335a6681e2SEdward Cree #define	FRF_AB_XM_TX_STAT_EN_WIDTH 1
18345a6681e2SEdward Cree #define	FRF_AB_XM_RX_JUMBO_MODE_LBN 6
18355a6681e2SEdward Cree #define	FRF_AB_XM_RX_JUMBO_MODE_WIDTH 1
18365a6681e2SEdward Cree #define	FRF_AB_XM_WAN_MODE_LBN 5
18375a6681e2SEdward Cree #define	FRF_AB_XM_WAN_MODE_WIDTH 1
18385a6681e2SEdward Cree #define	FRF_AB_XM_INTCLR_MODE_LBN 3
18395a6681e2SEdward Cree #define	FRF_AB_XM_INTCLR_MODE_WIDTH 1
18405a6681e2SEdward Cree #define	FRF_AB_XM_CORE_RST_LBN 0
18415a6681e2SEdward Cree #define	FRF_AB_XM_CORE_RST_WIDTH 1
18425a6681e2SEdward Cree 
18435a6681e2SEdward Cree /* XM_TX_CFG_REG: XGMAC transmit configuration */
18445a6681e2SEdward Cree #define	FR_AB_XM_TX_CFG 0x00001230
18455a6681e2SEdward Cree #define	FRF_AB_XM_TX_PROG_LBN 24
18465a6681e2SEdward Cree #define	FRF_AB_XM_TX_PROG_WIDTH 1
18475a6681e2SEdward Cree #define	FRF_AB_XM_IPG_LBN 16
18485a6681e2SEdward Cree #define	FRF_AB_XM_IPG_WIDTH 4
18495a6681e2SEdward Cree #define	FRF_AB_XM_FCNTL_LBN 10
18505a6681e2SEdward Cree #define	FRF_AB_XM_FCNTL_WIDTH 1
18515a6681e2SEdward Cree #define	FRF_AB_XM_TXCRC_LBN 8
18525a6681e2SEdward Cree #define	FRF_AB_XM_TXCRC_WIDTH 1
18535a6681e2SEdward Cree #define	FRF_AB_XM_EDRC_LBN 6
18545a6681e2SEdward Cree #define	FRF_AB_XM_EDRC_WIDTH 1
18555a6681e2SEdward Cree #define	FRF_AB_XM_AUTO_PAD_LBN 5
18565a6681e2SEdward Cree #define	FRF_AB_XM_AUTO_PAD_WIDTH 1
18575a6681e2SEdward Cree #define	FRF_AB_XM_TX_PRMBL_LBN 2
18585a6681e2SEdward Cree #define	FRF_AB_XM_TX_PRMBL_WIDTH 1
18595a6681e2SEdward Cree #define	FRF_AB_XM_TXEN_LBN 1
18605a6681e2SEdward Cree #define	FRF_AB_XM_TXEN_WIDTH 1
18615a6681e2SEdward Cree #define	FRF_AB_XM_TX_RST_LBN 0
18625a6681e2SEdward Cree #define	FRF_AB_XM_TX_RST_WIDTH 1
18635a6681e2SEdward Cree 
18645a6681e2SEdward Cree /* XM_RX_CFG_REG: XGMAC receive configuration */
18655a6681e2SEdward Cree #define	FR_AB_XM_RX_CFG 0x00001240
18665a6681e2SEdward Cree #define	FRF_AB_XM_PASS_LENERR_LBN 26
18675a6681e2SEdward Cree #define	FRF_AB_XM_PASS_LENERR_WIDTH 1
18685a6681e2SEdward Cree #define	FRF_AB_XM_PASS_CRC_ERR_LBN 25
18695a6681e2SEdward Cree #define	FRF_AB_XM_PASS_CRC_ERR_WIDTH 1
18705a6681e2SEdward Cree #define	FRF_AB_XM_PASS_PRMBLE_ERR_LBN 24
18715a6681e2SEdward Cree #define	FRF_AB_XM_PASS_PRMBLE_ERR_WIDTH 1
18725a6681e2SEdward Cree #define	FRF_AB_XM_REJ_BCAST_LBN 20
18735a6681e2SEdward Cree #define	FRF_AB_XM_REJ_BCAST_WIDTH 1
18745a6681e2SEdward Cree #define	FRF_AB_XM_ACPT_ALL_MCAST_LBN 11
18755a6681e2SEdward Cree #define	FRF_AB_XM_ACPT_ALL_MCAST_WIDTH 1
18765a6681e2SEdward Cree #define	FRF_AB_XM_ACPT_ALL_UCAST_LBN 9
18775a6681e2SEdward Cree #define	FRF_AB_XM_ACPT_ALL_UCAST_WIDTH 1
18785a6681e2SEdward Cree #define	FRF_AB_XM_AUTO_DEPAD_LBN 8
18795a6681e2SEdward Cree #define	FRF_AB_XM_AUTO_DEPAD_WIDTH 1
18805a6681e2SEdward Cree #define	FRF_AB_XM_RXCRC_LBN 3
18815a6681e2SEdward Cree #define	FRF_AB_XM_RXCRC_WIDTH 1
18825a6681e2SEdward Cree #define	FRF_AB_XM_RX_PRMBL_LBN 2
18835a6681e2SEdward Cree #define	FRF_AB_XM_RX_PRMBL_WIDTH 1
18845a6681e2SEdward Cree #define	FRF_AB_XM_RXEN_LBN 1
18855a6681e2SEdward Cree #define	FRF_AB_XM_RXEN_WIDTH 1
18865a6681e2SEdward Cree #define	FRF_AB_XM_RX_RST_LBN 0
18875a6681e2SEdward Cree #define	FRF_AB_XM_RX_RST_WIDTH 1
18885a6681e2SEdward Cree 
18895a6681e2SEdward Cree /* XM_MGT_INT_MASK: documentation to be written for sum_XM_MGT_INT_MASK */
18905a6681e2SEdward Cree #define	FR_AB_XM_MGT_INT_MASK 0x00001250
18915a6681e2SEdward Cree #define	FRF_AB_XM_MSK_STA_INTR_LBN 16
18925a6681e2SEdward Cree #define	FRF_AB_XM_MSK_STA_INTR_WIDTH 1
18935a6681e2SEdward Cree #define	FRF_AB_XM_MSK_STAT_CNTR_HF_LBN 9
18945a6681e2SEdward Cree #define	FRF_AB_XM_MSK_STAT_CNTR_HF_WIDTH 1
18955a6681e2SEdward Cree #define	FRF_AB_XM_MSK_STAT_CNTR_OF_LBN 8
18965a6681e2SEdward Cree #define	FRF_AB_XM_MSK_STAT_CNTR_OF_WIDTH 1
18975a6681e2SEdward Cree #define	FRF_AB_XM_MSK_PRMBLE_ERR_LBN 2
18985a6681e2SEdward Cree #define	FRF_AB_XM_MSK_PRMBLE_ERR_WIDTH 1
18995a6681e2SEdward Cree #define	FRF_AB_XM_MSK_RMTFLT_LBN 1
19005a6681e2SEdward Cree #define	FRF_AB_XM_MSK_RMTFLT_WIDTH 1
19015a6681e2SEdward Cree #define	FRF_AB_XM_MSK_LCLFLT_LBN 0
19025a6681e2SEdward Cree #define	FRF_AB_XM_MSK_LCLFLT_WIDTH 1
19035a6681e2SEdward Cree 
19045a6681e2SEdward Cree /* XM_FC_REG: XGMAC flow control register */
19055a6681e2SEdward Cree #define	FR_AB_XM_FC 0x00001270
19065a6681e2SEdward Cree #define	FRF_AB_XM_PAUSE_TIME_LBN 16
19075a6681e2SEdward Cree #define	FRF_AB_XM_PAUSE_TIME_WIDTH 16
19085a6681e2SEdward Cree #define	FRF_AB_XM_RX_MAC_STAT_LBN 11
19095a6681e2SEdward Cree #define	FRF_AB_XM_RX_MAC_STAT_WIDTH 1
19105a6681e2SEdward Cree #define	FRF_AB_XM_TX_MAC_STAT_LBN 10
19115a6681e2SEdward Cree #define	FRF_AB_XM_TX_MAC_STAT_WIDTH 1
19125a6681e2SEdward Cree #define	FRF_AB_XM_MCNTL_PASS_LBN 8
19135a6681e2SEdward Cree #define	FRF_AB_XM_MCNTL_PASS_WIDTH 2
19145a6681e2SEdward Cree #define	FRF_AB_XM_REJ_CNTL_UCAST_LBN 6
19155a6681e2SEdward Cree #define	FRF_AB_XM_REJ_CNTL_UCAST_WIDTH 1
19165a6681e2SEdward Cree #define	FRF_AB_XM_REJ_CNTL_MCAST_LBN 5
19175a6681e2SEdward Cree #define	FRF_AB_XM_REJ_CNTL_MCAST_WIDTH 1
19185a6681e2SEdward Cree #define	FRF_AB_XM_ZPAUSE_LBN 2
19195a6681e2SEdward Cree #define	FRF_AB_XM_ZPAUSE_WIDTH 1
19205a6681e2SEdward Cree #define	FRF_AB_XM_XMIT_PAUSE_LBN 1
19215a6681e2SEdward Cree #define	FRF_AB_XM_XMIT_PAUSE_WIDTH 1
19225a6681e2SEdward Cree #define	FRF_AB_XM_DIS_FCNTL_LBN 0
19235a6681e2SEdward Cree #define	FRF_AB_XM_DIS_FCNTL_WIDTH 1
19245a6681e2SEdward Cree 
19255a6681e2SEdward Cree /* XM_PAUSE_TIME_REG: XGMAC pause time register */
19265a6681e2SEdward Cree #define	FR_AB_XM_PAUSE_TIME 0x00001290
19275a6681e2SEdward Cree #define	FRF_AB_XM_TX_PAUSE_CNT_LBN 16
19285a6681e2SEdward Cree #define	FRF_AB_XM_TX_PAUSE_CNT_WIDTH 16
19295a6681e2SEdward Cree #define	FRF_AB_XM_RX_PAUSE_CNT_LBN 0
19305a6681e2SEdward Cree #define	FRF_AB_XM_RX_PAUSE_CNT_WIDTH 16
19315a6681e2SEdward Cree 
19325a6681e2SEdward Cree /* XM_TX_PARAM_REG: XGMAC transmit parameter register */
19335a6681e2SEdward Cree #define	FR_AB_XM_TX_PARAM 0x000012d0
19345a6681e2SEdward Cree #define	FRF_AB_XM_TX_JUMBO_MODE_LBN 31
19355a6681e2SEdward Cree #define	FRF_AB_XM_TX_JUMBO_MODE_WIDTH 1
19365a6681e2SEdward Cree #define	FRF_AB_XM_MAX_TX_FRM_SIZE_HI_LBN 19
19375a6681e2SEdward Cree #define	FRF_AB_XM_MAX_TX_FRM_SIZE_HI_WIDTH 11
19385a6681e2SEdward Cree #define	FRF_AB_XM_MAX_TX_FRM_SIZE_LO_LBN 16
19395a6681e2SEdward Cree #define	FRF_AB_XM_MAX_TX_FRM_SIZE_LO_WIDTH 3
19405a6681e2SEdward Cree #define	FRF_AB_XM_PAD_CHAR_LBN 0
19415a6681e2SEdward Cree #define	FRF_AB_XM_PAD_CHAR_WIDTH 8
19425a6681e2SEdward Cree 
19435a6681e2SEdward Cree /* XM_RX_PARAM_REG: XGMAC receive parameter register */
19445a6681e2SEdward Cree #define	FR_AB_XM_RX_PARAM 0x000012e0
19455a6681e2SEdward Cree #define	FRF_AB_XM_MAX_RX_FRM_SIZE_HI_LBN 3
19465a6681e2SEdward Cree #define	FRF_AB_XM_MAX_RX_FRM_SIZE_HI_WIDTH 11
19475a6681e2SEdward Cree #define	FRF_AB_XM_MAX_RX_FRM_SIZE_LO_LBN 0
19485a6681e2SEdward Cree #define	FRF_AB_XM_MAX_RX_FRM_SIZE_LO_WIDTH 3
19495a6681e2SEdward Cree 
19505a6681e2SEdward Cree /* XM_MGT_INT_MSK_REG: XGMAC management interrupt mask register */
19515a6681e2SEdward Cree #define	FR_AB_XM_MGT_INT_MSK 0x000012f0
19525a6681e2SEdward Cree #define	FRF_AB_XM_STAT_CNTR_OF_LBN 9
19535a6681e2SEdward Cree #define	FRF_AB_XM_STAT_CNTR_OF_WIDTH 1
19545a6681e2SEdward Cree #define	FRF_AB_XM_STAT_CNTR_HF_LBN 8
19555a6681e2SEdward Cree #define	FRF_AB_XM_STAT_CNTR_HF_WIDTH 1
19565a6681e2SEdward Cree #define	FRF_AB_XM_PRMBLE_ERR_LBN 2
19575a6681e2SEdward Cree #define	FRF_AB_XM_PRMBLE_ERR_WIDTH 1
19585a6681e2SEdward Cree #define	FRF_AB_XM_RMTFLT_LBN 1
19595a6681e2SEdward Cree #define	FRF_AB_XM_RMTFLT_WIDTH 1
19605a6681e2SEdward Cree #define	FRF_AB_XM_LCLFLT_LBN 0
19615a6681e2SEdward Cree #define	FRF_AB_XM_LCLFLT_WIDTH 1
19625a6681e2SEdward Cree 
19635a6681e2SEdward Cree /* XX_PWR_RST_REG: XGXS/XAUI powerdown/reset register */
19645a6681e2SEdward Cree #define	FR_AB_XX_PWR_RST 0x00001300
19655a6681e2SEdward Cree #define	FRF_AB_XX_PWRDND_SIG_LBN 31
19665a6681e2SEdward Cree #define	FRF_AB_XX_PWRDND_SIG_WIDTH 1
19675a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNC_SIG_LBN 30
19685a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNC_SIG_WIDTH 1
19695a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNB_SIG_LBN 29
19705a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNB_SIG_WIDTH 1
19715a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNA_SIG_LBN 28
19725a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNA_SIG_WIDTH 1
19735a6681e2SEdward Cree #define	FRF_AB_XX_SIM_MODE_LBN 27
19745a6681e2SEdward Cree #define	FRF_AB_XX_SIM_MODE_WIDTH 1
19755a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLCD_SIG_LBN 25
19765a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLCD_SIG_WIDTH 1
19775a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLAB_SIG_LBN 24
19785a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLAB_SIG_WIDTH 1
19795a6681e2SEdward Cree #define	FRF_AB_XX_RESETD_SIG_LBN 23
19805a6681e2SEdward Cree #define	FRF_AB_XX_RESETD_SIG_WIDTH 1
19815a6681e2SEdward Cree #define	FRF_AB_XX_RESETC_SIG_LBN 22
19825a6681e2SEdward Cree #define	FRF_AB_XX_RESETC_SIG_WIDTH 1
19835a6681e2SEdward Cree #define	FRF_AB_XX_RESETB_SIG_LBN 21
19845a6681e2SEdward Cree #define	FRF_AB_XX_RESETB_SIG_WIDTH 1
19855a6681e2SEdward Cree #define	FRF_AB_XX_RESETA_SIG_LBN 20
19865a6681e2SEdward Cree #define	FRF_AB_XX_RESETA_SIG_WIDTH 1
19875a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSRX_SIG_LBN 18
19885a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSRX_SIG_WIDTH 1
19895a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSTX_SIG_LBN 17
19905a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSTX_SIG_WIDTH 1
19915a6681e2SEdward Cree #define	FRF_AB_XX_SD_RST_ACT_LBN 16
19925a6681e2SEdward Cree #define	FRF_AB_XX_SD_RST_ACT_WIDTH 1
19935a6681e2SEdward Cree #define	FRF_AB_XX_PWRDND_EN_LBN 15
19945a6681e2SEdward Cree #define	FRF_AB_XX_PWRDND_EN_WIDTH 1
19955a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNC_EN_LBN 14
19965a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNC_EN_WIDTH 1
19975a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNB_EN_LBN 13
19985a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNB_EN_WIDTH 1
19995a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNA_EN_LBN 12
20005a6681e2SEdward Cree #define	FRF_AB_XX_PWRDNA_EN_WIDTH 1
20015a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLCD_EN_LBN 9
20025a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLCD_EN_WIDTH 1
20035a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLAB_EN_LBN 8
20045a6681e2SEdward Cree #define	FRF_AB_XX_RSTPLLAB_EN_WIDTH 1
20055a6681e2SEdward Cree #define	FRF_AB_XX_RESETD_EN_LBN 7
20065a6681e2SEdward Cree #define	FRF_AB_XX_RESETD_EN_WIDTH 1
20075a6681e2SEdward Cree #define	FRF_AB_XX_RESETC_EN_LBN 6
20085a6681e2SEdward Cree #define	FRF_AB_XX_RESETC_EN_WIDTH 1
20095a6681e2SEdward Cree #define	FRF_AB_XX_RESETB_EN_LBN 5
20105a6681e2SEdward Cree #define	FRF_AB_XX_RESETB_EN_WIDTH 1
20115a6681e2SEdward Cree #define	FRF_AB_XX_RESETA_EN_LBN 4
20125a6681e2SEdward Cree #define	FRF_AB_XX_RESETA_EN_WIDTH 1
20135a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSRX_EN_LBN 2
20145a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSRX_EN_WIDTH 1
20155a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSTX_EN_LBN 1
20165a6681e2SEdward Cree #define	FRF_AB_XX_RSTXGXSTX_EN_WIDTH 1
20175a6681e2SEdward Cree #define	FRF_AB_XX_RST_XX_EN_LBN 0
20185a6681e2SEdward Cree #define	FRF_AB_XX_RST_XX_EN_WIDTH 1
20195a6681e2SEdward Cree 
20205a6681e2SEdward Cree /* XX_SD_CTL_REG: XGXS/XAUI powerdown/reset control register */
20215a6681e2SEdward Cree #define	FR_AB_XX_SD_CTL 0x00001310
20225a6681e2SEdward Cree #define	FRF_AB_XX_TERMADJ1_LBN 17
20235a6681e2SEdward Cree #define	FRF_AB_XX_TERMADJ1_WIDTH 1
20245a6681e2SEdward Cree #define	FRF_AB_XX_TERMADJ0_LBN 16
20255a6681e2SEdward Cree #define	FRF_AB_XX_TERMADJ0_WIDTH 1
20265a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVD_LBN 15
20275a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVD_WIDTH 1
20285a6681e2SEdward Cree #define	FRF_AB_XX_LODRVD_LBN 14
20295a6681e2SEdward Cree #define	FRF_AB_XX_LODRVD_WIDTH 1
20305a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVC_LBN 13
20315a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVC_WIDTH 1
20325a6681e2SEdward Cree #define	FRF_AB_XX_LODRVC_LBN 12
20335a6681e2SEdward Cree #define	FRF_AB_XX_LODRVC_WIDTH 1
20345a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVB_LBN 11
20355a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVB_WIDTH 1
20365a6681e2SEdward Cree #define	FRF_AB_XX_LODRVB_LBN 10
20375a6681e2SEdward Cree #define	FRF_AB_XX_LODRVB_WIDTH 1
20385a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVA_LBN 9
20395a6681e2SEdward Cree #define	FRF_AB_XX_HIDRVA_WIDTH 1
20405a6681e2SEdward Cree #define	FRF_AB_XX_LODRVA_LBN 8
20415a6681e2SEdward Cree #define	FRF_AB_XX_LODRVA_WIDTH 1
20425a6681e2SEdward Cree #define	FRF_AB_XX_LPBKD_LBN 3
20435a6681e2SEdward Cree #define	FRF_AB_XX_LPBKD_WIDTH 1
20445a6681e2SEdward Cree #define	FRF_AB_XX_LPBKC_LBN 2
20455a6681e2SEdward Cree #define	FRF_AB_XX_LPBKC_WIDTH 1
20465a6681e2SEdward Cree #define	FRF_AB_XX_LPBKB_LBN 1
20475a6681e2SEdward Cree #define	FRF_AB_XX_LPBKB_WIDTH 1
20485a6681e2SEdward Cree #define	FRF_AB_XX_LPBKA_LBN 0
20495a6681e2SEdward Cree #define	FRF_AB_XX_LPBKA_WIDTH 1
20505a6681e2SEdward Cree 
20515a6681e2SEdward Cree /* XX_TXDRV_CTL_REG: XAUI SerDes transmit drive control register */
20525a6681e2SEdward Cree #define	FR_AB_XX_TXDRV_CTL 0x00001320
20535a6681e2SEdward Cree #define	FRF_AB_XX_DEQD_LBN 28
20545a6681e2SEdward Cree #define	FRF_AB_XX_DEQD_WIDTH 4
20555a6681e2SEdward Cree #define	FRF_AB_XX_DEQC_LBN 24
20565a6681e2SEdward Cree #define	FRF_AB_XX_DEQC_WIDTH 4
20575a6681e2SEdward Cree #define	FRF_AB_XX_DEQB_LBN 20
20585a6681e2SEdward Cree #define	FRF_AB_XX_DEQB_WIDTH 4
20595a6681e2SEdward Cree #define	FRF_AB_XX_DEQA_LBN 16
20605a6681e2SEdward Cree #define	FRF_AB_XX_DEQA_WIDTH 4
20615a6681e2SEdward Cree #define	FRF_AB_XX_DTXD_LBN 12
20625a6681e2SEdward Cree #define	FRF_AB_XX_DTXD_WIDTH 4
20635a6681e2SEdward Cree #define	FRF_AB_XX_DTXC_LBN 8
20645a6681e2SEdward Cree #define	FRF_AB_XX_DTXC_WIDTH 4
20655a6681e2SEdward Cree #define	FRF_AB_XX_DTXB_LBN 4
20665a6681e2SEdward Cree #define	FRF_AB_XX_DTXB_WIDTH 4
20675a6681e2SEdward Cree #define	FRF_AB_XX_DTXA_LBN 0
20685a6681e2SEdward Cree #define	FRF_AB_XX_DTXA_WIDTH 4
20695a6681e2SEdward Cree 
20705a6681e2SEdward Cree /* XX_PRBS_CTL_REG: documentation to be written for sum_XX_PRBS_CTL_REG */
20715a6681e2SEdward Cree #define	FR_AB_XX_PRBS_CTL 0x00001330
20725a6681e2SEdward Cree #define	FRF_AB_XX_CH3_RX_PRBS_SEL_LBN 30
20735a6681e2SEdward Cree #define	FRF_AB_XX_CH3_RX_PRBS_SEL_WIDTH 2
20745a6681e2SEdward Cree #define	FRF_AB_XX_CH3_RX_PRBS_INV_LBN 29
20755a6681e2SEdward Cree #define	FRF_AB_XX_CH3_RX_PRBS_INV_WIDTH 1
20765a6681e2SEdward Cree #define	FRF_AB_XX_CH3_RX_PRBS_CHKEN_LBN 28
20775a6681e2SEdward Cree #define	FRF_AB_XX_CH3_RX_PRBS_CHKEN_WIDTH 1
20785a6681e2SEdward Cree #define	FRF_AB_XX_CH2_RX_PRBS_SEL_LBN 26
20795a6681e2SEdward Cree #define	FRF_AB_XX_CH2_RX_PRBS_SEL_WIDTH 2
20805a6681e2SEdward Cree #define	FRF_AB_XX_CH2_RX_PRBS_INV_LBN 25
20815a6681e2SEdward Cree #define	FRF_AB_XX_CH2_RX_PRBS_INV_WIDTH 1
20825a6681e2SEdward Cree #define	FRF_AB_XX_CH2_RX_PRBS_CHKEN_LBN 24
20835a6681e2SEdward Cree #define	FRF_AB_XX_CH2_RX_PRBS_CHKEN_WIDTH 1
20845a6681e2SEdward Cree #define	FRF_AB_XX_CH1_RX_PRBS_SEL_LBN 22
20855a6681e2SEdward Cree #define	FRF_AB_XX_CH1_RX_PRBS_SEL_WIDTH 2
20865a6681e2SEdward Cree #define	FRF_AB_XX_CH1_RX_PRBS_INV_LBN 21
20875a6681e2SEdward Cree #define	FRF_AB_XX_CH1_RX_PRBS_INV_WIDTH 1
20885a6681e2SEdward Cree #define	FRF_AB_XX_CH1_RX_PRBS_CHKEN_LBN 20
20895a6681e2SEdward Cree #define	FRF_AB_XX_CH1_RX_PRBS_CHKEN_WIDTH 1
20905a6681e2SEdward Cree #define	FRF_AB_XX_CH0_RX_PRBS_SEL_LBN 18
20915a6681e2SEdward Cree #define	FRF_AB_XX_CH0_RX_PRBS_SEL_WIDTH 2
20925a6681e2SEdward Cree #define	FRF_AB_XX_CH0_RX_PRBS_INV_LBN 17
20935a6681e2SEdward Cree #define	FRF_AB_XX_CH0_RX_PRBS_INV_WIDTH 1
20945a6681e2SEdward Cree #define	FRF_AB_XX_CH0_RX_PRBS_CHKEN_LBN 16
20955a6681e2SEdward Cree #define	FRF_AB_XX_CH0_RX_PRBS_CHKEN_WIDTH 1
20965a6681e2SEdward Cree #define	FRF_AB_XX_CH3_TX_PRBS_SEL_LBN 14
20975a6681e2SEdward Cree #define	FRF_AB_XX_CH3_TX_PRBS_SEL_WIDTH 2
20985a6681e2SEdward Cree #define	FRF_AB_XX_CH3_TX_PRBS_INV_LBN 13
20995a6681e2SEdward Cree #define	FRF_AB_XX_CH3_TX_PRBS_INV_WIDTH 1
21005a6681e2SEdward Cree #define	FRF_AB_XX_CH3_TX_PRBS_CHKEN_LBN 12
21015a6681e2SEdward Cree #define	FRF_AB_XX_CH3_TX_PRBS_CHKEN_WIDTH 1
21025a6681e2SEdward Cree #define	FRF_AB_XX_CH2_TX_PRBS_SEL_LBN 10
21035a6681e2SEdward Cree #define	FRF_AB_XX_CH2_TX_PRBS_SEL_WIDTH 2
21045a6681e2SEdward Cree #define	FRF_AB_XX_CH2_TX_PRBS_INV_LBN 9
21055a6681e2SEdward Cree #define	FRF_AB_XX_CH2_TX_PRBS_INV_WIDTH 1
21065a6681e2SEdward Cree #define	FRF_AB_XX_CH2_TX_PRBS_CHKEN_LBN 8
21075a6681e2SEdward Cree #define	FRF_AB_XX_CH2_TX_PRBS_CHKEN_WIDTH 1
21085a6681e2SEdward Cree #define	FRF_AB_XX_CH1_TX_PRBS_SEL_LBN 6
21095a6681e2SEdward Cree #define	FRF_AB_XX_CH1_TX_PRBS_SEL_WIDTH 2
21105a6681e2SEdward Cree #define	FRF_AB_XX_CH1_TX_PRBS_INV_LBN 5
21115a6681e2SEdward Cree #define	FRF_AB_XX_CH1_TX_PRBS_INV_WIDTH 1
21125a6681e2SEdward Cree #define	FRF_AB_XX_CH1_TX_PRBS_CHKEN_LBN 4
21135a6681e2SEdward Cree #define	FRF_AB_XX_CH1_TX_PRBS_CHKEN_WIDTH 1
21145a6681e2SEdward Cree #define	FRF_AB_XX_CH0_TX_PRBS_SEL_LBN 2
21155a6681e2SEdward Cree #define	FRF_AB_XX_CH0_TX_PRBS_SEL_WIDTH 2
21165a6681e2SEdward Cree #define	FRF_AB_XX_CH0_TX_PRBS_INV_LBN 1
21175a6681e2SEdward Cree #define	FRF_AB_XX_CH0_TX_PRBS_INV_WIDTH 1
21185a6681e2SEdward Cree #define	FRF_AB_XX_CH0_TX_PRBS_CHKEN_LBN 0
21195a6681e2SEdward Cree #define	FRF_AB_XX_CH0_TX_PRBS_CHKEN_WIDTH 1
21205a6681e2SEdward Cree 
21215a6681e2SEdward Cree /* XX_PRBS_CHK_REG: documentation to be written for sum_XX_PRBS_CHK_REG */
21225a6681e2SEdward Cree #define	FR_AB_XX_PRBS_CHK 0x00001340
21235a6681e2SEdward Cree #define	FRF_AB_XX_REV_LB_EN_LBN 16
21245a6681e2SEdward Cree #define	FRF_AB_XX_REV_LB_EN_WIDTH 1
21255a6681e2SEdward Cree #define	FRF_AB_XX_CH3_DEG_DET_LBN 15
21265a6681e2SEdward Cree #define	FRF_AB_XX_CH3_DEG_DET_WIDTH 1
21275a6681e2SEdward Cree #define	FRF_AB_XX_CH3_LFSR_LOCK_IND_LBN 14
21285a6681e2SEdward Cree #define	FRF_AB_XX_CH3_LFSR_LOCK_IND_WIDTH 1
21295a6681e2SEdward Cree #define	FRF_AB_XX_CH3_PRBS_FRUN_LBN 13
21305a6681e2SEdward Cree #define	FRF_AB_XX_CH3_PRBS_FRUN_WIDTH 1
21315a6681e2SEdward Cree #define	FRF_AB_XX_CH3_ERR_CHK_LBN 12
21325a6681e2SEdward Cree #define	FRF_AB_XX_CH3_ERR_CHK_WIDTH 1
21335a6681e2SEdward Cree #define	FRF_AB_XX_CH2_DEG_DET_LBN 11
21345a6681e2SEdward Cree #define	FRF_AB_XX_CH2_DEG_DET_WIDTH 1
21355a6681e2SEdward Cree #define	FRF_AB_XX_CH2_LFSR_LOCK_IND_LBN 10
21365a6681e2SEdward Cree #define	FRF_AB_XX_CH2_LFSR_LOCK_IND_WIDTH 1
21375a6681e2SEdward Cree #define	FRF_AB_XX_CH2_PRBS_FRUN_LBN 9
21385a6681e2SEdward Cree #define	FRF_AB_XX_CH2_PRBS_FRUN_WIDTH 1
21395a6681e2SEdward Cree #define	FRF_AB_XX_CH2_ERR_CHK_LBN 8
21405a6681e2SEdward Cree #define	FRF_AB_XX_CH2_ERR_CHK_WIDTH 1
21415a6681e2SEdward Cree #define	FRF_AB_XX_CH1_DEG_DET_LBN 7
21425a6681e2SEdward Cree #define	FRF_AB_XX_CH1_DEG_DET_WIDTH 1
21435a6681e2SEdward Cree #define	FRF_AB_XX_CH1_LFSR_LOCK_IND_LBN 6
21445a6681e2SEdward Cree #define	FRF_AB_XX_CH1_LFSR_LOCK_IND_WIDTH 1
21455a6681e2SEdward Cree #define	FRF_AB_XX_CH1_PRBS_FRUN_LBN 5
21465a6681e2SEdward Cree #define	FRF_AB_XX_CH1_PRBS_FRUN_WIDTH 1
21475a6681e2SEdward Cree #define	FRF_AB_XX_CH1_ERR_CHK_LBN 4
21485a6681e2SEdward Cree #define	FRF_AB_XX_CH1_ERR_CHK_WIDTH 1
21495a6681e2SEdward Cree #define	FRF_AB_XX_CH0_DEG_DET_LBN 3
21505a6681e2SEdward Cree #define	FRF_AB_XX_CH0_DEG_DET_WIDTH 1
21515a6681e2SEdward Cree #define	FRF_AB_XX_CH0_LFSR_LOCK_IND_LBN 2
21525a6681e2SEdward Cree #define	FRF_AB_XX_CH0_LFSR_LOCK_IND_WIDTH 1
21535a6681e2SEdward Cree #define	FRF_AB_XX_CH0_PRBS_FRUN_LBN 1
21545a6681e2SEdward Cree #define	FRF_AB_XX_CH0_PRBS_FRUN_WIDTH 1
21555a6681e2SEdward Cree #define	FRF_AB_XX_CH0_ERR_CHK_LBN 0
21565a6681e2SEdward Cree #define	FRF_AB_XX_CH0_ERR_CHK_WIDTH 1
21575a6681e2SEdward Cree 
21585a6681e2SEdward Cree /* XX_PRBS_ERR_REG: documentation to be written for sum_XX_PRBS_ERR_REG */
21595a6681e2SEdward Cree #define	FR_AB_XX_PRBS_ERR 0x00001350
21605a6681e2SEdward Cree #define	FRF_AB_XX_CH3_PRBS_ERR_CNT_LBN 24
21615a6681e2SEdward Cree #define	FRF_AB_XX_CH3_PRBS_ERR_CNT_WIDTH 8
21625a6681e2SEdward Cree #define	FRF_AB_XX_CH2_PRBS_ERR_CNT_LBN 16
21635a6681e2SEdward Cree #define	FRF_AB_XX_CH2_PRBS_ERR_CNT_WIDTH 8
21645a6681e2SEdward Cree #define	FRF_AB_XX_CH1_PRBS_ERR_CNT_LBN 8
21655a6681e2SEdward Cree #define	FRF_AB_XX_CH1_PRBS_ERR_CNT_WIDTH 8
21665a6681e2SEdward Cree #define	FRF_AB_XX_CH0_PRBS_ERR_CNT_LBN 0
21675a6681e2SEdward Cree #define	FRF_AB_XX_CH0_PRBS_ERR_CNT_WIDTH 8
21685a6681e2SEdward Cree 
21695a6681e2SEdward Cree /* XX_CORE_STAT_REG: XAUI XGXS core status register */
21705a6681e2SEdward Cree #define	FR_AB_XX_CORE_STAT 0x00001360
21715a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG3_LBN 31
21725a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG3_WIDTH 1
21735a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG3_VAL_LBN 30
21745a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG3_VAL_WIDTH 1
21755a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG2_LBN 29
21765a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG2_WIDTH 1
21775a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG2_VAL_LBN 28
21785a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG2_VAL_WIDTH 1
21795a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG1_LBN 27
21805a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG1_WIDTH 1
21815a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG1_VAL_LBN 26
21825a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG1_VAL_WIDTH 1
21835a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG0_LBN 25
21845a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG0_WIDTH 1
21855a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG0_VAL_LBN 24
21865a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG0_VAL_WIDTH 1
21875a6681e2SEdward Cree #define	FRF_AB_XX_XGXS_LB_EN_LBN 23
21885a6681e2SEdward Cree #define	FRF_AB_XX_XGXS_LB_EN_WIDTH 1
21895a6681e2SEdward Cree #define	FRF_AB_XX_XGMII_LB_EN_LBN 22
21905a6681e2SEdward Cree #define	FRF_AB_XX_XGMII_LB_EN_WIDTH 1
21915a6681e2SEdward Cree #define	FRF_AB_XX_MATCH_FAULT_LBN 21
21925a6681e2SEdward Cree #define	FRF_AB_XX_MATCH_FAULT_WIDTH 1
21935a6681e2SEdward Cree #define	FRF_AB_XX_ALIGN_DONE_LBN 20
21945a6681e2SEdward Cree #define	FRF_AB_XX_ALIGN_DONE_WIDTH 1
21955a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT3_LBN 19
21965a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT3_WIDTH 1
21975a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT2_LBN 18
21985a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT2_WIDTH 1
21995a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT1_LBN 17
22005a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT1_WIDTH 1
22015a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT0_LBN 16
22025a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT0_WIDTH 1
22035a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH3_LBN 15
22045a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH3_WIDTH 1
22055a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH2_LBN 14
22065a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH2_WIDTH 1
22075a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH1_LBN 13
22085a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH1_WIDTH 1
22095a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH0_LBN 12
22105a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_CH0_WIDTH 1
22115a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH3_LBN 11
22125a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH3_WIDTH 1
22135a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH2_LBN 10
22145a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH2_WIDTH 1
22155a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH1_LBN 9
22165a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH1_WIDTH 1
22175a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH0_LBN 8
22185a6681e2SEdward Cree #define	FRF_AB_XX_CGRP_ALIGN_CH0_WIDTH 1
22195a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH3_LBN 7
22205a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH3_WIDTH 1
22215a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH2_LBN 6
22225a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH2_WIDTH 1
22235a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH1_LBN 5
22245a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH1_WIDTH 1
22255a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH0_LBN 4
22265a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_CH0_WIDTH 1
22275a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH3_LBN 3
22285a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH3_WIDTH 1
22295a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH2_LBN 2
22305a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH2_WIDTH 1
22315a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH1_LBN 1
22325a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH1_WIDTH 1
22335a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH0_LBN 0
22345a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_CH0_WIDTH 1
22355a6681e2SEdward Cree 
22365a6681e2SEdward Cree /* RX_DESC_PTR_TBL_KER: Receive descriptor pointer table */
22375a6681e2SEdward Cree #define	FR_AA_RX_DESC_PTR_TBL_KER 0x00011800
22385a6681e2SEdward Cree #define	FR_AA_RX_DESC_PTR_TBL_KER_STEP 16
22395a6681e2SEdward Cree #define	FR_AA_RX_DESC_PTR_TBL_KER_ROWS 4
22405a6681e2SEdward Cree /* RX_DESC_PTR_TBL: Receive descriptor pointer table */
22415a6681e2SEdward Cree #define	FR_BZ_RX_DESC_PTR_TBL 0x00f40000
22425a6681e2SEdward Cree #define	FR_BZ_RX_DESC_PTR_TBL_STEP 16
22435a6681e2SEdward Cree #define	FR_BB_RX_DESC_PTR_TBL_ROWS 4096
22445a6681e2SEdward Cree #define	FR_CZ_RX_DESC_PTR_TBL_ROWS 1024
22455a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_LBN 90
22465a6681e2SEdward Cree #define	FRF_CZ_RX_HDR_SPLIT_WIDTH 1
22475a6681e2SEdward Cree #define	FRF_AA_RX_RESET_LBN 89
22485a6681e2SEdward Cree #define	FRF_AA_RX_RESET_WIDTH 1
22495a6681e2SEdward Cree #define	FRF_AZ_RX_ISCSI_DDIG_EN_LBN 88
22505a6681e2SEdward Cree #define	FRF_AZ_RX_ISCSI_DDIG_EN_WIDTH 1
22515a6681e2SEdward Cree #define	FRF_AZ_RX_ISCSI_HDIG_EN_LBN 87
22525a6681e2SEdward Cree #define	FRF_AZ_RX_ISCSI_HDIG_EN_WIDTH 1
22535a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_PREF_ACT_LBN 86
22545a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_PREF_ACT_WIDTH 1
22555a6681e2SEdward Cree #define	FRF_AZ_RX_DC_HW_RPTR_LBN 80
22565a6681e2SEdward Cree #define	FRF_AZ_RX_DC_HW_RPTR_WIDTH 6
22575a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_HW_RPTR_LBN 68
22585a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_HW_RPTR_WIDTH 12
22595a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_SW_WPTR_LBN 56
22605a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_SW_WPTR_WIDTH 12
22615a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_BUF_BASE_ID_LBN 36
22625a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_BUF_BASE_ID_WIDTH 20
22635a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_EVQ_ID_LBN 24
22645a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_EVQ_ID_WIDTH 12
22655a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_OWNER_ID_LBN 10
22665a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_OWNER_ID_WIDTH 14
22675a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_LABEL_LBN 5
22685a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_LABEL_WIDTH 5
22695a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_SIZE_LBN 3
22705a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_SIZE_WIDTH 2
22715a6681e2SEdward Cree #define	FFE_AZ_RX_DESCQ_SIZE_4K 3
22725a6681e2SEdward Cree #define	FFE_AZ_RX_DESCQ_SIZE_2K 2
22735a6681e2SEdward Cree #define	FFE_AZ_RX_DESCQ_SIZE_1K 1
22745a6681e2SEdward Cree #define	FFE_AZ_RX_DESCQ_SIZE_512 0
22755a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_TYPE_LBN 2
22765a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_TYPE_WIDTH 1
22775a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_JUMBO_LBN 1
22785a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_JUMBO_WIDTH 1
22795a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_EN_LBN 0
22805a6681e2SEdward Cree #define	FRF_AZ_RX_DESCQ_EN_WIDTH 1
22815a6681e2SEdward Cree 
22825a6681e2SEdward Cree /* TX_DESC_PTR_TBL_KER: Transmit descriptor pointer */
22835a6681e2SEdward Cree #define	FR_AA_TX_DESC_PTR_TBL_KER 0x00011900
22845a6681e2SEdward Cree #define	FR_AA_TX_DESC_PTR_TBL_KER_STEP 16
22855a6681e2SEdward Cree #define	FR_AA_TX_DESC_PTR_TBL_KER_ROWS 8
22865a6681e2SEdward Cree /* TX_DESC_PTR_TBL: Transmit descriptor pointer */
22875a6681e2SEdward Cree #define	FR_BZ_TX_DESC_PTR_TBL 0x00f50000
22885a6681e2SEdward Cree #define	FR_BZ_TX_DESC_PTR_TBL_STEP 16
22895a6681e2SEdward Cree #define	FR_BB_TX_DESC_PTR_TBL_ROWS 4096
22905a6681e2SEdward Cree #define	FR_CZ_TX_DESC_PTR_TBL_ROWS 1024
22915a6681e2SEdward Cree #define	FRF_CZ_TX_DPT_Q_MASK_WIDTH_LBN 94
22925a6681e2SEdward Cree #define	FRF_CZ_TX_DPT_Q_MASK_WIDTH_WIDTH 2
22935a6681e2SEdward Cree #define	FRF_CZ_TX_DPT_ETH_FILT_EN_LBN 93
22945a6681e2SEdward Cree #define	FRF_CZ_TX_DPT_ETH_FILT_EN_WIDTH 1
22955a6681e2SEdward Cree #define	FRF_CZ_TX_DPT_IP_FILT_EN_LBN 92
22965a6681e2SEdward Cree #define	FRF_CZ_TX_DPT_IP_FILT_EN_WIDTH 1
22975a6681e2SEdward Cree #define	FRF_BZ_TX_NON_IP_DROP_DIS_LBN 91
22985a6681e2SEdward Cree #define	FRF_BZ_TX_NON_IP_DROP_DIS_WIDTH 1
22995a6681e2SEdward Cree #define	FRF_BZ_TX_IP_CHKSM_DIS_LBN 90
23005a6681e2SEdward Cree #define	FRF_BZ_TX_IP_CHKSM_DIS_WIDTH 1
23015a6681e2SEdward Cree #define	FRF_BZ_TX_TCP_CHKSM_DIS_LBN 89
23025a6681e2SEdward Cree #define	FRF_BZ_TX_TCP_CHKSM_DIS_WIDTH 1
23035a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_EN_LBN 88
23045a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_EN_WIDTH 1
23055a6681e2SEdward Cree #define	FRF_AZ_TX_ISCSI_DDIG_EN_LBN 87
23065a6681e2SEdward Cree #define	FRF_AZ_TX_ISCSI_DDIG_EN_WIDTH 1
23075a6681e2SEdward Cree #define	FRF_AZ_TX_ISCSI_HDIG_EN_LBN 86
23085a6681e2SEdward Cree #define	FRF_AZ_TX_ISCSI_HDIG_EN_WIDTH 1
23095a6681e2SEdward Cree #define	FRF_AZ_TX_DC_HW_RPTR_LBN 80
23105a6681e2SEdward Cree #define	FRF_AZ_TX_DC_HW_RPTR_WIDTH 6
23115a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_HW_RPTR_LBN 68
23125a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_HW_RPTR_WIDTH 12
23135a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_SW_WPTR_LBN 56
23145a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_SW_WPTR_WIDTH 12
23155a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_BUF_BASE_ID_LBN 36
23165a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_BUF_BASE_ID_WIDTH 20
23175a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_EVQ_ID_LBN 24
23185a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_EVQ_ID_WIDTH 12
23195a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_OWNER_ID_LBN 10
23205a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_OWNER_ID_WIDTH 14
23215a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_LABEL_LBN 5
23225a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_LABEL_WIDTH 5
23235a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_SIZE_LBN 3
23245a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_SIZE_WIDTH 2
23255a6681e2SEdward Cree #define	FFE_AZ_TX_DESCQ_SIZE_4K 3
23265a6681e2SEdward Cree #define	FFE_AZ_TX_DESCQ_SIZE_2K 2
23275a6681e2SEdward Cree #define	FFE_AZ_TX_DESCQ_SIZE_1K 1
23285a6681e2SEdward Cree #define	FFE_AZ_TX_DESCQ_SIZE_512 0
23295a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_TYPE_LBN 1
23305a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_TYPE_WIDTH 2
23315a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_FLUSH_LBN 0
23325a6681e2SEdward Cree #define	FRF_AZ_TX_DESCQ_FLUSH_WIDTH 1
23335a6681e2SEdward Cree 
23345a6681e2SEdward Cree /* EVQ_PTR_TBL_KER: Event queue pointer table */
23355a6681e2SEdward Cree #define	FR_AA_EVQ_PTR_TBL_KER 0x00011a00
23365a6681e2SEdward Cree #define	FR_AA_EVQ_PTR_TBL_KER_STEP 16
23375a6681e2SEdward Cree #define	FR_AA_EVQ_PTR_TBL_KER_ROWS 4
23385a6681e2SEdward Cree /* EVQ_PTR_TBL: Event queue pointer table */
23395a6681e2SEdward Cree #define	FR_BZ_EVQ_PTR_TBL 0x00f60000
23405a6681e2SEdward Cree #define	FR_BZ_EVQ_PTR_TBL_STEP 16
23415a6681e2SEdward Cree #define	FR_CZ_EVQ_PTR_TBL_ROWS 1024
23425a6681e2SEdward Cree #define	FR_BB_EVQ_PTR_TBL_ROWS 4096
23435a6681e2SEdward Cree #define	FRF_BZ_EVQ_RPTR_IGN_LBN 40
23445a6681e2SEdward Cree #define	FRF_BZ_EVQ_RPTR_IGN_WIDTH 1
23455a6681e2SEdward Cree #define	FRF_AB_EVQ_WKUP_OR_INT_EN_LBN 39
23465a6681e2SEdward Cree #define	FRF_AB_EVQ_WKUP_OR_INT_EN_WIDTH 1
23475a6681e2SEdward Cree #define	FRF_CZ_EVQ_DOS_PROTECT_EN_LBN 39
23485a6681e2SEdward Cree #define	FRF_CZ_EVQ_DOS_PROTECT_EN_WIDTH 1
23495a6681e2SEdward Cree #define	FRF_AZ_EVQ_NXT_WPTR_LBN 24
23505a6681e2SEdward Cree #define	FRF_AZ_EVQ_NXT_WPTR_WIDTH 15
23515a6681e2SEdward Cree #define	FRF_AZ_EVQ_EN_LBN 23
23525a6681e2SEdward Cree #define	FRF_AZ_EVQ_EN_WIDTH 1
23535a6681e2SEdward Cree #define	FRF_AZ_EVQ_SIZE_LBN 20
23545a6681e2SEdward Cree #define	FRF_AZ_EVQ_SIZE_WIDTH 3
23555a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_32K 6
23565a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_16K 5
23575a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_8K 4
23585a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_4K 3
23595a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_2K 2
23605a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_1K 1
23615a6681e2SEdward Cree #define	FFE_AZ_EVQ_SIZE_512 0
23625a6681e2SEdward Cree #define	FRF_AZ_EVQ_BUF_BASE_ID_LBN 0
23635a6681e2SEdward Cree #define	FRF_AZ_EVQ_BUF_BASE_ID_WIDTH 20
23645a6681e2SEdward Cree 
23655a6681e2SEdward Cree /* BUF_HALF_TBL_KER: Buffer table in half buffer table mode direct access by driver */
23665a6681e2SEdward Cree #define	FR_AA_BUF_HALF_TBL_KER 0x00018000
23675a6681e2SEdward Cree #define	FR_AA_BUF_HALF_TBL_KER_STEP 8
23685a6681e2SEdward Cree #define	FR_AA_BUF_HALF_TBL_KER_ROWS 4096
23695a6681e2SEdward Cree /* BUF_HALF_TBL: Buffer table in half buffer table mode direct access by driver */
23705a6681e2SEdward Cree #define	FR_BZ_BUF_HALF_TBL 0x00800000
23715a6681e2SEdward Cree #define	FR_BZ_BUF_HALF_TBL_STEP 8
23725a6681e2SEdward Cree #define	FR_CZ_BUF_HALF_TBL_ROWS 147456
23735a6681e2SEdward Cree #define	FR_BB_BUF_HALF_TBL_ROWS 524288
23745a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_HBUF_ODD_LBN 44
23755a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_HBUF_ODD_WIDTH 20
23765a6681e2SEdward Cree #define	FRF_AZ_BUF_OWNER_ID_HBUF_ODD_LBN 32
23775a6681e2SEdward Cree #define	FRF_AZ_BUF_OWNER_ID_HBUF_ODD_WIDTH 12
23785a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_HBUF_EVEN_LBN 12
23795a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_HBUF_EVEN_WIDTH 20
23805a6681e2SEdward Cree #define	FRF_AZ_BUF_OWNER_ID_HBUF_EVEN_LBN 0
23815a6681e2SEdward Cree #define	FRF_AZ_BUF_OWNER_ID_HBUF_EVEN_WIDTH 12
23825a6681e2SEdward Cree 
23835a6681e2SEdward Cree /* BUF_FULL_TBL_KER: Buffer table in full buffer table mode direct access by driver */
23845a6681e2SEdward Cree #define	FR_AA_BUF_FULL_TBL_KER 0x00018000
23855a6681e2SEdward Cree #define	FR_AA_BUF_FULL_TBL_KER_STEP 8
23865a6681e2SEdward Cree #define	FR_AA_BUF_FULL_TBL_KER_ROWS 4096
23875a6681e2SEdward Cree /* BUF_FULL_TBL: Buffer table in full buffer table mode direct access by driver */
23885a6681e2SEdward Cree #define	FR_BZ_BUF_FULL_TBL 0x00800000
23895a6681e2SEdward Cree #define	FR_BZ_BUF_FULL_TBL_STEP 8
23905a6681e2SEdward Cree #define	FR_CZ_BUF_FULL_TBL_ROWS 147456
23915a6681e2SEdward Cree #define	FR_BB_BUF_FULL_TBL_ROWS 917504
23925a6681e2SEdward Cree #define	FRF_AZ_BUF_FULL_UNUSED_LBN 51
23935a6681e2SEdward Cree #define	FRF_AZ_BUF_FULL_UNUSED_WIDTH 13
23945a6681e2SEdward Cree #define	FRF_AZ_IP_DAT_BUF_SIZE_LBN 50
23955a6681e2SEdward Cree #define	FRF_AZ_IP_DAT_BUF_SIZE_WIDTH 1
23965a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_REGION_LBN 48
23975a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_REGION_WIDTH 2
23985a6681e2SEdward Cree #define	FFE_AZ_BUF_ADR_REGN3 3
23995a6681e2SEdward Cree #define	FFE_AZ_BUF_ADR_REGN2 2
24005a6681e2SEdward Cree #define	FFE_AZ_BUF_ADR_REGN1 1
24015a6681e2SEdward Cree #define	FFE_AZ_BUF_ADR_REGN0 0
24025a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_FBUF_LBN 14
24035a6681e2SEdward Cree #define	FRF_AZ_BUF_ADR_FBUF_WIDTH 34
24045a6681e2SEdward Cree #define	FRF_AZ_BUF_OWNER_ID_FBUF_LBN 0
24055a6681e2SEdward Cree #define	FRF_AZ_BUF_OWNER_ID_FBUF_WIDTH 14
24065a6681e2SEdward Cree 
24075a6681e2SEdward Cree /* RX_FILTER_TBL0: TCP/IPv4 Receive filter table */
24085a6681e2SEdward Cree #define	FR_BZ_RX_FILTER_TBL0 0x00f00000
24095a6681e2SEdward Cree #define	FR_BZ_RX_FILTER_TBL0_STEP 32
24105a6681e2SEdward Cree #define	FR_BZ_RX_FILTER_TBL0_ROWS 8192
24115a6681e2SEdward Cree /* RX_FILTER_TBL1: TCP/IPv4 Receive filter table */
24125a6681e2SEdward Cree #define	FR_BB_RX_FILTER_TBL1 0x00f00010
24135a6681e2SEdward Cree #define	FR_BB_RX_FILTER_TBL1_STEP 32
24145a6681e2SEdward Cree #define	FR_BB_RX_FILTER_TBL1_ROWS 8192
24155a6681e2SEdward Cree #define	FRF_BZ_RSS_EN_LBN 110
24165a6681e2SEdward Cree #define	FRF_BZ_RSS_EN_WIDTH 1
24175a6681e2SEdward Cree #define	FRF_BZ_SCATTER_EN_LBN 109
24185a6681e2SEdward Cree #define	FRF_BZ_SCATTER_EN_WIDTH 1
24195a6681e2SEdward Cree #define	FRF_BZ_TCP_UDP_LBN 108
24205a6681e2SEdward Cree #define	FRF_BZ_TCP_UDP_WIDTH 1
24215a6681e2SEdward Cree #define	FRF_BZ_RXQ_ID_LBN 96
24225a6681e2SEdward Cree #define	FRF_BZ_RXQ_ID_WIDTH 12
24235a6681e2SEdward Cree #define	FRF_BZ_DEST_IP_LBN 64
24245a6681e2SEdward Cree #define	FRF_BZ_DEST_IP_WIDTH 32
24255a6681e2SEdward Cree #define	FRF_BZ_DEST_PORT_TCP_LBN 48
24265a6681e2SEdward Cree #define	FRF_BZ_DEST_PORT_TCP_WIDTH 16
24275a6681e2SEdward Cree #define	FRF_BZ_SRC_IP_LBN 16
24285a6681e2SEdward Cree #define	FRF_BZ_SRC_IP_WIDTH 32
24295a6681e2SEdward Cree #define	FRF_BZ_SRC_TCP_DEST_UDP_LBN 0
24305a6681e2SEdward Cree #define	FRF_BZ_SRC_TCP_DEST_UDP_WIDTH 16
24315a6681e2SEdward Cree 
24325a6681e2SEdward Cree /* RX_MAC_FILTER_TBL0: Receive Ethernet filter table */
24335a6681e2SEdward Cree #define	FR_CZ_RX_MAC_FILTER_TBL0 0x00f00010
24345a6681e2SEdward Cree #define	FR_CZ_RX_MAC_FILTER_TBL0_STEP 32
24355a6681e2SEdward Cree #define	FR_CZ_RX_MAC_FILTER_TBL0_ROWS 512
24365a6681e2SEdward Cree #define	FRF_CZ_RMFT_RSS_EN_LBN 75
24375a6681e2SEdward Cree #define	FRF_CZ_RMFT_RSS_EN_WIDTH 1
24385a6681e2SEdward Cree #define	FRF_CZ_RMFT_SCATTER_EN_LBN 74
24395a6681e2SEdward Cree #define	FRF_CZ_RMFT_SCATTER_EN_WIDTH 1
24405a6681e2SEdward Cree #define	FRF_CZ_RMFT_IP_OVERRIDE_LBN 73
24415a6681e2SEdward Cree #define	FRF_CZ_RMFT_IP_OVERRIDE_WIDTH 1
24425a6681e2SEdward Cree #define	FRF_CZ_RMFT_RXQ_ID_LBN 61
24435a6681e2SEdward Cree #define	FRF_CZ_RMFT_RXQ_ID_WIDTH 12
24445a6681e2SEdward Cree #define	FRF_CZ_RMFT_WILDCARD_MATCH_LBN 60
24455a6681e2SEdward Cree #define	FRF_CZ_RMFT_WILDCARD_MATCH_WIDTH 1
24465a6681e2SEdward Cree #define	FRF_CZ_RMFT_DEST_MAC_LBN 12
24475a6681e2SEdward Cree #define	FRF_CZ_RMFT_DEST_MAC_WIDTH 48
24485a6681e2SEdward Cree #define	FRF_CZ_RMFT_VLAN_ID_LBN 0
24495a6681e2SEdward Cree #define	FRF_CZ_RMFT_VLAN_ID_WIDTH 12
24505a6681e2SEdward Cree 
24515a6681e2SEdward Cree /* TIMER_TBL: Timer table */
24525a6681e2SEdward Cree #define	FR_BZ_TIMER_TBL 0x00f70000
24535a6681e2SEdward Cree #define	FR_BZ_TIMER_TBL_STEP 16
24545a6681e2SEdward Cree #define	FR_CZ_TIMER_TBL_ROWS 1024
24555a6681e2SEdward Cree #define	FR_BB_TIMER_TBL_ROWS 4096
24565a6681e2SEdward Cree #define	FRF_CZ_TIMER_Q_EN_LBN 33
24575a6681e2SEdward Cree #define	FRF_CZ_TIMER_Q_EN_WIDTH 1
24585a6681e2SEdward Cree #define	FRF_CZ_INT_ARMD_LBN 32
24595a6681e2SEdward Cree #define	FRF_CZ_INT_ARMD_WIDTH 1
24605a6681e2SEdward Cree #define	FRF_CZ_INT_PEND_LBN 31
24615a6681e2SEdward Cree #define	FRF_CZ_INT_PEND_WIDTH 1
24625a6681e2SEdward Cree #define	FRF_CZ_HOST_NOTIFY_MODE_LBN 30
24635a6681e2SEdward Cree #define	FRF_CZ_HOST_NOTIFY_MODE_WIDTH 1
24645a6681e2SEdward Cree #define	FRF_CZ_RELOAD_TIMER_VAL_LBN 16
24655a6681e2SEdward Cree #define	FRF_CZ_RELOAD_TIMER_VAL_WIDTH 14
24665a6681e2SEdward Cree #define	FRF_CZ_TIMER_MODE_LBN 14
24675a6681e2SEdward Cree #define	FRF_CZ_TIMER_MODE_WIDTH 2
24685a6681e2SEdward Cree #define	FFE_CZ_TIMER_MODE_INT_HLDOFF 3
24695a6681e2SEdward Cree #define	FFE_CZ_TIMER_MODE_TRIG_START 2
24705a6681e2SEdward Cree #define	FFE_CZ_TIMER_MODE_IMMED_START 1
24715a6681e2SEdward Cree #define	FFE_CZ_TIMER_MODE_DIS 0
24725a6681e2SEdward Cree #define	FRF_BB_TIMER_MODE_LBN 12
24735a6681e2SEdward Cree #define	FRF_BB_TIMER_MODE_WIDTH 2
24745a6681e2SEdward Cree #define	FFE_BB_TIMER_MODE_INT_HLDOFF 2
24755a6681e2SEdward Cree #define	FFE_BB_TIMER_MODE_TRIG_START 2
24765a6681e2SEdward Cree #define	FFE_BB_TIMER_MODE_IMMED_START 1
24775a6681e2SEdward Cree #define	FFE_BB_TIMER_MODE_DIS 0
24785a6681e2SEdward Cree #define	FRF_CZ_TIMER_VAL_LBN 0
24795a6681e2SEdward Cree #define	FRF_CZ_TIMER_VAL_WIDTH 14
24805a6681e2SEdward Cree #define	FRF_BB_TIMER_VAL_LBN 0
24815a6681e2SEdward Cree #define	FRF_BB_TIMER_VAL_WIDTH 12
24825a6681e2SEdward Cree 
24835a6681e2SEdward Cree /* TX_PACE_TBL: Transmit pacing table */
24845a6681e2SEdward Cree #define	FR_BZ_TX_PACE_TBL 0x00f80000
24855a6681e2SEdward Cree #define	FR_BZ_TX_PACE_TBL_STEP 16
24865a6681e2SEdward Cree #define	FR_CZ_TX_PACE_TBL_ROWS 1024
24875a6681e2SEdward Cree #define	FR_BB_TX_PACE_TBL_ROWS 4096
24885a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_LBN 0
24895a6681e2SEdward Cree #define	FRF_BZ_TX_PACE_WIDTH 5
24905a6681e2SEdward Cree 
24915a6681e2SEdward Cree /* RX_INDIRECTION_TBL: RX Indirection Table */
24925a6681e2SEdward Cree #define	FR_BZ_RX_INDIRECTION_TBL 0x00fb0000
24935a6681e2SEdward Cree #define	FR_BZ_RX_INDIRECTION_TBL_STEP 16
24945a6681e2SEdward Cree #define	FR_BZ_RX_INDIRECTION_TBL_ROWS 128
24955a6681e2SEdward Cree #define	FRF_BZ_IT_QUEUE_LBN 0
24965a6681e2SEdward Cree #define	FRF_BZ_IT_QUEUE_WIDTH 6
24975a6681e2SEdward Cree 
24985a6681e2SEdward Cree /* TX_FILTER_TBL0: TCP/IPv4 Transmit filter table */
24995a6681e2SEdward Cree #define	FR_CZ_TX_FILTER_TBL0 0x00fc0000
25005a6681e2SEdward Cree #define	FR_CZ_TX_FILTER_TBL0_STEP 16
25015a6681e2SEdward Cree #define	FR_CZ_TX_FILTER_TBL0_ROWS 8192
25025a6681e2SEdward Cree #define	FRF_CZ_TIFT_TCP_UDP_LBN 108
25035a6681e2SEdward Cree #define	FRF_CZ_TIFT_TCP_UDP_WIDTH 1
25045a6681e2SEdward Cree #define	FRF_CZ_TIFT_TXQ_ID_LBN 96
25055a6681e2SEdward Cree #define	FRF_CZ_TIFT_TXQ_ID_WIDTH 12
25065a6681e2SEdward Cree #define	FRF_CZ_TIFT_DEST_IP_LBN 64
25075a6681e2SEdward Cree #define	FRF_CZ_TIFT_DEST_IP_WIDTH 32
25085a6681e2SEdward Cree #define	FRF_CZ_TIFT_DEST_PORT_TCP_LBN 48
25095a6681e2SEdward Cree #define	FRF_CZ_TIFT_DEST_PORT_TCP_WIDTH 16
25105a6681e2SEdward Cree #define	FRF_CZ_TIFT_SRC_IP_LBN 16
25115a6681e2SEdward Cree #define	FRF_CZ_TIFT_SRC_IP_WIDTH 32
25125a6681e2SEdward Cree #define	FRF_CZ_TIFT_SRC_TCP_DEST_UDP_LBN 0
25135a6681e2SEdward Cree #define	FRF_CZ_TIFT_SRC_TCP_DEST_UDP_WIDTH 16
25145a6681e2SEdward Cree 
25155a6681e2SEdward Cree /* TX_MAC_FILTER_TBL0: Transmit Ethernet filter table */
25165a6681e2SEdward Cree #define	FR_CZ_TX_MAC_FILTER_TBL0 0x00fe0000
25175a6681e2SEdward Cree #define	FR_CZ_TX_MAC_FILTER_TBL0_STEP 16
25185a6681e2SEdward Cree #define	FR_CZ_TX_MAC_FILTER_TBL0_ROWS 512
25195a6681e2SEdward Cree #define	FRF_CZ_TMFT_TXQ_ID_LBN 61
25205a6681e2SEdward Cree #define	FRF_CZ_TMFT_TXQ_ID_WIDTH 12
25215a6681e2SEdward Cree #define	FRF_CZ_TMFT_WILDCARD_MATCH_LBN 60
25225a6681e2SEdward Cree #define	FRF_CZ_TMFT_WILDCARD_MATCH_WIDTH 1
25235a6681e2SEdward Cree #define	FRF_CZ_TMFT_SRC_MAC_LBN 12
25245a6681e2SEdward Cree #define	FRF_CZ_TMFT_SRC_MAC_WIDTH 48
25255a6681e2SEdward Cree #define	FRF_CZ_TMFT_VLAN_ID_LBN 0
25265a6681e2SEdward Cree #define	FRF_CZ_TMFT_VLAN_ID_WIDTH 12
25275a6681e2SEdward Cree 
25285a6681e2SEdward Cree /* MC_TREG_SMEM: MC Shared Memory */
25295a6681e2SEdward Cree #define	FR_CZ_MC_TREG_SMEM 0x00ff0000
25305a6681e2SEdward Cree #define	FR_CZ_MC_TREG_SMEM_STEP 4
25315a6681e2SEdward Cree #define	FR_CZ_MC_TREG_SMEM_ROWS 512
25325a6681e2SEdward Cree #define	FRF_CZ_MC_TREG_SMEM_ROW_LBN 0
25335a6681e2SEdward Cree #define	FRF_CZ_MC_TREG_SMEM_ROW_WIDTH 32
25345a6681e2SEdward Cree 
25355a6681e2SEdward Cree /* MSIX_VECTOR_TABLE: MSIX Vector Table */
25365a6681e2SEdward Cree #define	FR_BB_MSIX_VECTOR_TABLE 0x00ff0000
25375a6681e2SEdward Cree #define	FR_BZ_MSIX_VECTOR_TABLE_STEP 16
25385a6681e2SEdward Cree #define	FR_BB_MSIX_VECTOR_TABLE_ROWS 64
25395a6681e2SEdward Cree /* MSIX_VECTOR_TABLE: MSIX Vector Table */
25405a6681e2SEdward Cree #define	FR_CZ_MSIX_VECTOR_TABLE 0x00000000
25415a6681e2SEdward Cree /* FR_BZ_MSIX_VECTOR_TABLE_STEP 16 */
25425a6681e2SEdward Cree #define	FR_CZ_MSIX_VECTOR_TABLE_ROWS 1024
25435a6681e2SEdward Cree #define	FRF_BZ_MSIX_VECTOR_RESERVED_LBN 97
25445a6681e2SEdward Cree #define	FRF_BZ_MSIX_VECTOR_RESERVED_WIDTH 31
25455a6681e2SEdward Cree #define	FRF_BZ_MSIX_VECTOR_MASK_LBN 96
25465a6681e2SEdward Cree #define	FRF_BZ_MSIX_VECTOR_MASK_WIDTH 1
25475a6681e2SEdward Cree #define	FRF_BZ_MSIX_MESSAGE_DATA_LBN 64
25485a6681e2SEdward Cree #define	FRF_BZ_MSIX_MESSAGE_DATA_WIDTH 32
25495a6681e2SEdward Cree #define	FRF_BZ_MSIX_MESSAGE_ADDRESS_HI_LBN 32
25505a6681e2SEdward Cree #define	FRF_BZ_MSIX_MESSAGE_ADDRESS_HI_WIDTH 32
25515a6681e2SEdward Cree #define	FRF_BZ_MSIX_MESSAGE_ADDRESS_LO_LBN 0
25525a6681e2SEdward Cree #define	FRF_BZ_MSIX_MESSAGE_ADDRESS_LO_WIDTH 32
25535a6681e2SEdward Cree 
25545a6681e2SEdward Cree /* MSIX_PBA_TABLE: MSIX Pending Bit Array */
25555a6681e2SEdward Cree #define	FR_BB_MSIX_PBA_TABLE 0x00ff2000
25565a6681e2SEdward Cree #define	FR_BZ_MSIX_PBA_TABLE_STEP 4
25575a6681e2SEdward Cree #define	FR_BB_MSIX_PBA_TABLE_ROWS 2
25585a6681e2SEdward Cree /* MSIX_PBA_TABLE: MSIX Pending Bit Array */
25595a6681e2SEdward Cree #define	FR_CZ_MSIX_PBA_TABLE 0x00008000
25605a6681e2SEdward Cree /* FR_BZ_MSIX_PBA_TABLE_STEP 4 */
25615a6681e2SEdward Cree #define	FR_CZ_MSIX_PBA_TABLE_ROWS 32
25625a6681e2SEdward Cree #define	FRF_BZ_MSIX_PBA_PEND_DWORD_LBN 0
25635a6681e2SEdward Cree #define	FRF_BZ_MSIX_PBA_PEND_DWORD_WIDTH 32
25645a6681e2SEdward Cree 
25655a6681e2SEdward Cree /* SRM_DBG_REG: SRAM debug access */
25665a6681e2SEdward Cree #define	FR_BZ_SRM_DBG 0x03000000
25675a6681e2SEdward Cree #define	FR_BZ_SRM_DBG_STEP 8
25685a6681e2SEdward Cree #define	FR_CZ_SRM_DBG_ROWS 262144
25695a6681e2SEdward Cree #define	FR_BB_SRM_DBG_ROWS 2097152
25705a6681e2SEdward Cree #define	FRF_BZ_SRM_DBG_LBN 0
25715a6681e2SEdward Cree #define	FRF_BZ_SRM_DBG_WIDTH 64
25725a6681e2SEdward Cree 
25735a6681e2SEdward Cree /* TB_MSIX_PBA_TABLE: MSIX Pending Bit Array */
25745a6681e2SEdward Cree #define	FR_CZ_TB_MSIX_PBA_TABLE 0x00008000
25755a6681e2SEdward Cree #define	FR_CZ_TB_MSIX_PBA_TABLE_STEP 4
25765a6681e2SEdward Cree #define	FR_CZ_TB_MSIX_PBA_TABLE_ROWS 1024
25775a6681e2SEdward Cree #define	FRF_CZ_TB_MSIX_PBA_PEND_DWORD_LBN 0
25785a6681e2SEdward Cree #define	FRF_CZ_TB_MSIX_PBA_PEND_DWORD_WIDTH 32
25795a6681e2SEdward Cree 
25805a6681e2SEdward Cree /* DRIVER_EV */
25815a6681e2SEdward Cree #define	FSF_AZ_DRIVER_EV_SUBCODE_LBN 56
25825a6681e2SEdward Cree #define	FSF_AZ_DRIVER_EV_SUBCODE_WIDTH 4
25835a6681e2SEdward Cree #define	FSE_BZ_TX_DSC_ERROR_EV 15
25845a6681e2SEdward Cree #define	FSE_BZ_RX_DSC_ERROR_EV 14
25855a6681e2SEdward Cree #define	FSE_AA_RX_RECOVER_EV 11
25865a6681e2SEdward Cree #define	FSE_AZ_TIMER_EV 10
25875a6681e2SEdward Cree #define	FSE_AZ_TX_PKT_NON_TCP_UDP 9
25885a6681e2SEdward Cree #define	FSE_AZ_WAKE_UP_EV 6
25895a6681e2SEdward Cree #define	FSE_AZ_SRM_UPD_DONE_EV 5
25905a6681e2SEdward Cree #define	FSE_AB_EVQ_NOT_EN_EV 3
25915a6681e2SEdward Cree #define	FSE_AZ_EVQ_INIT_DONE_EV 2
25925a6681e2SEdward Cree #define	FSE_AZ_RX_DESCQ_FLS_DONE_EV 1
25935a6681e2SEdward Cree #define	FSE_AZ_TX_DESCQ_FLS_DONE_EV 0
25945a6681e2SEdward Cree #define	FSF_AZ_DRIVER_EV_SUBDATA_LBN 0
25955a6681e2SEdward Cree #define	FSF_AZ_DRIVER_EV_SUBDATA_WIDTH 14
25965a6681e2SEdward Cree 
25975a6681e2SEdward Cree /* EVENT_ENTRY */
25985a6681e2SEdward Cree #define	FSF_AZ_EV_CODE_LBN 60
25995a6681e2SEdward Cree #define	FSF_AZ_EV_CODE_WIDTH 4
26005a6681e2SEdward Cree #define	FSE_CZ_EV_CODE_MCDI_EV 12
26015a6681e2SEdward Cree #define	FSE_CZ_EV_CODE_USER_EV 8
26025a6681e2SEdward Cree #define	FSE_AZ_EV_CODE_DRV_GEN_EV 7
26035a6681e2SEdward Cree #define	FSE_AZ_EV_CODE_GLOBAL_EV 6
26045a6681e2SEdward Cree #define	FSE_AZ_EV_CODE_DRIVER_EV 5
26055a6681e2SEdward Cree #define	FSE_AZ_EV_CODE_TX_EV 2
26065a6681e2SEdward Cree #define	FSE_AZ_EV_CODE_RX_EV 0
26075a6681e2SEdward Cree #define	FSF_AZ_EV_DATA_LBN 0
26085a6681e2SEdward Cree #define	FSF_AZ_EV_DATA_WIDTH 60
26095a6681e2SEdward Cree 
26105a6681e2SEdward Cree /* GLOBAL_EV */
26115a6681e2SEdward Cree #define	FSF_BB_GLB_EV_RX_RECOVERY_LBN 12
26125a6681e2SEdward Cree #define	FSF_BB_GLB_EV_RX_RECOVERY_WIDTH 1
26135a6681e2SEdward Cree #define	FSF_AA_GLB_EV_RX_RECOVERY_LBN 11
26145a6681e2SEdward Cree #define	FSF_AA_GLB_EV_RX_RECOVERY_WIDTH 1
26155a6681e2SEdward Cree #define	FSF_BB_GLB_EV_XG_MGT_INTR_LBN 11
26165a6681e2SEdward Cree #define	FSF_BB_GLB_EV_XG_MGT_INTR_WIDTH 1
26175a6681e2SEdward Cree #define	FSF_AB_GLB_EV_XFP_PHY0_INTR_LBN 10
26185a6681e2SEdward Cree #define	FSF_AB_GLB_EV_XFP_PHY0_INTR_WIDTH 1
26195a6681e2SEdward Cree #define	FSF_AB_GLB_EV_XG_PHY0_INTR_LBN 9
26205a6681e2SEdward Cree #define	FSF_AB_GLB_EV_XG_PHY0_INTR_WIDTH 1
26215a6681e2SEdward Cree #define	FSF_AB_GLB_EV_G_PHY0_INTR_LBN 7
26225a6681e2SEdward Cree #define	FSF_AB_GLB_EV_G_PHY0_INTR_WIDTH 1
26235a6681e2SEdward Cree 
26245a6681e2SEdward Cree /* LEGACY_INT_VEC */
26255a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_FATAL_INT_LBN 64
26265a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_FATAL_INT_WIDTH 1
26275a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_INT_Q_LBN 40
26285a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_INT_Q_WIDTH 4
26295a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_INT_FLAG_LBN 32
26305a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_INT_FLAG_WIDTH 1
26315a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_EVQ_FIFO_HF_LBN 1
26325a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_EVQ_FIFO_HF_WIDTH 1
26335a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_EVQ_FIFO_AF_LBN 0
26345a6681e2SEdward Cree #define	FSF_AZ_NET_IVEC_EVQ_FIFO_AF_WIDTH 1
26355a6681e2SEdward Cree 
26365a6681e2SEdward Cree /* MC_XGMAC_FLTR_RULE_DEF */
26375a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_MODE_LBN 416
26385a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_MODE_WIDTH 1
26395a6681e2SEdward Cree #define	FSE_CZ_MC_XFRC_MODE_LAYERED 1
26405a6681e2SEdward Cree #define	FSE_CZ_MC_XFRC_MODE_SIMPLE 0
26415a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_HASH_LBN 384
26425a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_HASH_WIDTH 32
26435a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_LAYER4_BYTE_MASK_LBN 256
26445a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_LAYER4_BYTE_MASK_WIDTH 128
26455a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_LAYER3_BYTE_MASK_LBN 128
26465a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_LAYER3_BYTE_MASK_WIDTH 128
26475a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_LAYER2_OR_SIMPLE_BYTE_MASK_LBN 0
26485a6681e2SEdward Cree #define	FSF_CZ_MC_XFRC_LAYER2_OR_SIMPLE_BYTE_MASK_WIDTH 128
26495a6681e2SEdward Cree 
26505a6681e2SEdward Cree /* RX_EV */
26515a6681e2SEdward Cree #define	FSF_CZ_RX_EV_PKT_NOT_PARSED_LBN 58
26525a6681e2SEdward Cree #define	FSF_CZ_RX_EV_PKT_NOT_PARSED_WIDTH 1
26535a6681e2SEdward Cree #define	FSF_CZ_RX_EV_IPV6_PKT_LBN 57
26545a6681e2SEdward Cree #define	FSF_CZ_RX_EV_IPV6_PKT_WIDTH 1
26555a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PKT_OK_LBN 56
26565a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PKT_OK_WIDTH 1
26575a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PAUSE_FRM_ERR_LBN 55
26585a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PAUSE_FRM_ERR_WIDTH 1
26595a6681e2SEdward Cree #define	FSF_AZ_RX_EV_BUF_OWNER_ID_ERR_LBN 54
26605a6681e2SEdward Cree #define	FSF_AZ_RX_EV_BUF_OWNER_ID_ERR_WIDTH 1
26615a6681e2SEdward Cree #define	FSF_AZ_RX_EV_IP_FRAG_ERR_LBN 53
26625a6681e2SEdward Cree #define	FSF_AZ_RX_EV_IP_FRAG_ERR_WIDTH 1
26635a6681e2SEdward Cree #define	FSF_AZ_RX_EV_IP_HDR_CHKSUM_ERR_LBN 52
26645a6681e2SEdward Cree #define	FSF_AZ_RX_EV_IP_HDR_CHKSUM_ERR_WIDTH 1
26655a6681e2SEdward Cree #define	FSF_AZ_RX_EV_TCP_UDP_CHKSUM_ERR_LBN 51
26665a6681e2SEdward Cree #define	FSF_AZ_RX_EV_TCP_UDP_CHKSUM_ERR_WIDTH 1
26675a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ETH_CRC_ERR_LBN 50
26685a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ETH_CRC_ERR_WIDTH 1
26695a6681e2SEdward Cree #define	FSF_AZ_RX_EV_FRM_TRUNC_LBN 49
26705a6681e2SEdward Cree #define	FSF_AZ_RX_EV_FRM_TRUNC_WIDTH 1
26715a6681e2SEdward Cree #define	FSF_AA_RX_EV_DRIB_NIB_LBN 49
26725a6681e2SEdward Cree #define	FSF_AA_RX_EV_DRIB_NIB_WIDTH 1
26735a6681e2SEdward Cree #define	FSF_AZ_RX_EV_TOBE_DISC_LBN 47
26745a6681e2SEdward Cree #define	FSF_AZ_RX_EV_TOBE_DISC_WIDTH 1
26755a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PKT_TYPE_LBN 44
26765a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PKT_TYPE_WIDTH 3
26775a6681e2SEdward Cree #define	FSE_AZ_RX_EV_PKT_TYPE_VLAN_JUMBO 5
26785a6681e2SEdward Cree #define	FSE_AZ_RX_EV_PKT_TYPE_VLAN_LLC 4
26795a6681e2SEdward Cree #define	FSE_AZ_RX_EV_PKT_TYPE_VLAN 3
26805a6681e2SEdward Cree #define	FSE_AZ_RX_EV_PKT_TYPE_JUMBO 2
26815a6681e2SEdward Cree #define	FSE_AZ_RX_EV_PKT_TYPE_LLC 1
26825a6681e2SEdward Cree #define	FSE_AZ_RX_EV_PKT_TYPE_ETH 0
26835a6681e2SEdward Cree #define	FSF_AZ_RX_EV_HDR_TYPE_LBN 42
26845a6681e2SEdward Cree #define	FSF_AZ_RX_EV_HDR_TYPE_WIDTH 2
26855a6681e2SEdward Cree #define	FSE_AZ_RX_EV_HDR_TYPE_OTHER 3
26865a6681e2SEdward Cree #define	FSE_AB_RX_EV_HDR_TYPE_IPV4_OTHER 2
26875a6681e2SEdward Cree #define	FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_OTHER 2
26885a6681e2SEdward Cree #define	FSE_AB_RX_EV_HDR_TYPE_IPV4_UDP 1
26895a6681e2SEdward Cree #define	FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_UDP 1
26905a6681e2SEdward Cree #define	FSE_AB_RX_EV_HDR_TYPE_IPV4_TCP 0
26915a6681e2SEdward Cree #define	FSE_CZ_RX_EV_HDR_TYPE_IPV4V6_TCP 0
26925a6681e2SEdward Cree #define	FSF_AZ_RX_EV_DESC_Q_EMPTY_LBN 41
26935a6681e2SEdward Cree #define	FSF_AZ_RX_EV_DESC_Q_EMPTY_WIDTH 1
26945a6681e2SEdward Cree #define	FSF_AZ_RX_EV_MCAST_HASH_MATCH_LBN 40
26955a6681e2SEdward Cree #define	FSF_AZ_RX_EV_MCAST_HASH_MATCH_WIDTH 1
26965a6681e2SEdward Cree #define	FSF_AZ_RX_EV_MCAST_PKT_LBN 39
26975a6681e2SEdward Cree #define	FSF_AZ_RX_EV_MCAST_PKT_WIDTH 1
26985a6681e2SEdward Cree #define	FSF_AA_RX_EV_RECOVERY_FLAG_LBN 37
26995a6681e2SEdward Cree #define	FSF_AA_RX_EV_RECOVERY_FLAG_WIDTH 1
27005a6681e2SEdward Cree #define	FSF_AZ_RX_EV_Q_LABEL_LBN 32
27015a6681e2SEdward Cree #define	FSF_AZ_RX_EV_Q_LABEL_WIDTH 5
27025a6681e2SEdward Cree #define	FSF_AZ_RX_EV_JUMBO_CONT_LBN 31
27035a6681e2SEdward Cree #define	FSF_AZ_RX_EV_JUMBO_CONT_WIDTH 1
27045a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PORT_LBN 30
27055a6681e2SEdward Cree #define	FSF_AZ_RX_EV_PORT_WIDTH 1
27065a6681e2SEdward Cree #define	FSF_AZ_RX_EV_BYTE_CNT_LBN 16
27075a6681e2SEdward Cree #define	FSF_AZ_RX_EV_BYTE_CNT_WIDTH 14
27085a6681e2SEdward Cree #define	FSF_AZ_RX_EV_SOP_LBN 15
27095a6681e2SEdward Cree #define	FSF_AZ_RX_EV_SOP_WIDTH 1
27105a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ISCSI_PKT_OK_LBN 14
27115a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ISCSI_PKT_OK_WIDTH 1
27125a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ISCSI_DDIG_ERR_LBN 13
27135a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ISCSI_DDIG_ERR_WIDTH 1
27145a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ISCSI_HDIG_ERR_LBN 12
27155a6681e2SEdward Cree #define	FSF_AZ_RX_EV_ISCSI_HDIG_ERR_WIDTH 1
27165a6681e2SEdward Cree #define	FSF_AZ_RX_EV_DESC_PTR_LBN 0
27175a6681e2SEdward Cree #define	FSF_AZ_RX_EV_DESC_PTR_WIDTH 12
27185a6681e2SEdward Cree 
27195a6681e2SEdward Cree /* RX_KER_DESC */
27205a6681e2SEdward Cree #define	FSF_AZ_RX_KER_BUF_SIZE_LBN 48
27215a6681e2SEdward Cree #define	FSF_AZ_RX_KER_BUF_SIZE_WIDTH 14
27225a6681e2SEdward Cree #define	FSF_AZ_RX_KER_BUF_REGION_LBN 46
27235a6681e2SEdward Cree #define	FSF_AZ_RX_KER_BUF_REGION_WIDTH 2
27245a6681e2SEdward Cree #define	FSF_AZ_RX_KER_BUF_ADDR_LBN 0
27255a6681e2SEdward Cree #define	FSF_AZ_RX_KER_BUF_ADDR_WIDTH 46
27265a6681e2SEdward Cree 
27275a6681e2SEdward Cree /* RX_USER_DESC */
27285a6681e2SEdward Cree #define	FSF_AZ_RX_USER_2BYTE_OFFSET_LBN 20
27295a6681e2SEdward Cree #define	FSF_AZ_RX_USER_2BYTE_OFFSET_WIDTH 12
27305a6681e2SEdward Cree #define	FSF_AZ_RX_USER_BUF_ID_LBN 0
27315a6681e2SEdward Cree #define	FSF_AZ_RX_USER_BUF_ID_WIDTH 20
27325a6681e2SEdward Cree 
27335a6681e2SEdward Cree /* TX_EV */
27345a6681e2SEdward Cree #define	FSF_AZ_TX_EV_PKT_ERR_LBN 38
27355a6681e2SEdward Cree #define	FSF_AZ_TX_EV_PKT_ERR_WIDTH 1
27365a6681e2SEdward Cree #define	FSF_AZ_TX_EV_PKT_TOO_BIG_LBN 37
27375a6681e2SEdward Cree #define	FSF_AZ_TX_EV_PKT_TOO_BIG_WIDTH 1
27385a6681e2SEdward Cree #define	FSF_AZ_TX_EV_Q_LABEL_LBN 32
27395a6681e2SEdward Cree #define	FSF_AZ_TX_EV_Q_LABEL_WIDTH 5
27405a6681e2SEdward Cree #define	FSF_AZ_TX_EV_PORT_LBN 16
27415a6681e2SEdward Cree #define	FSF_AZ_TX_EV_PORT_WIDTH 1
27425a6681e2SEdward Cree #define	FSF_AZ_TX_EV_WQ_FF_FULL_LBN 15
27435a6681e2SEdward Cree #define	FSF_AZ_TX_EV_WQ_FF_FULL_WIDTH 1
27445a6681e2SEdward Cree #define	FSF_AZ_TX_EV_BUF_OWNER_ID_ERR_LBN 14
27455a6681e2SEdward Cree #define	FSF_AZ_TX_EV_BUF_OWNER_ID_ERR_WIDTH 1
27465a6681e2SEdward Cree #define	FSF_AZ_TX_EV_COMP_LBN 12
27475a6681e2SEdward Cree #define	FSF_AZ_TX_EV_COMP_WIDTH 1
27485a6681e2SEdward Cree #define	FSF_AZ_TX_EV_DESC_PTR_LBN 0
27495a6681e2SEdward Cree #define	FSF_AZ_TX_EV_DESC_PTR_WIDTH 12
27505a6681e2SEdward Cree 
27515a6681e2SEdward Cree /* TX_KER_DESC */
27525a6681e2SEdward Cree #define	FSF_AZ_TX_KER_CONT_LBN 62
27535a6681e2SEdward Cree #define	FSF_AZ_TX_KER_CONT_WIDTH 1
27545a6681e2SEdward Cree #define	FSF_AZ_TX_KER_BYTE_COUNT_LBN 48
27555a6681e2SEdward Cree #define	FSF_AZ_TX_KER_BYTE_COUNT_WIDTH 14
27565a6681e2SEdward Cree #define	FSF_AZ_TX_KER_BUF_REGION_LBN 46
27575a6681e2SEdward Cree #define	FSF_AZ_TX_KER_BUF_REGION_WIDTH 2
27585a6681e2SEdward Cree #define	FSF_AZ_TX_KER_BUF_ADDR_LBN 0
27595a6681e2SEdward Cree #define	FSF_AZ_TX_KER_BUF_ADDR_WIDTH 46
27605a6681e2SEdward Cree 
27615a6681e2SEdward Cree /* TX_USER_DESC */
27625a6681e2SEdward Cree #define	FSF_AZ_TX_USER_SW_EV_EN_LBN 48
27635a6681e2SEdward Cree #define	FSF_AZ_TX_USER_SW_EV_EN_WIDTH 1
27645a6681e2SEdward Cree #define	FSF_AZ_TX_USER_CONT_LBN 46
27655a6681e2SEdward Cree #define	FSF_AZ_TX_USER_CONT_WIDTH 1
27665a6681e2SEdward Cree #define	FSF_AZ_TX_USER_BYTE_CNT_LBN 33
27675a6681e2SEdward Cree #define	FSF_AZ_TX_USER_BYTE_CNT_WIDTH 13
27685a6681e2SEdward Cree #define	FSF_AZ_TX_USER_BUF_ID_LBN 13
27695a6681e2SEdward Cree #define	FSF_AZ_TX_USER_BUF_ID_WIDTH 20
27705a6681e2SEdward Cree #define	FSF_AZ_TX_USER_BYTE_OFS_LBN 0
27715a6681e2SEdward Cree #define	FSF_AZ_TX_USER_BYTE_OFS_WIDTH 13
27725a6681e2SEdward Cree 
27735a6681e2SEdward Cree /* USER_EV */
27745a6681e2SEdward Cree #define	FSF_CZ_USER_QID_LBN 32
27755a6681e2SEdward Cree #define	FSF_CZ_USER_QID_WIDTH 10
27765a6681e2SEdward Cree #define	FSF_CZ_USER_EV_REG_VALUE_LBN 0
27775a6681e2SEdward Cree #define	FSF_CZ_USER_EV_REG_VALUE_WIDTH 32
27785a6681e2SEdward Cree 
27795a6681e2SEdward Cree /**************************************************************************
27805a6681e2SEdward Cree  *
27815a6681e2SEdward Cree  * Falcon B0 PCIe core indirect registers
27825a6681e2SEdward Cree  *
27835a6681e2SEdward Cree  **************************************************************************
27845a6681e2SEdward Cree  */
27855a6681e2SEdward Cree 
27865a6681e2SEdward Cree #define FPCR_BB_PCIE_DEVICE_CTRL_STAT 0x68
27875a6681e2SEdward Cree 
27885a6681e2SEdward Cree #define FPCR_BB_PCIE_LINK_CTRL_STAT 0x70
27895a6681e2SEdward Cree 
27905a6681e2SEdward Cree #define FPCR_BB_ACK_RPL_TIMER 0x700
27915a6681e2SEdward Cree #define FPCRF_BB_ACK_TL_LBN 0
27925a6681e2SEdward Cree #define FPCRF_BB_ACK_TL_WIDTH 16
27935a6681e2SEdward Cree #define FPCRF_BB_RPL_TL_LBN 16
27945a6681e2SEdward Cree #define FPCRF_BB_RPL_TL_WIDTH 16
27955a6681e2SEdward Cree 
27965a6681e2SEdward Cree #define FPCR_BB_ACK_FREQ 0x70C
27975a6681e2SEdward Cree #define FPCRF_BB_ACK_FREQ_LBN 0
27985a6681e2SEdward Cree #define FPCRF_BB_ACK_FREQ_WIDTH 7
27995a6681e2SEdward Cree 
28005a6681e2SEdward Cree /**************************************************************************
28015a6681e2SEdward Cree  *
28025a6681e2SEdward Cree  * Pseudo-registers and fields
28035a6681e2SEdward Cree  *
28045a6681e2SEdward Cree  **************************************************************************
28055a6681e2SEdward Cree  */
28065a6681e2SEdward Cree 
28075a6681e2SEdward Cree /* Interrupt acknowledge work-around register (A0/A1 only) */
28085a6681e2SEdward Cree #define FR_AA_WORK_AROUND_BROKEN_PCI_READS 0x0070
28095a6681e2SEdward Cree 
28105a6681e2SEdward Cree /* EE_SPI_HCMD_REG: SPI host command register */
28115a6681e2SEdward Cree /* Values for the EE_SPI_HCMD_SF_SEL register field */
28125a6681e2SEdward Cree #define FFE_AB_SPI_DEVICE_EEPROM 0
28135a6681e2SEdward Cree #define FFE_AB_SPI_DEVICE_FLASH 1
28145a6681e2SEdward Cree 
28155a6681e2SEdward Cree /* NIC_STAT_REG: NIC status register */
28165a6681e2SEdward Cree #define FRF_AB_STRAP_10G_LBN 2
28175a6681e2SEdward Cree #define FRF_AB_STRAP_10G_WIDTH 1
28185a6681e2SEdward Cree #define FRF_AA_STRAP_PCIE_LBN 0
28195a6681e2SEdward Cree #define FRF_AA_STRAP_PCIE_WIDTH 1
28205a6681e2SEdward Cree 
28215a6681e2SEdward Cree /* FATAL_INTR_REG_KER: Fatal interrupt register for Kernel */
28225a6681e2SEdward Cree #define FRF_AZ_FATAL_INTR_LBN 0
28235a6681e2SEdward Cree #define FRF_AZ_FATAL_INTR_WIDTH 12
28245a6681e2SEdward Cree 
28255a6681e2SEdward Cree /* SRM_CFG_REG: SRAM configuration register */
28265a6681e2SEdward Cree /* We treat the number of SRAM banks and bank size as a single field */
28275a6681e2SEdward Cree #define	FRF_AZ_SRM_NB_SZ_LBN FRF_AZ_SRM_BANK_SIZE_LBN
28285a6681e2SEdward Cree #define	FRF_AZ_SRM_NB_SZ_WIDTH \
28295a6681e2SEdward Cree 	(FRF_AZ_SRM_BANK_SIZE_WIDTH + FRF_AZ_SRM_NUM_BANK_WIDTH)
28305a6681e2SEdward Cree #define FFE_AB_SRM_NB1_SZ2M 0
28315a6681e2SEdward Cree #define FFE_AB_SRM_NB1_SZ4M 1
28325a6681e2SEdward Cree #define FFE_AB_SRM_NB1_SZ8M 2
28335a6681e2SEdward Cree #define FFE_AB_SRM_NB_SZ_DEF 3
28345a6681e2SEdward Cree #define FFE_AB_SRM_NB2_SZ4M 4
28355a6681e2SEdward Cree #define FFE_AB_SRM_NB2_SZ8M 5
28365a6681e2SEdward Cree #define FFE_AB_SRM_NB2_SZ16M 6
28375a6681e2SEdward Cree #define FFE_AB_SRM_NB_SZ_RES 7
28385a6681e2SEdward Cree 
28395a6681e2SEdward Cree /* RX_DESC_UPD_REGP0: Receive descriptor update register. */
28405a6681e2SEdward Cree /* We write just the last dword of these registers */
28415a6681e2SEdward Cree #define	FR_AZ_RX_DESC_UPD_DWORD_P0 \
28425a6681e2SEdward Cree 	(BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \
28435a6681e2SEdward Cree 	 FR_BZ_RX_DESC_UPD_P0 + 3 * 4)
28445a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_WPTR_DWORD_LBN (FRF_AZ_RX_DESC_WPTR_LBN - 3 * 32)
28455a6681e2SEdward Cree #define	FRF_AZ_RX_DESC_WPTR_DWORD_WIDTH FRF_AZ_RX_DESC_WPTR_WIDTH
28465a6681e2SEdward Cree 
28475a6681e2SEdward Cree /* TX_DESC_UPD_REGP0: Transmit descriptor update register. */
28485a6681e2SEdward Cree #define FR_AZ_TX_DESC_UPD_DWORD_P0 \
28495a6681e2SEdward Cree 	(BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \
28505a6681e2SEdward Cree 	 FR_BZ_TX_DESC_UPD_P0 + 3 * 4)
28515a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_WPTR_DWORD_LBN (FRF_AZ_TX_DESC_WPTR_LBN - 3 * 32)
28525a6681e2SEdward Cree #define	FRF_AZ_TX_DESC_WPTR_DWORD_WIDTH FRF_AZ_TX_DESC_WPTR_WIDTH
28535a6681e2SEdward Cree 
28545a6681e2SEdward Cree /* GMF_CFG4_REG: GMAC FIFO configuration register 4 */
28555a6681e2SEdward Cree #define FRF_AB_GMF_HSTFLTRFRM_PAUSE_LBN 12
28565a6681e2SEdward Cree #define FRF_AB_GMF_HSTFLTRFRM_PAUSE_WIDTH 1
28575a6681e2SEdward Cree 
28585a6681e2SEdward Cree /* GMF_CFG5_REG: GMAC FIFO configuration register 5 */
28595a6681e2SEdward Cree #define FRF_AB_GMF_HSTFLTRFRMDC_PAUSE_LBN 12
28605a6681e2SEdward Cree #define FRF_AB_GMF_HSTFLTRFRMDC_PAUSE_WIDTH 1
28615a6681e2SEdward Cree 
28625a6681e2SEdward Cree /* XM_TX_PARAM_REG: XGMAC transmit parameter register */
28635a6681e2SEdward Cree #define	FRF_AB_XM_MAX_TX_FRM_SIZE_LBN FRF_AB_XM_MAX_TX_FRM_SIZE_LO_LBN
28645a6681e2SEdward Cree #define	FRF_AB_XM_MAX_TX_FRM_SIZE_WIDTH (FRF_AB_XM_MAX_TX_FRM_SIZE_HI_WIDTH + \
28655a6681e2SEdward Cree 					 FRF_AB_XM_MAX_TX_FRM_SIZE_LO_WIDTH)
28665a6681e2SEdward Cree 
28675a6681e2SEdward Cree /* XM_RX_PARAM_REG: XGMAC receive parameter register */
28685a6681e2SEdward Cree #define	FRF_AB_XM_MAX_RX_FRM_SIZE_LBN FRF_AB_XM_MAX_RX_FRM_SIZE_LO_LBN
28695a6681e2SEdward Cree #define	FRF_AB_XM_MAX_RX_FRM_SIZE_WIDTH (FRF_AB_XM_MAX_RX_FRM_SIZE_HI_WIDTH + \
28705a6681e2SEdward Cree 					 FRF_AB_XM_MAX_RX_FRM_SIZE_LO_WIDTH)
28715a6681e2SEdward Cree 
28725a6681e2SEdward Cree /* XX_TXDRV_CTL_REG: XAUI SerDes transmit drive control register */
28735a6681e2SEdward Cree /* Default values */
28745a6681e2SEdward Cree #define FFE_AB_XX_TXDRV_DEQ_DEF 0xe /* deq=.6 */
28755a6681e2SEdward Cree #define FFE_AB_XX_TXDRV_DTX_DEF 0x5 /* 1.25 */
28765a6681e2SEdward Cree #define FFE_AB_XX_SD_CTL_DRV_DEF 0  /* 20mA */
28775a6681e2SEdward Cree 
28785a6681e2SEdward Cree /* XX_CORE_STAT_REG: XAUI XGXS core status register */
28795a6681e2SEdward Cree /* XGXS all-lanes status fields */
28805a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT_LBN FRF_AB_XX_SYNC_STAT0_LBN
28815a6681e2SEdward Cree #define	FRF_AB_XX_SYNC_STAT_WIDTH 4
28825a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_LBN FRF_AB_XX_COMMA_DET_CH0_LBN
28835a6681e2SEdward Cree #define	FRF_AB_XX_COMMA_DET_WIDTH 4
28845a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_LBN FRF_AB_XX_CHAR_ERR_CH0_LBN
28855a6681e2SEdward Cree #define	FRF_AB_XX_CHAR_ERR_WIDTH 4
28865a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_LBN FRF_AB_XX_DISPERR_CH0_LBN
28875a6681e2SEdward Cree #define	FRF_AB_XX_DISPERR_WIDTH 4
28885a6681e2SEdward Cree #define	FFE_AB_XX_STAT_ALL_LANES 0xf
28895a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG_LBN FRF_AB_XX_FORCE_SIG0_VAL_LBN
28905a6681e2SEdward Cree #define	FRF_AB_XX_FORCE_SIG_WIDTH 8
28915a6681e2SEdward Cree #define	FFE_AB_XX_FORCE_SIG_ALL_LANES 0xff
28925a6681e2SEdward Cree 
28935a6681e2SEdward Cree /* RX_MAC_FILTER_TBL0 */
28945a6681e2SEdward Cree /* RMFT_DEST_MAC is wider than 32 bits */
28955a6681e2SEdward Cree #define FRF_CZ_RMFT_DEST_MAC_LO_LBN FRF_CZ_RMFT_DEST_MAC_LBN
28965a6681e2SEdward Cree #define FRF_CZ_RMFT_DEST_MAC_LO_WIDTH 32
28975a6681e2SEdward Cree #define FRF_CZ_RMFT_DEST_MAC_HI_LBN (FRF_CZ_RMFT_DEST_MAC_LBN + 32)
28985a6681e2SEdward Cree #define FRF_CZ_RMFT_DEST_MAC_HI_WIDTH (FRF_CZ_RMFT_DEST_MAC_WIDTH - 32)
28995a6681e2SEdward Cree 
29005a6681e2SEdward Cree /* TX_MAC_FILTER_TBL0 */
29015a6681e2SEdward Cree /* TMFT_SRC_MAC is wider than 32 bits */
29025a6681e2SEdward Cree #define FRF_CZ_TMFT_SRC_MAC_LO_LBN FRF_CZ_TMFT_SRC_MAC_LBN
29035a6681e2SEdward Cree #define FRF_CZ_TMFT_SRC_MAC_LO_WIDTH 32
29045a6681e2SEdward Cree #define FRF_CZ_TMFT_SRC_MAC_HI_LBN (FRF_CZ_TMFT_SRC_MAC_LBN + 32)
29055a6681e2SEdward Cree #define FRF_CZ_TMFT_SRC_MAC_HI_WIDTH (FRF_CZ_TMFT_SRC_MAC_WIDTH - 32)
29065a6681e2SEdward Cree 
29075a6681e2SEdward Cree /* TX_PACE_TBL */
29085a6681e2SEdward Cree /* Values >20 are documented as reserved, but will result in a queue going
29095a6681e2SEdward Cree  * into the fast bin with a pace value of zero. */
29105a6681e2SEdward Cree #define FFE_BZ_TX_PACE_OFF 0
29115a6681e2SEdward Cree #define FFE_BZ_TX_PACE_RESERVED 21
29125a6681e2SEdward Cree 
29135a6681e2SEdward Cree /* DRIVER_EV */
29145a6681e2SEdward Cree /* Sub-fields of an RX flush completion event */
29155a6681e2SEdward Cree #define FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL_LBN 12
29165a6681e2SEdward Cree #define FSF_AZ_DRIVER_EV_RX_FLUSH_FAIL_WIDTH 1
29175a6681e2SEdward Cree #define FSF_AZ_DRIVER_EV_RX_DESCQ_ID_LBN 0
29185a6681e2SEdward Cree #define FSF_AZ_DRIVER_EV_RX_DESCQ_ID_WIDTH 12
29195a6681e2SEdward Cree 
29205a6681e2SEdward Cree /* EVENT_ENTRY */
29215a6681e2SEdward Cree /* Magic number field for event test */
29225a6681e2SEdward Cree #define FSF_AZ_DRV_GEN_EV_MAGIC_LBN 0
29235a6681e2SEdward Cree #define FSF_AZ_DRV_GEN_EV_MAGIC_WIDTH 32
29245a6681e2SEdward Cree 
29255a6681e2SEdward Cree /* RX packet prefix */
29265a6681e2SEdward Cree #define FS_BZ_RX_PREFIX_HASH_OFST 12
29275a6681e2SEdward Cree #define FS_BZ_RX_PREFIX_SIZE 16
29285a6681e2SEdward Cree 
29295a6681e2SEdward Cree #endif /* EF4_FARCH_REGS_H */
2930