linux/drivers/net/ethernet/marvell/octeontx2/af/mcs_reg.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Marvell MCS driver
 *
 * Copyright (C) 2022 Marvell.
 */

#ifndef MCS_REG_H
#define MCS_REG_H

#include <linux/bits.h>

/* Registers */
#define MCSX_IP_MODE
#define MCSX_MCS_TOP_SLAVE_PORT_RESET(a)


#define MCSX_MCS_TOP_SLAVE_CHANNEL_CFG(a)

#define MCSX_MIL_GLOBAL

#define MCSX_MIL_RX_LMACX_CFG(a)

#define MCSX_HIL_GLOBAL

#define MCSX_LINK_LMACX_CFG(a)

#define MCSX_MIL_RX_GBL_STATUS

#define MCSX_MIL_IP_GBL_STATUS

/* PAB */
#define MCSX_PAB_RX_SLAVE_PORT_CFGX(a)

#define MCSX_PAB_TX_SLAVE_PORT_CFGX(a)

/* PEX registers */
#define MCSX_PEX_RX_SLAVE_VLAN_CFGX(a)
#define MCSX_PEX_TX_SLAVE_VLAN_CFGX(a)
#define MCSX_PEX_TX_SLAVE_CUSTOM_TAG_REL_MODE_SEL(a)
#define MCSX_PEX_TX_SLAVE_PORT_CONFIG(a)
#define MCSX_PEX_RX_SLAVE_PORT_CFGX(a)
#define MCSX_PEX_RX_SLAVE_RULE_ETYPE_CFGX(a)

#define MCSX_PEX_RX_SLAVE_RULE_DAX(a)

#define MCSX_PEX_RX_SLAVE_RULE_DA_RANGE_MINX(a)

#define MCSX_PEX_RX_SLAVE_RULE_DA_RANGE_MAXX(a)

#define MCSX_PEX_RX_SLAVE_RULE_COMBO_MINX(a)

#define MCSX_PEX_RX_SLAVE_RULE_COMBO_MAXX(a)

#define MCSX_PEX_RX_SLAVE_RULE_COMBO_ETX(a)

#define MCSX_PEX_RX_SLAVE_RULE_MAC

#define MCSX_PEX_RX_SLAVE_RULE_ENABLE

#define MCSX_PEX_TX_SLAVE_RULE_ETYPE_CFGX(a)

#define MCSX_PEX_TX_SLAVE_RULE_DAX(a)

#define MCSX_PEX_TX_SLAVE_RULE_DA_RANGE_MINX(a)

#define MCSX_PEX_TX_SLAVE_RULE_DA_RANGE_MAXX(a)

#define MCSX_PEX_TX_SLAVE_RULE_COMBO_MINX(a)

#define MCSX_PEX_TX_SLAVE_RULE_COMBO_MAXX(a)

#define MCSX_PEX_TX_SLAVE_RULE_COMBO_ETX(a)

#define MCSX_PEX_TX_SLAVE_RULE_MAC

#define MCSX_PEX_TX_SLAVE_RULE_ENABLE

#define MCSX_PEX_RX_SLAVE_PEX_CONFIGURATION

/* CNF10K-B */
#define MCSX_PEX_RX_SLAVE_CUSTOM_TAGX(a)
#define MCSX_PEX_TX_SLAVE_CUSTOM_TAGX(a)
#define MCSX_PEX_RX_SLAVE_ETYPE_ENABLE
#define MCSX_PEX_TX_SLAVE_ETYPE_ENABLE

/* BEE */
#define MCSX_BBE_RX_SLAVE_PADDING_CTL
#define MCSX_BBE_TX_SLAVE_PADDING_CTL
#define MCSX_BBE_RX_SLAVE_CAL_ENTRY
#define MCSX_BBE_RX_SLAVE_CAL_LEN
#define MCSX_PAB_RX_SLAVE_FIFO_SKID_CFGX(a)
#define MCSX_BBE_RX_SLAVE_DFIFO_OVERFLOW_0
#define MCSX_BBE_TX_SLAVE_DFIFO_OVERFLOW_0
#define MCSX_BBE_RX_SLAVE_PLFIFO_OVERFLOW_0
#define MCSX_BBE_TX_SLAVE_PLFIFO_OVERFLOW_0
#define MCSX_BBE_RX_SLAVE_BBE_INT

#define MCSX_BBE_RX_SLAVE_BBE_INT_ENB

#define MCSX_BBE_RX_SLAVE_BBE_INT_INTR_RW

#define MCSX_BBE_TX_SLAVE_BBE_INT

#define MCSX_BBE_TX_SLAVE_BBE_INT_INTR_RW

#define MCSX_BBE_TX_SLAVE_BBE_INT_ENB

#define MCSX_PAB_RX_SLAVE_PAB_INT

#define MCSX_PAB_RX_SLAVE_PAB_INT_ENB

#define MCSX_PAB_RX_SLAVE_PAB_INT_INTR_RW

#define MCSX_PAB_TX_SLAVE_PAB_INT

#define MCSX_PAB_TX_SLAVE_PAB_INT_ENB

#define MCSX_PAB_TX_SLAVE_PAB_INT_INTR_RW

/* CPM registers */
#define MCSX_CPM_RX_SLAVE_FLOWID_TCAM_DATAX(a, b)

#define MCSX_CPM_RX_SLAVE_FLOWID_TCAM_MASKX(a, b)

#define MCSX_CPM_RX_SLAVE_FLOWID_TCAM_ENA_0

#define MCSX_CPM_RX_SLAVE_SC_CAMX(a, b)

#define MCSX_CPM_RX_SLAVE_SC_CAM_ENA(a)

#define MCSX_CPM_RX_SLAVE_SECY_MAP_MEMX(a)

#define MCSX_CPM_RX_SLAVE_SECY_PLCY_MEM_0X(a)

#define MCSX_CPM_RX_SLAVE_SA_KEY_LOCKOUTX(a)

#define MCSX_CPM_RX_SLAVE_SA_MAP_MEMX(a)

#define MCSX_CPM_RX_SLAVE_SA_PLCY_MEMX(a, b)

#define MCSX_CPM_RX_SLAVE_SA_PN_TABLE_MEMX(a)

#define MCSX_CPM_RX_SLAVE_XPN_THRESHOLD

#define MCSX_CPM_RX_SLAVE_PN_THRESHOLD

#define MCSX_CPM_RX_SLAVE_PN_THRESH_REACHEDX(a)

#define MCSX_CPM_RX_SLAVE_FLOWID_TCAM_ENA_1
#define MCSX_CPM_RX_SLAVE_SECY_PLCY_MEM_1X(a)

/* TX registers */
#define MCSX_CPM_TX_SLAVE_FLOWID_TCAM_DATAX(a, b)

#define MCSX_CPM_TX_SLAVE_FLOWID_TCAM_MASKX(a, b)

#define MCSX_CPM_TX_SLAVE_FLOWID_TCAM_ENA_0

#define MCSX_CPM_TX_SLAVE_SECY_MAP_MEM_0X(a)

#define MCSX_CPM_TX_SLAVE_SECY_PLCY_MEMX(a)

#define MCSX_CPM_TX_SLAVE_SA_KEY_LOCKOUTX(a)

#define MCSX_CPM_TX_SLAVE_SA_MAP_MEM_0X(a)

#define MCSX_CPM_TX_SLAVE_SA_PLCY_MEMX(a, b)

#define MCSX_CPM_TX_SLAVE_SA_PN_TABLE_MEMX(a)

#define MCSX_CPM_TX_SLAVE_XPN_THRESHOLD

#define MCSX_CPM_TX_SLAVE_PN_THRESHOLD

#define MCSX_CPM_TX_SLAVE_SA_MAP_MEM_1X(a)
#define MCSX_CPM_TX_SLAVE_SECY_MAP_MEM_1X(a)
#define MCSX_CPM_TX_SLAVE_FLOWID_TCAM_ENA_1
#define MCSX_CPM_TX_SLAVE_TX_SA_ACTIVEX(a)
#define MCSX_CPM_TX_SLAVE_SA_INDEX0_VLDX(a)
#define MCSX_CPM_TX_SLAVE_SA_INDEX1_VLDX(a)
#define MCSX_CPM_TX_SLAVE_AUTO_REKEY_ENABLE_0

/* CSE */
#define MCSX_CSE_RX_MEM_SLAVE_IFINCTLBCPKTSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINCTLMCPKTSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINCTLOCTETSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINCTLUCPKTSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINUNCTLBCPKTSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINUNCTLMCPKTSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINUNCTLOCTETSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_IFINUNCTLUCPKTSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INOCTETSSECYDECRYPTEDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INOCTETSSECYVALIDATEX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSCTRLPORTDISABLEDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSFLOWIDTCAMHITX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSFLOWIDTCAMMISSX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSPARSEERRX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCCAMHITX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCINVALIDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCNOTVALIDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYBADTAGX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYNOSAX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYNOSAERRORX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYTAGGEDCTLX(a)

#define MCSX_CSE_RX_SLAVE_CTRL

#define MCSX_CSE_RX_SLAVE_STATS_CLEAR

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCUNCHECKEDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYUNTAGGEDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCLATEORDELAYEDX(a)

#define MCSX_CSE_RX_MEM_SLAVE_INOCTETSSCDECRYPTEDX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INOCTETSSCVALIDATEX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYNOTAGX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSECYCTLX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSAINVALIDX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSANOTUSINGSAERRORX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSANOTVALIDX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSAOKX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSAUNUSEDSAX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSEARLYPREEMPTERRX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCOKX(a)
#define MCSX_CSE_RX_MEM_SLAVE_INPKTSSCDELAYEDX(a)

/* CSE TX */
#define MCSX_CSE_TX_MEM_SLAVE_IFOUTCOMMONOCTETSX(a)
#define MCSX_CSE_TX_MEM_SLAVE_IFOUTCTLBCPKTSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTCTLMCPKTSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTCTLOCTETSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTCTLUCPKTSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTUNCTLBCPKTSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTUNCTLMCPKTSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTUNCTLOCTETSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_IFOUTUNCTLUCPKTSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTOCTETSSECYENCRYPTEDX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTOCTETSSECYPROTECTEDX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSCTRLPORTDISABLEDX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSFLOWIDTCAMHITX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSFLOWIDTCAMMISSX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSPARSEERRX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSCENCRYPTEDX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSCPROTECTEDX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSECTAGINSERTIONERRX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSECYNOACTIVESAX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSECYTOOLONGX(a)

#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSECYUNTAGGEDX(a)

#define MCSX_CSE_TX_SLAVE_CTRL

#define MCSX_CSE_TX_SLAVE_STATS_CLEAR

#define MCSX_CSE_TX_MEM_SLAVE_OUTOCTETSSCENCRYPTEDX(a)
#define MCSX_CSE_TX_MEM_SLAVE_OUTOCTETSSCPROTECTEDX(a)
#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSEARLYPREEMPTERRX(a)
#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSAENCRYPTEDX(a)
#define MCSX_CSE_TX_MEM_SLAVE_OUTPKTSSAPROTECTEDX(a)

#define MCSX_IP_INT

#define MCSX_IP_INT_ENA_W1S

#define MCSX_IP_INT_ENA_W1C

#define MCSX_TOP_SLAVE_INT_SUM

#define MCSX_TOP_SLAVE_INT_SUM_ENB

#define MCSX_CPM_RX_SLAVE_RX_INT

#define MCSX_CPM_RX_SLAVE_RX_INT_ENB

#define MCSX_CPM_TX_SLAVE_TX_INT

#define MCSX_CPM_TX_SLAVE_TX_INT_ENB

#endif