1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2015 - 2023 Beijing WangXun Technology Co., Ltd. */
3 
4 #include <linux/pci.h>
5 #include <linux/phylink.h>
6 #include <linux/netdevice.h>
7 
8 #include "../libwx/wx_ethtool.h"
9 #include "txgbe_ethtool.h"
10 
11 static const struct ethtool_ops txgbe_ethtool_ops = {
12 	.get_drvinfo		= wx_get_drvinfo,
13 	.get_link		= ethtool_op_get_link,
14 };
15 
16 void txgbe_set_ethtool_ops(struct net_device *netdev)
17 {
18 	netdev->ethtool_ops = &txgbe_ethtool_ops;
19 }
20