JustOS/linux-6.13/drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.c
justuser 02e73b8cd9 up
2025-01-24 17:00:19 +03:00

18 lines
453 B
C

// 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;
}