sgmii_ops
static struct sgmii_ops fsm9900_ops = {
static struct sgmii_ops qdf2432_ops = {
static struct sgmii_ops qdf2400_ops = {
struct sgmii_ops **sgmii_ops;
*match_data->sgmii_ops = &qdf2432_ops;
*match_data->sgmii_ops = &qdf2400_ops;
.sgmii_ops = &phy->sgmii_ops,
phy->sgmii_ops = (struct sgmii_ops *)match->data;
if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->init))
return adpt->phy.sgmii_ops->init(adpt);
if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->open))
return adpt->phy.sgmii_ops->open(adpt);
if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->close))
adpt->phy.sgmii_ops->close(adpt);
if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->link_change))
return adpt->phy.sgmii_ops->link_change(adpt, link_state);
if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->reset))
adpt->phy.sgmii_ops->reset(adpt);
struct sgmii_ops *sgmii_ops;