/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2015 Cavium, Inc.
*/
#ifndef NIC_REG_H
#define NIC_REG_H
#define NIC_PF_REG_COUNT 29573
#define NIC_VF_REG_COUNT 249
/* Physical function register offsets */
#define NIC_PF_CFG (0 x0000)
#define NIC_PF_STATUS (0 x0010)
#define NIC_PF_INTR_TIMER_CFG (0 x0030)
#define NIC_PF_BIST_STATUS (0 x0040)
#define NIC_PF_SOFT_RESET (0 x0050)
#define NIC_PF_TCP_TIMER (0 x0060)
#define NIC_PF_BP_CFG (0 x0080)
#define NIC_PF_RRM_CFG (0 x0088)
#define NIC_PF_CQM_CFG (0 x00A0)
#define NIC_PF_CNM_CF (0 x00A8)
#define NIC_PF_CNM_STATUS (0 x00B0)
#define NIC_PF_CQ_AVG_CFG (0 x00C0)
#define NIC_PF_RRM_AVG_CFG (0 x00C8)
#define NIC_PF_INTF_0_1_SEND_CFG (0 x0200)
#define NIC_PF_INTF_0_1_BP_CFG (0 x0208)
#define NIC_PF_INTF_0_1_BP_DIS_0_1 (0 x0210)
#define NIC_PF_INTF_0_1_BP_SW_0_1 (0 x0220)
#define NIC_PF_RBDR_BP_STATE_0_3 (0 x0240)
#define NIC_PF_MAILBOX_INT (0 x0410)
#define NIC_PF_MAILBOX_INT_W1S (0 x0430)
#define NIC_PF_MAILBOX_ENA_W1C (0 x0450)
#define NIC_PF_MAILBOX_ENA_W1S (0 x0470)
#define NIC_PF_RX_ETYPE_0_7 (0 x0500)
#define NIC_PF_RX_GENEVE_DEF (0 x0580)
#define UDP_GENEVE_PORT_NUM 0 x17C1ULL
#define NIC_PF_RX_GENEVE_PROT_DEF (0 x0588)
#define IPV6_PROT 0 x86DDULL
#define IPV4_PROT 0 x800ULL
#define ET_PROT 0 x6558ULL
#define NIC_PF_RX_NVGRE_PROT_DEF (0 x0598)
#define NIC_PF_RX_VXLAN_DEF_0_1 (0 x05A0)
#define UDP_VXLAN_PORT_NUM 0 x12B5
#define NIC_PF_RX_VXLAN_PROT_DEF (0 x05B0)
#define IPV6_PROT_DEF 0 x2ULL
#define IPV4_PROT_DEF 0 x1ULL
#define ET_PROT_DEF 0 x3ULL
#define NIC_PF_RX_CFG (0 x05D0)
#define NIC_PF_PKIND_0_15_CFG (0 x0600)
#define NIC_PF_ECC0_FLIP0 (0 x1000)
#define NIC_PF_ECC1_FLIP0 (0 x1008)
#define NIC_PF_ECC2_FLIP0 (0 x1010)
#define NIC_PF_ECC3_FLIP0 (0 x1018)
#define NIC_PF_ECC0_FLIP1 (0 x1080)
#define NIC_PF_ECC1_FLIP1 (0 x1088)
#define NIC_PF_ECC2_FLIP1 (0 x1090)
#define NIC_PF_ECC3_FLIP1 (0 x1098)
#define NIC_PF_ECC0_CDIS (0 x1100)
#define NIC_PF_ECC1_CDIS (0 x1108)
#define NIC_PF_ECC2_CDIS (0 x1110)
#define NIC_PF_ECC3_CDIS (0 x1118)
#define NIC_PF_BIST0_STATUS (0 x1280)
#define NIC_PF_BIST1_STATUS (0 x1288)
#define NIC_PF_BIST2_STATUS (0 x1290)
#define NIC_PF_BIST3_STATUS (0 x1298)
#define NIC_PF_ECC0_SBE_INT (0 x2000)
#define NIC_PF_ECC0_SBE_INT_W1S (0 x2008)
#define NIC_PF_ECC0_SBE_ENA_W1C (0 x2010)
#define NIC_PF_ECC0_SBE_ENA_W1S (0 x2018)
#define NIC_PF_ECC0_DBE_INT (0 x2100)
#define NIC_PF_ECC0_DBE_INT_W1S (0 x2108)
#define NIC_PF_ECC0_DBE_ENA_W1C (0 x2110)
#define NIC_PF_ECC0_DBE_ENA_W1S (0 x2118)
#define NIC_PF_ECC1_SBE_INT (0 x2200)
#define NIC_PF_ECC1_SBE_INT_W1S (0 x2208)
#define NIC_PF_ECC1_SBE_ENA_W1C (0 x2210)
#define NIC_PF_ECC1_SBE_ENA_W1S (0 x2218)
#define NIC_PF_ECC1_DBE_INT (0 x2300)
#define NIC_PF_ECC1_DBE_INT_W1S (0 x2308)
#define NIC_PF_ECC1_DBE_ENA_W1C (0 x2310)
#define NIC_PF_ECC1_DBE_ENA_W1S (0 x2318)
#define NIC_PF_ECC2_SBE_INT (0 x2400)
#define NIC_PF_ECC2_SBE_INT_W1S (0 x2408)
#define NIC_PF_ECC2_SBE_ENA_W1C (0 x2410)
#define NIC_PF_ECC2_SBE_ENA_W1S (0 x2418)
#define NIC_PF_ECC2_DBE_INT (0 x2500)
#define NIC_PF_ECC2_DBE_INT_W1S (0 x2508)
#define NIC_PF_ECC2_DBE_ENA_W1C (0 x2510)
#define NIC_PF_ECC2_DBE_ENA_W1S (0 x2518)
#define NIC_PF_ECC3_SBE_INT (0 x2600)
#define NIC_PF_ECC3_SBE_INT_W1S (0 x2608)
#define NIC_PF_ECC3_SBE_ENA_W1C (0 x2610)
#define NIC_PF_ECC3_SBE_ENA_W1S (0 x2618)
#define NIC_PF_ECC3_DBE_INT (0 x2700)
#define NIC_PF_ECC3_DBE_INT_W1S (0 x2708)
#define NIC_PF_ECC3_DBE_ENA_W1C (0 x2710)
#define NIC_PF_ECC3_DBE_ENA_W1S (0 x2718)
#define NIC_PF_INTFX_SEND_CFG (0 x4000)
#define NIC_PF_MCAM_0_191_ENA (0 x100000)
#define NIC_PF_MCAM_0_191_M_0_5_DATA (0 x110000)
#define NIC_PF_MCAM_CTRL (0 x120000)
#define NIC_PF_CPI_0_2047_CFG (0 x200000)
#define NIC_PF_MPI_0_2047_CFG (0 x210000)
#define NIC_PF_RSSI_0_4097_RQ (0 x220000)
#define NIC_PF_LMAC_0_7_CFG (0 x240000)
#define NIC_PF_LMAC_0_7_CFG2 (0 x240100)
#define NIC_PF_LMAC_0_7_SW_XOFF (0 x242000)
#define NIC_PF_LMAC_0_7_CREDIT (0 x244000)
#define NIC_PF_CHAN_0_255_TX_CFG (0 x400000)
#define NIC_PF_CHAN_0_255_RX_CFG (0 x420000)
#define NIC_PF_CHAN_0_255_SW_XOFF (0 x440000)
#define NIC_PF_CHAN_0_255_CREDIT (0 x460000)
#define NIC_PF_CHAN_0_255_RX_BP_CFG (0 x480000)
#define NIC_PF_SW_SYNC_RX (0 x490000)
#define NIC_PF_SW_SYNC_RX_DONE (0 x490008)
#define NIC_PF_TL2_0_63_CFG (0 x500000)
#define NIC_PF_TL2_0_63_PRI (0 x520000)
#define NIC_PF_TL2_LMAC (0 x540000)
#define NIC_PF_TL2_0_63_SH_STATUS (0 x580000)
#define NIC_PF_TL3A_0_63_CFG (0 x5F0000)
#define NIC_PF_TL3_0_255_CFG (0 x600000)
#define NIC_PF_TL3_0_255_CHAN (0 x620000)
#define NIC_PF_TL3_0_255_PIR (0 x640000)
#define NIC_PF_TL3_0_255_SW_XOFF (0 x660000)
#define NIC_PF_TL3_0_255_CNM_RATE (0 x680000)
#define NIC_PF_TL3_0_255_SH_STATUS (0 x6A0000)
#define NIC_PF_TL4A_0_255_CFG (0 x6F0000)
#define NIC_PF_TL4_0_1023_CFG (0 x800000)
#define NIC_PF_TL4_0_1023_SW_XOFF (0 x820000)
#define NIC_PF_TL4_0_1023_SH_STATUS (0 x840000)
#define NIC_PF_TL4A_0_1023_CNM_RATE (0 x880000)
#define NIC_PF_TL4A_0_1023_CNM_STATUS (0 x8A0000)
#define NIC_PF_VF_0_127_MAILBOX_0_1 (0 x20002030)
#define NIC_PF_VNIC_0_127_TX_STAT_0_4 (0 x20004000)
#define NIC_PF_VNIC_0_127_RX_STAT_0_13 (0 x20004100)
#define NIC_PF_QSET_0_127_LOCK_0_15 (0 x20006000)
#define NIC_PF_QSET_0_127_CFG (0 x20010000)
#define NIC_PF_QSET_0_127_RQ_0_7_CFG (0 x20010400)
#define NIC_PF_QSET_0_127_RQ_0_7_DROP_CFG (0 x20010420)
#define NIC_PF_QSET_0_127_RQ_0_7_BP_CFG (0 x20010500)
#define NIC_PF_QSET_0_127_RQ_0_7_STAT_0_1 (0 x20010600)
#define NIC_PF_QSET_0_127_SQ_0_7_CFG (0 x20010C00)
#define NIC_PF_QSET_0_127_SQ_0_7_CFG2 (0 x20010C08)
#define NIC_PF_QSET_0_127_SQ_0_7_STAT_0_1 (0 x20010D00)
#define NIC_PF_MSIX_VEC_0_18_ADDR (0 x000000)
#define NIC_PF_MSIX_VEC_0_CTL (0 x000008)
#define NIC_PF_MSIX_PBA_0 (0 x0F0000)
/* Virtual function register offsets */
#define NIC_VNIC_CFG (0 x000020)
#define NIC_VF_PF_MAILBOX_0_1 (0 x000130)
#define NIC_VF_INT (0 x000200)
#define NIC_VF_INT_W1S (0 x000220)
#define NIC_VF_ENA_W1C (0 x000240)
#define NIC_VF_ENA_W1S (0 x000260)
#define NIC_VNIC_RSS_CFG (0 x0020E0)
#define NIC_VNIC_RSS_KEY_0_4 (0 x002200)
#define NIC_VNIC_TX_STAT_0_4 (0 x004000)
#define NIC_VNIC_RX_STAT_0_13 (0 x004100)
#define NIC_QSET_RQ_GEN_CFG (0 x010010)
#define NIC_QSET_CQ_0_7_CFG (0 x010400)
#define NIC_QSET_CQ_0_7_CFG2 (0 x010408)
#define NIC_QSET_CQ_0_7_THRESH (0 x010410)
#define NIC_QSET_CQ_0_7_BASE (0 x010420)
#define NIC_QSET_CQ_0_7_HEAD (0 x010428)
#define NIC_QSET_CQ_0_7_TAIL (0 x010430)
#define NIC_QSET_CQ_0_7_DOOR (0 x010438)
#define NIC_QSET_CQ_0_7_STATUS (0 x010440)
#define NIC_QSET_CQ_0_7_STATUS2 (0 x010448)
#define NIC_QSET_CQ_0_7_DEBUG (0 x010450)
#define NIC_QSET_RQ_0_7_CFG (0 x010600)
#define NIC_QSET_RQ_0_7_STAT_0_1 (0 x010700)
#define NIC_QSET_SQ_0_7_CFG (0 x010800)
#define NIC_QSET_SQ_0_7_THRESH (0 x010810)
#define NIC_QSET_SQ_0_7_BASE (0 x010820)
#define NIC_QSET_SQ_0_7_HEAD (0 x010828)
#define NIC_QSET_SQ_0_7_TAIL (0 x010830)
#define NIC_QSET_SQ_0_7_DOOR (0 x010838)
#define NIC_QSET_SQ_0_7_STATUS (0 x010840)
#define NIC_QSET_SQ_0_7_DEBUG (0 x010848)
#define NIC_QSET_SQ_0_7_STAT_0_1 (0 x010900)
#define NIC_QSET_RBDR_0_1_CFG (0 x010C00)
#define NIC_QSET_RBDR_0_1_THRESH (0 x010C10)
#define NIC_QSET_RBDR_0_1_BASE (0 x010C20)
#define NIC_QSET_RBDR_0_1_HEAD (0 x010C28)
#define NIC_QSET_RBDR_0_1_TAIL (0 x010C30)
#define NIC_QSET_RBDR_0_1_DOOR (0 x010C38)
#define NIC_QSET_RBDR_0_1_STATUS0 (0 x010C40)
#define NIC_QSET_RBDR_0_1_STATUS1 (0 x010C48)
#define NIC_QSET_RBDR_0_1_PREFETCH_STATUS (0 x010C50)
#define NIC_VF_MSIX_VECTOR_0_19_ADDR (0 x000000)
#define NIC_VF_MSIX_VECTOR_0_19_CTL (0 x000008)
#define NIC_VF_MSIX_PBA (0 x0F0000)
/* Offsets within registers */
#define NIC_MSIX_VEC_SHIFT 4
#define NIC_Q_NUM_SHIFT 18
#define NIC_QS_ID_SHIFT 21
#define NIC_VF_NUM_SHIFT 21
/* Port kind configuration register */
struct pkind_cfg {
#if defined (__BIG_ENDIAN_BITFIELD)
u64 reserved_42_63:22 ;
u64 hdr_sl:5 ; /* Header skip length */
u64 rx_hdr:3 ; /* TNS Receive header present */
u64 lenerr_en:1 ;/* L2 length error check enable */
u64 reserved_32_32:1 ;
u64 maxlen:16 ; /* Max frame size */
u64 minlen:16 ; /* Min frame size */
#elif defined (__LITTLE_ENDIAN_BITFIELD)
u64 minlen:16 ;
u64 maxlen:16 ;
u64 reserved_32_32:1 ;
u64 lenerr_en:1 ;
u64 rx_hdr:3 ;
u64 hdr_sl:5 ;
u64 reserved_42_63:22 ;
#endif
};
#endif /* NIC_REG_H */
Messung V0.5 in Prozent C=94 H=92 G=92
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland