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