linux/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_regs_cnxk.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Marvell Octeon EP (EndPoint) VF Ethernet Driver
 *
 * Copyright (C) 2020 Marvell.
 *
 */
#ifndef _OCTEP_VF_REGS_CNXK_H_
#define _OCTEP_VF_REGS_CNXK_H_

/*############################ RST #########################*/
#define CNXK_VF_CONFIG_XPANSION_BAR
#define CNXK_VF_CONFIG_PCIE_CAP
#define CNXK_VF_CONFIG_PCIE_DEVCAP
#define CNXK_VF_CONFIG_PCIE_DEVCTL
#define CNXK_VF_CONFIG_PCIE_LINKCAP
#define CNXK_VF_CONFIG_PCIE_LINKCTL
#define CNXK_VF_CONFIG_PCIE_SLOTCAP
#define CNXK_VF_CONFIG_PCIE_SLOTCTL

#define CNXK_VF_RING_OFFSET

/*###################### RING IN REGISTERS #########################*/
#define CNXK_VF_SDP_R_IN_CONTROL_START
#define CNXK_VF_SDP_R_IN_ENABLE_START
#define CNXK_VF_SDP_R_IN_INSTR_BADDR_START
#define CNXK_VF_SDP_R_IN_INSTR_RSIZE_START
#define CNXK_VF_SDP_R_IN_INSTR_DBELL_START
#define CNXK_VF_SDP_R_IN_CNTS_START
#define CNXK_VF_SDP_R_IN_INT_LEVELS_START
#define CNXK_VF_SDP_R_IN_PKT_CNT_START
#define CNXK_VF_SDP_R_IN_BYTE_CNT_START
#define CNXK_VF_SDP_R_ERR_TYPE_START

#define CNXK_VF_SDP_R_ERR_TYPE(ring)

#define CNXK_VF_SDP_R_IN_CONTROL(ring)

#define CNXK_VF_SDP_R_IN_ENABLE(ring)

#define CNXK_VF_SDP_R_IN_INSTR_BADDR(ring)

#define CNXK_VF_SDP_R_IN_INSTR_RSIZE(ring)

#define CNXK_VF_SDP_R_IN_INSTR_DBELL(ring)

#define CNXK_VF_SDP_R_IN_CNTS(ring)

#define CNXK_VF_SDP_R_IN_INT_LEVELS(ring)

#define CNXK_VF_SDP_R_IN_PKT_CNT(ring)

#define CNXK_VF_SDP_R_IN_BYTE_CNT(ring)

/*------------------ R_IN Masks ----------------*/

/** Rings per Virtual Function **/
#define CNXK_VF_R_IN_CTL_RPVF_MASK
#define CNXK_VF_R_IN_CTL_RPVF_POS

/* Number of instructions to be read in one MAC read request.
 * setting to Max value(4)
 **/
#define CNXK_VF_R_IN_CTL_IDLE
#define CNXK_VF_R_IN_CTL_RDSIZE
#define CNXK_VF_R_IN_CTL_IS_64B
#define CNXK_VF_R_IN_CTL_D_NSR
#define CNXK_VF_R_IN_CTL_D_ESR
#define CNXK_VF_R_IN_CTL_D_ROR
#define CNXK_VF_R_IN_CTL_NSR
#define CNXK_VF_R_IN_CTL_ESR
#define CNXK_VF_R_IN_CTL_ROR

#define CNXK_VF_R_IN_CTL_MASK

/*###################### RING OUT REGISTERS #########################*/
#define CNXK_VF_SDP_R_OUT_CNTS_START
#define CNXK_VF_SDP_R_OUT_INT_LEVELS_START
#define CNXK_VF_SDP_R_OUT_SLIST_BADDR_START
#define CNXK_VF_SDP_R_OUT_SLIST_RSIZE_START
#define CNXK_VF_SDP_R_OUT_SLIST_DBELL_START
#define CNXK_VF_SDP_R_OUT_CONTROL_START
#define CNXK_VF_SDP_R_OUT_WMARK_START
#define CNXK_VF_SDP_R_OUT_ENABLE_START
#define CNXK_VF_SDP_R_OUT_PKT_CNT_START
#define CNXK_VF_SDP_R_OUT_BYTE_CNT_START

#define CNXK_VF_SDP_R_OUT_CONTROL(ring)

#define CNXK_VF_SDP_R_OUT_ENABLE(ring)

#define CNXK_VF_SDP_R_OUT_SLIST_BADDR(ring)

#define CNXK_VF_SDP_R_OUT_SLIST_RSIZE(ring)

#define CNXK_VF_SDP_R_OUT_SLIST_DBELL(ring)

#define CNXK_VF_SDP_R_OUT_WMARK(ring)

#define CNXK_VF_SDP_R_OUT_CNTS(ring)

#define CNXK_VF_SDP_R_OUT_INT_LEVELS(ring)

#define CNXK_VF_SDP_R_OUT_PKT_CNT(ring)

#define CNXK_VF_SDP_R_OUT_BYTE_CNT(ring)

/*------------------ R_OUT Masks ----------------*/
#define CNXK_VF_R_OUT_INT_LEVELS_BMODE
#define CNXK_VF_R_OUT_INT_LEVELS_TIMET

#define CNXK_VF_R_OUT_CTL_IDLE
#define CNXK_VF_R_OUT_CTL_ES_I
#define CNXK_VF_R_OUT_CTL_NSR_I
#define CNXK_VF_R_OUT_CTL_ROR_I
#define CNXK_VF_R_OUT_CTL_ES_D
#define CNXK_VF_R_OUT_CTL_NSR_D
#define CNXK_VF_R_OUT_CTL_ROR_D
#define CNXK_VF_R_OUT_CTL_ES_P
#define CNXK_VF_R_OUT_CTL_NSR_P
#define CNXK_VF_R_OUT_CTL_ROR_P
#define CNXK_VF_R_OUT_CTL_IMODE

/* ##################### Mail Box Registers ########################## */
/* SDP PF to VF Mailbox Data Register */
#define CNXK_VF_SDP_R_MBOX_PF_VF_DATA_START
/* SDP Packet PF to VF Mailbox Interrupt Register */
#define CNXK_VF_SDP_R_MBOX_PF_VF_INT_START
/* SDP VF to PF Mailbox Data Register */
#define CNXK_VF_SDP_R_MBOX_VF_PF_DATA_START

#define CNXK_VF_SDP_R_MBOX_PF_VF_INT_ENAB
#define CNXK_VF_SDP_R_MBOX_PF_VF_INT_STATUS

#define CNXK_VF_SDP_R_MBOX_PF_VF_DATA(ring)

#define CNXK_VF_SDP_R_MBOX_PF_VF_INT(ring)

#define CNXK_VF_SDP_R_MBOX_VF_PF_DATA(ring)
#endif /* _OCTEP_VF_REGS_CNXK_H_ */