1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2024 Hisilicon Limited. 3 4 #include <linux/ethtool.h> 5 #include <linux/phy.h> 6 #include "hbg_ethtool.h" 7 8 static const struct ethtool_ops hbg_ethtool_ops = { 9 .get_link = ethtool_op_get_link, 10 .get_link_ksettings = phy_ethtool_get_link_ksettings, 11 .set_link_ksettings = phy_ethtool_set_link_ksettings, 12 }; 13 14 void hbg_ethtool_set_ops(struct net_device *netdev) 15 { 16 netdev->ethtool_ops = &hbg_ethtool_ops; 17 } 18