blob: c3370114aef326209b6120758d09e9f1f969f1b7 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0+
// Copyright (c) 2024 Hisilicon Limited.
#include <linux/ethtool.h>
#include <linux/phy.h>
#include "hbg_ethtool.h"
static const struct ethtool_ops hbg_ethtool_ops = {
.get_link = ethtool_op_get_link,
.get_link_ksettings = phy_ethtool_get_link_ksettings,
.set_link_ksettings = phy_ethtool_set_link_ksettings,
};
void hbg_ethtool_set_ops(struct net_device *netdev)
{
netdev->ethtool_ops = &hbg_ethtool_ops;
}