1 /* SPDX-License-Identifier: GPL-2.0+ */
2 // Copyright (c) 2021 Hisilicon Limited.
3 
4 #ifndef __HNS3_ETHTOOL_H
5 #define __HNS3_ETHTOOL_H
6 
7 #include <linux/ethtool.h>
8 #include <linux/netdevice.h>
9 
10 struct hns3_stats {
11 	char stats_string[ETH_GSTRING_LEN];
12 	int stats_offset;
13 };
14 
15 struct hns3_sfp_type {
16 	u8 type;
17 	u8 ext_type;
18 };
19 
20 struct hns3_pflag_desc {
21 	char name[ETH_GSTRING_LEN];
22 	void (*handler)(struct net_device *netdev, bool enable);
23 };
24 
25 #endif
26