/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ /* * This header file defines the register offsets and bit fields * of ENETC4 PF and VFs. Note that the same registers as ENETC * version 1.0 are defined in the enetc_hw.h file. * * Copyright 2024 NXP
*/ #ifndef __ENETC4_HW_H_ #define __ENETC4_HW_H_
/* Port Station interface promiscuous MAC mode register */ #define ENETC4_PSIPMMR 0x200 #define PSIPMMR_SI_MAC_UP(a) BIT(a) /* a = SI index */ #define PSIPMMR_SI_MAC_MP(a) BIT((a) + 16)
/* Port Station interface promiscuous VLAN mode register */ #define ENETC4_PSIPVMR 0x204
/* Port RSS key register n. n = 0,1,2,...,9 */ #define ENETC4_PRSSKR(n) ((n) * 0x4 + 0x250)
/* Port station interface MAC address filtering capability register */ #define ENETC4_PSIMAFCAPR 0x280 #define PSIMAFCAPR_NUM_MAC_AFTE GENMASK(11, 0)
/* Port station interface VLAN filtering capability register */ #define ENETC4_PSIVLANFCAPR 0x2c0 #define PSIVLANFCAPR_NUM_VLAN_FTE GENMASK(11, 0)
/* Port station interface VLAN filtering mode register */ #define ENETC4_PSIVLANFMR 0x2c4 #define PSIVLANFMR_VS BIT(0)
/* Port Station interface a primary MAC address registers */ #define ENETC4_PSIPMAR0(a) ((a) * 0x80 + 0x2000) #define ENETC4_PSIPMAR1(a) ((a) * 0x80 + 0x2004)
/* Port station interface a configuration register 0/2 */ #define ENETC4_PSICFGR0(a) ((a) * 0x80 + 0x2010) #define PSICFGR0_VASE BIT(13) #define PSICFGR0_ASE BIT(15) #define PSICFGR0_ANTI_SPOOFING (PSICFGR0_VASE | PSICFGR0_ASE)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.