1 /* SPDX-License-Identifier: GPL-2.0+ */
2 // Copyright (c) 2021 Hisilicon Limited.
4 #ifndef __HNS3_ETHTOOL_H
5 #define __HNS3_ETHTOOL_H
7 #include <linux/ethtool.h>
8 #include <linux/netdevice.h>
11 char stats_string[ETH_GSTRING_LEN];
15 struct hns3_sfp_type {
20 struct hns3_pflag_desc {
21 char name[ETH_GSTRING_LEN];
22 void (*handler)(struct net_device *netdev, bool enable);
25 struct hns3_ethtool_link_ext_state_mapping {
27 enum ethtool_link_ext_state link_ext_state;