/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2007-2017 QLogic Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #include #ifndef ECORE_REG_H #define ECORE_REG_H #define ATC_ATC_INT_STS_REG_ADDRESS_ERROR \ (0x1<<0) #define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS \ (0x1<<2) #define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU \ (0x1<<5) #define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT \ (0x1<<3) #define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR \ (0x1<<4) #define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND \ (0x1<<1) #define ATC_REG_ATC_INIT_DONE \ 0x1100bcUL #define ATC_REG_ATC_INT_STS_CLR \ 0x1101c0UL #define ATC_REG_ATC_PRTY_MASK \ 0x1101d8UL #define ATC_REG_ATC_PRTY_STS_CLR \ 0x1101d0UL #define BRB1_REG_BRB1_INT_MASK \ 0x60128UL #define BRB1_REG_BRB1_PRTY_MASK \ 0x60138UL #define BRB1_REG_BRB1_PRTY_STS_CLR \ 0x60130UL #define BRB1_REG_MAC_GUARANTIED_0 \ 0x601e8UL #define BRB1_REG_MAC_GUARANTIED_1 \ 0x60240UL #define BRB1_REG_NUM_OF_FULL_BLOCKS \ 0x60090UL #define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 \ 0x60078UL #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 \ 0x60068UL #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 \ 0x60094UL #define CCM_REG_CCM_INT_MASK \ 0xd01e4UL #define CCM_REG_CCM_PRTY_MASK \ 0xd01f4UL #define CCM_REG_CCM_PRTY_STS_CLR \ 0xd01ecUL #define CDU_REG_CDU_GLOBAL_PARAMS \ 0x101020UL #define CDU_REG_CDU_INT_MASK \ 0x10103cUL #define CDU_REG_CDU_PRTY_MASK \ 0x10104cUL #define CDU_REG_CDU_PRTY_STS_CLR \ 0x101044UL #define CFC_REG_AC_INIT_DONE \ 0x104078UL #define CFC_REG_CAM_INIT_DONE \ 0x10407cUL #define CFC_REG_CFC_INT_MASK \ 0x104108UL #define CFC_REG_CFC_INT_STS_CLR \ 0x104100UL #define CFC_REG_CFC_PRTY_MASK \ 0x104118UL #define CFC_REG_CFC_PRTY_STS_CLR \ 0x104110UL #define CFC_REG_DEBUG0 \ 0x104050UL #define CFC_REG_INIT_REG \ 0x10404cUL #define CFC_REG_LL_INIT_DONE \ 0x104074UL #define CFC_REG_NUM_LCIDS_INSIDE_PF \ 0x104120UL #define CFC_REG_STRONG_ENABLE_PF \ 0x104128UL #define CFC_REG_WEAK_ENABLE_PF \ 0x104124UL #define CSDM_REG_CSDM_INT_MASK_0 \ 0xc229cUL #define CSDM_REG_CSDM_INT_MASK_1 \ 0xc22acUL #define CSDM_REG_CSDM_PRTY_MASK \ 0xc22bcUL #define CSDM_REG_CSDM_PRTY_STS_CLR \ 0xc22b4UL #define CSEM_REG_CSEM_INT_MASK_0 \ 0x200110UL #define CSEM_REG_CSEM_INT_MASK_1 \ 0x200120UL #define CSEM_REG_CSEM_PRTY_MASK_0 \ 0x200130UL #define CSEM_REG_CSEM_PRTY_MASK_1 \ 0x200140UL #define CSEM_REG_CSEM_PRTY_STS_CLR_0 \ 0x200128UL #define CSEM_REG_CSEM_PRTY_STS_CLR_1 \ 0x200138UL #define CSEM_REG_FAST_MEMORY \ 0x220000UL #define CSEM_REG_INT_TABLE \ 0x200400UL #define CSEM_REG_PASSIVE_BUFFER \ 0x202000UL #define CSEM_REG_PRAM \ 0x240000UL #define CSEM_REG_VFPF_ERR_NUM \ 0x200380UL #define DBG_REG_DBG_PRTY_MASK \ 0xc0a8UL #define DBG_REG_DBG_PRTY_STS_CLR \ 0xc0a0UL #define DMAE_REG_CMD_MEM \ 0x102400UL #define DMAE_REG_DMAE_INT_MASK \ 0x102054UL #define DMAE_REG_DMAE_PRTY_MASK \ 0x102064UL #define DMAE_REG_DMAE_PRTY_STS_CLR \ 0x10205cUL #define DMAE_REG_GO_C0 \ 0x102080UL #define DMAE_REG_GO_C1 \ 0x102084UL #define DMAE_REG_GO_C10 \ 0x102088UL #define DMAE_REG_GO_C11 \ 0x10208cUL #define DMAE_REG_GO_C12 \ 0x102090UL #define DMAE_REG_GO_C13 \ 0x102094UL #define DMAE_REG_GO_C14 \ 0x102098UL #define DMAE_REG_GO_C15 \ 0x10209cUL #define DMAE_REG_GO_C2 \ 0x1020a0UL #define DMAE_REG_GO_C3 \ 0x1020a4UL #define DMAE_REG_GO_C4 \ 0x1020a8UL #define DMAE_REG_GO_C5 \ 0x1020acUL #define DMAE_REG_GO_C6 \ 0x1020b0UL #define DMAE_REG_GO_C7 \ 0x1020b4UL #define DMAE_REG_GO_C8 \ 0x1020b8UL #define DMAE_REG_GO_C9 \ 0x1020bcUL #define DORQ_REG_DORQ_INT_MASK \ 0x170180UL #define DORQ_REG_DORQ_INT_STS_CLR \ 0x170178UL #define DORQ_REG_DORQ_PRTY_MASK \ 0x170190UL #define DORQ_REG_DORQ_PRTY_STS_CLR \ 0x170188UL #define DORQ_REG_DPM_CID_OFST \ 0x170030UL #define DORQ_REG_NORM_CID_OFST \ 0x17002cUL #define DORQ_REG_PF_USAGE_CNT \ 0x1701d0UL #define HC_CONFIG_0_REG_ATTN_BIT_EN_0 \ (0x1<<4) #define HC_CONFIG_0_REG_BLOCK_DISABLE_0 \ (0x1<<0) #define HC_CONFIG_0_REG_INT_LINE_EN_0 \ (0x1<<3) #define HC_CONFIG_0_REG_MSI_ATTN_EN_0 \ (0x1<<7) #define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0 \ (0x1<<2) #define HC_CONFIG_0_REG_SINGLE_ISR_EN_0 \ (0x1<<1) #define HC_CONFIG_1_REG_BLOCK_DISABLE_1 \ (0x1<<0) #define HC_REG_ATTN_MSG0_ADDR_L \ 0x108018UL #define HC_REG_ATTN_MSG1_ADDR_L \ 0x108020UL #define HC_REG_COMMAND_REG \ 0x108180UL #define HC_REG_CONFIG_0 \ 0x108000UL #define HC_REG_CONFIG_1 \ 0x108004UL #define HC_REG_HC_PRTY_MASK \ 0x1080a0UL #define HC_REG_HC_PRTY_STS_CLR \ 0x108098UL #define HC_REG_INT_MASK \ 0x108108UL #define HC_REG_LEADING_EDGE_0 \ 0x108040UL #define HC_REG_MAIN_MEMORY \ 0x108800UL #define HC_REG_MAIN_MEMORY_SIZE \ 152 #define HC_REG_TRAILING_EDGE_0 \ 0x108044UL #define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN \ (0x1<<1) #define IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE \ (0x1<<0) #define IGU_REG_ATTENTION_ACK_BITS \ 0x130108UL #define IGU_REG_ATTN_MSG_ADDR_H \ 0x13011cUL #define IGU_REG_ATTN_MSG_ADDR_L \ 0x130120UL #define IGU_REG_BLOCK_CONFIGURATION \ 0x130000UL #define IGU_REG_COMMAND_REG_32LSB_DATA \ 0x130124UL #define IGU_REG_COMMAND_REG_CTRL \ 0x13012cUL #define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP \ 0x130200UL #define IGU_REG_IGU_PRTY_MASK \ 0x1300a8UL #define IGU_REG_IGU_PRTY_STS_CLR \ 0x1300a0UL #define IGU_REG_LEADING_EDGE_LATCH \ 0x130134UL #define IGU_REG_MAPPING_MEMORY \ 0x131000UL #define IGU_REG_MAPPING_MEMORY_SIZE \ 136 #define IGU_REG_PBA_STATUS_LSB \ 0x130138UL #define IGU_REG_PBA_STATUS_MSB \ 0x13013cUL #define IGU_REG_PCI_PF_MSIX_EN \ 0x130144UL #define IGU_REG_PCI_PF_MSIX_FUNC_MASK \ 0x130148UL #define IGU_REG_PCI_PF_MSI_EN \ 0x130140UL #define IGU_REG_PENDING_BITS_STATUS \ 0x130300UL #define IGU_REG_PF_CONFIGURATION \ 0x130154UL #define IGU_REG_PROD_CONS_MEMORY \ 0x132000UL #define IGU_REG_RESET_MEMORIES \ 0x130158UL #define IGU_REG_SB_INT_BEFORE_MASK_LSB \ 0x13015cUL #define IGU_REG_SB_INT_BEFORE_MASK_MSB \ 0x130160UL #define IGU_REG_SB_MASK_LSB \ 0x130164UL #define IGU_REG_SB_MASK_MSB \ 0x130168UL #define IGU_REG_STATISTIC_NUM_MESSAGE_SENT \ 0x130800UL #define IGU_REG_TRAILING_EDGE_LATCH \ 0x130104UL #define MCP_REG_MCPR_ACCESS_LOCK \ 0x8009c #define MCP_REG_MCPR_GP_INPUTS \ 0x800c0 #define MCP_REG_MCPR_GP_OENABLE \ 0x800c8 #define MCP_REG_MCPR_GP_OUTPUTS \ 0x800c4 #define MCP_REG_MCPR_IMC_COMMAND \ 0x85900 #define MCP_REG_MCPR_IMC_DATAREG0 \ 0x85920 #define MCP_REG_MCPR_IMC_SLAVE_CONTROL \ 0x85904 #define MCP_REG_MCPR_NVM_ACCESS_ENABLE \ 0x86424 #define MCP_REG_MCPR_NVM_ADDR \ 0x8640c #define MCP_REG_MCPR_NVM_CFG4 \ 0x8642c #define MCP_REG_MCPR_NVM_COMMAND \ 0x86400 #define MCP_REG_MCPR_NVM_READ \ 0x86410 #define MCP_REG_MCPR_NVM_SW_ARB \ 0x86420 #define MCP_REG_MCPR_NVM_WRITE \ 0x86408 #define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK \ (0x1<<1) #define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK \ (0x1<<0) #define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 \ 0xa42cUL #define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0 \ 0xa438UL #define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0 \ 0xa444UL #define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0 \ 0xa450UL #define MISC_REG_AEU_AFTER_INVERT_4_MCP \ 0xa458UL #define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0 \ 0xa700UL #define MISC_REG_AEU_CLR_LATCH_SIGNAL \ 0xa45cUL #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0 \ 0xa06cUL #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1 \ 0xa07cUL #define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2 \ 0xa08cUL #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0 \ 0xa10cUL #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1 \ 0xa11cUL #define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2 \ 0xa12cUL #define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0 \ 0xa078UL #define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0 \ 0xa118UL #define MISC_REG_AEU_ENABLE4_NIG_0 \ 0xa0f8UL #define MISC_REG_AEU_ENABLE4_NIG_1 \ 0xa198UL #define MISC_REG_AEU_ENABLE4_PXP_0 \ 0xa108UL #define MISC_REG_AEU_ENABLE4_PXP_1 \ 0xa1a8UL #define MISC_REG_AEU_ENABLE5_FUNC_0_OUT_0 \ 0xa688UL #define MISC_REG_AEU_ENABLE5_FUNC_1_OUT_0 \ 0xa6b0UL #define MISC_REG_AEU_GENERAL_ATTN_1 \ 0xa004UL #define MISC_REG_AEU_GENERAL_ATTN_10 \ 0xa028UL #define MISC_REG_AEU_GENERAL_ATTN_11 \ 0xa02cUL #define MISC_REG_AEU_GENERAL_ATTN_12 \ 0xa030UL #define MISC_REG_AEU_GENERAL_ATTN_2 \ 0xa008UL #define MISC_REG_AEU_GENERAL_ATTN_3 \ 0xa00cUL #define MISC_REG_AEU_GENERAL_ATTN_4 \ 0xa010UL #define MISC_REG_AEU_GENERAL_ATTN_5 \ 0xa014UL #define MISC_REG_AEU_GENERAL_ATTN_6 \ 0xa018UL #define MISC_REG_AEU_GENERAL_ATTN_7 \ 0xa01cUL #define MISC_REG_AEU_GENERAL_ATTN_8 \ 0xa020UL #define MISC_REG_AEU_GENERAL_ATTN_9 \ 0xa024UL #define MISC_REG_AEU_GENERAL_MASK \ 0xa61cUL #define MISC_REG_AEU_MASK_ATTN_FUNC_0 \ 0xa060UL #define MISC_REG_AEU_MASK_ATTN_FUNC_1 \ 0xa064UL #define MISC_REG_BOND_ID \ 0xa400UL #define MISC_REG_CHIP_NUM \ 0xa408UL #define MISC_REG_CHIP_REV \ 0xa40cUL #define MISC_REG_CHIP_TYPE \ 0xac60UL #define MISC_REG_CHIP_TYPE_57811_MASK \ (1<<1) #define MISC_REG_CPMU_LP_DR_ENABLE \ 0xa858UL #define MISC_REG_CPMU_LP_FW_ENABLE_P0 \ 0xa84cUL #define MISC_REG_CPMU_LP_IDLE_THR_P0 \ 0xa8a0UL #define MISC_REG_CPMU_LP_MASK_ENT_P0 \ 0xa880UL #define MISC_REG_CPMU_LP_MASK_EXT_P0 \ 0xa888UL #define MISC_REG_CPMU_LP_SM_ENT_CNT_P0 \ 0xa8b8UL #define MISC_REG_CPMU_LP_SM_ENT_CNT_P1 \ 0xa8bcUL #define MISC_REG_DRIVER_CONTROL_1 \ 0xa510UL #define MISC_REG_DRIVER_CONTROL_7 \ 0xa3c8UL #define MISC_REG_FOUR_PORT_PATH_SWAP \ 0xa75cUL #define MISC_REG_FOUR_PORT_PATH_SWAP_OVWR \ 0xa738UL #define MISC_REG_FOUR_PORT_PORT_SWAP \ 0xa754UL #define MISC_REG_FOUR_PORT_PORT_SWAP_OVWR \ 0xa734UL #define MISC_REG_GENERIC_CR_0 \ 0xa460UL #define MISC_REG_GENERIC_CR_1 \ 0xa464UL #define MISC_REG_GENERIC_POR_1 \ 0xa474UL #define MISC_REG_GEN_PURP_HWG \ 0xa9a0UL #define MISC_REG_GPIO \ 0xa490UL #define MISC_REG_GPIO_EVENT_EN \ 0xa2bcUL #define MISC_REG_GPIO_INT \ 0xa494UL #define MISC_REG_GRC_RSV_ATTN \ 0xa3c0UL #define MISC_REG_GRC_TIMEOUT_ATTN \ 0xa3c4UL #define MISC_REG_LCPLL_E40_PWRDWN \ 0xaa74UL #define MISC_REG_LCPLL_E40_RESETB_ANA \ 0xaa78UL #define MISC_REG_LCPLL_E40_RESETB_DIG \ 0xaa7cUL #define MISC_REG_MISC_INT_MASK \ 0xa388UL #define MISC_REG_MISC_PRTY_MASK \ 0xa398UL #define MISC_REG_MISC_PRTY_STS_CLR \ 0xa390UL #define MISC_REG_PORT4MODE_EN \ 0xa750UL #define MISC_REG_PORT4MODE_EN_OVWR \ 0xa720UL #define MISC_REG_RESET_REG_1 \ 0xa580UL #define MISC_REG_RESET_REG_2 \ 0xa590UL #define MISC_REG_SHARED_MEM_ADDR \ 0xa2b4UL #define MISC_REG_SPIO \ 0xa4fcUL #define MISC_REG_SPIO_EVENT_EN \ 0xa2b8UL #define MISC_REG_SPIO_INT \ 0xa500UL #define MISC_REG_TWO_PORT_PATH_SWAP \ 0xa758UL #define MISC_REG_TWO_PORT_PATH_SWAP_OVWR \ 0xa72cUL #define MISC_REG_UNPREPARED \ 0xa424UL #define MISC_REG_WC0_CTRL_PHY_ADDR \ 0xa9ccUL #define MISC_REG_WC0_RESET \ 0xac30UL #define MISC_REG_XMAC_CORE_PORT_MODE \ 0xa964UL #define MISC_REG_XMAC_PHY_PORT_MODE \ 0xa960UL #define MSTAT_REG_RX_STAT_GR64_LO \ 0x200UL #define MSTAT_REG_TX_STAT_GTXPOK_LO \ 0UL #define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN \ (0x1<<0) #define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN \ (0x1<<0) #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT \ (0x1<<0) #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS \ (0x1<<9) #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G \ (0x1<<15) #define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS \ (0xf<<18) #define NIG_REG_BMAC0_IN_EN \ 0x100acUL #define NIG_REG_BMAC0_OUT_EN \ 0x100e0UL #define NIG_REG_BMAC0_PAUSE_OUT_EN \ 0x10110UL #define NIG_REG_BMAC0_REGS_OUT_EN \ 0x100e8UL #define NIG_REG_BRB0_PAUSE_IN_EN \ 0x100c4UL #define NIG_REG_BRB1_PAUSE_IN_EN \ 0x100c8UL #define NIG_REG_DEBUG_PACKET_LB \ 0x10800UL #define NIG_REG_EGRESS_DRAIN0_MODE \ 0x10060UL #define NIG_REG_EGRESS_EMAC0_OUT_EN \ 0x10120UL #define NIG_REG_EGRESS_EMAC0_PORT \ 0x10058UL #define NIG_REG_EMAC0_IN_EN \ 0x100a4UL #define NIG_REG_EMAC0_PAUSE_OUT_EN \ 0x10118UL #define NIG_REG_EMAC0_STATUS_MISC_MI_INT \ 0x10494UL #define NIG_REG_INGRESS_BMAC0_MEM \ 0x10c00UL #define NIG_REG_INGRESS_BMAC1_MEM \ 0x11000UL #define NIG_REG_INGRESS_EOP_LB_EMPTY \ 0x104e0UL #define NIG_REG_INGRESS_EOP_LB_FIFO \ 0x104e4UL #define NIG_REG_LATCH_BC_0 \ 0x16210UL #define NIG_REG_LATCH_STATUS_0 \ 0x18000UL #define NIG_REG_LED_10G_P0 \ 0x10320UL #define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0 \ 0x10318UL #define NIG_REG_LED_CONTROL_BLINK_RATE_P0 \ 0x10310UL #define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0 \ 0x10308UL #define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 \ 0x102f8UL #define NIG_REG_LED_CONTROL_TRAFFIC_P0 \ 0x10300UL #define NIG_REG_LED_MODE_P0 \ 0x102f0UL #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0 \ 0x16070UL #define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1 \ 0x16074UL #define NIG_REG_LLFC_ENABLE_0 \ 0x16208UL #define NIG_REG_LLFC_ENABLE_1 \ 0x1620cUL #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0 \ 0x16058UL #define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1 \ 0x1605cUL #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0 \ 0x16060UL #define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1 \ 0x16064UL #define NIG_REG_LLFC_OUT_EN_0 \ 0x160c8UL #define NIG_REG_LLFC_OUT_EN_1 \ 0x160ccUL #define NIG_REG_LLH0_BRB1_DRV_MASK \ 0x10244UL #define NIG_REG_LLH0_BRB1_DRV_MASK_MF \ 0x16048UL #define NIG_REG_LLH0_BRB1_NOT_MCP \ 0x1025cUL #define NIG_REG_LLH0_CLS_TYPE \ 0x16080UL #define NIG_REG_LLH0_FUNC_EN \ 0x160fcUL #define NIG_REG_LLH0_FUNC_MEM \ 0x16180UL #define NIG_REG_LLH0_FUNC_MEM_ENABLE \ 0x16140UL #define NIG_REG_LLH0_FUNC_VLAN_ID \ 0x16100UL #define NIG_REG_LLH0_XCM_MASK \ 0x10130UL #define NIG_REG_LLH1_BRB1_NOT_MCP \ 0x102dcUL #define NIG_REG_LLH1_CLS_TYPE \ 0x16084UL #define NIG_REG_LLH1_FUNC_MEM \ 0x161c0UL #define NIG_REG_LLH1_FUNC_MEM_ENABLE \ 0x16160UL #define NIG_REG_LLH1_FUNC_MEM_SIZE \ 16 #define NIG_REG_LLH1_MF_MODE \ 0x18614UL #define NIG_REG_LLH1_XCM_MASK \ 0x10134UL #define NIG_REG_LLH_E1HOV_MODE \ 0x160d8UL #define NIG_REG_LLH_MF_MODE \ 0x16024UL #define NIG_REG_MASK_INTERRUPT_PORT0 \ 0x10330UL #define NIG_REG_MASK_INTERRUPT_PORT1 \ 0x10334UL #define NIG_REG_NIG_EMAC0_EN \ 0x1003cUL #define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC \ 0x10044UL #define NIG_REG_NIG_INT_STS_CLR_0 \ 0x103b4UL #define NIG_REG_NIG_PRTY_MASK \ 0x103dcUL #define NIG_REG_NIG_PRTY_MASK_0 \ 0x183c8UL #define NIG_REG_NIG_PRTY_MASK_1 \ 0x183d8UL #define NIG_REG_NIG_PRTY_STS_CLR \ 0x103d4UL #define NIG_REG_NIG_PRTY_STS_CLR_0 \ 0x183c0UL #define NIG_REG_NIG_PRTY_STS_CLR_1 \ 0x183d0UL #define NIG_REG_P0_HDRS_AFTER_BASIC \ 0x18038UL #define NIG_REG_P0_HWPFC_ENABLE \ 0x18078UL #define NIG_REG_P0_LLH_FUNC_MEM2 \ 0x18480UL #define NIG_REG_P0_MAC_IN_EN \ 0x185acUL #define NIG_REG_P0_MAC_OUT_EN \ 0x185b0UL #define NIG_REG_P0_MAC_PAUSE_OUT_EN \ 0x185b4UL #define NIG_REG_P0_PKT_PRIORITY_TO_COS \ 0x18054UL #define NIG_REG_P0_RX_COS0_PRIORITY_MASK \ 0x18058UL #define NIG_REG_P0_RX_COS1_PRIORITY_MASK \ 0x1805cUL #define NIG_REG_P0_RX_COS2_PRIORITY_MASK \ 0x186b0UL #define NIG_REG_P0_RX_COS3_PRIORITY_MASK \ 0x186b4UL #define NIG_REG_P0_RX_COS4_PRIORITY_MASK \ 0x186b8UL #define NIG_REG_P0_RX_COS5_PRIORITY_MASK \ 0x186bcUL #define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP \ 0x180f0UL #define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_LSB \ 0x18688UL #define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_MSB \ 0x1868cUL #define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT \ 0x180e8UL #define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ \ 0x180ecUL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0 \ 0x1810cUL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1 \ 0x18110UL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_2 \ 0x18114UL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_3 \ 0x18118UL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_4 \ 0x1811cUL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_5 \ 0x186a0UL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_6 \ 0x186a4UL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_7 \ 0x186a8UL #define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_8 \ 0x186acUL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0 \ 0x180f8UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1 \ 0x180fcUL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2 \ 0x18100UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3 \ 0x18104UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4 \ 0x18108UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5 \ 0x18690UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_6 \ 0x18694UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_7 \ 0x18698UL #define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_8 \ 0x1869cUL #define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS \ 0x180f4UL #define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT \ 0x180e4UL #define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_LSB \ 0x18680UL #define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_MSB \ 0x18684UL #define NIG_REG_P1_HDRS_AFTER_BASIC \ 0x1818cUL #define NIG_REG_P1_HWPFC_ENABLE \ 0x181d0UL #define NIG_REG_P1_LLH_FUNC_MEM2 \ 0x184c0UL #define NIG_REG_P1_MAC_IN_EN \ 0x185c0UL #define NIG_REG_P1_MAC_OUT_EN \ 0x185c4UL #define NIG_REG_P1_MAC_PAUSE_OUT_EN \ 0x185c8UL #define NIG_REG_P1_PKT_PRIORITY_TO_COS \ 0x181a8UL #define NIG_REG_P1_RX_COS0_PRIORITY_MASK \ 0x181acUL #define NIG_REG_P1_RX_COS1_PRIORITY_MASK \ 0x181b0UL #define NIG_REG_P1_RX_COS2_PRIORITY_MASK \ 0x186f8UL #define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_LSB \ 0x186e8UL #define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_MSB \ 0x186ecUL #define NIG_REG_P1_TX_ARB_CLIENT_IS_STRICT \ 0x18234UL #define NIG_REG_P1_TX_ARB_CLIENT_IS_SUBJECT2WFQ \ 0x18238UL #define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_0 \ 0x18258UL #define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_1 \ 0x1825cUL #define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_2 \ 0x18260UL #define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_3 \ 0x18264UL #define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_4 \ 0x18268UL #define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_5 \ 0x186f4UL #define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0 \ 0x18244UL #define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1 \ 0x18248UL #define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2 \ 0x1824cUL #define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_3 \ 0x18250UL #define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_4 \ 0x18254UL #define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_5 \ 0x186f0UL #define NIG_REG_P1_TX_ARB_NUM_STRICT_ARB_SLOTS \ 0x18240UL #define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_LSB \ 0x186e0UL #define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_MSB \ 0x186e4UL #define NIG_REG_PAUSE_ENABLE_0 \ 0x160c0UL #define NIG_REG_PAUSE_ENABLE_1 \ 0x160c4UL #define NIG_REG_PORT_SWAP \ 0x10394UL #define NIG_REG_PPP_ENABLE_0 \ 0x160b0UL #define NIG_REG_PPP_ENABLE_1 \ 0x160b4UL #define NIG_REG_PRS_REQ_IN_EN \ 0x100b8UL #define NIG_REG_SERDES0_CTRL_MD_DEVAD \ 0x10370UL #define NIG_REG_SERDES0_CTRL_MD_ST \ 0x1036cUL #define NIG_REG_SERDES0_CTRL_PHY_ADDR \ 0x10374UL #define NIG_REG_SERDES0_STATUS_LINK_STATUS \ 0x10578UL #define NIG_REG_STAT0_BRB_DISCARD \ 0x105f0UL #define NIG_REG_STAT0_BRB_TRUNCATE \ 0x105f8UL #define NIG_REG_STAT0_EGRESS_MAC_PKT0 \ 0x10750UL #define NIG_REG_STAT0_EGRESS_MAC_PKT1 \ 0x10760UL #define NIG_REG_STAT1_BRB_DISCARD \ 0x10628UL #define NIG_REG_STAT1_EGRESS_MAC_PKT0 \ 0x107a0UL #define NIG_REG_STAT1_EGRESS_MAC_PKT1 \ 0x107b0UL #define NIG_REG_STAT2_BRB_OCTET \ 0x107e0UL #define NIG_REG_STATUS_INTERRUPT_PORT0 \ 0x10328UL #define NIG_REG_STRAP_OVERRIDE \ 0x10398UL #define NIG_REG_XCM0_OUT_EN \ 0x100f0UL #define NIG_REG_XCM1_OUT_EN \ 0x100f4UL #define NIG_REG_XGXS0_CTRL_MD_DEVAD \ 0x1033cUL #define NIG_REG_XGXS0_CTRL_MD_ST \ 0x10338UL #define NIG_REG_XGXS0_CTRL_PHY_ADDR \ 0x10340UL #define NIG_REG_XGXS0_STATUS_LINK10G \ 0x10680UL #define NIG_REG_XGXS0_STATUS_LINK_STATUS \ 0x10684UL #define NIG_REG_XGXS_LANE_SEL_P0 \ 0x102e8UL #define NIG_REG_XGXS_SERDES0_MODE_SEL \ 0x102e0UL #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT \ (0x1<<0) #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS \ (0x1<<9) #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G \ (0x1<<15) #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS \ (0xf<<18) #define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE \ 18 #define PBF_REG_COS0_UPPER_BOUND \ 0x15c05cUL #define PBF_REG_COS0_UPPER_BOUND_P0 \ 0x15c2ccUL #define PBF_REG_COS0_UPPER_BOUND_P1 \ 0x15c2e4UL #define PBF_REG_COS0_WEIGHT \ 0x15c054UL #define PBF_REG_COS0_WEIGHT_P0 \ 0x15c2a8UL #define PBF_REG_COS0_WEIGHT_P1 \ 0x15c2c0UL #define PBF_REG_COS1_UPPER_BOUND \ 0x15c060UL #define PBF_REG_COS1_WEIGHT \ 0x15c058UL #define PBF_REG_COS1_WEIGHT_P0 \ 0x15c2acUL #define PBF_REG_COS1_WEIGHT_P1 \ 0x15c2c4UL #define PBF_REG_COS2_WEIGHT_P0 \ 0x15c2b0UL #define PBF_REG_COS2_WEIGHT_P1 \ 0x15c2c8UL #define PBF_REG_COS3_WEIGHT_P0 \ 0x15c2b4UL #define PBF_REG_COS4_WEIGHT_P0 \ 0x15c2b8UL #define PBF_REG_COS5_WEIGHT_P0 \ 0x15c2bcUL #define PBF_REG_CREDIT_LB_Q \ 0x140338UL #define PBF_REG_CREDIT_Q0 \ 0x14033cUL #define PBF_REG_CREDIT_Q1 \ 0x140340UL #define PBF_REG_DISABLE_NEW_TASK_PROC_P0 \ 0x14005cUL #define PBF_REG_DISABLE_PF \ 0x1402e8UL #define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P0 \ 0x15c288UL #define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P1 \ 0x15c28cUL #define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P0 \ 0x15c278UL #define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P1 \ 0x15c27cUL #define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P0 \ 0x15c280UL #define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P1 \ 0x15c284UL #define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P0 \ 0x15c2a0UL #define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P1 \ 0x15c2a4UL #define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P0 \ 0x15c270UL #define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P1 \ 0x15c274UL #define PBF_REG_ETS_ENABLED \ 0x15c050UL #define PBF_REG_HDRS_AFTER_BASIC \ 0x15c0a8UL #define PBF_REG_HDRS_AFTER_TAG_0 \ 0x15c0b8UL #define PBF_REG_HIGH_PRIORITY_COS_NUM \ 0x15c04cUL #define PBF_REG_INIT_CRD_LB_Q \ 0x15c248UL #define PBF_REG_INIT_CRD_Q0 \ 0x15c230UL #define PBF_REG_INIT_CRD_Q1 \ 0x15c234UL #define PBF_REG_INIT_P0 \ 0x140004UL #define PBF_REG_INTERNAL_CRD_FREED_CNT_LB_Q \ 0x140354UL #define PBF_REG_INTERNAL_CRD_FREED_CNT_Q0 \ 0x140358UL #define PBF_REG_INTERNAL_CRD_FREED_CNT_Q1 \ 0x14035cUL #define PBF_REG_MUST_HAVE_HDRS \ 0x15c0c4UL #define PBF_REG_NUM_STRICT_ARB_SLOTS \ 0x15c064UL #define PBF_REG_P0_ARB_THRSH \ 0x1400e4UL #define PBF_REG_P0_CREDIT \ 0x140200UL #define PBF_REG_P0_INIT_CRD \ 0x1400d0UL #define PBF_REG_P0_INTERNAL_CRD_FREED_CNT \ 0x140308UL #define PBF_REG_P0_PAUSE_ENABLE \ 0x140014UL #define PBF_REG_P0_TQ_LINES_FREED_CNT \ 0x1402f0UL #define PBF_REG_P0_TQ_OCCUPANCY \ 0x1402fcUL #define PBF_REG_P1_CREDIT \ 0x140208UL #define PBF_REG_P1_INIT_CRD \ 0x1400d4UL #define PBF_REG_P1_INTERNAL_CRD_FREED_CNT \ 0x14030cUL #define PBF_REG_P1_TQ_LINES_FREED_CNT \ 0x1402f4UL #define PBF_REG_P1_TQ_OCCUPANCY \ 0x140300UL #define PBF_REG_P4_CREDIT \ 0x140210UL #define PBF_REG_P4_INIT_CRD \ 0x1400e0UL #define PBF_REG_P4_INTERNAL_CRD_FREED_CNT \ 0x140310UL #define PBF_REG_P4_TQ_LINES_FREED_CNT \ 0x1402f8UL #define PBF_REG_P4_TQ_OCCUPANCY \ 0x140304UL #define PBF_REG_PBF_INT_MASK \ 0x1401d4UL #define PBF_REG_PBF_PRTY_MASK \ 0x1401e4UL #define PBF_REG_PBF_PRTY_STS_CLR \ 0x1401dcUL #define PBF_REG_TAG_ETHERTYPE_0 \ 0x15c090UL #define PBF_REG_TAG_LEN_0 \ 0x15c09cUL #define PBF_REG_TQ_LINES_FREED_CNT_LB_Q \ 0x14038cUL #define PBF_REG_TQ_LINES_FREED_CNT_Q0 \ 0x140390UL #define PBF_REG_TQ_LINES_FREED_CNT_Q1 \ 0x140394UL #define PBF_REG_TQ_OCCUPANCY_LB_Q \ 0x1403a8UL #define PBF_REG_TQ_OCCUPANCY_Q0 \ 0x1403acUL #define PBF_REG_TQ_OCCUPANCY_Q1 \ 0x1403b0UL #define PB_REG_PB_INT_MASK \ 0x28UL #define PB_REG_PB_PRTY_MASK \ 0x38UL #define PB_REG_PB_PRTY_STS_CLR \ 0x30UL #define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR \ (0x1<<0) #define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW \ (0x1<<8) #define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR \ (0x1<<1) #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN \ (0x1<<6) #define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN \ (0x1<<7) #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN \ (0x1<<4) #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN \ (0x1<<3) #define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN \ (0x1<<5) #define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN \ (0x1<<2) #define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR \ 0x9418UL #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER \ 0x942cUL #define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ \ 0x9430UL #define PGLUE_B_REG_LATCHED_ERRORS_CLR \ 0x943cUL #define PGLUE_B_REG_PGLUE_B_INT_STS \ 0x9298UL #define PGLUE_B_REG_PGLUE_B_INT_STS_CLR \ 0x929cUL #define PGLUE_B_REG_PGLUE_B_PRTY_MASK \ 0x92b4UL #define PGLUE_B_REG_PGLUE_B_PRTY_STS_CLR \ 0x92acUL #define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR \ 0x9458UL #define PGLUE_B_REG_TAGS_63_32 \ 0x9244UL #define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR \ 0x9470UL #define PRS_REG_A_PRSU_20 \ 0x40134UL #define PRS_REG_CFC_SEARCH_INITIAL_CREDIT \ 0x4011cUL #define PRS_REG_E1HOV_MODE \ 0x401c8UL #define PRS_REG_HDRS_AFTER_BASIC \ 0x40238UL #define PRS_REG_HDRS_AFTER_BASIC_PORT_0 \ 0x40270UL #define PRS_REG_HDRS_AFTER_BASIC_PORT_1 \ 0x40290UL #define PRS_REG_HDRS_AFTER_TAG_0 \ 0x40248UL #define PRS_REG_HDRS_AFTER_TAG_0_PORT_0 \ 0x40280UL #define PRS_REG_HDRS_AFTER_TAG_0_PORT_1 \ 0x402a0UL #define PRS_REG_MUST_HAVE_HDRS \ 0x40254UL #define PRS_REG_MUST_HAVE_HDRS_PORT_0 \ 0x4028cUL #define PRS_REG_MUST_HAVE_HDRS_PORT_1 \ 0x402acUL #define PRS_REG_NIC_MODE \ 0x40138UL #define PRS_REG_NUM_OF_PACKETS \ 0x40124UL #define PRS_REG_PRS_PRTY_MASK \ 0x401a4UL #define PRS_REG_PRS_PRTY_STS_CLR \ 0x4019cUL #define PRS_REG_TAG_ETHERTYPE_0 \ 0x401d4UL #define PRS_REG_TAG_LEN_0 \ 0x4022cUL #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT \ (0x1<<19) #define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF \ (0x1<<20) #define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN \ (0x1<<22) #define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED \ (0x1<<23) #define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED \ (0x1<<24) #define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR \ (0x1<<7) #define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR \ (0x1<<7) #define PXP2_REG_PGL_ADDR_88_F0 \ 0x120534UL #define PXP2_REG_PGL_ADDR_88_F1 \ 0x120544UL #define PXP2_REG_PGL_ADDR_8C_F0 \ 0x120538UL #define PXP2_REG_PGL_ADDR_8C_F1 \ 0x120548UL #define PXP2_REG_PGL_ADDR_90_F0 \ 0x12053cUL #define PXP2_REG_PGL_ADDR_90_F1 \ 0x12054cUL #define PXP2_REG_PGL_ADDR_94_F0 \ 0x120540UL #define PXP2_REG_PGL_ADDR_94_F1 \ 0x120550UL #define PXP2_REG_PGL_EXP_ROM2 \ 0x120808UL #define PXP2_REG_PGL_PRETEND_FUNC_F0 \ 0x120674UL #define PXP2_REG_PGL_PRETEND_FUNC_F1 \ 0x120678UL #define PXP2_REG_PGL_TAGS_LIMIT \ 0x1205a8UL #define PXP2_REG_PSWRQ_BW_ADD1 \ 0x1201c0UL #define PXP2_REG_PSWRQ_BW_ADD10 \ 0x1201e4UL #define PXP2_REG_PSWRQ_BW_ADD11 \ 0x1201e8UL #define PXP2_REG_PSWRQ_BW_ADD2 \ 0x1201c4UL #define PXP2_REG_PSWRQ_BW_ADD28 \ 0x120228UL #define PXP2_REG_PSWRQ_BW_ADD3 \ 0x1201c8UL #define PXP2_REG_PSWRQ_BW_ADD6 \ 0x1201d4UL #define PXP2_REG_PSWRQ_BW_ADD7 \ 0x1201d8UL #define PXP2_REG_PSWRQ_BW_ADD8 \ 0x1201dcUL #define PXP2_REG_PSWRQ_BW_ADD9 \ 0x1201e0UL #define PXP2_REG_PSWRQ_BW_L1 \ 0x1202b0UL #define PXP2_REG_PSWRQ_BW_L10 \ 0x1202d4UL #define PXP2_REG_PSWRQ_BW_L11 \ 0x1202d8UL #define PXP2_REG_PSWRQ_BW_L2 \ 0x1202b4UL #define PXP2_REG_PSWRQ_BW_L28 \ 0x120318UL #define PXP2_REG_PSWRQ_BW_L3 \ 0x1202b8UL #define PXP2_REG_PSWRQ_BW_L6 \ 0x1202c4UL #define PXP2_REG_PSWRQ_BW_L7 \ 0x1202c8UL #define PXP2_REG_PSWRQ_BW_L8 \ 0x1202ccUL #define PXP2_REG_PSWRQ_BW_L9 \ 0x1202d0UL #define PXP2_REG_PSWRQ_BW_RD \ 0x120324UL #define PXP2_REG_PSWRQ_BW_UB1 \ 0x120238UL #define PXP2_REG_PSWRQ_BW_UB10 \ 0x12025cUL #define PXP2_REG_PSWRQ_BW_UB11 \ 0x120260UL #define PXP2_REG_PSWRQ_BW_UB2 \ 0x12023cUL #define PXP2_REG_PSWRQ_BW_UB28 \ 0x1202a0UL #define PXP2_REG_PSWRQ_BW_UB3 \ 0x120240UL #define PXP2_REG_PSWRQ_BW_UB6 \ 0x12024cUL #define PXP2_REG_PSWRQ_BW_UB7 \ 0x120250UL #define PXP2_REG_PSWRQ_BW_UB8 \ 0x120254UL #define PXP2_REG_PSWRQ_BW_UB9 \ 0x120258UL #define PXP2_REG_PSWRQ_BW_WR \ 0x120328UL #define PXP2_REG_PSWRQ_CDU0_L2P \ 0x120000UL #define PXP2_REG_PSWRQ_QM0_L2P \ 0x120038UL #define PXP2_REG_PSWRQ_SRC0_L2P \ 0x120054UL #define PXP2_REG_PSWRQ_TM0_L2P \ 0x12001cUL #define PXP2_REG_PXP2_INT_MASK_0 \ 0x120578UL #define PXP2_REG_PXP2_INT_MASK_1 \ 0x120614UL #define PXP2_REG_PXP2_INT_STS_0 \ 0x12056cUL #define PXP2_REG_PXP2_INT_STS_1 \ 0x120608UL #define PXP2_REG_PXP2_INT_STS_CLR_0 \ 0x120570UL #define PXP2_REG_PXP2_PRTY_MASK_0 \ 0x120588UL #define PXP2_REG_PXP2_PRTY_MASK_1 \ 0x120598UL #define PXP2_REG_PXP2_PRTY_STS_CLR_0 \ 0x120580UL #define PXP2_REG_PXP2_PRTY_STS_CLR_1 \ 0x120590UL #define PXP2_REG_RD_BLK_CNT \ 0x120418UL #define PXP2_REG_RD_CDURD_SWAP_MODE \ 0x120404UL #define PXP2_REG_RD_DISABLE_INPUTS \ 0x120374UL #define PXP2_REG_RD_INIT_DONE \ 0x120370UL #define PXP2_REG_RD_PBF_SWAP_MODE \ 0x1203f4UL #define PXP2_REG_RD_PORT_IS_IDLE_0 \ 0x12041cUL #define PXP2_REG_RD_PORT_IS_IDLE_1 \ 0x120420UL #define PXP2_REG_RD_QM_SWAP_MODE \ 0x1203f8UL #define PXP2_REG_RD_SRC_SWAP_MODE \ 0x120400UL #define PXP2_REG_RD_SR_CNT \ 0x120414UL #define PXP2_REG_RD_START_INIT \ 0x12036cUL #define PXP2_REG_RD_TM_SWAP_MODE \ 0x1203fcUL #define PXP2_REG_RQ_BW_RD_ADD0 \ 0x1201bcUL #define PXP2_REG_RQ_BW_RD_ADD12 \ 0x1201ecUL #define PXP2_REG_RQ_BW_RD_ADD13 \ 0x1201f0UL #define PXP2_REG_RQ_BW_RD_ADD14 \ 0x1201f4UL #define PXP2_REG_RQ_BW_RD_ADD15 \ 0x1201f8UL #define PXP2_REG_RQ_BW_RD_ADD16 \ 0x1201fcUL #define PXP2_REG_RQ_BW_RD_ADD17 \ 0x120200UL #define PXP2_REG_RQ_BW_RD_ADD18 \ 0x120204UL #define PXP2_REG_RQ_BW_RD_ADD19 \ 0x120208UL #define PXP2_REG_RQ_BW_RD_ADD20 \ 0x12020cUL #define PXP2_REG_RQ_BW_RD_ADD22 \ 0x120210UL #define PXP2_REG_RQ_BW_RD_ADD23 \ 0x120214UL #define PXP2_REG_RQ_BW_RD_ADD24 \ 0x120218UL #define PXP2_REG_RQ_BW_RD_ADD25 \ 0x12021cUL #define PXP2_REG_RQ_BW_RD_ADD26 \ 0x120220UL #define PXP2_REG_RQ_BW_RD_ADD27 \ 0x120224UL #define PXP2_REG_RQ_BW_RD_ADD4 \ 0x1201ccUL #define PXP2_REG_RQ_BW_RD_ADD5 \ 0x1201d0UL #define PXP2_REG_RQ_BW_RD_L0 \ 0x1202acUL #define PXP2_REG_RQ_BW_RD_L12 \ 0x1202dcUL #define PXP2_REG_RQ_BW_RD_L13 \ 0x1202e0UL #define PXP2_REG_RQ_BW_RD_L14 \ 0x1202e4UL #define PXP2_REG_RQ_BW_RD_L15 \ 0x1202e8UL #define PXP2_REG_RQ_BW_RD_L16 \ 0x1202ecUL #define PXP2_REG_RQ_BW_RD_L17 \ 0x1202f0UL #define PXP2_REG_RQ_BW_RD_L18 \ 0x1202f4UL #define PXP2_REG_RQ_BW_RD_L19 \ 0x1202f8UL #define PXP2_REG_RQ_BW_RD_L20 \ 0x1202fcUL #define PXP2_REG_RQ_BW_RD_L22 \ 0x120300UL #define PXP2_REG_RQ_BW_RD_L23 \ 0x120304UL #define PXP2_REG_RQ_BW_RD_L24 \ 0x120308UL #define PXP2_REG_RQ_BW_RD_L25 \ 0x12030cUL #define PXP2_REG_RQ_BW_RD_L26 \ 0x120310UL #define PXP2_REG_RQ_BW_RD_L27 \ 0x120314UL #define PXP2_REG_RQ_BW_RD_L4 \ 0x1202bcUL #define PXP2_REG_RQ_BW_RD_L5 \ 0x1202c0UL #define PXP2_REG_RQ_BW_RD_UBOUND0 \ 0x120234UL #define PXP2_REG_RQ_BW_RD_UBOUND12 \ 0x120264UL #define PXP2_REG_RQ_BW_RD_UBOUND13 \ 0x120268UL #define PXP2_REG_RQ_BW_RD_UBOUND14 \ 0x12026cUL #define PXP2_REG_RQ_BW_RD_UBOUND15 \ 0x120270UL #define PXP2_REG_RQ_BW_RD_UBOUND16 \ 0x120274UL #define PXP2_REG_RQ_BW_RD_UBOUND17 \ 0x120278UL #define PXP2_REG_RQ_BW_RD_UBOUND18 \ 0x12027cUL #define PXP2_REG_RQ_BW_RD_UBOUND19 \ 0x120280UL #define PXP2_REG_RQ_BW_RD_UBOUND20 \ 0x120284UL #define PXP2_REG_RQ_BW_RD_UBOUND22 \ 0x120288UL #define PXP2_REG_RQ_BW_RD_UBOUND23 \ 0x12028cUL #define PXP2_REG_RQ_BW_RD_UBOUND24 \ 0x120290UL #define PXP2_REG_RQ_BW_RD_UBOUND25 \ 0x120294UL #define PXP2_REG_RQ_BW_RD_UBOUND26 \ 0x120298UL #define PXP2_REG_RQ_BW_RD_UBOUND27 \ 0x12029cUL #define PXP2_REG_RQ_BW_RD_UBOUND4 \ 0x120244UL #define PXP2_REG_RQ_BW_RD_UBOUND5 \ 0x120248UL #define PXP2_REG_RQ_BW_WR_ADD29 \ 0x12022cUL #define PXP2_REG_RQ_BW_WR_ADD30 \ 0x120230UL #define PXP2_REG_RQ_BW_WR_L29 \ 0x12031cUL #define PXP2_REG_RQ_BW_WR_L30 \ 0x120320UL #define PXP2_REG_RQ_BW_WR_UBOUND29 \ 0x1202a4UL #define PXP2_REG_RQ_BW_WR_UBOUND30 \ 0x1202a8UL #define PXP2_REG_RQ_CDU_ENDIAN_M \ 0x1201a0UL #define PXP2_REG_RQ_CDU_FIRST_ILT \ 0x12061cUL #define PXP2_REG_RQ_CDU_LAST_ILT \ 0x120620UL #define PXP2_REG_RQ_CDU_P_SIZE \ 0x120018UL #define PXP2_REG_RQ_CFG_DONE \ 0x1201b4UL #define PXP2_REG_RQ_DBG_ENDIAN_M \ 0x1201a4UL #define PXP2_REG_RQ_DISABLE_INPUTS \ 0x120330UL #define PXP2_REG_RQ_DRAM_ALIGN \ 0x1205b0UL #define PXP2_REG_RQ_DRAM_ALIGN_RD \ 0x12092cUL #define PXP2_REG_RQ_DRAM_ALIGN_SEL \ 0x120930UL #define PXP2_REG_RQ_HC_ENDIAN_M \ 0x1201a8UL #define PXP2_REG_RQ_ONCHIP_AT \ 0x122000UL #define PXP2_REG_RQ_ONCHIP_AT_B0 \ 0x128000UL #define PXP2_REG_RQ_PDR_LIMIT \ 0x12033cUL #define PXP2_REG_RQ_QM_ENDIAN_M \ 0x120194UL #define PXP2_REG_RQ_QM_FIRST_ILT \ 0x120634UL #define PXP2_REG_RQ_QM_LAST_ILT \ 0x120638UL #define PXP2_REG_RQ_QM_P_SIZE \ 0x120050UL #define PXP2_REG_RQ_RBC_DONE \ 0x1201b0UL #define PXP2_REG_RQ_RD_MBS0 \ 0x120160UL #define PXP2_REG_RQ_RD_MBS1 \ 0x120168UL #define PXP2_REG_RQ_SRC_ENDIAN_M \ 0x12019cUL #define PXP2_REG_RQ_SRC_FIRST_ILT \ 0x12063cUL #define PXP2_REG_RQ_SRC_LAST_ILT \ 0x120640UL #define PXP2_REG_RQ_SRC_P_SIZE \ 0x12006cUL #define PXP2_REG_RQ_TM_ENDIAN_M \ 0x120198UL #define PXP2_REG_RQ_TM_FIRST_ILT \ 0x120644UL #define PXP2_REG_RQ_TM_LAST_ILT \ 0x120648UL #define PXP2_REG_RQ_TM_P_SIZE \ 0x120034UL #define PXP2_REG_RQ_WR_MBS0 \ 0x12015cUL #define PXP2_REG_RQ_WR_MBS1 \ 0x120164UL #define PXP2_REG_WR_CDU_MPS \ 0x1205f0UL #define PXP2_REG_WR_CSDM_MPS \ 0x1205d0UL #define PXP2_REG_WR_DBG_MPS \ 0x1205e8UL #define PXP2_REG_WR_DMAE_MPS \ 0x1205ecUL #define PXP2_REG_WR_HC_MPS \ 0x1205c8UL #define PXP2_REG_WR_QM_MPS \ 0x1205dcUL #define PXP2_REG_WR_SRC_MPS \ 0x1205e4UL #define PXP2_REG_WR_TM_MPS \ 0x1205e0UL #define PXP2_REG_WR_TSDM_MPS \ 0x1205d4UL #define PXP2_REG_WR_USDMDP_TH \ 0x120348UL #define PXP2_REG_WR_USDM_MPS \ 0x1205ccUL #define PXP2_REG_WR_XSDM_MPS \ 0x1205d8UL #define PXP_REG_HST_DISCARD_DOORBELLS \ 0x1030a4UL #define PXP_REG_HST_DISCARD_INTERNAL_WRITES \ 0x1030a8UL #define PXP_REG_PXP_INT_MASK_0 \ 0x103074UL #define PXP_REG_PXP_INT_MASK_1 \ 0x103084UL #define PXP_REG_PXP_INT_STS_CLR_0 \ 0x10306cUL #define PXP_REG_PXP_INT_STS_CLR_1 \ 0x10307cUL #define PXP_REG_PXP_PRTY_MASK \ 0x103094UL #define PXP_REG_PXP_PRTY_STS_CLR \ 0x10308cUL #define QM_REG_BASEADDR \ 0x168900UL #define QM_REG_BASEADDR_EXT_A \ 0x16e100UL #define QM_REG_BYTECRDCMDQ_0 \ 0x16e6e8UL #define QM_REG_CONNNUM_0 \ 0x168020UL #define QM_REG_PF_EN \ 0x16e70cUL #define QM_REG_PF_USG_CNT_0 \ 0x16e040UL #define QM_REG_PTRTBL \ 0x168a00UL #define QM_REG_PTRTBL_EXT_A \ 0x16e200UL #define QM_REG_QM_INT_MASK \ 0x168444UL #define QM_REG_QM_PRTY_MASK \ 0x168454UL #define QM_REG_QM_PRTY_STS_CLR \ 0x16844cUL #define QM_REG_QVOQIDX_0 \ 0x1680f4UL #define QM_REG_SOFT_RESET \ 0x168428UL #define QM_REG_VOQQMASK_0_LSB \ 0x168240UL #define SEM_FAST_REG_PARITY_RST \ 0x18840UL #define SRC_REG_COUNTFREE0 \ 0x40500UL #define SRC_REG_FIRSTFREE0 \ 0x40510UL #define SRC_REG_KEYSEARCH_0 \ 0x40458UL #define SRC_REG_KEYSEARCH_1 \ 0x4045cUL #define SRC_REG_KEYSEARCH_2 \ 0x40460UL #define SRC_REG_KEYSEARCH_3 \ 0x40464UL #define SRC_REG_KEYSEARCH_4 \ 0x40468UL #define SRC_REG_KEYSEARCH_5 \ 0x4046cUL #define SRC_REG_KEYSEARCH_6 \ 0x40470UL #define SRC_REG_KEYSEARCH_7 \ 0x40474UL #define SRC_REG_KEYSEARCH_8 \ 0x40478UL #define SRC_REG_KEYSEARCH_9 \ 0x4047cUL #define SRC_REG_LASTFREE0 \ 0x40530UL #define SRC_REG_SOFT_RST \ 0x4049cUL #define SRC_REG_SRC_PRTY_MASK \ 0x404c8UL #define SRC_REG_SRC_PRTY_STS_CLR \ 0x404c0UL #define TCM_REG_PRS_IFEN \ 0x50020UL #define TCM_REG_TCM_INT_MASK \ 0x501dcUL #define TCM_REG_TCM_PRTY_MASK \ 0x501ecUL #define TCM_REG_TCM_PRTY_STS_CLR \ 0x501e4UL #define TM_REG_EN_LINEAR0_TIMER \ 0x164014UL #define TM_REG_LIN0_MAX_ACTIVE_CID \ 0x164048UL #define TM_REG_LIN0_NUM_SCANS \ 0x1640a0UL #define TM_REG_LIN0_SCAN_ON \ 0x1640d0UL #define TM_REG_LIN0_SCAN_TIME \ 0x16403cUL #define TM_REG_LIN0_VNIC_UC \ 0x164128UL #define TM_REG_TM_INT_MASK \ 0x1640fcUL #define TM_REG_TM_PRTY_MASK \ 0x16410cUL #define TM_REG_TM_PRTY_STS_CLR \ 0x164104UL #define TSDM_REG_ENABLE_IN1 \ 0x42238UL #define TSDM_REG_TSDM_INT_MASK_0 \ 0x4229cUL #define TSDM_REG_TSDM_INT_MASK_1 \ 0x422acUL #define TSDM_REG_TSDM_PRTY_MASK \ 0x422bcUL #define TSDM_REG_TSDM_PRTY_STS_CLR \ 0x422b4UL #define TSEM_REG_FAST_MEMORY \ 0x1a0000UL #define TSEM_REG_INT_TABLE \ 0x180400UL #define TSEM_REG_PASSIVE_BUFFER \ 0x181000UL #define TSEM_REG_PRAM \ 0x1c0000UL #define TSEM_REG_TSEM_INT_MASK_0 \ 0x180100UL #define TSEM_REG_TSEM_INT_MASK_1 \ 0x180110UL #define TSEM_REG_TSEM_PRTY_MASK_0 \ 0x180120UL #define TSEM_REG_TSEM_PRTY_MASK_1 \ 0x180130UL #define TSEM_REG_TSEM_PRTY_STS_CLR_0 \ 0x180118UL #define TSEM_REG_TSEM_PRTY_STS_CLR_1 \ 0x180128UL #define TSEM_REG_VFPF_ERR_NUM \ 0x180380UL #define UCM_REG_UCM_INT_MASK \ 0xe01d4UL #define UCM_REG_UCM_PRTY_MASK \ 0xe01e4UL #define UCM_REG_UCM_PRTY_STS_CLR \ 0xe01dcUL #define UMAC_COMMAND_CONFIG_REG_HD_ENA \ (0x1<<10) #define UMAC_COMMAND_CONFIG_REG_IGNORE_TX_PAUSE \ (0x1<<28) #define UMAC_COMMAND_CONFIG_REG_LOOP_ENA \ (0x1<<15) #define UMAC_COMMAND_CONFIG_REG_NO_LGTH_CHECK \ (0x1<<24) #define UMAC_COMMAND_CONFIG_REG_PAD_EN \ (0x1<<5) #define UMAC_COMMAND_CONFIG_REG_PAUSE_IGNORE \ (0x1<<8) #define UMAC_COMMAND_CONFIG_REG_PROMIS_EN \ (0x1<<4) #define UMAC_COMMAND_CONFIG_REG_RX_ENA \ (0x1<<1) #define UMAC_COMMAND_CONFIG_REG_SW_RESET \ (0x1<<13) #define UMAC_COMMAND_CONFIG_REG_TX_ENA \ (0x1<<0) #define UMAC_REG_COMMAND_CONFIG \ 0x8UL #define UMAC_REG_EEE_WAKE_TIMER \ 0x6cUL #define UMAC_REG_MAC_ADDR0 \ 0xcUL #define UMAC_REG_MAC_ADDR1 \ 0x10UL #define UMAC_REG_MAXFR \ 0x14UL #define UMAC_REG_UMAC_EEE_CTRL \ 0x64UL #define UMAC_UMAC_EEE_CTRL_REG_EEE_EN \ (0x1<<3) #define USDM_REG_USDM_INT_MASK_0 \ 0xc42a0UL #define USDM_REG_USDM_INT_MASK_1 \ 0xc42b0UL #define USDM_REG_USDM_PRTY_MASK \ 0xc42c0UL #define USDM_REG_USDM_PRTY_STS_CLR \ 0xc42b8UL #define USEM_REG_FAST_MEMORY \ 0x320000UL #define USEM_REG_INT_TABLE \ 0x300400UL #define USEM_REG_PASSIVE_BUFFER \ 0x302000UL #define USEM_REG_PRAM \ 0x340000UL #define USEM_REG_USEM_INT_MASK_0 \ 0x300110UL #define USEM_REG_USEM_INT_MASK_1 \ 0x300120UL #define USEM_REG_USEM_PRTY_MASK_0 \ 0x300130UL #define USEM_REG_USEM_PRTY_MASK_1 \ 0x300140UL #define USEM_REG_USEM_PRTY_STS_CLR_0 \ 0x300128UL #define USEM_REG_USEM_PRTY_STS_CLR_1 \ 0x300138UL #define USEM_REG_VFPF_ERR_NUM \ 0x300380UL #define VFC_MEMORIES_RST_REG_CAM_RST \ (0x1<<0) #define VFC_MEMORIES_RST_REG_RAM_RST \ (0x1<<1) #define VFC_REG_MEMORIES_RST \ 0x1943cUL #define XCM_REG_XCM_INT_MASK \ 0x202b4UL #define XCM_REG_XCM_PRTY_MASK \ 0x202c4UL #define XCM_REG_XCM_PRTY_STS_CLR \ 0x202bcUL #define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS \ (0x1<<0) #define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS \ (0x1<<1) #define XMAC_CTRL_REG_LINE_LOCAL_LPBK \ (0x1<<2) #define XMAC_CTRL_REG_RX_EN \ (0x1<<1) #define XMAC_CTRL_REG_SOFT_RESET \ (0x1<<6) #define XMAC_CTRL_REG_TX_EN \ (0x1<<0) #define XMAC_CTRL_REG_XLGMII_ALIGN_ENB \ (0x1<<7) #define XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN \ (0x1<<18) #define XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN \ (0x1<<17) #define XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON \ (0x1<<1) #define XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN \ (0x1<<0) #define XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN \ (0x1<<3) #define XMAC_PFC_CTRL_HI_REG_RX_PFC_EN \ (0x1<<4) #define XMAC_PFC_CTRL_HI_REG_TX_PFC_EN \ (0x1<<5) #define XMAC_REG_CLEAR_RX_LSS_STATUS \ 0x60UL #define XMAC_REG_CTRL \ 0UL #define XMAC_REG_CTRL_SA_HI \ 0x2cUL #define XMAC_REG_CTRL_SA_LO \ 0x28UL #define XMAC_REG_EEE_CTRL \ 0xd8UL #define XMAC_REG_EEE_TIMERS_HI \ 0xe4UL #define XMAC_REG_PAUSE_CTRL \ 0x68UL #define XMAC_REG_PFC_CTRL \ 0x70UL #define XMAC_REG_PFC_CTRL_HI \ 0x74UL #define XMAC_REG_RX_LSS_CTRL \ 0x50UL #define XMAC_REG_RX_LSS_STATUS \ 0x58UL #define XMAC_REG_RX_MAX_SIZE \ 0x40UL #define XMAC_REG_TX_CTRL \ 0x20UL #define XMAC_RX_LSS_CTRL_REG_LOCAL_FAULT_DISABLE \ (0x1<<0) #define XMAC_RX_LSS_CTRL_REG_REMOTE_FAULT_DISABLE \ (0x1<<1) #define XSDM_REG_OPERATION_GEN \ 0x1664c4UL #define XSDM_REG_XSDM_INT_MASK_0 \ 0x16629cUL #define XSDM_REG_XSDM_INT_MASK_1 \ 0x1662acUL #define XSDM_REG_XSDM_PRTY_MASK \ 0x1662bcUL #define XSDM_REG_XSDM_PRTY_STS_CLR \ 0x1662b4UL #define XSEM_REG_FAST_MEMORY \ 0x2a0000UL #define XSEM_REG_INT_TABLE \ 0x280400UL #define XSEM_REG_PASSIVE_BUFFER \ 0x282000UL #define XSEM_REG_PRAM \ 0x2c0000UL #define XSEM_REG_VFPF_ERR_NUM \ 0x280380UL #define XSEM_REG_XSEM_INT_MASK_0 \ 0x280110UL #define XSEM_REG_XSEM_INT_MASK_1 \ 0x280120UL #define XSEM_REG_XSEM_PRTY_MASK_0 \ 0x280130UL #define XSEM_REG_XSEM_PRTY_MASK_1 \ 0x280140UL #define XSEM_REG_XSEM_PRTY_STS_CLR_0 \ 0x280128UL #define XSEM_REG_XSEM_PRTY_STS_CLR_1 \ 0x280138UL #define MCPR_ACCESS_LOCK_LOCK (1L<<31) #define MCPR_IMC_COMMAND_ENABLE (1L<<31) #define MCPR_IMC_COMMAND_IMC_STATUS_BITSHIFT 16 #define MCPR_IMC_COMMAND_OPERATION_BITSHIFT 28 #define MCPR_IMC_COMMAND_TRANSFER_ADDRESS_BITSHIFT 8 #define MCPR_NVM_ACCESS_ENABLE_EN (1L<<0) #define MCPR_NVM_ACCESS_ENABLE_WR_EN (1L<<1) #define MCPR_NVM_ADDR_NVM_ADDR_VALUE (0xffffffL<<0) #define MCPR_NVM_CFG4_FLASH_SIZE (0x7L<<0) #define MCPR_NVM_COMMAND_DOIT (1L<<4) #define MCPR_NVM_COMMAND_DONE (1L<<3) #define MCPR_NVM_COMMAND_FIRST (1L<<7) #define MCPR_NVM_COMMAND_LAST (1L<<8) #define MCPR_NVM_COMMAND_WR (1L<<5) #define MCPR_NVM_SW_ARB_ARB_ARB1 (1L<<9) #define MCPR_NVM_SW_ARB_ARB_REQ_CLR1 (1L<<5) #define MCPR_NVM_SW_ARB_ARB_REQ_SET1 (1L<<1) #define BIGMAC_REGISTER_BMAC_CONTROL (0x00<<3) #define BIGMAC_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) #define BIGMAC_REGISTER_CNT_MAX_SIZE (0x05<<3) #define BIGMAC_REGISTER_RX_CONTROL (0x21<<3) #define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS (0x46<<3) #define BIGMAC_REGISTER_RX_LSS_STATUS (0x43<<3) #define BIGMAC_REGISTER_RX_MAX_SIZE (0x23<<3) #define BIGMAC_REGISTER_RX_STAT_GR64 (0x26<<3) #define BIGMAC_REGISTER_RX_STAT_GRIPJ (0x42<<3) #define BIGMAC_REGISTER_TX_CONTROL (0x07<<3) #define BIGMAC_REGISTER_TX_MAX_SIZE (0x09<<3) #define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD (0x0A<<3) #define BIGMAC_REGISTER_TX_SOURCE_ADDR (0x08<<3) #define BIGMAC_REGISTER_TX_STAT_GTBYT (0x20<<3) #define BIGMAC_REGISTER_TX_STAT_GTPKT (0x0C<<3) #define BIGMAC2_REGISTER_BMAC_CONTROL (0x00<<3) #define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL (0x01<<3) #define BIGMAC2_REGISTER_CNT_MAX_SIZE (0x05<<3) #define BIGMAC2_REGISTER_PFC_CONTROL (0x06<<3) #define BIGMAC2_REGISTER_RX_CONTROL (0x3A<<3) #define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS (0x62<<3) #define BIGMAC2_REGISTER_RX_LSS_STAT (0x3E<<3) #define BIGMAC2_REGISTER_RX_MAX_SIZE (0x3C<<3) #define BIGMAC2_REGISTER_RX_STAT_GR64 (0x40<<3) #define BIGMAC2_REGISTER_RX_STAT_GRIPJ (0x5f<<3) #define BIGMAC2_REGISTER_TX_CONTROL (0x1C<<3) #define BIGMAC2_REGISTER_TX_MAX_SIZE (0x1E<<3) #define BIGMAC2_REGISTER_TX_PAUSE_CONTROL (0x20<<3) #define BIGMAC2_REGISTER_TX_SOURCE_ADDR (0x1D<<3) #define BIGMAC2_REGISTER_TX_STAT_GTBYT (0x39<<3) #define BIGMAC2_REGISTER_TX_STAT_GTPOK (0x22<<3) #define EMAC_LED_1000MB_OVERRIDE (1L<<1) #define EMAC_LED_100MB_OVERRIDE (1L<<2) #define EMAC_LED_10MB_OVERRIDE (1L<<3) #define EMAC_LED_OVERRIDE (1L<<0) #define EMAC_MDIO_COMM_COMMAND_ADDRESS (0L<<26) #define EMAC_MDIO_COMM_COMMAND_READ_22 (2L<<26) #define EMAC_MDIO_COMM_COMMAND_READ_45 (3L<<26) #define EMAC_MDIO_COMM_COMMAND_WRITE_22 (1L<<26) #define EMAC_MDIO_COMM_COMMAND_WRITE_45 (1L<<26) #define EMAC_MDIO_COMM_DATA (0xffffL<<0) #define EMAC_MDIO_COMM_START_BUSY (1L<<29) #define EMAC_MDIO_MODE_AUTO_POLL (1L<<4) #define EMAC_MDIO_MODE_CLAUSE_45 (1L<<31) #define EMAC_MDIO_MODE_CLOCK_CNT (0x3ffL<<16) #define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT 16 #define EMAC_MDIO_STATUS_10MB (1L<<1) #define EMAC_MODE_25G_MODE (1L<<5) #define EMAC_MODE_HALF_DUPLEX (1L<<1) #define EMAC_MODE_PORT_GMII (2L<<2) #define EMAC_MODE_PORT_MII (1L<<2) #define EMAC_MODE_PORT_MII_10M (3L<<2) #define EMAC_MODE_RESET (1L<<0) #define EMAC_REG_EMAC_LED 0xc #define EMAC_REG_EMAC_MAC_MATCH 0x10 #define EMAC_REG_EMAC_MDIO_COMM 0xac #define EMAC_REG_EMAC_MDIO_MODE 0xb4 #define EMAC_REG_EMAC_MDIO_STATUS 0xb0 #define EMAC_REG_EMAC_MODE 0x0 #define EMAC_REG_EMAC_RX_MODE 0xc8 #define EMAC_REG_EMAC_RX_MTU_SIZE 0x9c #define EMAC_REG_EMAC_RX_STAT_AC 0x180 #define EMAC_REG_EMAC_RX_STAT_AC_28 0x1f4 #define EMAC_REG_EMAC_RX_STAT_AC_COUNT 23 #define EMAC_REG_EMAC_TX_MODE 0xbc #define EMAC_REG_EMAC_TX_STAT_AC 0x280 #define EMAC_REG_EMAC_TX_STAT_AC_COUNT 22 #define EMAC_REG_RX_PFC_MODE 0x320 #define EMAC_REG_RX_PFC_MODE_PRIORITIES (1L<<2) #define EMAC_REG_RX_PFC_MODE_RX_EN (1L<<1) #define EMAC_REG_RX_PFC_MODE_TX_EN (1L<<0) #define EMAC_REG_RX_PFC_PARAM 0x324 #define EMAC_REG_RX_PFC_PARAM_OPCODE_BITSHIFT 0 #define EMAC_REG_RX_PFC_PARAM_PRIORITY_EN_BITSHIFT 16 #define EMAC_REG_RX_PFC_STATS_XOFF_RCVD 0x328 #define EMAC_REG_RX_PFC_STATS_XOFF_RCVD_COUNT (0xffff<<0) #define EMAC_REG_RX_PFC_STATS_XOFF_SENT 0x330 #define EMAC_REG_RX_PFC_STATS_XOFF_SENT_COUNT (0xffff<<0) #define EMAC_REG_RX_PFC_STATS_XON_RCVD 0x32c #define EMAC_REG_RX_PFC_STATS_XON_RCVD_COUNT (0xffff<<0) #define EMAC_REG_RX_PFC_STATS_XON_SENT 0x334 #define EMAC_REG_RX_PFC_STATS_XON_SENT_COUNT (0xffff<<0) #define EMAC_RX_MODE_FLOW_EN (1L<<2) #define EMAC_RX_MODE_KEEP_MAC_CONTROL (1L<<3) #define EMAC_RX_MODE_KEEP_VLAN_TAG (1L<<10) #define EMAC_RX_MODE_PROMISCUOUS (1L<<8) #define EMAC_RX_MODE_RESET (1L<<0) #define EMAC_RX_MTU_SIZE_JUMBO_ENA (1L<<31) #define EMAC_TX_MODE_EXT_PAUSE_EN (1L<<3) #define EMAC_TX_MODE_FLOW_EN (1L<<4) #define EMAC_TX_MODE_RESET (1L<<0) #define MISC_REGISTERS_GPIO_0 0 #define MISC_REGISTERS_GPIO_1 1 #define MISC_REGISTERS_GPIO_2 2 #define MISC_REGISTERS_GPIO_3 3 #define MISC_REGISTERS_GPIO_CLR_POS 16 #define MISC_REGISTERS_GPIO_FLOAT (0xffL<<24) #define MISC_REGISTERS_GPIO_FLOAT_POS 24 #define MISC_REGISTERS_GPIO_HIGH 1 #define MISC_REGISTERS_GPIO_INPUT_HI_Z 2 #define MISC_REGISTERS_GPIO_INT_CLR_POS 24 #define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR 0 #define MISC_REGISTERS_GPIO_INT_OUTPUT_SET 1 #define MISC_REGISTERS_GPIO_INT_SET_POS 16 #define MISC_REGISTERS_GPIO_LOW 0 #define MISC_REGISTERS_GPIO_OUTPUT_HIGH 1 #define MISC_REGISTERS_GPIO_OUTPUT_LOW 0 #define MISC_REGISTERS_GPIO_PORT_SHIFT 4 #define MISC_REGISTERS_GPIO_SET_POS 8 #define MISC_REGISTERS_RESET_REG_1_CLEAR 0x588 #define MISC_REGISTERS_RESET_REG_1_RST_BRB1 (0x1<<0) #define MISC_REGISTERS_RESET_REG_1_RST_DORQ \ (0x1<<19) #define MISC_REGISTERS_RESET_REG_1_RST_HC \ (0x1<<29) #define MISC_REGISTERS_RESET_REG_1_RST_PXP \ (0x1<<26) #define MISC_REGISTERS_RESET_REG_1_RST_PXPV \ (0x1<<27) #define MISC_REGISTERS_RESET_REG_1_RST_QM \ (0x1<<17) #define MISC_REGISTERS_RESET_REG_1_SET 0x584 #define MISC_REGISTERS_RESET_REG_2_CLEAR 0x598 #define MISC_REGISTERS_RESET_REG_2_MSTAT0 \ (0x1<<24) #define MISC_REGISTERS_RESET_REG_2_MSTAT1 \ (0x1<<25) #define MISC_REGISTERS_RESET_REG_2_PGLC \ (0x1<<19) #define MISC_REGISTERS_RESET_REG_2_RST_ATC \ (0x1<<17) #define MISC_REGISTERS_RESET_REG_2_RST_BMAC0 (0x1<<0) #define MISC_REGISTERS_RESET_REG_2_RST_BMAC1 (0x1<<1) #define MISC_REGISTERS_RESET_REG_2_RST_EMAC0 (0x1<<2) #define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE \ (0x1<<14) #define MISC_REGISTERS_RESET_REG_2_RST_EMAC1 (0x1<<3) #define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE \ (0x1<<15) #define MISC_REGISTERS_RESET_REG_2_RST_GRC (0x1<<4) #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B (0x1<<6) #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CORE (0x1<<8) #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CPU (0x1<<7) #define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5) #define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE \ (0x1<<11) #define MISC_REGISTERS_RESET_REG_2_RST_PCI_MDIO \ (0x1<<13) #define MISC_REGISTERS_RESET_REG_2_RST_PXP_RQ_RD_WR \ (0x1<<16) #define MISC_REGISTERS_RESET_REG_2_RST_RBCN (0x1<<9) #define MISC_REGISTERS_RESET_REG_2_SET 0x594 #define MISC_REGISTERS_RESET_REG_2_UMAC0 \ (0x1<<20) #define MISC_REGISTERS_RESET_REG_2_UMAC1 \ (0x1<<21) #define MISC_REGISTERS_RESET_REG_2_XMAC \ (0x1<<22) #define MISC_REGISTERS_RESET_REG_2_XMAC_SOFT \ (0x1<<23) #define MISC_REGISTERS_RESET_REG_3_CLEAR 0x5a8 #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ (0x1<<1) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN (0x1<<2) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW (0x1<<0) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ (0x1<<5) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN (0x1<<6) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD (0x1<<7) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW (0x1<<4) #define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8) #define MISC_REGISTERS_RESET_REG_3_SET 0x5a4 #define MISC_SPIO_CLR_POS 16 #define MISC_SPIO_FLOAT (0xffL<<24) #define MISC_SPIO_FLOAT_POS 24 #define MISC_SPIO_INPUT_HI_Z 2 #define MISC_SPIO_INT_OLD_SET_POS 16 #define MISC_SPIO_OUTPUT_HIGH 1 #define MISC_SPIO_OUTPUT_LOW 0 #define MISC_SPIO_SET_POS 8 #define MISC_SPIO_SPIO4 0x10 #define MISC_SPIO_SPIO5 0x20 #define HW_LOCK_MAX_RESOURCE_VALUE 31 #define HW_LOCK_RESOURCE_DRV_FLAGS 10 #define HW_LOCK_RESOURCE_GPIO 1 #define HW_LOCK_RESOURCE_MDIO 0 #define HW_LOCK_RESOURCE_NVRAM 12 #define HW_LOCK_RESOURCE_PORT0_ATT_MASK 3 #define HW_LOCK_RESOURCE_RECOVERY_LEADER_0 8 #define HW_LOCK_RESOURCE_RECOVERY_LEADER_1 9 #define HW_LOCK_RESOURCE_RECOVERY_REG 11 #define HW_LOCK_RESOURCE_RESET 5 #define HW_LOCK_RESOURCE_SPIO 2 #define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT (0x1<<4) #define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR (0x1<<5) #define AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT (0x1<<19) #define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR (0x1<<18) #define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT (0x1<<31) #define AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR (0x1<<30) #define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT (0x1<<9) #define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR (0x1<<8) #define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT (0x1<<7) #define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR (0x1<<6) #define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT (0x1<<29) #define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR (0x1<<28) #define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT (0x1<<1) #define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR (0x1<<0) #define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR (0x1<<18) #define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT (0x1<<11) #define AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR (0x1<<10) #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT (0x1<<13) #define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR (0x1<<12) #define AEU_INPUTS_ATTN_BITS_GPIO0_FUNCTION_0 (0x1<<2) #define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR (0x1<<12) #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY (0x1<<28) #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (0x1UL<<31) #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY (0x1<<29) #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY (0x1<<30) #define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT (0x1<<15) #define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR (0x1<<14) #define AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR (0x1<<14) #define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR (0x1<<20) #define AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT (0x1UL<<31) #define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR (0x1<<30) #define AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR (0x1<<0) #define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT (0x1<<2) #define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR (0x1<<3) #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT (0x1<<5) #define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR (0x1<<4) #define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT (0x1<<3) #define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR (0x1<<2) #define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT (0x1<<3) #define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR (0x1<<2) #define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR (0x1<<22) #define AEU_INPUTS_ATTN_BITS_SPIO5 (0x1<<15) #define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT (0x1<<27) #define AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR (0x1<<26) #define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT (0x1<<5) #define AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR (0x1<<4) #define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT (0x1<<25) #define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR (0x1<<24) #define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT (0x1<<29) #define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR (0x1<<28) #define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT (0x1<<23) #define AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR (0x1<<22) #define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT (0x1<<27) #define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR (0x1<<26) #define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT (0x1<<21) #define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR (0x1<<20) #define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT (0x1<<25) #define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR (0x1<<24) #define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR (0x1<<16) #define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT (0x1<<9) #define AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR (0x1<<8) #define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT (0x1<<7) #define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR (0x1<<6) #define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT (0x1<<11) #define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR (0x1<<10) #define HW_PRTY_ASSERT_SET_0 \ (AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR) #define HW_PRTY_ASSERT_SET_1 \ (AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR) #define HW_PRTY_ASSERT_SET_2 \ (AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR) #define HW_PRTY_ASSERT_SET_3 \ (AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY | \ AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY | \ AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY | \ AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY) #define HW_PRTY_ASSERT_SET_4 \ (AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR |\ AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR) #define HW_INTERRUT_ASSERT_SET_0 \ (AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT) #define HW_INTERRUT_ASSERT_SET_1 \ (AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT) #define HW_INTERRUT_ASSERT_SET_2 \ (AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT |\ AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT) #define RESERVED_GENERAL_ATTENTION_BIT_0 0 #define EVEREST_GEN_ATTN_IN_USE_MASK 0x7ffe0 #define EVEREST_LATCHED_ATTN_IN_USE_MASK 0xffe00000 #define RESERVED_GENERAL_ATTENTION_BIT_6 6 #define RESERVED_GENERAL_ATTENTION_BIT_7 7 #define RESERVED_GENERAL_ATTENTION_BIT_8 8 #define RESERVED_GENERAL_ATTENTION_BIT_9 9 #define RESERVED_GENERAL_ATTENTION_BIT_10 10 #define RESERVED_GENERAL_ATTENTION_BIT_11 11 #define RESERVED_GENERAL_ATTENTION_BIT_12 12 #define RESERVED_GENERAL_ATTENTION_BIT_13 13 #define RESERVED_GENERAL_ATTENTION_BIT_14 14 #define RESERVED_GENERAL_ATTENTION_BIT_15 15 #define RESERVED_GENERAL_ATTENTION_BIT_16 16 #define RESERVED_GENERAL_ATTENTION_BIT_17 17 #define RESERVED_GENERAL_ATTENTION_BIT_18 18 #define RESERVED_GENERAL_ATTENTION_BIT_19 19 #define RESERVED_GENERAL_ATTENTION_BIT_20 20 #define RESERVED_GENERAL_ATTENTION_BIT_21 21 /* storm asserts attention bits */ #define TSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_7 #define USTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_8 #define CSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_9 #define XSTORM_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_10 /* mcp error attention bit */ #define MCP_FATAL_ASSERT_ATTENTION_BIT RESERVED_GENERAL_ATTENTION_BIT_11 /*E1H NIG status sync attention mapped to group 4-7*/ #define LINK_SYNC_ATTENTION_BIT_FUNC_0 RESERVED_GENERAL_ATTENTION_BIT_12 #define LINK_SYNC_ATTENTION_BIT_FUNC_1 RESERVED_GENERAL_ATTENTION_BIT_13 #define LINK_SYNC_ATTENTION_BIT_FUNC_2 RESERVED_GENERAL_ATTENTION_BIT_14 #define LINK_SYNC_ATTENTION_BIT_FUNC_3 RESERVED_GENERAL_ATTENTION_BIT_15 #define LINK_SYNC_ATTENTION_BIT_FUNC_4 RESERVED_GENERAL_ATTENTION_BIT_16 #define LINK_SYNC_ATTENTION_BIT_FUNC_5 RESERVED_GENERAL_ATTENTION_BIT_17 #define LINK_SYNC_ATTENTION_BIT_FUNC_6 RESERVED_GENERAL_ATTENTION_BIT_18 #define LINK_SYNC_ATTENTION_BIT_FUNC_7 RESERVED_GENERAL_ATTENTION_BIT_19 /* Used For Error Recovery: changing this will require more \ changes in code that assume * error recovery uses general attn bit20 ! */ #define ERROR_RECOVERY_ATTENTION_BIT \ RESERVED_GENERAL_ATTENTION_BIT_20 #define RESERVED_ATTENTION_BIT \ RESERVED_GENERAL_ATTENTION_BIT_21 #define LATCHED_ATTN_RBCR 23 #define LATCHED_ATTN_RBCT 24 #define LATCHED_ATTN_RBCN 25 #define LATCHED_ATTN_RBCU 26 #define LATCHED_ATTN_RBCP 27 #define LATCHED_ATTN_TIMEOUT_GRC 28 #define LATCHED_ATTN_RSVD_GRC 29 #define LATCHED_ATTN_ROM_PARITY_MCP 30 #define LATCHED_ATTN_UM_RX_PARITY_MCP 31 #define LATCHED_ATTN_UM_TX_PARITY_MCP 32 #define LATCHED_ATTN_SCPAD_PARITY_MCP 33 #define GENERAL_ATTEN_WORD(atten_name) ((94 + atten_name) / 32) #define GENERAL_ATTEN_OFFSET(atten_name) (1UL << ((94 + atten_name) % 32)) /* * This file defines GRC base address for every block. * This file is included by chipsim, asm microcode and cpp microcode. * These values are used in Design.xml on regBase attribute * Use the base with the generated offsets of specific registers. */ #define GRCBASE_PXPCS 0x000000 #define GRCBASE_PCICONFIG 0x002000 #define GRCBASE_PCIREG 0x002400 #define GRCBASE_EMAC0 0x008000 #define GRCBASE_EMAC1 0x008400 #define GRCBASE_DBU 0x008800 #define GRCBASE_PGLUE_B 0x009000 #define GRCBASE_MISC 0x00A000 #define GRCBASE_DBG 0x00C000 #define GRCBASE_NIG 0x010000 #define GRCBASE_XCM 0x020000 #define GRCBASE_PRS 0x040000 #define GRCBASE_SRCH 0x040400 #define GRCBASE_TSDM 0x042000 #define GRCBASE_TCM 0x050000 #define GRCBASE_BRB1 0x060000 #define GRCBASE_MCP 0x080000 #define GRCBASE_UPB 0x0C1000 #define GRCBASE_CSDM 0x0C2000 #define GRCBASE_USDM 0x0C4000 #define GRCBASE_CCM 0x0D0000 #define GRCBASE_UCM 0x0E0000 #define GRCBASE_CDU 0x101000 #define GRCBASE_DMAE 0x102000 #define GRCBASE_PXP 0x103000 #define GRCBASE_CFC 0x104000 #define GRCBASE_HC 0x108000 #define GRCBASE_ATC 0x110000 #define GRCBASE_PXP2 0x120000 #define GRCBASE_IGU 0x130000 #define GRCBASE_PBF 0x140000 #define GRCBASE_UMAC0 0x160000 #define GRCBASE_UMAC1 0x160400 #define GRCBASE_XPB 0x161000 #define GRCBASE_MSTAT0 0x162000 #define GRCBASE_MSTAT1 0x162800 #define GRCBASE_XMAC0 0x163000 #define GRCBASE_XMAC1 0x163800 #define GRCBASE_TIMERS 0x164000 #define GRCBASE_XSDM 0x166000 #define GRCBASE_QM 0x168000 #define GRCBASE_QM_4PORT 0x168000 #define GRCBASE_DQ 0x170000 #define GRCBASE_TSEM 0x180000 #define GRCBASE_CSEM 0x200000 #define GRCBASE_XSEM 0x280000 #define GRCBASE_XSEM_4PORT 0x280000 #define GRCBASE_USEM 0x300000 #define GRCBASE_MCP_A 0x380000 #define GRCBASE_MISC_AEU GRCBASE_MISC #define GRCBASE_Tstorm GRCBASE_TSEM #define GRCBASE_Cstorm GRCBASE_CSEM #define GRCBASE_Xstorm GRCBASE_XSEM #define GRCBASE_Ustorm GRCBASE_USEM /* offset of configuration space in the pci core register */ #define PCICFG_OFFSET 0x2000 #define PCICFG_VENDOR_ID_OFFSET 0x00 #define PCICFG_DEVICE_ID_OFFSET 0x02 #define PCICFG_COMMAND_OFFSET 0x04 #define PCICFG_COMMAND_IO_SPACE (1<<0) #define PCICFG_COMMAND_MEM_SPACE (1<<1) #define PCICFG_COMMAND_BUS_MASTER (1<<2) #define PCICFG_COMMAND_SPECIAL_CYCLES (1<<3) #define PCICFG_COMMAND_MWI_CYCLES (1<<4) #define PCICFG_COMMAND_VGA_SNOOP (1<<5) #define PCICFG_COMMAND_PERR_ENA (1<<6) #define PCICFG_COMMAND_STEPPING (1<<7) #define PCICFG_COMMAND_SERR_ENA (1<<8) #define PCICFG_COMMAND_FAST_B2B (1<<9) #define PCICFG_COMMAND_INT_DISABLE (1<<10) #define PCICFG_COMMAND_RESERVED (0x1f<<11) #define PCICFG_STATUS_OFFSET 0x06 #define PCICFG_REVISION_ID_OFFSET 0x08 #define PCICFG_REVESION_ID_MASK 0xff #define PCICFG_REVESION_ID_ERROR_VAL 0xff #define PCICFG_CACHE_LINE_SIZE 0x0c #define PCICFG_LATENCY_TIMER 0x0d #define PCICFG_HEADER_TYPE 0x0e #define PCICFG_HEADER_TYPE_NORMAL 0 #define PCICFG_HEADER_TYPE_BRIDGE 1 #define PCICFG_HEADER_TYPE_CARDBUS 2 #define PCICFG_BAR_1_LOW 0x10 #define PCICFG_BAR_1_HIGH 0x14 #define PCICFG_BAR_2_LOW 0x18 #define PCICFG_BAR_2_HIGH 0x1c #define PCICFG_BAR_3_LOW 0x20 #define PCICFG_BAR_3_HIGH 0x24 #define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET 0x2c #define PCICFG_SUBSYSTEM_ID_OFFSET 0x2e #define PCICFG_INT_LINE 0x3c #define PCICFG_INT_PIN 0x3d #define PCICFG_PM_CAPABILITY 0x48 #define PCICFG_PM_CAPABILITY_VERSION (0x3<<16) #define PCICFG_PM_CAPABILITY_CLOCK (1<<19) #define PCICFG_PM_CAPABILITY_RESERVED (1<<20) #define PCICFG_PM_CAPABILITY_DSI (1<<21) #define PCICFG_PM_CAPABILITY_AUX_CURRENT (0x7<<22) #define PCICFG_PM_CAPABILITY_D1_SUPPORT (1<<25) #define PCICFG_PM_CAPABILITY_D2_SUPPORT (1<<26) #define PCICFG_PM_CAPABILITY_PME_IN_D0 (1<<27) #define PCICFG_PM_CAPABILITY_PME_IN_D1 (1<<28) #define PCICFG_PM_CAPABILITY_PME_IN_D2 (1<<29) #define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT (1<<30) #define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD (1<<31) #define PCICFG_PM_CSR_OFFSET 0x4c #define PCICFG_PM_CSR_STATE (0x3<<0) #define PCICFG_PM_CSR_PME_ENABLE (1<<8) #define PCICFG_PM_CSR_PME_STATUS (1<<15) #define PCICFG_VPD_FLAG_ADDR_OFFSET 0x50 #define PCICFG_VPD_DATA_OFFSET 0x54 #define PCICFG_MSI_CAP_ID_OFFSET 0x58 #define PCICFG_MSI_CONTROL_ENABLE (0x1<<16) #define PCICFG_MSI_CONTROL_MCAP (0x7<<17) #define PCICFG_MSI_CONTROL_MENA (0x7<<20) #define PCICFG_MSI_CONTROL_64_BIT_ADDR_CAP (0x1<<23) #define PCICFG_MSI_CONTROL_MSI_PVMASK_CAPABLE (0x1<<24) #define PCICFG_MSI_ADDR_LOW_OFFSET 0x5c #define PCICFG_MSI_ADDR_HIGH_OFFSET 0x60 #define PCICFG_MSI_DATA_OFFSET 0x64 #define PCICFG_GRC_ADDRESS 0x78 #define PCICFG_GRC_DATA 0x80 #define PCICFG_ME_REGISTER 0x98 #define PCICFG_MSIX_CAP_ID_OFFSET 0xa0 #define PCICFG_MSIX_CONTROL_TABLE_SIZE (0x7ff<<16) #define PCICFG_MSIX_CONTROL_RESERVED (0x7<<27) #define PCICFG_MSIX_CONTROL_FUNC_MASK (0x1<<30) #define PCICFG_MSIX_CONTROL_MSIX_ENABLE (0x1<<31) #define PCICFG_DEVICE_CONTROL 0xb4 #define PCICFG_DEVICE_CONTROL_NP_TRANSACTION_PEND (1<<21) #define PCICFG_DEVICE_STATUS 0xb6 #define PCICFG_DEVICE_STATUS_CORR_ERR_DET (1<<0) #define PCICFG_DEVICE_STATUS_NON_FATAL_ERR_DET (1<<1) #define PCICFG_DEVICE_STATUS_FATAL_ERR_DET (1<<2) #define PCICFG_DEVICE_STATUS_UNSUP_REQ_DET (1<<3) #define PCICFG_DEVICE_STATUS_AUX_PWR_DET (1<<4) #define PCICFG_DEVICE_STATUS_NO_PEND (1<<5) #define PCICFG_LINK_CONTROL 0xbc /* config_2 offset */ #define GRC_CONFIG_2_SIZE_REG 0x408 #define PCI_CONFIG_2_BAR1_SIZE (0xfL<<0) #define PCI_CONFIG_2_BAR1_SIZE_DISABLED (0L<<0) #define PCI_CONFIG_2_BAR1_SIZE_64K (1L<<0) #define PCI_CONFIG_2_BAR1_SIZE_128K (2L<<0) #define PCI_CONFIG_2_BAR1_SIZE_256K (3L<<0) #define PCI_CONFIG_2_BAR1_SIZE_512K (4L<<0) #define PCI_CONFIG_2_BAR1_SIZE_1M (5L<<0) #define PCI_CONFIG_2_BAR1_SIZE_2M (6L<<0) #define PCI_CONFIG_2_BAR1_SIZE_4M (7L<<0) #define PCI_CONFIG_2_BAR1_SIZE_8M (8L<<0) #define PCI_CONFIG_2_BAR1_SIZE_16M (9L<<0) #define PCI_CONFIG_2_BAR1_SIZE_32M (10L<<0) #define PCI_CONFIG_2_BAR1_SIZE_64M (11L<<0) #define PCI_CONFIG_2_BAR1_SIZE_128M (12L<<0) #define PCI_CONFIG_2_BAR1_SIZE_256M (13L<<0) #define PCI_CONFIG_2_BAR1_SIZE_512M (14L<<0) #define PCI_CONFIG_2_BAR1_SIZE_1G (15L<<0) #define PCI_CONFIG_2_BAR1_64ENA (1L<<4) #define PCI_CONFIG_2_EXP_ROM_RETRY (1L<<5) #define PCI_CONFIG_2_CFG_CYCLE_RETRY (1L<<6) #define PCI_CONFIG_2_FIRST_CFG_DONE (1L<<7) #define PCI_CONFIG_2_EXP_ROM_SIZE (0xffL<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED (0L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_2K (1L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_4K (2L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_8K (3L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_16K (4L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_32K (5L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_64K (6L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_128K (7L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_256K (8L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_512K (9L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_1M (10L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_2M (11L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_4M (12L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_8M (13L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_16M (14L<<8) #define PCI_CONFIG_2_EXP_ROM_SIZE_32M (15L<<8) #define PCI_CONFIG_2_BAR_PREFETCH (1L<<16) #define PCI_CONFIG_2_RESERVED0 (0x7fffL<<17) /* config_3 offset */ #define GRC_CONFIG_3_SIZE_REG 0x40c #define PCI_CONFIG_3_STICKY_BYTE (0xffL<<0) #define PCI_CONFIG_3_FORCE_PME (1L<<24) #define PCI_CONFIG_3_PME_STATUS (1L<<25) #define PCI_CONFIG_3_PME_ENABLE (1L<<26) #define PCI_CONFIG_3_PM_STATE (0x3L<<27) #define PCI_CONFIG_3_VAUX_PRESET (1L<<30) #define PCI_CONFIG_3_PCI_POWER (1L<<31) #define GRC_REG_DEVICE_CONTROL 0x4d8 #define PCIE_SRIOV_DISABLE_IN_PROGRESS \ (1 << 29) /*When VF Enable is cleared(after it was previously set), this register will read a value of 1, indicating that all the VFs that belong to this PF should be flushed. Software should clear this bit within 1 second of VF Enable being set by writing a 1 to it, so that VFs are visible to the system again. WC */ #define PCIE_FLR_IN_PROGRESS \ (1 << 27) /*When FLR is initiated, this register will read a \ value of 1 indicating that the Function is in FLR state. Func can be brought out of FLR state either by writing 1 to this register (at least 50 ms after FLR was initiated), or it can also be cleared automatically after 55 ms if auto_clear bit in private reg space is set. This bit also exists in VF register space WC */ #define GRC_BAR2_CONFIG 0x4e0 #define PCI_CONFIG_2_BAR2_SIZE (0xfL<<0) #define PCI_CONFIG_2_BAR2_SIZE_DISABLED (0L<<0) #define PCI_CONFIG_2_BAR2_SIZE_64K (1L<<0) #define PCI_CONFIG_2_BAR2_SIZE_128K (2L<<0) #define PCI_CONFIG_2_BAR2_SIZE_256K (3L<<0) #define PCI_CONFIG_2_BAR2_SIZE_512K (4L<<0) #define PCI_CONFIG_2_BAR2_SIZE_1M (5L<<0) #define PCI_CONFIG_2_BAR2_SIZE_2M (6L<<0) #define PCI_CONFIG_2_BAR2_SIZE_4M (7L<<0) #define PCI_CONFIG_2_BAR2_SIZE_8M (8L<<0) #define PCI_CONFIG_2_BAR2_SIZE_16M (9L<<0) #define PCI_CONFIG_2_BAR2_SIZE_32M (10L<<0) #define PCI_CONFIG_2_BAR2_SIZE_64M (11L<<0) #define PCI_CONFIG_2_BAR2_SIZE_128M (12L<<0) #define PCI_CONFIG_2_BAR2_SIZE_256M (13L<<0) #define PCI_CONFIG_2_BAR2_SIZE_512M (14L<<0) #define PCI_CONFIG_2_BAR2_SIZE_1G (15L<<0) #define PCI_CONFIG_2_BAR2_64ENA (1L<<4) #define GRC_BAR3_CONFIG 0x4f4 #define PCI_CONFIG_2_BAR3_SIZE (0xfL<<0) #define PCI_CONFIG_2_BAR3_SIZE_DISABLED (0L<<0) #define PCI_CONFIG_2_BAR3_SIZE_64K (1L<<0) #define PCI_CONFIG_2_BAR3_SIZE_128K (2L<<0) #define PCI_CONFIG_2_BAR3_SIZE_256K (3L<<0) #define PCI_CONFIG_2_BAR3_SIZE_512K (4L<<0) #define PCI_CONFIG_2_BAR3_SIZE_1M (5L<<0) #define PCI_CONFIG_2_BAR3_SIZE_2M (6L<<0) #define PCI_CONFIG_2_BAR3_SIZE_4M (7L<<0) #define PCI_CONFIG_2_BAR3_SIZE_8M (8L<<0) #define PCI_CONFIG_2_BAR3_SIZE_16M (9L<<0) #define PCI_CONFIG_2_BAR3_SIZE_32M (10L<<0) #define PCI_CONFIG_2_BAR3_SIZE_64M (11L<<0) #define PCI_CONFIG_2_BAR3_SIZE_128M (12L<<0) #define PCI_CONFIG_2_BAR3_SIZE_256M (13L<<0) #define PCI_CONFIG_2_BAR3_SIZE_512M (14L<<0) #define PCI_CONFIG_2_BAR3_SIZE_1G (15L<<0) #define PCI_CONFIG_2_BAR3_64ENA (1L<<4) #define PCI_PM_DATA_A 0x410 #define PCI_PM_DATA_B 0x414 #define PCI_ID_VAL1 0x434 #define PCI_ID_VAL2 0x438 #define PCI_ID_VAL3 0x43c #define PCI_ID_VAL3_REVISION_ID_ERROR (0xffL<<24) #define GRC_CONFIG_REG_VF_BAR_REG_1 0x608 #define GRC_CONFIG_REG_VF_BAR_REG_BAR0_SIZE 0xf #define GRC_CONFIG_REG_VF_MSIX_CONTROL 0x61C #define GRC_CR_VF_MSIX_CTRL_VF_MSIX_TBL_SIZE_MASK \ 0x3F /*This field resides in VF only and does not exist in PF. This register controls the read value of the MSIX_CONTROL[10:0] register in the VF configuration space. A value of "00000000011" indicates a table size of 4. The value is controlled by IOV_MSIX_TBL_SIZ define in version.v */ #define GRC_CONFIG_REG_PF_INIT_VF 0x624 #define GRC_CR_PF_INIT_VF_PF_FIRST_VF_NUM_MASK \ 0xf /*First VF_NUM for PF is encoded in this register. The number of VFs assigned to a PF is assumed to be a multiple of 8. Software should program these bits based on Total Number of VFs \ programmed for each PF. Since registers from 0x000-0x7ff are spilt across functions, each PF will have the same location for the same 4 bits*/ #define PXPCS_TL_CONTROL_5 0x814 #define PXPCS_TL_CONTROL_5_UNKNOWNTYPE_ERR_ATTN (1 << 29) /*WC*/ #define PXPCS_TL_CONTROL_5_BOUNDARY4K_ERR_ATTN (1 << 28) /*WC*/ #define PXPCS_TL_CONTROL_5_MRRS_ERR_ATTN (1 << 27) /*WC*/ #define PXPCS_TL_CONTROL_5_MPS_ERR_ATTN (1 << 26) /*WC*/ #define PXPCS_TL_CONTROL_5_TTX_BRIDGE_FORWARD_ERR (1 << 25) /*WC*/ #define PXPCS_TL_CONTROL_5_TTX_TXINTF_OVERFLOW (1 << 24) /*WC*/ #define PXPCS_TL_CONTROL_5_PHY_ERR_ATTN (1 << 23) /*RO*/ #define PXPCS_TL_CONTROL_5_DL_ERR_ATTN (1 << 22) /*RO*/ #define PXPCS_TL_CONTROL_5_TTX_ERR_NP_TAG_IN_USE (1 << 21) /*WC*/ #define PXPCS_TL_CONTROL_5_TRX_ERR_UNEXP_RTAG (1 << 20) /*WC*/ #define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT1 (1 << 19) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_UNSPPORT1 (1 << 18) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_ECRC1 (1 << 17) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_MALF_TLP1 (1 << 16) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW1 (1 << 15) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL1 (1 << 14) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT1 (1 << 13) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT1 (1 << 12) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_FC_PRTL1 (1 << 11) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_PSND_TLP1 (1 << 10) /*WC*/ #define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT (1 << 9) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_UNSPPORT (1 << 8) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_ECRC (1 << 7) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_MALF_TLP (1 << 6) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW (1 << 5) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL (1 << 4) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT (1 << 3) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT (1 << 2) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_FC_PRTL (1 << 1) /*WC*/ #define PXPCS_TL_CONTROL_5_ERR_PSND_TLP (1 << 0) /*WC*/ #define PXPCS_TL_FUNC345_STAT 0x854 #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT4 (1 << 29) /* WC */ #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT4 \ (1 << 28) /* Unsupported Request Error Status in function4, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_ECRC4 \ (1 << 27) /* ECRC Error TLP Status Status in function 4, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP4 \ (1 << 26) /* Malformed TLP Status Status in function 4, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW4 \ (1 << 25) /* Receiver Overflow Status Status in function 4, if \ set, generate pcie_err_attn output when this error is seen.. WC \ */ #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL4 \ (1 << 24) /* Unexpected Completion Status Status in function 4, \ if set, generate pcie_err_attn output when this error is seen. WC \ */ #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT4 \ (1 << 23) /* Receive UR Statusin function 4. If set, generate \ pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT4 \ (1 << 22) /* Completer Timeout Status Status in function 4, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL4 \ (1 << 21) /* Flow Control Protocol Error Status Status in \ function 4, if set, generate pcie_err_attn output when this error \ is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP4 \ (1 << 20) /* Poisoned Error Status Status in function 4, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT3 (1 << 19) /* WC */ #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT3 \ (1 << 18) /* Unsupported Request Error Status in function3, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_ECRC3 \ (1 << 17) /* ECRC Error TLP Status Status in function 3, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP3 \ (1 << 16) /* Malformed TLP Status Status in function 3, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW3 \ (1 << 15) /* Receiver Overflow Status Status in function 3, if \ set, generate pcie_err_attn output when this error is seen.. WC \ */ #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL3 \ (1 << 14) /* Unexpected Completion Status Status in function 3, \ if set, generate pcie_err_attn output when this error is seen. WC \ */ #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT3 \ (1 << 13) /* Receive UR Statusin function 3. If set, generate \ pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT3 \ (1 << 12) /* Completer Timeout Status Status in function 3, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL3 \ (1 << 11) /* Flow Control Protocol Error Status Status in \ function 3, if set, generate pcie_err_attn output when this error \ is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP3 \ (1 << 10) /* Poisoned Error Status Status in function 3, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT2 (1 << 9) /* WC */ #define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT2 \ (1 << 8) /* Unsupported Request Error Status for Function 2, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_ECRC2 \ (1 << 7) /* ECRC Error TLP Status Status for Function 2, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP2 \ (1 << 6) /* Malformed TLP Status Status for Function 2, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW2 \ (1 << 5) /* Receiver Overflow Status Status for Function 2, if \ set, generate pcie_err_attn output when this error is seen.. WC \ */ #define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL2 \ (1 << 4) /* Unexpected Completion Status Status for Function 2, \ if set, generate pcie_err_attn output when this error is seen. WC \ */ #define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT2 \ (1 << 3) /* Receive UR Statusfor Function 2. If set, generate \ pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT2 \ (1 << 2) /* Completer Timeout Status Status for Function 2, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL2 \ (1 << 1) /* Flow Control Protocol Error Status Status for \ Function 2, if set, generate pcie_err_attn output when this error \ is seen. WC */ #define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP2 \ (1 << 0) /* Poisoned Error Status Status for Function 2, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT 0x85C #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT7 (1 << 29) /* WC */ #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT7 \ (1 << 28) /* Unsupported Request Error Status in function7, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_ECRC7 \ (1 << 27) /* ECRC Error TLP Status Status in function 7, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP7 \ (1 << 26) /* Malformed TLP Status Status in function 7, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW7 \ (1 << 25) /* Receiver Overflow Status Status in function 7, if \ set, generate pcie_err_attn output when this error is seen.. WC \ */ #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL7 \ (1 << 24) /* Unexpected Completion Status Status in function 7, \ if set, generate pcie_err_attn output when this error is seen. WC \ */ #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT7 \ (1 << 23) /* Receive UR Statusin function 7. If set, generate \ pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT7 \ (1 << 22) /* Completer Timeout Status Status in function 7, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL7 \ (1 << 21) /* Flow Control Protocol Error Status Status in \ function 7, if set, generate pcie_err_attn output when this error \ is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP7 \ (1 << 20) /* Poisoned Error Status Status in function 7, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT6 (1 << 19) /* WC */ #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT6 \ (1 << 18) /* Unsupported Request Error Status in function6, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_ECRC6 \ (1 << 17) /* ECRC Error TLP Status Status in function 6, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP6 \ (1 << 16) /* Malformed TLP Status Status in function 6, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW6 \ (1 << 15) /* Receiver Overflow Status Status in function 6, if \ set, generate pcie_err_attn output when this error is seen.. WC \ */ #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL6 \ (1 << 14) /* Unexpected Completion Status Status in function 6, \ if set, generate pcie_err_attn output when this error is seen. WC \ */ #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT6 \ (1 << 13) /* Receive UR Statusin function 6. If set, generate \ pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT6 \ (1 << 12) /* Completer Timeout Status Status in function 6, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL6 \ (1 << 11) /* Flow Control Protocol Error Status Status in \ function 6, if set, generate pcie_err_attn output when this error \ is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP6 \ (1 << 10) /* Poisoned Error Status Status in function 6, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT5 (1 << 9) /* WC */ #define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT5 \ (1 << 8) /* Unsupported Request Error Status for Function 5, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_ECRC5 \ (1 << 7) /* ECRC Error TLP Status Status for Function 5, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP5 \ (1 << 6) /* Malformed TLP Status Status for Function 5, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW5 \ (1 << 5) /* Receiver Overflow Status Status for Function 5, if \ set, generate pcie_err_attn output when this error is seen.. WC \ */ #define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL5 \ (1 << 4) /* Unexpected Completion Status Status for Function 5, \ if set, generate pcie_err_attn output when this error is seen. WC \ */ #define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT5 \ (1 << 3) /* Receive UR Statusfor Function 5. If set, generate \ pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT5 \ (1 << 2) /* Completer Timeout Status Status for Function 5, if \ set, generate pcie_err_attn output when this error is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL5 \ (1 << 1) /* Flow Control Protocol Error Status Status for \ Function 5, if set, generate pcie_err_attn output when this error \ is seen. WC */ #define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP5 \ (1 << 0) /* Poisoned Error Status Status for Function 5, if set, \ generate pcie_err_attn output when this error is seen.. WC */ #define BAR_USTRORM_INTMEM 0x400000 #define BAR_CSTRORM_INTMEM 0x410000 #define BAR_XSTRORM_INTMEM 0x420000 #define BAR_TSTRORM_INTMEM 0x430000 /* for accessing the IGU in case of status block ACK */ #define BAR_IGU_INTMEM 0x440000 #define BAR_DOORBELL_OFFSET 0x800000 #define BAR_ME_REGISTER 0x450000 #define ME_REG_PF_NUM_SHIFT 0 #define ME_REG_PF_NUM \ (7L<> 1; } /* split the crc into 8 bits */ for (i = 0; i < 8; i++) { C[i] = crc & 1; crc = crc >> 1; } NewCRC[0] = D[31] ^ D[30] ^ D[28] ^ D[23] ^ D[21] ^ D[19] ^ D[18] ^ D[16] ^ D[14] ^ D[12] ^ D[8] ^ D[7] ^ D[6] ^ D[0] ^ C[4] ^ C[6] ^ C[7]; NewCRC[1] = D[30] ^ D[29] ^ D[28] ^ D[24] ^ D[23] ^ D[22] ^ D[21] ^ D[20] ^ D[18] ^ D[17] ^ D[16] ^ D[15] ^ D[14] ^ D[13] ^ D[12] ^ D[9] ^ D[6] ^ D[1] ^ D[0] ^ C[0] ^ C[4] ^ C[5] ^ C[6]; NewCRC[2] = D[29] ^ D[28] ^ D[25] ^ D[24] ^ D[22] ^ D[17] ^ D[15] ^ D[13] ^ D[12] ^ D[10] ^ D[8] ^ D[6] ^ D[2] ^ D[1] ^ D[0] ^ C[0] ^ C[1] ^ C[4] ^ C[5]; NewCRC[3] = D[30] ^ D[29] ^ D[26] ^ D[25] ^ D[23] ^ D[18] ^ D[16] ^ D[14] ^ D[13] ^ D[11] ^ D[9] ^ D[7] ^ D[3] ^ D[2] ^ D[1] ^ C[1] ^ C[2] ^ C[5] ^ C[6]; NewCRC[4] = D[31] ^ D[30] ^ D[27] ^ D[26] ^ D[24] ^ D[19] ^ D[17] ^ D[15] ^ D[14] ^ D[12] ^ D[10] ^ D[8] ^ D[4] ^ D[3] ^ D[2] ^ C[0] ^ C[2] ^ C[3] ^ C[6] ^ C[7]; NewCRC[5] = D[31] ^ D[28] ^ D[27] ^ D[25] ^ D[20] ^ D[18] ^ D[16] ^ D[15] ^ D[13] ^ D[11] ^ D[9] ^ D[5] ^ D[4] ^ D[3] ^ C[1] ^ C[3] ^ C[4] ^ C[7]; NewCRC[6] = D[29] ^ D[28] ^ D[26] ^ D[21] ^ D[19] ^ D[17] ^ D[16] ^ D[14] ^ D[12] ^ D[10] ^ D[6] ^ D[5] ^ D[4] ^ C[2] ^ C[4] ^ C[5]; NewCRC[7] = D[30] ^ D[29] ^ D[27] ^ D[22] ^ D[20] ^ D[18] ^ D[17] ^ D[15] ^ D[13] ^ D[11] ^ D[7] ^ D[6] ^ D[5] ^ C[3] ^ C[5] ^ C[6]; crc_res = 0; for (i = 0; i < 8; i++) { crc_res |= (NewCRC[i] << i); } return crc_res; } #endif /* ECORE_REG_H */