JustOS/linux-6.13/drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.c

18 lines
453 B
C
Raw Normal View History

2025-01-24 14:00:19 +00:00
// 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;
}