linux/drivers/net/ethernet/chelsio/cxgb/regs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*****************************************************************************
 *                                                                           *
 * File: regs.h                                                              *
 * $Revision: 1.8 $                                                          *
 * $Date: 2005/06/21 18:29:48 $                                              *
 * Description:                                                              *
 *  part of the Chelsio 10Gb Ethernet Driver.                                *
 *                                                                           *
 *                                                                           *
 * http://www.chelsio.com                                                    *
 *                                                                           *
 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc.                    *
 * All rights reserved.                                                      *
 *                                                                           *
 * Maintainers: [email protected]                                      *
 *                                                                           *
 * Authors: Dimitrios Michailidis   <[email protected]>                         *
 *          Tina Yang               <[email protected]>                     *
 *          Felix Marti             <[email protected]>                      *
 *          Scott Bardone           <[email protected]>                   *
 *          Kurt Ottaway            <[email protected]>                   *
 *          Frank DiMambro          <[email protected]>                      *
 *                                                                           *
 * History:                                                                  *
 *                                                                           *
 ****************************************************************************/

#ifndef _CXGB_REGS_H_
#define _CXGB_REGS_H_

/* SGE registers */
#define A_SG_CONTROL

#define S_CMDQ0_ENABLE
#define V_CMDQ0_ENABLE(x)
#define F_CMDQ0_ENABLE

#define S_CMDQ1_ENABLE
#define V_CMDQ1_ENABLE(x)
#define F_CMDQ1_ENABLE

#define S_FL0_ENABLE
#define V_FL0_ENABLE(x)
#define F_FL0_ENABLE

#define S_FL1_ENABLE
#define V_FL1_ENABLE(x)
#define F_FL1_ENABLE

#define S_CPL_ENABLE
#define V_CPL_ENABLE(x)
#define F_CPL_ENABLE

#define S_RESPONSE_QUEUE_ENABLE
#define V_RESPONSE_QUEUE_ENABLE(x)
#define F_RESPONSE_QUEUE_ENABLE

#define S_CMDQ_PRIORITY
#define M_CMDQ_PRIORITY
#define V_CMDQ_PRIORITY(x)
#define G_CMDQ_PRIORITY(x)

#define S_DISABLE_CMDQ0_GTS
#define V_DISABLE_CMDQ0_GTS(x)
#define F_DISABLE_CMDQ0_GTS

#define S_DISABLE_CMDQ1_GTS
#define V_DISABLE_CMDQ1_GTS(x)
#define F_DISABLE_CMDQ1_GTS

#define S_DISABLE_FL0_GTS
#define V_DISABLE_FL0_GTS(x)
#define F_DISABLE_FL0_GTS

#define S_DISABLE_FL1_GTS
#define V_DISABLE_FL1_GTS(x)
#define F_DISABLE_FL1_GTS

#define S_ENABLE_BIG_ENDIAN
#define V_ENABLE_BIG_ENDIAN(x)
#define F_ENABLE_BIG_ENDIAN

#define S_FL_SELECTION_CRITERIA
#define V_FL_SELECTION_CRITERIA(x)
#define F_FL_SELECTION_CRITERIA

#define S_ISCSI_COALESCE
#define V_ISCSI_COALESCE(x)
#define F_ISCSI_COALESCE

#define S_RX_PKT_OFFSET
#define M_RX_PKT_OFFSET
#define V_RX_PKT_OFFSET(x)
#define G_RX_PKT_OFFSET(x)

#define S_VLAN_XTRACT
#define V_VLAN_XTRACT(x)
#define F_VLAN_XTRACT

#define A_SG_DOORBELL
#define A_SG_CMD0BASELWR
#define A_SG_CMD0BASEUPR
#define A_SG_CMD1BASELWR
#define A_SG_CMD1BASEUPR
#define A_SG_FL0BASELWR
#define A_SG_FL0BASEUPR
#define A_SG_FL1BASELWR
#define A_SG_FL1BASEUPR
#define A_SG_CMD0SIZE

#define S_CMDQ0_SIZE
#define M_CMDQ0_SIZE
#define V_CMDQ0_SIZE(x)
#define G_CMDQ0_SIZE(x)

#define A_SG_FL0SIZE

#define S_FL0_SIZE
#define M_FL0_SIZE
#define V_FL0_SIZE(x)
#define G_FL0_SIZE(x)

#define A_SG_RSPSIZE

#define S_RESPQ_SIZE
#define M_RESPQ_SIZE
#define V_RESPQ_SIZE(x)
#define G_RESPQ_SIZE(x)

#define A_SG_RSPBASELWR
#define A_SG_RSPBASEUPR
#define A_SG_FLTHRESHOLD

#define S_FL_THRESHOLD
#define M_FL_THRESHOLD
#define V_FL_THRESHOLD(x)
#define G_FL_THRESHOLD(x)

#define A_SG_RSPQUEUECREDIT

#define S_RESPQ_CREDIT
#define M_RESPQ_CREDIT
#define V_RESPQ_CREDIT(x)
#define G_RESPQ_CREDIT(x)

#define A_SG_SLEEPING

#define S_SLEEPING
#define M_SLEEPING
#define V_SLEEPING(x)
#define G_SLEEPING(x)

#define A_SG_INTRTIMER

#define S_INTERRUPT_TIMER_COUNT
#define M_INTERRUPT_TIMER_COUNT
#define V_INTERRUPT_TIMER_COUNT(x)
#define G_INTERRUPT_TIMER_COUNT(x)

#define A_SG_CMD0PTR

#define S_CMDQ0_POINTER
#define M_CMDQ0_POINTER
#define V_CMDQ0_POINTER(x)
#define G_CMDQ0_POINTER(x)

#define S_CURRENT_GENERATION_BIT
#define V_CURRENT_GENERATION_BIT(x)
#define F_CURRENT_GENERATION_BIT

#define A_SG_CMD1PTR

#define S_CMDQ1_POINTER
#define M_CMDQ1_POINTER
#define V_CMDQ1_POINTER(x)
#define G_CMDQ1_POINTER(x)

#define A_SG_FL0PTR

#define S_FL0_POINTER
#define M_FL0_POINTER
#define V_FL0_POINTER(x)
#define G_FL0_POINTER(x)

#define A_SG_FL1PTR

#define S_FL1_POINTER
#define M_FL1_POINTER
#define V_FL1_POINTER(x)
#define G_FL1_POINTER(x)

#define A_SG_VERSION

#define S_DAY
#define M_DAY
#define V_DAY(x)
#define G_DAY(x)

#define S_MONTH
#define M_MONTH
#define V_MONTH(x)
#define G_MONTH(x)

#define A_SG_CMD1SIZE

#define S_CMDQ1_SIZE
#define M_CMDQ1_SIZE
#define V_CMDQ1_SIZE(x)
#define G_CMDQ1_SIZE(x)

#define A_SG_FL1SIZE

#define S_FL1_SIZE
#define M_FL1_SIZE
#define V_FL1_SIZE(x)
#define G_FL1_SIZE(x)

#define A_SG_INT_ENABLE

#define S_RESPQ_EXHAUSTED
#define V_RESPQ_EXHAUSTED(x)
#define F_RESPQ_EXHAUSTED

#define S_RESPQ_OVERFLOW
#define V_RESPQ_OVERFLOW(x)
#define F_RESPQ_OVERFLOW

#define S_FL_EXHAUSTED
#define V_FL_EXHAUSTED(x)
#define F_FL_EXHAUSTED

#define S_PACKET_TOO_BIG
#define V_PACKET_TOO_BIG(x)
#define F_PACKET_TOO_BIG

#define S_PACKET_MISMATCH
#define V_PACKET_MISMATCH(x)
#define F_PACKET_MISMATCH

#define A_SG_INT_CAUSE
#define A_SG_RESPACCUTIMER

/* MC3 registers */
#define A_MC3_CFG

#define S_CLK_ENABLE
#define V_CLK_ENABLE(x)
#define F_CLK_ENABLE

#define S_READY
#define V_READY(x)
#define F_READY

#define S_READ_TO_WRITE_DELAY
#define M_READ_TO_WRITE_DELAY
#define V_READ_TO_WRITE_DELAY(x)
#define G_READ_TO_WRITE_DELAY(x)

#define S_WRITE_TO_READ_DELAY
#define M_WRITE_TO_READ_DELAY
#define V_WRITE_TO_READ_DELAY(x)
#define G_WRITE_TO_READ_DELAY(x)

#define S_MC3_BANK_CYCLE
#define M_MC3_BANK_CYCLE
#define V_MC3_BANK_CYCLE(x)
#define G_MC3_BANK_CYCLE(x)

#define S_REFRESH_CYCLE
#define M_REFRESH_CYCLE
#define V_REFRESH_CYCLE(x)
#define G_REFRESH_CYCLE(x)

#define S_PRECHARGE_CYCLE
#define M_PRECHARGE_CYCLE
#define V_PRECHARGE_CYCLE(x)
#define G_PRECHARGE_CYCLE(x)

#define S_ACTIVE_TO_READ_WRITE_DELAY
#define V_ACTIVE_TO_READ_WRITE_DELAY(x)
#define F_ACTIVE_TO_READ_WRITE_DELAY

#define S_ACTIVE_TO_PRECHARGE_DELAY
#define M_ACTIVE_TO_PRECHARGE_DELAY
#define V_ACTIVE_TO_PRECHARGE_DELAY(x)
#define G_ACTIVE_TO_PRECHARGE_DELAY(x)

#define S_WRITE_RECOVERY_DELAY
#define M_WRITE_RECOVERY_DELAY
#define V_WRITE_RECOVERY_DELAY(x)
#define G_WRITE_RECOVERY_DELAY(x)

#define S_DENSITY
#define M_DENSITY
#define V_DENSITY(x)
#define G_DENSITY(x)

#define S_ORGANIZATION
#define V_ORGANIZATION(x)
#define F_ORGANIZATION

#define S_BANKS
#define V_BANKS(x)
#define F_BANKS

#define S_UNREGISTERED
#define V_UNREGISTERED(x)
#define F_UNREGISTERED

#define S_MC3_WIDTH
#define M_MC3_WIDTH
#define V_MC3_WIDTH(x)
#define G_MC3_WIDTH(x)

#define S_MC3_SLOW
#define V_MC3_SLOW(x)
#define F_MC3_SLOW

#define A_MC3_MODE

#define S_MC3_MODE
#define M_MC3_MODE
#define V_MC3_MODE(x)
#define G_MC3_MODE(x)

#define S_BUSY
#define V_BUSY(x)
#define F_BUSY

#define A_MC3_EXT_MODE

#define S_MC3_EXTENDED_MODE
#define M_MC3_EXTENDED_MODE
#define V_MC3_EXTENDED_MODE(x)
#define G_MC3_EXTENDED_MODE(x)

#define A_MC3_PRECHARG
#define A_MC3_REFRESH

#define S_REFRESH_ENABLE
#define V_REFRESH_ENABLE(x)
#define F_REFRESH_ENABLE

#define S_REFRESH_DIVISOR
#define M_REFRESH_DIVISOR
#define V_REFRESH_DIVISOR(x)
#define G_REFRESH_DIVISOR(x)

#define A_MC3_STROBE

#define S_MASTER_DLL_RESET
#define V_MASTER_DLL_RESET(x)
#define F_MASTER_DLL_RESET

#define S_MASTER_DLL_TAP_COUNT
#define M_MASTER_DLL_TAP_COUNT
#define V_MASTER_DLL_TAP_COUNT(x)
#define G_MASTER_DLL_TAP_COUNT(x)

#define S_MASTER_DLL_LOCKED
#define V_MASTER_DLL_LOCKED(x)
#define F_MASTER_DLL_LOCKED

#define S_MASTER_DLL_MAX_TAP_COUNT
#define V_MASTER_DLL_MAX_TAP_COUNT(x)
#define F_MASTER_DLL_MAX_TAP_COUNT

#define S_MASTER_DLL_TAP_COUNT_OFFSET
#define M_MASTER_DLL_TAP_COUNT_OFFSET
#define V_MASTER_DLL_TAP_COUNT_OFFSET(x)
#define G_MASTER_DLL_TAP_COUNT_OFFSET(x)

#define S_SLAVE_DLL_RESET
#define V_SLAVE_DLL_RESET(x)
#define F_SLAVE_DLL_RESET

#define S_SLAVE_DLL_DELTA
#define M_SLAVE_DLL_DELTA
#define V_SLAVE_DLL_DELTA(x)
#define G_SLAVE_DLL_DELTA(x)

#define S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT
#define M_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT
#define V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT(x)
#define G_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT(x)

#define S_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE
#define V_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE(x)
#define F_SLAVE_DELAY_LINE_MANUAL_TAP_COUNT_ENABLE

#define S_SLAVE_DELAY_LINE_TAP_COUNT
#define M_SLAVE_DELAY_LINE_TAP_COUNT
#define V_SLAVE_DELAY_LINE_TAP_COUNT(x)
#define G_SLAVE_DELAY_LINE_TAP_COUNT(x)

#define A_MC3_ECC_CNTL

#define S_ECC_GENERATION_ENABLE
#define V_ECC_GENERATION_ENABLE(x)
#define F_ECC_GENERATION_ENABLE

#define S_ECC_CHECK_ENABLE
#define V_ECC_CHECK_ENABLE(x)
#define F_ECC_CHECK_ENABLE

#define S_CORRECTABLE_ERROR_COUNT
#define M_CORRECTABLE_ERROR_COUNT
#define V_CORRECTABLE_ERROR_COUNT(x)
#define G_CORRECTABLE_ERROR_COUNT(x)

#define S_UNCORRECTABLE_ERROR_COUNT
#define M_UNCORRECTABLE_ERROR_COUNT
#define V_UNCORRECTABLE_ERROR_COUNT(x)
#define G_UNCORRECTABLE_ERROR_COUNT(x)

#define A_MC3_CE_ADDR

#define S_MC3_CE_ADDR
#define M_MC3_CE_ADDR
#define V_MC3_CE_ADDR(x)
#define G_MC3_CE_ADDR(x)

#define A_MC3_CE_DATA0
#define A_MC3_CE_DATA1
#define A_MC3_CE_DATA2
#define A_MC3_CE_DATA3
#define A_MC3_CE_DATA4
#define A_MC3_UE_ADDR

#define S_MC3_UE_ADDR
#define M_MC3_UE_ADDR
#define V_MC3_UE_ADDR(x)
#define G_MC3_UE_ADDR(x)

#define A_MC3_UE_DATA0
#define A_MC3_UE_DATA1
#define A_MC3_UE_DATA2
#define A_MC3_UE_DATA3
#define A_MC3_UE_DATA4
#define A_MC3_BD_ADDR
#define A_MC3_BD_DATA0
#define A_MC3_BD_DATA1
#define A_MC3_BD_DATA2
#define A_MC3_BD_DATA3
#define A_MC3_BD_DATA4
#define A_MC3_BD_OP

#define S_BACK_DOOR_OPERATION
#define V_BACK_DOOR_OPERATION(x)
#define F_BACK_DOOR_OPERATION

#define A_MC3_BIST_ADDR_BEG
#define A_MC3_BIST_ADDR_END
#define A_MC3_BIST_DATA
#define A_MC3_BIST_OP

#define S_OP
#define V_OP(x)
#define F_OP

#define S_DATA_PATTERN
#define M_DATA_PATTERN
#define V_DATA_PATTERN(x)
#define G_DATA_PATTERN(x)

#define S_CONTINUOUS
#define V_CONTINUOUS(x)
#define F_CONTINUOUS

#define A_MC3_INT_ENABLE

#define S_MC3_CORR_ERR
#define V_MC3_CORR_ERR(x)
#define F_MC3_CORR_ERR

#define S_MC3_UNCORR_ERR
#define V_MC3_UNCORR_ERR(x)
#define F_MC3_UNCORR_ERR

#define S_MC3_PARITY_ERR
#define M_MC3_PARITY_ERR
#define V_MC3_PARITY_ERR(x)
#define G_MC3_PARITY_ERR(x)

#define S_MC3_ADDR_ERR
#define V_MC3_ADDR_ERR(x)
#define F_MC3_ADDR_ERR

#define A_MC3_INT_CAUSE

/* MC4 registers */
#define A_MC4_CFG

#define S_POWER_UP
#define V_POWER_UP(x)
#define F_POWER_UP

#define S_MC4_BANK_CYCLE
#define M_MC4_BANK_CYCLE
#define V_MC4_BANK_CYCLE(x)
#define G_MC4_BANK_CYCLE(x)

#define S_MC4_NARROW
#define V_MC4_NARROW(x)
#define F_MC4_NARROW

#define S_MC4_SLOW
#define V_MC4_SLOW(x)
#define F_MC4_SLOW

#define S_MC4A_WIDTH
#define M_MC4A_WIDTH
#define V_MC4A_WIDTH(x)
#define G_MC4A_WIDTH(x)

#define S_MC4A_SLOW
#define V_MC4A_SLOW(x)
#define F_MC4A_SLOW

#define A_MC4_MODE

#define S_MC4_MODE
#define M_MC4_MODE
#define V_MC4_MODE(x)
#define G_MC4_MODE(x)

#define A_MC4_EXT_MODE

#define S_MC4_EXTENDED_MODE
#define M_MC4_EXTENDED_MODE
#define V_MC4_EXTENDED_MODE(x)
#define G_MC4_EXTENDED_MODE(x)

#define A_MC4_REFRESH
#define A_MC4_STROBE
#define A_MC4_ECC_CNTL
#define A_MC4_CE_ADDR

#define S_MC4_CE_ADDR
#define M_MC4_CE_ADDR
#define V_MC4_CE_ADDR(x)
#define G_MC4_CE_ADDR(x)

#define A_MC4_CE_DATA0
#define A_MC4_CE_DATA1
#define A_MC4_CE_DATA2
#define A_MC4_CE_DATA3
#define A_MC4_CE_DATA4
#define A_MC4_UE_ADDR

#define S_MC4_UE_ADDR
#define M_MC4_UE_ADDR
#define V_MC4_UE_ADDR(x)
#define G_MC4_UE_ADDR(x)

#define A_MC4_UE_DATA0
#define A_MC4_UE_DATA1
#define A_MC4_UE_DATA2
#define A_MC4_UE_DATA3
#define A_MC4_UE_DATA4
#define A_MC4_BD_ADDR

#define S_MC4_BACK_DOOR_ADDR
#define M_MC4_BACK_DOOR_ADDR
#define V_MC4_BACK_DOOR_ADDR(x)
#define G_MC4_BACK_DOOR_ADDR(x)

#define A_MC4_BD_DATA0
#define A_MC4_BD_DATA1
#define A_MC4_BD_DATA2
#define A_MC4_BD_DATA3
#define A_MC4_BD_DATA4
#define A_MC4_BD_OP

#define S_OPERATION
#define V_OPERATION(x)
#define F_OPERATION

#define A_MC4_BIST_ADDR_BEG
#define A_MC4_BIST_ADDR_END
#define A_MC4_BIST_DATA
#define A_MC4_BIST_OP
#define A_MC4_INT_ENABLE

#define S_MC4_CORR_ERR
#define V_MC4_CORR_ERR(x)
#define F_MC4_CORR_ERR

#define S_MC4_UNCORR_ERR
#define V_MC4_UNCORR_ERR(x)
#define F_MC4_UNCORR_ERR

#define S_MC4_ADDR_ERR
#define V_MC4_ADDR_ERR(x)
#define F_MC4_ADDR_ERR

#define A_MC4_INT_CAUSE

/* TPI registers */
#define A_TPI_ADDR

#define S_TPI_ADDRESS
#define M_TPI_ADDRESS
#define V_TPI_ADDRESS(x)
#define G_TPI_ADDRESS(x)

#define A_TPI_WR_DATA
#define A_TPI_RD_DATA
#define A_TPI_CSR

#define S_TPIWR
#define V_TPIWR(x)
#define F_TPIWR

#define S_TPIRDY
#define V_TPIRDY(x)
#define F_TPIRDY

#define S_INT_DIR
#define V_INT_DIR(x)
#define F_INT_DIR

#define A_TPI_PAR

#define S_TPIPAR
#define M_TPIPAR
#define V_TPIPAR(x)
#define G_TPIPAR(x)


/* TP registers */
#define A_TP_IN_CONFIG

#define S_TP_IN_CSPI_TUNNEL
#define V_TP_IN_CSPI_TUNNEL(x)
#define F_TP_IN_CSPI_TUNNEL

#define S_TP_IN_CSPI_ETHERNET
#define V_TP_IN_CSPI_ETHERNET(x)
#define F_TP_IN_CSPI_ETHERNET

#define S_TP_IN_CSPI_CPL
#define V_TP_IN_CSPI_CPL(x)
#define F_TP_IN_CSPI_CPL

#define S_TP_IN_CSPI_POS
#define V_TP_IN_CSPI_POS(x)
#define F_TP_IN_CSPI_POS

#define S_TP_IN_CSPI_CHECK_IP_CSUM
#define V_TP_IN_CSPI_CHECK_IP_CSUM(x)
#define F_TP_IN_CSPI_CHECK_IP_CSUM

#define S_TP_IN_CSPI_CHECK_TCP_CSUM
#define V_TP_IN_CSPI_CHECK_TCP_CSUM(x)
#define F_TP_IN_CSPI_CHECK_TCP_CSUM

#define S_TP_IN_ESPI_TUNNEL
#define V_TP_IN_ESPI_TUNNEL(x)
#define F_TP_IN_ESPI_TUNNEL

#define S_TP_IN_ESPI_ETHERNET
#define V_TP_IN_ESPI_ETHERNET(x)
#define F_TP_IN_ESPI_ETHERNET

#define S_TP_IN_ESPI_CPL
#define V_TP_IN_ESPI_CPL(x)
#define F_TP_IN_ESPI_CPL

#define S_TP_IN_ESPI_POS
#define V_TP_IN_ESPI_POS(x)
#define F_TP_IN_ESPI_POS

#define S_TP_IN_ESPI_CHECK_IP_CSUM
#define V_TP_IN_ESPI_CHECK_IP_CSUM(x)
#define F_TP_IN_ESPI_CHECK_IP_CSUM

#define S_TP_IN_ESPI_CHECK_TCP_CSUM
#define V_TP_IN_ESPI_CHECK_TCP_CSUM(x)
#define F_TP_IN_ESPI_CHECK_TCP_CSUM

#define S_OFFLOAD_DISABLE
#define V_OFFLOAD_DISABLE(x)
#define F_OFFLOAD_DISABLE

#define A_TP_OUT_CONFIG

#define S_TP_OUT_C_ETH
#define V_TP_OUT_C_ETH(x)
#define F_TP_OUT_C_ETH

#define S_TP_OUT_CSPI_CPL
#define V_TP_OUT_CSPI_CPL(x)
#define F_TP_OUT_CSPI_CPL

#define S_TP_OUT_CSPI_POS
#define V_TP_OUT_CSPI_POS(x)
#define F_TP_OUT_CSPI_POS

#define S_TP_OUT_CSPI_GENERATE_IP_CSUM
#define V_TP_OUT_CSPI_GENERATE_IP_CSUM(x)
#define F_TP_OUT_CSPI_GENERATE_IP_CSUM

#define S_TP_OUT_CSPI_GENERATE_TCP_CSUM
#define V_TP_OUT_CSPI_GENERATE_TCP_CSUM(x)
#define F_TP_OUT_CSPI_GENERATE_TCP_CSUM

#define S_TP_OUT_ESPI_ETHERNET
#define V_TP_OUT_ESPI_ETHERNET(x)
#define F_TP_OUT_ESPI_ETHERNET

#define S_TP_OUT_ESPI_TAG_ETHERNET
#define V_TP_OUT_ESPI_TAG_ETHERNET(x)
#define F_TP_OUT_ESPI_TAG_ETHERNET

#define S_TP_OUT_ESPI_CPL
#define V_TP_OUT_ESPI_CPL(x)
#define F_TP_OUT_ESPI_CPL

#define S_TP_OUT_ESPI_POS
#define V_TP_OUT_ESPI_POS(x)
#define F_TP_OUT_ESPI_POS

#define S_TP_OUT_ESPI_GENERATE_IP_CSUM
#define V_TP_OUT_ESPI_GENERATE_IP_CSUM(x)
#define F_TP_OUT_ESPI_GENERATE_IP_CSUM

#define S_TP_OUT_ESPI_GENERATE_TCP_CSUM
#define V_TP_OUT_ESPI_GENERATE_TCP_CSUM(x)
#define F_TP_OUT_ESPI_GENERATE_TCP_CSUM

#define A_TP_GLOBAL_CONFIG

#define S_IP_TTL
#define M_IP_TTL
#define V_IP_TTL(x)
#define G_IP_TTL(x)

#define S_TCAM_SERVER_REGION_USAGE
#define M_TCAM_SERVER_REGION_USAGE
#define V_TCAM_SERVER_REGION_USAGE(x)
#define G_TCAM_SERVER_REGION_USAGE(x)

#define S_QOS_MAPPING
#define V_QOS_MAPPING(x)
#define F_QOS_MAPPING

#define S_TCP_CSUM
#define V_TCP_CSUM(x)
#define F_TCP_CSUM

#define S_UDP_CSUM
#define V_UDP_CSUM(x)
#define F_UDP_CSUM

#define S_IP_CSUM
#define V_IP_CSUM(x)
#define F_IP_CSUM

#define S_IP_ID_SPLIT
#define V_IP_ID_SPLIT(x)
#define F_IP_ID_SPLIT

#define S_PATH_MTU
#define V_PATH_MTU(x)
#define F_PATH_MTU

#define S_5TUPLE_LOOKUP
#define M_5TUPLE_LOOKUP
#define V_5TUPLE_LOOKUP(x)
#define G_5TUPLE_LOOKUP(x)

#define S_IP_FRAGMENT_DROP
#define V_IP_FRAGMENT_DROP(x)
#define F_IP_FRAGMENT_DROP

#define S_PING_DROP
#define V_PING_DROP(x)
#define F_PING_DROP

#define S_PROTECT_MODE
#define V_PROTECT_MODE(x)
#define F_PROTECT_MODE

#define S_SYN_COOKIE_ALGORITHM
#define V_SYN_COOKIE_ALGORITHM(x)
#define F_SYN_COOKIE_ALGORITHM

#define S_ATTACK_FILTER
#define V_ATTACK_FILTER(x)
#define F_ATTACK_FILTER

#define S_INTERFACE_TYPE
#define V_INTERFACE_TYPE(x)
#define F_INTERFACE_TYPE

#define S_DISABLE_RX_FLOW_CONTROL
#define V_DISABLE_RX_FLOW_CONTROL(x)
#define F_DISABLE_RX_FLOW_CONTROL

#define S_SYN_COOKIE_PARAMETER
#define M_SYN_COOKIE_PARAMETER
#define V_SYN_COOKIE_PARAMETER(x)
#define G_SYN_COOKIE_PARAMETER(x)

#define A_TP_GLOBAL_RX_CREDITS
#define A_TP_CM_SIZE
#define A_TP_CM_MM_BASE

#define S_CM_MEMMGR_BASE
#define M_CM_MEMMGR_BASE
#define V_CM_MEMMGR_BASE(x)
#define G_CM_MEMMGR_BASE(x)

#define A_TP_CM_TIMER_BASE

#define S_CM_TIMER_BASE
#define M_CM_TIMER_BASE
#define V_CM_TIMER_BASE(x)
#define G_CM_TIMER_BASE(x)

#define A_TP_PM_SIZE
#define A_TP_PM_TX_BASE
#define A_TP_PM_DEFRAG_BASE
#define A_TP_PM_RX_BASE
#define A_TP_PM_RX_PG_SIZE
#define A_TP_PM_RX_MAX_PGS
#define A_TP_PM_TX_PG_SIZE
#define A_TP_PM_TX_MAX_PGS
#define A_TP_TCP_OPTIONS

#define S_TIMESTAMP
#define M_TIMESTAMP
#define V_TIMESTAMP(x)
#define G_TIMESTAMP(x)

#define S_WINDOW_SCALE
#define M_WINDOW_SCALE
#define V_WINDOW_SCALE(x)
#define G_WINDOW_SCALE(x)

#define S_SACK
#define M_SACK
#define V_SACK(x)
#define G_SACK(x)

#define S_ECN
#define M_ECN
#define V_ECN(x)
#define G_ECN(x)

#define S_SACK_ALGORITHM
#define M_SACK_ALGORITHM
#define V_SACK_ALGORITHM(x)
#define G_SACK_ALGORITHM(x)

#define S_MSS
#define V_MSS(x)
#define F_MSS

#define S_DEFAULT_PEER_MSS
#define M_DEFAULT_PEER_MSS
#define V_DEFAULT_PEER_MSS(x)
#define G_DEFAULT_PEER_MSS(x)

#define A_TP_DACK_CONFIG

#define S_DACK_MODE
#define V_DACK_MODE(x)
#define F_DACK_MODE

#define S_DACK_AUTO_MGMT
#define V_DACK_AUTO_MGMT(x)
#define F_DACK_AUTO_MGMT

#define S_DACK_AUTO_CAREFUL
#define V_DACK_AUTO_CAREFUL(x)
#define F_DACK_AUTO_CAREFUL

#define S_DACK_MSS_SELECTOR
#define M_DACK_MSS_SELECTOR
#define V_DACK_MSS_SELECTOR(x)
#define G_DACK_MSS_SELECTOR(x)

#define S_DACK_BYTE_THRESHOLD
#define M_DACK_BYTE_THRESHOLD
#define V_DACK_BYTE_THRESHOLD(x)
#define G_DACK_BYTE_THRESHOLD(x)

#define A_TP_PC_CONFIG

#define S_TP_ACCESS_LATENCY
#define M_TP_ACCESS_LATENCY
#define V_TP_ACCESS_LATENCY(x)
#define G_TP_ACCESS_LATENCY(x)

#define S_HELD_FIN_DISABLE
#define V_HELD_FIN_DISABLE(x)
#define F_HELD_FIN_DISABLE

#define S_DDP_FC_ENABLE
#define V_DDP_FC_ENABLE(x)
#define F_DDP_FC_ENABLE

#define S_RDMA_ERR_ENABLE
#define V_RDMA_ERR_ENABLE(x)
#define F_RDMA_ERR_ENABLE

#define S_FAST_PDU_DELIVERY
#define V_FAST_PDU_DELIVERY(x)
#define F_FAST_PDU_DELIVERY

#define S_CLEAR_FIN
#define V_CLEAR_FIN(x)
#define F_CLEAR_FIN

#define S_DIS_TX_FILL_WIN_PUSH
#define V_DIS_TX_FILL_WIN_PUSH(x)
#define F_DIS_TX_FILL_WIN_PUSH

#define S_TP_PC_REV
#define M_TP_PC_REV
#define V_TP_PC_REV(x)
#define G_TP_PC_REV(x)

#define A_TP_BACKOFF0

#define S_ELEMENT0
#define M_ELEMENT0
#define V_ELEMENT0(x)
#define G_ELEMENT0(x)

#define S_ELEMENT1
#define M_ELEMENT1
#define V_ELEMENT1(x)
#define G_ELEMENT1(x)

#define S_ELEMENT2
#define M_ELEMENT2
#define V_ELEMENT2(x)
#define G_ELEMENT2(x)

#define S_ELEMENT3
#define M_ELEMENT3
#define V_ELEMENT3(x)
#define G_ELEMENT3(x)

#define A_TP_BACKOFF1
#define A_TP_BACKOFF2
#define A_TP_BACKOFF3
#define A_TP_PARA_REG0

#define S_VAR_MULT
#define M_VAR_MULT
#define V_VAR_MULT(x)
#define G_VAR_MULT(x)

#define S_VAR_GAIN
#define M_VAR_GAIN
#define V_VAR_GAIN(x)
#define G_VAR_GAIN(x)

#define S_SRTT_GAIN
#define M_SRTT_GAIN
#define V_SRTT_GAIN(x)
#define G_SRTT_GAIN(x)

#define S_RTTVAR_INIT
#define M_RTTVAR_INIT
#define V_RTTVAR_INIT(x)
#define G_RTTVAR_INIT(x)

#define S_DUP_THRESH
#define M_DUP_THRESH
#define V_DUP_THRESH(x)
#define G_DUP_THRESH(x)

#define S_INIT_CONG_WIN
#define M_INIT_CONG_WIN
#define V_INIT_CONG_WIN(x)
#define G_INIT_CONG_WIN(x)

#define A_TP_PARA_REG1

#define S_INITIAL_SLOW_START_THRESHOLD
#define M_INITIAL_SLOW_START_THRESHOLD
#define V_INITIAL_SLOW_START_THRESHOLD(x)
#define G_INITIAL_SLOW_START_THRESHOLD(x)

#define S_RECEIVE_BUFFER_SIZE
#define M_RECEIVE_BUFFER_SIZE
#define V_RECEIVE_BUFFER_SIZE(x)
#define G_RECEIVE_BUFFER_SIZE(x)

#define A_TP_PARA_REG2

#define S_RX_COALESCE_SIZE
#define M_RX_COALESCE_SIZE
#define V_RX_COALESCE_SIZE(x)
#define G_RX_COALESCE_SIZE(x)

#define S_MAX_RX_SIZE
#define M_MAX_RX_SIZE
#define V_MAX_RX_SIZE(x)
#define G_MAX_RX_SIZE(x)

#define A_TP_PARA_REG3

#define S_RX_COALESCING_PSH_DELIVER
#define V_RX_COALESCING_PSH_DELIVER(x)
#define F_RX_COALESCING_PSH_DELIVER

#define S_RX_COALESCING_ENABLE
#define V_RX_COALESCING_ENABLE(x)
#define F_RX_COALESCING_ENABLE

#define S_TAHOE_ENABLE
#define V_TAHOE_ENABLE(x)
#define F_TAHOE_ENABLE

#define S_MAX_REORDER_FRAGMENTS
#define M_MAX_REORDER_FRAGMENTS
#define V_MAX_REORDER_FRAGMENTS(x)
#define G_MAX_REORDER_FRAGMENTS(x)

#define A_TP_TIMER_RESOLUTION

#define S_DELAYED_ACK_TIMER_RESOLUTION
#define M_DELAYED_ACK_TIMER_RESOLUTION
#define V_DELAYED_ACK_TIMER_RESOLUTION(x)
#define G_DELAYED_ACK_TIMER_RESOLUTION(x)

#define S_GENERIC_TIMER_RESOLUTION
#define M_GENERIC_TIMER_RESOLUTION
#define V_GENERIC_TIMER_RESOLUTION(x)
#define G_GENERIC_TIMER_RESOLUTION(x)

#define A_TP_2MSL

#define S_2MSL
#define M_2MSL
#define V_2MSL(x)
#define G_2MSL(x)

#define A_TP_RXT_MIN

#define S_RETRANSMIT_TIMER_MIN
#define M_RETRANSMIT_TIMER_MIN
#define V_RETRANSMIT_TIMER_MIN(x)
#define G_RETRANSMIT_TIMER_MIN(x)

#define A_TP_RXT_MAX

#define S_RETRANSMIT_TIMER_MAX
#define M_RETRANSMIT_TIMER_MAX
#define V_RETRANSMIT_TIMER_MAX(x)
#define G_RETRANSMIT_TIMER_MAX(x)

#define A_TP_PERS_MIN

#define S_PERSIST_TIMER_MIN
#define M_PERSIST_TIMER_MIN
#define V_PERSIST_TIMER_MIN(x)
#define G_PERSIST_TIMER_MIN(x)

#define A_TP_PERS_MAX

#define S_PERSIST_TIMER_MAX
#define M_PERSIST_TIMER_MAX
#define V_PERSIST_TIMER_MAX(x)
#define G_PERSIST_TIMER_MAX(x)

#define A_TP_KEEP_IDLE

#define S_KEEP_ALIVE_IDLE_TIME
#define M_KEEP_ALIVE_IDLE_TIME
#define V_KEEP_ALIVE_IDLE_TIME(x)
#define G_KEEP_ALIVE_IDLE_TIME(x)

#define A_TP_KEEP_INTVL

#define S_KEEP_ALIVE_INTERVAL_TIME
#define M_KEEP_ALIVE_INTERVAL_TIME
#define V_KEEP_ALIVE_INTERVAL_TIME(x)
#define G_KEEP_ALIVE_INTERVAL_TIME(x)

#define A_TP_INIT_SRTT

#define S_INITIAL_SRTT
#define M_INITIAL_SRTT
#define V_INITIAL_SRTT(x)
#define G_INITIAL_SRTT(x)

#define A_TP_DACK_TIME

#define S_DELAYED_ACK_TIME
#define M_DELAYED_ACK_TIME
#define V_DELAYED_ACK_TIME(x)
#define G_DELAYED_ACK_TIME(x)

#define A_TP_FINWAIT2_TIME

#define S_FINWAIT2_TIME
#define M_FINWAIT2_TIME
#define V_FINWAIT2_TIME(x)
#define G_FINWAIT2_TIME(x)

#define A_TP_FAST_FINWAIT2_TIME

#define S_FAST_FINWAIT2_TIME
#define M_FAST_FINWAIT2_TIME
#define V_FAST_FINWAIT2_TIME(x)
#define G_FAST_FINWAIT2_TIME(x)

#define A_TP_SHIFT_CNT

#define S_KEEPALIVE_MAX
#define M_KEEPALIVE_MAX
#define V_KEEPALIVE_MAX(x)
#define G_KEEPALIVE_MAX(x)

#define S_WINDOWPROBE_MAX
#define M_WINDOWPROBE_MAX
#define V_WINDOWPROBE_MAX(x)
#define G_WINDOWPROBE_MAX(x)

#define S_RETRANSMISSION_MAX
#define M_RETRANSMISSION_MAX
#define V_RETRANSMISSION_MAX(x)
#define G_RETRANSMISSION_MAX(x)

#define S_SYN_MAX
#define M_SYN_MAX
#define V_SYN_MAX(x)
#define G_SYN_MAX(x)

#define A_TP_QOS_REG0

#define S_L3_VALUE
#define M_L3_VALUE
#define V_L3_VALUE(x)
#define G_L3_VALUE(x)

#define A_TP_QOS_REG1
#define A_TP_QOS_REG2
#define A_TP_QOS_REG3
#define A_TP_QOS_REG4
#define A_TP_QOS_REG5
#define A_TP_QOS_REG6
#define A_TP_QOS_REG7
#define A_TP_MTU_REG0
#define A_TP_MTU_REG1
#define A_TP_MTU_REG2
#define A_TP_MTU_REG3
#define A_TP_MTU_REG4
#define A_TP_MTU_REG5
#define A_TP_MTU_REG6
#define A_TP_MTU_REG7
#define A_TP_RESET

#define S_TP_RESET
#define V_TP_RESET(x)
#define F_TP_RESET

#define S_CM_MEMMGR_INIT
#define V_CM_MEMMGR_INIT(x)
#define F_CM_MEMMGR_INIT

#define A_TP_MIB_INDEX
#define A_TP_MIB_DATA
#define A_TP_SYNC_TIME_HI
#define A_TP_SYNC_TIME_LO
#define A_TP_CM_MM_RX_FLST_BASE

#define S_CM_MEMMGR_RX_FREE_LIST_BASE
#define M_CM_MEMMGR_RX_FREE_LIST_BASE
#define V_CM_MEMMGR_RX_FREE_LIST_BASE(x)
#define G_CM_MEMMGR_RX_FREE_LIST_BASE(x)

#define A_TP_CM_MM_TX_FLST_BASE

#define S_CM_MEMMGR_TX_FREE_LIST_BASE
#define M_CM_MEMMGR_TX_FREE_LIST_BASE
#define V_CM_MEMMGR_TX_FREE_LIST_BASE(x)
#define G_CM_MEMMGR_TX_FREE_LIST_BASE(x)

#define A_TP_CM_MM_P_FLST_BASE

#define S_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE
#define M_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE
#define V_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE(x)
#define G_CM_MEMMGR_PSTRUCT_FREE_LIST_BASE(x)

#define A_TP_CM_MM_MAX_P

#define S_CM_MEMMGR_MAX_PSTRUCT
#define M_CM_MEMMGR_MAX_PSTRUCT
#define V_CM_MEMMGR_MAX_PSTRUCT(x)
#define G_CM_MEMMGR_MAX_PSTRUCT(x)

#define A_TP_INT_ENABLE

#define S_TX_FREE_LIST_EMPTY
#define V_TX_FREE_LIST_EMPTY(x)
#define F_TX_FREE_LIST_EMPTY

#define S_RX_FREE_LIST_EMPTY
#define V_RX_FREE_LIST_EMPTY(x)
#define F_RX_FREE_LIST_EMPTY

#define A_TP_INT_CAUSE
#define A_TP_TIMER_SEPARATOR

#define S_DISABLE_PAST_TIMER_INSERTION
#define V_DISABLE_PAST_TIMER_INSERTION(x)
#define F_DISABLE_PAST_TIMER_INSERTION

#define S_MODULATION_TIMER_SEPARATOR
#define M_MODULATION_TIMER_SEPARATOR
#define V_MODULATION_TIMER_SEPARATOR(x)
#define G_MODULATION_TIMER_SEPARATOR(x)

#define S_GLOBAL_TIMER_SEPARATOR
#define M_GLOBAL_TIMER_SEPARATOR
#define V_GLOBAL_TIMER_SEPARATOR(x)
#define G_GLOBAL_TIMER_SEPARATOR(x)

#define A_TP_CM_FC_MODE
#define A_TP_PC_CONGESTION_CNTL
#define A_TP_TX_DROP_CONFIG

#define S_ENABLE_TX_DROP
#define V_ENABLE_TX_DROP(x)
#define F_ENABLE_TX_DROP

#define S_ENABLE_TX_ERROR
#define V_ENABLE_TX_ERROR(x)
#define F_ENABLE_TX_ERROR

#define S_DROP_TICKS_CNT
#define M_DROP_TICKS_CNT
#define V_DROP_TICKS_CNT(x)
#define G_DROP_TICKS_CNT(x)

#define S_NUM_PKTS_DROPPED
#define M_NUM_PKTS_DROPPED
#define V_NUM_PKTS_DROPPED(x)
#define G_NUM_PKTS_DROPPED(x)

#define A_TP_TX_DROP_COUNT

/* RAT registers */
#define A_RAT_ROUTE_CONTROL

#define S_USE_ROUTE_TABLE
#define V_USE_ROUTE_TABLE(x)
#define F_USE_ROUTE_TABLE

#define S_ENABLE_CSPI
#define V_ENABLE_CSPI(x)
#define F_ENABLE_CSPI

#define S_ENABLE_PCIX
#define V_ENABLE_PCIX(x)
#define F_ENABLE_PCIX

#define A_RAT_ROUTE_TABLE_INDEX

#define S_ROUTE_TABLE_INDEX
#define M_ROUTE_TABLE_INDEX
#define V_ROUTE_TABLE_INDEX(x)
#define G_ROUTE_TABLE_INDEX(x)

#define A_RAT_ROUTE_TABLE_DATA
#define A_RAT_NO_ROUTE

#define S_CPL_OPCODE
#define M_CPL_OPCODE
#define V_CPL_OPCODE(x)
#define G_CPL_OPCODE(x)

#define A_RAT_INTR_ENABLE

#define S_ZEROROUTEERROR
#define V_ZEROROUTEERROR(x)
#define F_ZEROROUTEERROR

#define S_CSPIFRAMINGERROR
#define V_CSPIFRAMINGERROR(x)
#define F_CSPIFRAMINGERROR

#define S_SGEFRAMINGERROR
#define V_SGEFRAMINGERROR(x)
#define F_SGEFRAMINGERROR

#define S_TPFRAMINGERROR
#define V_TPFRAMINGERROR(x)
#define F_TPFRAMINGERROR

#define A_RAT_INTR_CAUSE

/* CSPI registers */
#define A_CSPI_RX_AE_WM
#define A_CSPI_RX_AF_WM
#define A_CSPI_CALENDAR_LEN

#define S_CALENDARLENGTH
#define M_CALENDARLENGTH
#define V_CALENDARLENGTH(x)
#define G_CALENDARLENGTH(x)

#define A_CSPI_FIFO_STATUS_ENABLE

#define S_FIFOSTATUSENABLE
#define V_FIFOSTATUSENABLE(x)
#define F_FIFOSTATUSENABLE

#define A_CSPI_MAXBURST1_MAXBURST2

#define S_MAXBURST1
#define M_MAXBURST1
#define V_MAXBURST1(x)
#define G_MAXBURST1(x)

#define S_MAXBURST2
#define M_MAXBURST2
#define V_MAXBURST2(x)
#define G_MAXBURST2(x)

#define A_CSPI_TRAIN

#define S_CSPI_TRAIN_ALPHA
#define M_CSPI_TRAIN_ALPHA
#define V_CSPI_TRAIN_ALPHA(x)
#define G_CSPI_TRAIN_ALPHA(x)

#define S_CSPI_TRAIN_DATA_MAXT
#define M_CSPI_TRAIN_DATA_MAXT
#define V_CSPI_TRAIN_DATA_MAXT(x)
#define G_CSPI_TRAIN_DATA_MAXT(x)

#define A_CSPI_INTR_STATUS

#define S_DIP4ERR
#define V_DIP4ERR(x)
#define F_DIP4ERR

#define S_RXDROP
#define V_RXDROP(x)
#define F_RXDROP

#define S_TXDROP
#define V_TXDROP(x)
#define F_TXDROP

#define S_RXOVERFLOW
#define V_RXOVERFLOW(x)
#define F_RXOVERFLOW

#define S_RAMPARITYERR
#define V_RAMPARITYERR(x)
#define F_RAMPARITYERR

#define A_CSPI_INTR_ENABLE

/* ESPI registers */
#define A_ESPI_SCH_TOKEN0

#define S_SCHTOKEN0
#define M_SCHTOKEN0
#define V_SCHTOKEN0(x)
#define G_SCHTOKEN0(x)

#define A_ESPI_SCH_TOKEN1

#define S_SCHTOKEN1
#define M_SCHTOKEN1
#define V_SCHTOKEN1(x)
#define G_SCHTOKEN1(x)

#define A_ESPI_SCH_TOKEN2

#define S_SCHTOKEN2
#define M_SCHTOKEN2
#define V_SCHTOKEN2(x)
#define G_SCHTOKEN2(x)

#define A_ESPI_SCH_TOKEN3

#define S_SCHTOKEN3
#define M_SCHTOKEN3
#define V_SCHTOKEN3(x)
#define G_SCHTOKEN3(x)

#define A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK

#define S_ALMOSTEMPTY
#define M_ALMOSTEMPTY
#define V_ALMOSTEMPTY(x)
#define G_ALMOSTEMPTY(x)

#define A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK

#define S_ALMOSTFULL
#define M_ALMOSTFULL
#define V_ALMOSTFULL(x)
#define G_ALMOSTFULL(x)

#define A_ESPI_CALENDAR_LENGTH
#define A_PORT_CONFIG

#define S_RX_NPORTS
#define M_RX_NPORTS
#define V_RX_NPORTS(x)
#define G_RX_NPORTS(x)

#define S_TX_NPORTS
#define M_TX_NPORTS
#define V_TX_NPORTS(x)
#define G_TX_NPORTS(x)

#define A_ESPI_FIFO_STATUS_ENABLE

#define S_RXSTATUSENABLE
#define V_RXSTATUSENABLE(x)
#define F_RXSTATUSENABLE

#define S_TXDROPENABLE
#define V_TXDROPENABLE(x)
#define F_TXDROPENABLE

#define S_RXENDIANMODE
#define V_RXENDIANMODE(x)
#define F_RXENDIANMODE

#define S_TXENDIANMODE
#define V_TXENDIANMODE(x)
#define F_TXENDIANMODE

#define S_INTEL1010MODE
#define V_INTEL1010MODE(x)
#define F_INTEL1010MODE

#define A_ESPI_MAXBURST1_MAXBURST2
#define A_ESPI_TRAIN

#define S_MAXTRAINALPHA
#define M_MAXTRAINALPHA
#define V_MAXTRAINALPHA(x)
#define G_MAXTRAINALPHA(x)

#define S_MAXTRAINDATA
#define M_MAXTRAINDATA
#define V_MAXTRAINDATA(x)
#define G_MAXTRAINDATA(x)

#define A_RAM_STATUS

#define S_RXFIFOPARITYERROR
#define M_RXFIFOPARITYERROR
#define V_RXFIFOPARITYERROR(x)
#define G_RXFIFOPARITYERROR(x)

#define S_TXFIFOPARITYERROR
#define M_TXFIFOPARITYERROR
#define V_TXFIFOPARITYERROR(x)
#define G_TXFIFOPARITYERROR(x)

#define S_RXFIFOOVERFLOW
#define M_RXFIFOOVERFLOW
#define V_RXFIFOOVERFLOW(x)
#define G_RXFIFOOVERFLOW(x)

#define A_TX_DROP_COUNT0

#define S_TXPORT0DROPCNT
#define M_TXPORT0DROPCNT
#define V_TXPORT0DROPCNT(x)
#define G_TXPORT0DROPCNT(x)

#define S_TXPORT1DROPCNT
#define M_TXPORT1DROPCNT
#define V_TXPORT1DROPCNT(x)
#define G_TXPORT1DROPCNT(x)

#define A_TX_DROP_COUNT1

#define S_TXPORT2DROPCNT
#define M_TXPORT2DROPCNT
#define V_TXPORT2DROPCNT(x)
#define G_TXPORT2DROPCNT(x)

#define S_TXPORT3DROPCNT
#define M_TXPORT3DROPCNT
#define V_TXPORT3DROPCNT(x)
#define G_TXPORT3DROPCNT(x)

#define A_RX_DROP_COUNT0

#define S_RXPORT0DROPCNT
#define M_RXPORT0DROPCNT
#define V_RXPORT0DROPCNT(x)
#define G_RXPORT0DROPCNT(x)

#define S_RXPORT1DROPCNT
#define M_RXPORT1DROPCNT
#define V_RXPORT1DROPCNT(x)
#define G_RXPORT1DROPCNT(x)

#define A_RX_DROP_COUNT1

#define S_RXPORT2DROPCNT
#define M_RXPORT2DROPCNT
#define V_RXPORT2DROPCNT(x)
#define G_RXPORT2DROPCNT(x)

#define S_RXPORT3DROPCNT
#define M_RXPORT3DROPCNT
#define V_RXPORT3DROPCNT(x)
#define G_RXPORT3DROPCNT(x)

#define A_DIP4_ERROR_COUNT

#define S_DIP4ERRORCNT
#define M_DIP4ERRORCNT
#define V_DIP4ERRORCNT(x)
#define G_DIP4ERRORCNT(x)

#define S_DIP4ERRORCNTSHADOW
#define M_DIP4ERRORCNTSHADOW
#define V_DIP4ERRORCNTSHADOW(x)
#define G_DIP4ERRORCNTSHADOW(x)

#define S_TRICN_RX_TRAIN_ERR
#define V_TRICN_RX_TRAIN_ERR(x)
#define F_TRICN_RX_TRAIN_ERR

#define S_TRICN_RX_TRAINING
#define V_TRICN_RX_TRAINING(x)
#define F_TRICN_RX_TRAINING

#define S_TRICN_RX_TRAIN_OK
#define V_TRICN_RX_TRAIN_OK(x)
#define F_TRICN_RX_TRAIN_OK

#define A_ESPI_INTR_STATUS

#define S_DIP2PARITYERR
#define V_DIP2PARITYERR(x)
#define F_DIP2PARITYERR

#define A_ESPI_INTR_ENABLE
#define A_RX_DROP_THRESHOLD
#define A_ESPI_RX_RESET

#define S_ESPI_RX_LNK_RST
#define V_ESPI_RX_LNK_RST(x)
#define F_ESPI_RX_LNK_RST

#define S_ESPI_RX_CORE_RST
#define V_ESPI_RX_CORE_RST(x)
#define F_ESPI_RX_CORE_RST

#define S_RX_CLK_STATUS
#define V_RX_CLK_STATUS(x)
#define F_RX_CLK_STATUS

#define A_ESPI_MISC_CONTROL

#define S_OUT_OF_SYNC_COUNT
#define M_OUT_OF_SYNC_COUNT
#define V_OUT_OF_SYNC_COUNT(x)
#define G_OUT_OF_SYNC_COUNT(x)

#define S_DIP2_COUNT_MODE_ENABLE
#define V_DIP2_COUNT_MODE_ENABLE(x)
#define F_DIP2_COUNT_MODE_ENABLE

#define S_DIP2_PARITY_ERR_THRES
#define M_DIP2_PARITY_ERR_THRES
#define V_DIP2_PARITY_ERR_THRES(x)
#define G_DIP2_PARITY_ERR_THRES(x)

#define S_DIP4_THRES
#define M_DIP4_THRES
#define V_DIP4_THRES(x)
#define G_DIP4_THRES(x)

#define S_DIP4_THRES_ENABLE
#define V_DIP4_THRES_ENABLE(x)
#define F_DIP4_THRES_ENABLE

#define S_FORCE_DISABLE_STATUS
#define V_FORCE_DISABLE_STATUS(x)
#define F_FORCE_DISABLE_STATUS

#define S_DYNAMIC_DESKEW
#define V_DYNAMIC_DESKEW(x)
#define F_DYNAMIC_DESKEW

#define S_MONITORED_PORT_NUM
#define M_MONITORED_PORT_NUM
#define V_MONITORED_PORT_NUM(x)
#define G_MONITORED_PORT_NUM(x)

#define S_MONITORED_DIRECTION
#define V_MONITORED_DIRECTION(x)
#define F_MONITORED_DIRECTION

#define S_MONITORED_INTERFACE
#define V_MONITORED_INTERFACE(x)
#define F_MONITORED_INTERFACE

#define A_ESPI_DIP2_ERR_COUNT

#define S_DIP2_ERR_CNT
#define M_DIP2_ERR_CNT
#define V_DIP2_ERR_CNT(x)
#define G_DIP2_ERR_CNT(x)

#define A_ESPI_CMD_ADDR

#define S_WRITE_DATA
#define M_WRITE_DATA
#define V_WRITE_DATA(x)
#define G_WRITE_DATA(x)

#define S_REGISTER_OFFSET
#define M_REGISTER_OFFSET
#define V_REGISTER_OFFSET(x)
#define G_REGISTER_OFFSET(x)

#define S_CHANNEL_ADDR
#define M_CHANNEL_ADDR
#define V_CHANNEL_ADDR(x)
#define G_CHANNEL_ADDR(x)

#define S_MODULE_ADDR
#define M_MODULE_ADDR
#define V_MODULE_ADDR(x)
#define G_MODULE_ADDR(x)

#define S_BUNDLE_ADDR
#define M_BUNDLE_ADDR
#define V_BUNDLE_ADDR(x)
#define G_BUNDLE_ADDR(x)

#define S_SPI4_COMMAND
#define M_SPI4_COMMAND
#define V_SPI4_COMMAND(x)
#define G_SPI4_COMMAND(x)

#define A_ESPI_GOSTAT

#define S_READ_DATA
#define M_READ_DATA
#define V_READ_DATA(x)
#define G_READ_DATA(x)

#define S_ESPI_CMD_BUSY
#define V_ESPI_CMD_BUSY(x)
#define F_ESPI_CMD_BUSY

#define S_ERROR_ACK
#define V_ERROR_ACK(x)
#define F_ERROR_ACK

#define S_UNMAPPED_ERR
#define V_UNMAPPED_ERR(x)
#define F_UNMAPPED_ERR

#define S_TRANSACTION_TIMER
#define M_TRANSACTION_TIMER
#define V_TRANSACTION_TIMER(x)
#define G_TRANSACTION_TIMER(x)


/* ULP registers */
#define A_ULP_ULIMIT
#define A_ULP_TAGMASK
#define A_ULP_HREG_INDEX
#define A_ULP_HREG_DATA
#define A_ULP_INT_ENABLE
#define A_ULP_INT_CAUSE

#define S_HREG_PAR_ERR
#define V_HREG_PAR_ERR(x)
#define F_HREG_PAR_ERR

#define S_EGRS_DATA_PAR_ERR
#define V_EGRS_DATA_PAR_ERR(x)
#define F_EGRS_DATA_PAR_ERR

#define S_INGRS_DATA_PAR_ERR
#define V_INGRS_DATA_PAR_ERR(x)
#define F_INGRS_DATA_PAR_ERR

#define S_PM_INTR
#define V_PM_INTR(x)
#define F_PM_INTR

#define S_PM_E2C_SYNC_ERR
#define V_PM_E2C_SYNC_ERR(x)
#define F_PM_E2C_SYNC_ERR

#define S_PM_C2E_SYNC_ERR
#define V_PM_C2E_SYNC_ERR(x)
#define F_PM_C2E_SYNC_ERR

#define S_PM_E2C_EMPTY_ERR
#define V_PM_E2C_EMPTY_ERR(x)
#define F_PM_E2C_EMPTY_ERR

#define S_PM_C2E_EMPTY_ERR
#define V_PM_C2E_EMPTY_ERR(x)
#define F_PM_C2E_EMPTY_ERR

#define S_PM_PAR_ERR
#define M_PM_PAR_ERR
#define V_PM_PAR_ERR(x)
#define G_PM_PAR_ERR(x)

#define S_PM_E2C_WRT_FULL
#define V_PM_E2C_WRT_FULL(x)
#define F_PM_E2C_WRT_FULL

#define S_PM_C2E_WRT_FULL
#define V_PM_C2E_WRT_FULL(x)
#define F_PM_C2E_WRT_FULL

#define A_ULP_PIO_CTRL

/* PL registers */
#define A_PL_ENABLE

#define S_PL_INTR_SGE_ERR
#define V_PL_INTR_SGE_ERR(x)
#define F_PL_INTR_SGE_ERR

#define S_PL_INTR_SGE_DATA
#define V_PL_INTR_SGE_DATA(x)
#define F_PL_INTR_SGE_DATA

#define S_PL_INTR_MC3
#define V_PL_INTR_MC3(x)
#define F_PL_INTR_MC3

#define S_PL_INTR_MC4
#define V_PL_INTR_MC4(x)
#define F_PL_INTR_MC4

#define S_PL_INTR_MC5
#define V_PL_INTR_MC5(x)
#define F_PL_INTR_MC5

#define S_PL_INTR_RAT
#define V_PL_INTR_RAT(x)
#define F_PL_INTR_RAT

#define S_PL_INTR_TP
#define V_PL_INTR_TP(x)
#define F_PL_INTR_TP

#define S_PL_INTR_ULP
#define V_PL_INTR_ULP(x)
#define F_PL_INTR_ULP

#define S_PL_INTR_ESPI
#define V_PL_INTR_ESPI(x)
#define F_PL_INTR_ESPI

#define S_PL_INTR_CSPI
#define V_PL_INTR_CSPI(x)
#define F_PL_INTR_CSPI

#define S_PL_INTR_PCIX
#define V_PL_INTR_PCIX(x)
#define F_PL_INTR_PCIX

#define S_PL_INTR_EXT
#define V_PL_INTR_EXT(x)
#define F_PL_INTR_EXT

#define A_PL_CAUSE

/* MC5 registers */
#define A_MC5_CONFIG

#define S_MODE
#define V_MODE(x)
#define F_MODE

#define S_TCAM_RESET
#define V_TCAM_RESET(x)
#define F_TCAM_RESET

#define S_TCAM_READY
#define V_TCAM_READY(x)
#define F_TCAM_READY

#define S_DBGI_ENABLE
#define V_DBGI_ENABLE(x)
#define F_DBGI_ENABLE

#define S_M_BUS_ENABLE
#define V_M_BUS_ENABLE(x)
#define F_M_BUS_ENABLE

#define S_PARITY_ENABLE
#define V_PARITY_ENABLE(x)
#define F_PARITY_ENABLE

#define S_SYN_ISSUE_MODE
#define M_SYN_ISSUE_MODE
#define V_SYN_ISSUE_MODE(x)
#define G_SYN_ISSUE_MODE(x)

#define S_BUILD
#define V_BUILD(x)
#define F_BUILD

#define S_COMPRESSION_ENABLE
#define V_COMPRESSION_ENABLE(x)
#define F_COMPRESSION_ENABLE

#define S_NUM_LIP
#define M_NUM_LIP
#define V_NUM_LIP(x)
#define G_NUM_LIP(x)

#define S_TCAM_PART_CNT
#define M_TCAM_PART_CNT
#define V_TCAM_PART_CNT(x)
#define G_TCAM_PART_CNT(x)

#define S_TCAM_PART_TYPE
#define M_TCAM_PART_TYPE
#define V_TCAM_PART_TYPE(x)
#define G_TCAM_PART_TYPE(x)

#define S_TCAM_PART_SIZE
#define M_TCAM_PART_SIZE
#define V_TCAM_PART_SIZE(x)
#define G_TCAM_PART_SIZE(x)

#define S_TCAM_PART_TYPE_HI
#define V_TCAM_PART_TYPE_HI(x)
#define F_TCAM_PART_TYPE_HI

#define A_MC5_SIZE

#define S_SIZE
#define M_SIZE
#define V_SIZE(x)
#define G_SIZE(x)

#define A_MC5_ROUTING_TABLE_INDEX

#define S_START_OF_ROUTING_TABLE
#define M_START_OF_ROUTING_TABLE
#define V_START_OF_ROUTING_TABLE(x)
#define G_START_OF_ROUTING_TABLE(x)

#define A_MC5_SERVER_INDEX

#define S_START_OF_SERVER_INDEX
#define M_START_OF_SERVER_INDEX
#define V_START_OF_SERVER_INDEX(x)
#define G_START_OF_SERVER_INDEX(x)

#define A_MC5_LIP_RAM_ADDR

#define S_LOCAL_IP_RAM_ADDR
#define M_LOCAL_IP_RAM_ADDR
#define V_LOCAL_IP_RAM_ADDR(x)
#define G_LOCAL_IP_RAM_ADDR(x)

#define S_RAM_WRITE_ENABLE
#define V_RAM_WRITE_ENABLE(x)
#define F_RAM_WRITE_ENABLE

#define A_MC5_LIP_RAM_DATA
#define A_MC5_RSP_LATENCY

#define S_SEARCH_RESPONSE_LATENCY
#define M_SEARCH_RESPONSE_LATENCY
#define V_SEARCH_RESPONSE_LATENCY(x)
#define G_SEARCH_RESPONSE_LATENCY(x)

#define S_LEARN_RESPONSE_LATENCY
#define M_LEARN_RESPONSE_LATENCY
#define V_LEARN_RESPONSE_LATENCY(x)
#define G_LEARN_RESPONSE_LATENCY(x)

#define A_MC5_PARITY_LATENCY

#define S_SRCHLAT
#define M_SRCHLAT
#define V_SRCHLAT(x)
#define G_SRCHLAT(x)

#define S_PARLAT
#define M_PARLAT
#define V_PARLAT(x)
#define G_PARLAT(x)

#define A_MC5_WR_LRN_VERIFY

#define S_POVEREN
#define V_POVEREN(x)
#define F_POVEREN

#define S_LRNVEREN
#define V_LRNVEREN(x)
#define F_LRNVEREN

#define S_VWVEREN
#define V_VWVEREN(x)
#define F_VWVEREN

#define A_MC5_PART_ID_INDEX

#define S_IDINDEX
#define M_IDINDEX
#define V_IDINDEX(x)
#define G_IDINDEX(x)

#define A_MC5_RESET_MAX

#define S_RSTMAX
#define M_RSTMAX
#define V_RSTMAX(x)
#define G_RSTMAX(x)

#define A_MC5_INT_ENABLE

#define S_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR
#define V_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR(x)
#define F_MC5_INT_HIT_OUT_ACTIVE_REGION_ERR

#define S_MC5_INT_HIT_IN_ACTIVE_REGION_ERR
#define V_MC5_INT_HIT_IN_ACTIVE_REGION_ERR(x)
#define F_MC5_INT_HIT_IN_ACTIVE_REGION_ERR

#define S_MC5_INT_HIT_IN_RT_REGION_ERR
#define V_MC5_INT_HIT_IN_RT_REGION_ERR(x)
#define F_MC5_INT_HIT_IN_RT_REGION_ERR

#define S_MC5_INT_MISS_ERR
#define V_MC5_INT_MISS_ERR(x)
#define F_MC5_INT_MISS_ERR

#define S_MC5_INT_LIP0_ERR
#define V_MC5_INT_LIP0_ERR(x)
#define F_MC5_INT_LIP0_ERR

#define S_MC5_INT_LIP_MISS_ERR
#define V_MC5_INT_LIP_MISS_ERR(x)
#define F_MC5_INT_LIP_MISS_ERR

#define S_MC5_INT_PARITY_ERR
#define V_MC5_INT_PARITY_ERR(x)
#define F_MC5_INT_PARITY_ERR

#define S_MC5_INT_ACTIVE_REGION_FULL
#define V_MC5_INT_ACTIVE_REGION_FULL(x)
#define F_MC5_INT_ACTIVE_REGION_FULL

#define S_MC5_INT_NFA_SRCH_ERR
#define V_MC5_INT_NFA_SRCH_ERR(x)
#define F_MC5_INT_NFA_SRCH_ERR

#define S_MC5_INT_SYN_COOKIE
#define V_MC5_INT_SYN_COOKIE(x)
#define F_MC5_INT_SYN_COOKIE

#define S_MC5_INT_SYN_COOKIE_BAD
#define V_MC5_INT_SYN_COOKIE_BAD(x)
#define F_MC5_INT_SYN_COOKIE_BAD

#define S_MC5_INT_SYN_COOKIE_OFF
#define V_MC5_INT_SYN_COOKIE_OFF(x)
#define F_MC5_INT_SYN_COOKIE_OFF

#define S_MC5_INT_UNKNOWN_CMD
#define V_MC5_INT_UNKNOWN_CMD(x)
#define F_MC5_INT_UNKNOWN_CMD

#define S_MC5_INT_REQUESTQ_PARITY_ERR
#define V_MC5_INT_REQUESTQ_PARITY_ERR(x)
#define F_MC5_INT_REQUESTQ_PARITY_ERR

#define S_MC5_INT_DISPATCHQ_PARITY_ERR
#define V_MC5_INT_DISPATCHQ_PARITY_ERR(x)
#define F_MC5_INT_DISPATCHQ_PARITY_ERR

#define S_MC5_INT_DEL_ACT_EMPTY
#define V_MC5_INT_DEL_ACT_EMPTY(x)
#define F_MC5_INT_DEL_ACT_EMPTY

#define A_MC5_INT_CAUSE
#define A_MC5_INT_TID
#define A_MC5_INT_PTID
#define A_MC5_DBGI_CONFIG
#define A_MC5_DBGI_REQ_CMD

#define S_CMDMODE
#define M_CMDMODE
#define V_CMDMODE(x)
#define G_CMDMODE(x)

#define S_SADRSEL
#define V_SADRSEL(x)
#define F_SADRSEL

#define S_WRITE_BURST_SIZE
#define M_WRITE_BURST_SIZE
#define V_WRITE_BURST_SIZE(x)
#define G_WRITE_BURST_SIZE(x)

#define A_MC5_DBGI_REQ_ADDR0
#define A_MC5_DBGI_REQ_ADDR1
#define A_MC5_DBGI_REQ_ADDR2
#define A_MC5_DBGI_REQ_DATA0
#define A_MC5_DBGI_REQ_DATA1
#define A_MC5_DBGI_REQ_DATA2
#define A_MC5_DBGI_REQ_DATA3
#define A_MC5_DBGI_REQ_DATA4
#define A_MC5_DBGI_REQ_MASK0
#define A_MC5_DBGI_REQ_MASK1
#define A_MC5_DBGI_REQ_MASK2
#define A_MC5_DBGI_REQ_MASK3
#define A_MC5_DBGI_REQ_MASK4
#define A_MC5_DBGI_RSP_STATUS

#define S_DBGI_RSP_VALID
#define V_DBGI_RSP_VALID(x)
#define F_DBGI_RSP_VALID

#define S_DBGI_RSP_HIT
#define V_DBGI_RSP_HIT(x)
#define F_DBGI_RSP_HIT

#define S_DBGI_RSP_ERR
#define V_DBGI_RSP_ERR(x)
#define F_DBGI_RSP_ERR

#define S_DBGI_RSP_ERR_REASON
#define M_DBGI_RSP_ERR_REASON
#define V_DBGI_RSP_ERR_REASON(x)
#define G_DBGI_RSP_ERR_REASON(x)

#define A_MC5_DBGI_RSP_DATA0
#define A_MC5_DBGI_RSP_DATA1
#define A_MC5_DBGI_RSP_DATA2
#define A_MC5_DBGI_RSP_DATA3
#define A_MC5_DBGI_RSP_DATA4
#define A_MC5_DBGI_RSP_LAST_CMD
#define A_MC5_POPEN_DATA_WR_CMD
#define A_MC5_POPEN_MASK_WR_CMD
#define A_MC5_AOPEN_SRCH_CMD
#define A_MC5_AOPEN_LRN_CMD
#define A_MC5_SYN_SRCH_CMD
#define A_MC5_SYN_LRN_CMD
#define A_MC5_ACK_SRCH_CMD
#define A_MC5_ACK_LRN_CMD
#define A_MC5_ILOOKUP_CMD
#define A_MC5_ELOOKUP_CMD
#define A_MC5_DATA_WRITE_CMD
#define A_MC5_DATA_READ_CMD
#define A_MC5_MASK_WRITE_CMD

/* PCICFG registers */
#define A_PCICFG_PM_CSR
#define A_PCICFG_VPD_ADDR

#define S_VPD_ADDR
#define M_VPD_ADDR
#define V_VPD_ADDR(x)
#define G_VPD_ADDR(x)

#define S_VPD_OP_FLAG
#define V_VPD_OP_FLAG(x)
#define F_VPD_OP_FLAG

#define A_PCICFG_VPD_DATA
#define A_PCICFG_PCIX_CMD
#define A_PCICFG_INTR_ENABLE

#define S_MASTER_PARITY_ERR
#define V_MASTER_PARITY_ERR(x)
#define F_MASTER_PARITY_ERR

#define S_SIG_TARGET_ABORT
#define V_SIG_TARGET_ABORT(x)
#define F_SIG_TARGET_ABORT

#define S_RCV_TARGET_ABORT
#define V_RCV_TARGET_ABORT(x)
#define F_RCV_TARGET_ABORT

#define S_RCV_MASTER_ABORT
#define V_RCV_MASTER_ABORT(x)
#define F_RCV_MASTER_ABORT

#define S_SIG_SYS_ERR
#define V_SIG_SYS_ERR(x)
#define F_SIG_SYS_ERR

#define S_DET_PARITY_ERR
#define V_DET_PARITY_ERR(x)
#define F_DET_PARITY_ERR

#define S_PIO_PARITY_ERR
#define V_PIO_PARITY_ERR(x)
#define F_PIO_PARITY_ERR

#define S_WF_PARITY_ERR
#define V_WF_PARITY_ERR(x)
#define F_WF_PARITY_ERR

#define S_RF_PARITY_ERR
#define M_RF_PARITY_ERR
#define V_RF_PARITY_ERR(x)
#define G_RF_PARITY_ERR(x)

#define S_CF_PARITY_ERR
#define M_CF_PARITY_ERR
#define V_CF_PARITY_ERR(x)
#define G_CF_PARITY_ERR(x)

#define A_PCICFG_INTR_CAUSE
#define A_PCICFG_MODE

#define S_PCI_MODE_64BIT
#define V_PCI_MODE_64BIT(x)
#define F_PCI_MODE_64BIT

#define S_PCI_MODE_66MHZ
#define V_PCI_MODE_66MHZ(x)
#define F_PCI_MODE_66MHZ

#define S_PCI_MODE_PCIX_INITPAT
#define M_PCI_MODE_PCIX_INITPAT
#define V_PCI_MODE_PCIX_INITPAT(x)
#define G_PCI_MODE_PCIX_INITPAT(x)

#define S_PCI_MODE_PCIX
#define V_PCI_MODE_PCIX(x)
#define F_PCI_MODE_PCIX

#define S_PCI_MODE_CLK
#define M_PCI_MODE_CLK
#define V_PCI_MODE_CLK(x)
#define G_PCI_MODE_CLK(x)

#endif /* _CXGB_REGS_H_ */