hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.h
....@@ -1,16 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright Altera Corporation (C) 2016. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License, version 2,
5
- * as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
11
- *
12
- * You should have received a copy of the GNU General Public License
13
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
143 *
154 * Author: Tien Hock Loh <thloh@altera.com>
165 */
....@@ -21,6 +10,10 @@
2110 #include <linux/phy.h>
2211 #include <linux/timer.h>
2312
13
+#define SGMII_ADAPTER_CTRL_REG 0x00
14
+#define SGMII_ADAPTER_ENABLE 0x0000
15
+#define SGMII_ADAPTER_DISABLE 0x0001
16
+
2417 struct tse_pcs {
2518 struct device *dev;
2619 void __iomem *tse_pcs_base;