/* ========================================================================= * The Synopsys DWC ETHER QOS Software Driver and documentation (hereinafter * "Software") is an unsupported proprietary work of Synopsys, Inc. unless * otherwise expressly agreed to in writing between Synopsys and you. * * The Software IS NOT an item of Licensed Software or Licensed Product under * any End User Software License Agreement or Agreement for Licensed Product * with Synopsys or any supplement thereto. Permission is hereby granted, * free of charge, to any person obtaining a copy of this software annotated * with this license and the Software, to deal in the Software without * restriction, including without limitation the rights to use, copy, modify, * merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject * to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * ========================================================================= */ /* * Includes MaxLinear's changes dated: 2021,2022. * Changed portions - Copyright 2020-2022, MaxLinear, Inc. * Includes Intel Corporation's changes dated: 2015, 2016. * Changed portions - Copyright 2015-2020, Intel Corporation. */ #ifndef __DWC_ETH_QOS_ETHTOOL_H__ #define __DWC_ETH_QOS_ETHTOOL_H__ static void DWC_ETH_QOS_get_pauseparam(struct net_device *dev, struct ethtool_pauseparam *pause); static int DWC_ETH_QOS_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam *pause); static int DWC_ETH_QOS_get_link_ksettings(struct net_device *dev, struct ethtool_link_ksettings *cmd); static int DWC_ETH_QOS_set_link_ksettings(struct net_device *dev, const struct ethtool_link_ksettings *cmd); static void DWC_ETH_QOS_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol); static int DWC_ETH_QOS_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol); static int DWC_ETH_QOS_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec, struct kernel_ethtool_coalesce *kernel_coal, struct netlink_ext_ack *extack); static int DWC_ETH_QOS_get_coalesce(struct net_device *dev, struct ethtool_coalesce *ec, struct kernel_ethtool_coalesce *kernel_coal, struct netlink_ext_ack *extack); static int DWC_ETH_QOS_get_sset_count(struct net_device *dev, int sset); static void DWC_ETH_QOS_get_strings(struct net_device *dev, uint32_t stringset, u8 *data); static void DWC_ETH_QOS_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *dummy, uint64_t *data); #endif