Lines Matching +full:mt7531 +full:- +full:dsa +full:- +full:port
1 /* SPDX-License-Identifier: GPL-2.0-only */
15 #define MT7530_MAX_MTU (15 * 1024 - ETH_HLEN - ETH_FCS_LEN - MTK_HDR_LEN)
198 /* Register for port STP state control */
211 /* Register for port control */
218 /* Port Matrix Mode: Frames are forwarded by the PCR_MATRIX members. */
240 /* Register for port security control */
244 /* Register for port vlan control */
271 /* Register for port port-and-protocol based vlan 1 control */
277 /* Register for port MAC control register */
343 /* Register for port debug count */
374 /* MT7531 SGMII register group */
375 #define MT7531_SGMII_REG_BASE(p) (0x5000 + ((p) - 5) * 0x1000)
464 /* Unique fields of (M)HWSTRAP for MT7531 */
566 * [ 2: 0] port 0
567 * [ 6: 4] port 1
568 * [10: 8] port 2
569 * [14:12] port 3
570 * [18:16] port 4
669 /* struct mt7530_port - This is the main data structure for holding the state
670 * of the port.
671 * @enable: The status used for show port is enabled or not.
672 * @pm: The matrix used to show all connections with the port.
684 /* Port 5 interface select definitions */
698 int port; member
701 /* struct mt753x_info - This is the main data structure for holding the specific
704 * @phy_read_c22: Holding the way reading PHY port using C22
705 * @phy_write_c22: Holding the way writing PHY port using C22
706 * @phy_read_c45: Holding the way reading PHY port using C45
707 * @phy_write_c45: Holding the way writing PHY port using C45
709 * MAC port
711 * port
713 * certan MAC port
715 * certain MAC port
723 int (*phy_read_c22)(struct mt7530_priv *priv, int port, int regnum);
724 int (*phy_write_c22)(struct mt7530_priv *priv, int port, int regnum,
726 int (*phy_read_c45)(struct mt7530_priv *priv, int port, int devad,
728 int (*phy_write_c45)(struct mt7530_priv *priv, int port, int devad,
731 int (*cpu_port_config)(struct dsa_switch *ds, int port);
732 void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
734 void (*mac_port_validate)(struct dsa_switch *ds, int port,
737 int (*mac_port_config)(struct dsa_switch *ds, int port,
742 /* struct mt7530_priv - This is the main data structure for holding the state
745 * @ds: The pointer to the dsa core structure
746 * @bus: The bus used for the device and built-in PHY
757 * @p6_interface Holding the current port 6 interface
758 * @p5_intf_sel: Holding the current port 5 interface select
792 int port; member
798 int port, bool untagged) in mt7530_hw_vlan_entry_init() argument
800 e->port = port; in mt7530_hw_vlan_entry_init()
801 e->untagged = untagged; in mt7530_hw_vlan_entry_init()
821 p->priv = priv; in INIT_MT7530_DUMMY_POLL()
822 p->reg = reg; in INIT_MT7530_DUMMY_POLL()