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)
226 /* Register for port STP state control */
239 /* Register for port control */
246 /* Port Matrix Mode: Frames are forwarded by the PCR_MATRIX members. */
268 /* Register for port security control */
272 /* Register for port vlan control */
300 /* Register for port port-and-protocol based vlan 1 control */
306 /* Register for port MAC control register */
372 /* Register for port debug count */
403 /* MT7531 SGMII register group */
404 #define MT7531_SGMII_REG_BASE(p) (0x5000 + ((p) - 5) * 0x1000)
493 /* Unique fields of (M)HWSTRAP for MT7531 */
595 * [ 2: 0] port 0
596 * [ 6: 4] port 1
597 * [10: 8] port 2
598 * [14:12] port 3
599 * [18:16] port 4
699 /* struct mt7530_port - This is the main data structure for holding the state
700 * of the port.
701 * @enable: The status used for show port is enabled or not.
702 * @pm: The matrix used to show all connections with the port.
714 /* Port 5 interface select definitions */
728 int port; member
731 /* struct mt753x_info - This is the main data structure for holding the specific
734 * @phy_read_c22: Holding the way reading PHY port using C22
735 * @phy_write_c22: Holding the way writing PHY port using C22
736 * @phy_read_c45: Holding the way reading PHY port using C45
737 * @phy_write_c45: Holding the way writing PHY port using C45
739 * MAC port
741 * port
743 * certan MAC port
745 * certain MAC port
753 int (*phy_read_c22)(struct mt7530_priv *priv, int port, int regnum);
754 int (*phy_write_c22)(struct mt7530_priv *priv, int port, int regnum,
756 int (*phy_read_c45)(struct mt7530_priv *priv, int port, int devad,
758 int (*phy_write_c45)(struct mt7530_priv *priv, int port, int devad,
761 int (*cpu_port_config)(struct dsa_switch *ds, int port);
762 void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
764 void (*mac_port_validate)(struct dsa_switch *ds, int port,
767 int (*mac_port_config)(struct dsa_switch *ds, int port,
772 /* struct mt7530_priv - This is the main data structure for holding the state
775 * @ds: The pointer to the dsa core structure
776 * @bus: The bus used for the device and built-in PHY
787 * @p6_interface Holding the current port 6 interface
788 * @p5_intf_sel: Holding the current port 5 interface select
822 int port; member
828 int port, bool untagged) in mt7530_hw_vlan_entry_init() argument
830 e->port = port; in mt7530_hw_vlan_entry_init()
831 e->untagged = untagged; in mt7530_hw_vlan_entry_init()
851 p->priv = priv; in INIT_MT7530_DUMMY_POLL()
852 p->reg = reg; in INIT_MT7530_DUMMY_POLL()