const char *mac_addr;
int err;
- priv->soc->reset_fe();
+ priv->soc->reset_fe(priv);
if (priv->soc->switch_init)
if (priv->soc->switch_init(priv)) {
const u16 *reg_table;
void (*init_data)(struct fe_soc_data *data, struct net_device *netdev);
- void (*reset_fe)(void);
+ void (*reset_fe)(struct fe_priv *priv);
void (*set_mac)(struct fe_priv *priv, unsigned char *mac);
int (*fwd_config)(struct fe_priv *priv);
void (*tx_dma)(struct fe_tx_dma *txd);
}
}
-static void mt7620_fe_reset(void)
+static void mt7620_fe_reset(struct fe_priv *priv)
{
fe_reset(MT7620A_RESET_FE | MT7620A_RESET_ESW);
}
/* netdev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_RXCSUM; */
}
-void rt2880_fe_reset(void)
+void rt2880_fe_reset(struct fe_priv *priv)
{
fe_reset(RT2880_RESET_FE);
}
return 0;
}
-static void rt305x_fe_reset(void)
+static void rt305x_fe_reset(struct fe_priv *priv)
{
fe_reset(RT305X_RESET_FE);
}
txd->txd4 = 0;
}
-static void rt5350_fe_reset(void)
+static void rt5350_fe_reset(struct fe_priv *priv)
{
fe_reset(RT305X_RESET_FE | RT305X_RESET_ESW);
}
#define RT3883_RSTCTRL_FE BIT(21)
-static void rt3883_fe_reset(void)
+static void rt3883_fe_reset(struct fe_priv *priv)
{
fe_reset(RT3883_RSTCTRL_FE);
}