162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* Copyright (c) 2015 - 2023 Beijing WangXun Technology Co., Ltd. */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#include <linux/pci.h> 562306a36Sopenharmony_ci#include <linux/phy.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include "wx_type.h" 862306a36Sopenharmony_ci#include "wx_ethtool.h" 962306a36Sopenharmony_ci 1062306a36Sopenharmony_civoid wx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info) 1162306a36Sopenharmony_ci{ 1262306a36Sopenharmony_ci struct wx *wx = netdev_priv(netdev); 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci strscpy(info->driver, wx->driver_name, sizeof(info->driver)); 1562306a36Sopenharmony_ci strscpy(info->fw_version, wx->eeprom_id, sizeof(info->fw_version)); 1662306a36Sopenharmony_ci strscpy(info->bus_info, pci_name(wx->pdev), sizeof(info->bus_info)); 1762306a36Sopenharmony_ci} 1862306a36Sopenharmony_ciEXPORT_SYMBOL(wx_get_drvinfo); 19