mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
realtek: dsa: add MAC_LINK_STS to config structure
This register will be needed to provide a generic irq handler. Add it to the configuration structure of the driver. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/22273 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
bb7f4f97c7
commit
42fcfe535c
5 changed files with 5 additions and 0 deletions
|
|
@ -1845,6 +1845,7 @@ const struct rtldsa_config rtldsa_838x_cfg = {
|
|||
.vlan_set_tagged = rtl838x_vlan_set_tagged,
|
||||
.vlan_set_untagged = rtl838x_vlan_set_untagged,
|
||||
.mac_force_mode_ctrl = rtl838x_mac_force_mode_ctrl,
|
||||
.mac_link_sts = RTL838X_MAC_LINK_STS,
|
||||
.vlan_profile_get = rtldsa_838x_vlan_profile_get,
|
||||
.vlan_profile_dump = rtldsa_838x_vlan_profile_dump,
|
||||
.vlan_profile_setup = rtl838x_vlan_profile_setup,
|
||||
|
|
|
|||
|
|
@ -1444,6 +1444,7 @@ struct rtldsa_config {
|
|||
void (*set_static_move_action)(int port, bool forward);
|
||||
int (*stp_get)(struct rtl838x_switch_priv *priv, u16 msti, int port, u32 port_state[]);
|
||||
void (*stp_set)(struct rtl838x_switch_priv *priv, u16 msti, u32 port_state[]);
|
||||
int mac_link_sts;
|
||||
int (*mac_force_mode_ctrl)(int port);
|
||||
int (*mac_port_ctrl)(int port);
|
||||
int (*l2_port_new_salrn)(int port);
|
||||
|
|
|
|||
|
|
@ -1800,6 +1800,7 @@ const struct rtldsa_config rtldsa_839x_cfg = {
|
|||
.stp_get = rtldsa_839x_stp_get,
|
||||
.stp_set = rtl839x_stp_set,
|
||||
.mac_force_mode_ctrl = rtl839x_mac_force_mode_ctrl,
|
||||
.mac_link_sts = RTL839X_MAC_LINK_STS,
|
||||
.mac_port_ctrl = rtl839x_mac_port_ctrl,
|
||||
.l2_port_new_salrn = rtl839x_l2_port_new_salrn,
|
||||
.l2_port_new_sa_fwd = rtl839x_l2_port_new_sa_fwd,
|
||||
|
|
|
|||
|
|
@ -2861,6 +2861,7 @@ const struct rtldsa_config rtldsa_930x_cfg = {
|
|||
.set_vlan_egr_filter = rtl930x_set_egr_filter,
|
||||
.stp_get = rtldsa_930x_stp_get,
|
||||
.stp_set = rtl930x_stp_set,
|
||||
.mac_link_sts = RTL930X_MAC_LINK_STS,
|
||||
.mac_force_mode_ctrl = rtl930x_mac_force_mode_ctrl,
|
||||
.mac_port_ctrl = rtl930x_mac_port_ctrl,
|
||||
.l2_port_new_salrn = rtl930x_l2_port_new_salrn,
|
||||
|
|
|
|||
|
|
@ -2008,6 +2008,7 @@ const struct rtldsa_config rtldsa_931x_cfg = {
|
|||
.stp_get = rtldsa_931x_stp_get,
|
||||
.stp_set = rtl931x_stp_set,
|
||||
.mac_force_mode_ctrl = rtl931x_mac_force_mode_ctrl,
|
||||
.mac_link_sts = RTL931X_MAC_LINK_STS,
|
||||
.mac_port_ctrl = rtl931x_mac_port_ctrl,
|
||||
.l2_port_new_salrn = rtl931x_l2_port_new_salrn,
|
||||
.l2_port_new_sa_fwd = rtl931x_l2_port_new_sa_fwd,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue