Debian Codegraph @

drivers/net/ethernet/sfc/ethtool_common.h

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2019 Solarflare Communications Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation, incorporated herein by reference.
9 */
10
11 #ifndef EFX_ETHTOOL_COMMON_H
12 #define EFX_ETHTOOL_COMMON_H
13
14 void efx_ethtool_get_drvinfo(struct net_device *net_dev,
15 struct ethtool_drvinfo *info);
16 u32 efx_ethtool_get_msglevel(struct net_device *net_dev);
17 void efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable);
18 void efx_ethtool_self_test(struct net_device *net_dev,
19 struct ethtool_test *test, u64 *data);
20 void efx_ethtool_get_pauseparam(struct net_device *net_dev,
21 struct ethtool_pauseparam *pause);
22 int efx_ethtool_set_pauseparam(struct net_device *net_dev,
23 struct ethtool_pauseparam *pause);
24 int efx_ethtool_fill_self_tests(struct efx_nic *efx,
25 struct efx_self_tests *tests,
26 u8 *strings, u64 *data);
27 int efx_ethtool_get_sset_count(struct net_device *net_dev, int string_set);
28 void efx_ethtool_get_strings(struct net_device *net_dev, u32 string_set,
29 u8 *strings);
30 void efx_ethtool_get_stats(struct net_device *net_dev,
31 struct ethtool_stats *stats __attribute__ ((unused)),
32 u64 *data);
33 int efx_ethtool_get_link_ksettings(struct net_device *net_dev,
34 struct ethtool_link_ksettings *out);
35 int efx_ethtool_set_link_ksettings(struct net_device *net_dev,
36 const struct ethtool_link_ksettings *settings);
37 int efx_ethtool_get_fecparam(struct net_device *net_dev,
38 struct ethtool_fecparam *fecparam);
39 int efx_ethtool_set_fecparam(struct net_device *net_dev,
40 struct ethtool_fecparam *fecparam);
41 int efx_ethtool_get_rxnfc(struct net_device *net_dev,
42 struct ethtool_rxnfc *info, u32 *rule_locs);
43 u32 efx_ethtool_get_rx_ring_count(struct net_device *net_dev);
44 int efx_ethtool_set_rxnfc(struct net_device *net_dev,
45 struct ethtool_rxnfc *info);
46 u32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev);
47 u32 efx_ethtool_get_rxfh_key_size(struct net_device *net_dev);
48 int efx_ethtool_get_rxfh(struct net_device *net_dev,
49 struct ethtool_rxfh_param *rxfh);
50 int efx_ethtool_set_rxfh(struct net_device *net_dev,
51 struct ethtool_rxfh_param *rxfh,
52 struct netlink_ext_ack *extack);
53 int efx_ethtool_get_rxfh_fields(struct net_device *net_dev,
54 struct ethtool_rxfh_fields *info);
55 int efx_ethtool_create_rxfh_context(struct net_device *net_dev,
56 struct ethtool_rxfh_context *ctx,
57 const struct ethtool_rxfh_param *rxfh,
58 struct netlink_ext_ack *extack);
59 int efx_ethtool_modify_rxfh_context(struct net_device *net_dev,
60 struct ethtool_rxfh_context *ctx,
61 const struct ethtool_rxfh_param *rxfh,
62 struct netlink_ext_ack *extack);
63 int efx_ethtool_remove_rxfh_context(struct net_device *net_dev,
64 struct ethtool_rxfh_context *ctx,
65 u32 rss_context,
66 struct netlink_ext_ack *extack);
67 int efx_ethtool_reset(struct net_device *net_dev, u32 *flags);
68 int efx_ethtool_get_module_eeprom(struct net_device *net_dev,
69 struct ethtool_eeprom *ee,
70 u8 *data);
71 int efx_ethtool_get_module_info(struct net_device *net_dev,
72 struct ethtool_modinfo *modinfo);
73 #endif