| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* Ethtool support for Altera Triple-Speed Ethernet MAC driver |
|---|
| 2 | 3 | * Copyright (C) 2008-2014 Altera Corporation. All rights reserved |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 13 | 14 | * |
|---|
| 14 | 15 | * Original driver contributed by SLS. |
|---|
| 15 | 16 | * Major updates contributed by GlobalLogic |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 18 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 19 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 20 | | - * |
|---|
| 21 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 22 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 23 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 24 | | - * more details. |
|---|
| 25 | | - * |
|---|
| 26 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 27 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 28 | 17 | */ |
|---|
| 29 | 18 | |
|---|
| 30 | 19 | #include <linux/ethtool.h> |
|---|
| .. | .. |
|---|
| 78 | 67 | u32 rev = ioread32(&priv->mac_dev->megacore_revision); |
|---|
| 79 | 68 | |
|---|
| 80 | 69 | strcpy(info->driver, "altera_tse"); |
|---|
| 81 | | - strcpy(info->version, "v8.0"); |
|---|
| 82 | 70 | snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "v%d.%d", |
|---|
| 83 | 71 | rev & 0xFFFF, (rev & 0xFFFF0000) >> 16); |
|---|
| 84 | 72 | sprintf(info->bus_info, "platform"); |
|---|