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_get_pauseparam(struct net_device *net_dev, 19 struct ethtool_pauseparam *pause); 20 int efx_ethtool_fill_self_tests(struct efx_nic *efx, 21 struct efx_self_tests *tests, 22 u8 *strings, u64 *data); 23 int efx_ethtool_get_sset_count(struct net_device *net_dev, int string_set); 24 void efx_ethtool_get_strings(struct net_device *net_dev, u32 string_set, 25 u8 *strings); 26 void efx_ethtool_get_stats(struct net_device *net_dev, 27 struct ethtool_stats *stats __attribute__ ((unused)), 28 u64 *data); 29 30 #endif 31