1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2015 - 2023 Beijing WangXun Technology Co., Ltd. */ 3 4 #include <linux/pci.h> 5 #include <linux/phy.h> 6 7 #include "wx_type.h" 8 #include "wx_ethtool.h" 9 10 void wx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info) 11 { 12 struct wx *wx = netdev_priv(netdev); 13 14 strscpy(info->driver, wx->driver_name, sizeof(info->driver)); 15 strscpy(info->fw_version, wx->eeprom_id, sizeof(info->fw_version)); 16 strscpy(info->bus_info, pci_name(wx->pdev), sizeof(info->bus_info)); 17 } 18 EXPORT_SYMBOL(wx_get_drvinfo); 19