Lines Matching +full:mt7530 +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)
106 /* Register for 01-80-C2-00-00-[01,02] MAC DA frame control */
118 /* Register for 01-80-C2-00-00-[03,0E] MAC DA frame control */
263 /* Register for port STP state control */
276 /* Register for port control */
283 /* Port Matrix Mode: Frames are forwarded by the PCR_MATRIX members. */
305 /* Register for port security control */
309 /* Register for port vlan control */
337 /* Register for port port-and-protocol based vlan 1 control */
343 /* Register for port MAC control register */
411 /* Register for port debug count */
443 #define MT7531_SGMII_REG_BASE(p) (0x5000 + ((p) - 5) * 0x1000)
630 /* Registers for LED GPIO control (MT7530 only)
632 * [ 2: 0] port 0
633 * [ 6: 4] port 1
634 * [10: 8] port 2
635 * [14:12] port 3
636 * [18:16] port 4
736 /* struct mt7530_port - This is the main data structure for holding the state
737 * of the port.
738 * @enable: The status used for show port is enabled or not.
739 * @pm: The matrix used to show all connections with the port.
752 /* Port 5 mode definitions of the MT7530 switch */
764 int port; member
767 /* struct mt753x_info - This is the main data structure for holding the specific
772 * @phy_read_c22: Holding the way reading PHY port using C22
773 * @phy_write_c22: Holding the way writing PHY port using C22
774 * @phy_read_c45: Holding the way reading PHY port using C45
775 * @phy_write_c45: Holding the way writing PHY port using C45
778 * certain MAC port
786 int (*phy_read_c22)(struct mt7530_priv *priv, int port, int regnum);
787 int (*phy_write_c22)(struct mt7530_priv *priv, int port, int regnum,
789 int (*phy_read_c45)(struct mt7530_priv *priv, int port, int devad,
791 int (*phy_write_c45)(struct mt7530_priv *priv, int port, int devad,
793 void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
795 void (*mac_port_config)(struct dsa_switch *ds, int port,
800 /* struct mt7530_priv - This is the main data structure for holding the state
803 * @ds: The pointer to the dsa core structure
804 * @bus: The bus used for the device and built-in PHY
815 * @p5_mode: Holding the current mode of port 5 of the MT7530 switch
816 * @p5_sgmii: Flag for distinguishing if port 5 of the MT7531 switch
854 int port; member
860 int port, bool untagged) in mt7530_hw_vlan_entry_init() argument
862 e->port = port; in mt7530_hw_vlan_entry_init()
863 e->untagged = untagged; in mt7530_hw_vlan_entry_init()
883 p->priv = priv; in INIT_MT7530_DUMMY_POLL()
884 p->reg = reg; in INIT_MT7530_DUMMY_POLL()