Blame view

net/ethtool/common.h 1.59 KB
d44e13108   Michal Kubecek   ethtool: move str...
1
2
3
4
  /* SPDX-License-Identifier: GPL-2.0-only */
  
  #ifndef _ETHTOOL_COMMON_H
  #define _ETHTOOL_COMMON_H
3d2b847fb   Michal Kubecek   ethtool: provide ...
5
  #include <linux/netdevice.h>
d44e13108   Michal Kubecek   ethtool: move str...
6
  #include <linux/ethtool.h>
0524399d4   Michal Kubecek   ethtool: provide ...
7
  #define ETHTOOL_DEV_FEATURE_WORDS	DIV_ROUND_UP(NETDEV_FEATURE_COUNT, 32)
428c122f5   Michal Kubecek   ethtool: provide ...
8
9
10
  /* compose link mode index from speed, type and duplex */
  #define ETHTOOL_LINK_MODE(speed, type, duplex) \
  	ETHTOOL_LINK_MODE_ ## speed ## base ## type ## _ ## duplex ## _BIT
f76510b45   Michal Kubecek   ethtool: add time...
11
  #define __SOF_TIMESTAMPING_CNT (const_ilog2(SOF_TIMESTAMPING_LAST) + 1)
d44e13108   Michal Kubecek   ethtool: move str...
12
13
14
15
16
17
18
19
  extern const char
  netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN];
  extern const char
  rss_hash_func_strings[ETH_RSS_HASH_FUNCS_COUNT][ETH_GSTRING_LEN];
  extern const char
  tunable_strings[__ETHTOOL_TUNABLE_COUNT][ETH_GSTRING_LEN];
  extern const char
  phy_tunable_strings[__ETHTOOL_PHY_TUNABLE_COUNT][ETH_GSTRING_LEN];
428c122f5   Michal Kubecek   ethtool: provide ...
20
  extern const char link_mode_names[][ETH_GSTRING_LEN];
6a94b8ccf   Michal Kubecek   ethtool: provide ...
21
  extern const char netif_msg_class_names[][ETH_GSTRING_LEN];
51ea22b04   Michal Kubecek   ethtool: provide ...
22
  extern const char wol_mode_names[][ETH_GSTRING_LEN];
f76510b45   Michal Kubecek   ethtool: add time...
23
24
25
  extern const char sof_timestamping_names[][ETH_GSTRING_LEN];
  extern const char ts_tx_type_names[][ETH_GSTRING_LEN];
  extern const char ts_rx_filter_names[][ETH_GSTRING_LEN];
c7d759eb7   Jakub Kicinski   ethtool: add tunn...
26
  extern const char udp_tunnel_type_names[][ETH_GSTRING_LEN];
d44e13108   Michal Kubecek   ethtool: move str...
27

3d2b847fb   Michal Kubecek   ethtool: provide ...
28
  int __ethtool_get_link(struct net_device *dev);
459e0b81b   Michal Kubecek   ethtool: provide ...
29
30
31
  bool convert_legacy_settings_to_link_ksettings(
  	struct ethtool_link_ksettings *link_ksettings,
  	const struct ethtool_cmd *legacy_settings);
e19c591ea   Michal Kubecek   ethtool: set devi...
32
  int ethtool_get_max_rxfh_channel(struct net_device *dev, u32 *max);
5b071c59e   Michal Kubecek   ethtool: provide ...
33
  int __ethtool_get_ts_info(struct net_device *dev, struct ethtool_ts_info *info);
459e0b81b   Michal Kubecek   ethtool: provide ...
34

4895d7808   Florian Fainelli   net: ethtool: Int...
35
  extern const struct ethtool_phy_ops *ethtool_phy_ops;
d44e13108   Michal Kubecek   ethtool: move str...
36
  #endif /* _ETHTOOL_COMMON_H */