File Index
Files and directories
Sign in
FILE

ethtool_common.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/sfc/siena/ethtool_common.h C
 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
14void efx_siena_ethtool_get_drvinfo(struct net_device *net_dev,
15				   struct ethtool_drvinfo *info);
16u32 efx_siena_ethtool_get_msglevel(struct net_device *net_dev);
17void efx_siena_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable);
18void efx_siena_ethtool_self_test(struct net_device *net_dev,
19				 struct ethtool_test *test, u64 *data);
20void efx_siena_ethtool_get_pauseparam(struct net_device *net_dev,
21				      struct ethtool_pauseparam *pause);
22int efx_siena_ethtool_set_pauseparam(struct net_device *net_dev,
23				     struct ethtool_pauseparam *pause);
24int efx_siena_ethtool_get_sset_count(struct net_device *net_dev, int string_set);
25void efx_siena_ethtool_get_strings(struct net_device *net_dev, u32 string_set,
26				   u8 *strings);
27void efx_siena_ethtool_get_stats(struct net_device *net_dev,
28				 struct ethtool_stats *stats __always_unused,
29				 u64 *data);
30int efx_siena_ethtool_get_link_ksettings(struct net_device *net_dev,
31					 struct ethtool_link_ksettings *out);
32int efx_siena_ethtool_set_link_ksettings(struct net_device *net_dev,
33				const struct ethtool_link_ksettings *settings);
34int efx_siena_ethtool_get_fecparam(struct net_device *net_dev,
35				   struct ethtool_fecparam *fecparam);
36int efx_siena_ethtool_set_fecparam(struct net_device *net_dev,
37				   struct ethtool_fecparam *fecparam);
38int efx_siena_ethtool_get_rxnfc(struct net_device *net_dev,
39				struct ethtool_rxnfc *info, u32 *rule_locs);
40int efx_siena_ethtool_set_rxnfc(struct net_device *net_dev,
41				struct ethtool_rxnfc *info);
42u32 efx_siena_ethtool_get_rxfh_indir_size(struct net_device *net_dev);
43u32 efx_siena_ethtool_get_rxfh_key_size(struct net_device *net_dev);
44int efx_siena_ethtool_get_rxfh(struct net_device *net_dev,
45			       struct ethtool_rxfh_param *rxfh);
46int efx_siena_ethtool_set_rxfh(struct net_device *net_dev,
47			       struct ethtool_rxfh_param *rxfh,
48			       struct netlink_ext_ack *extack);
49int efx_siena_ethtool_get_rxfh_fields(struct net_device *net_dev,
50				      struct ethtool_rxfh_fields *info);
51int efx_siena_ethtool_reset(struct net_device *net_dev, u32 *flags);
52int efx_siena_ethtool_get_module_eeprom(struct net_device *net_dev,
53					struct ethtool_eeprom *ee,
54					u8 *data);
55int efx_siena_ethtool_get_module_info(struct net_device *net_dev,
56				      struct ethtool_modinfo *modinfo);
57#endif
~/ Read-only file preview.