| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* Applied Micro X-Gene SoC Ethernet Driver |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (c) 2014, Applied Micro Circuits Corporation |
|---|
| 4 | 5 | * Authors: Iyappan Subramanian <isubramanian@apm.com> |
|---|
| 5 | 6 | * Ravi Patel <rapatel@apm.com> |
|---|
| 6 | 7 | * Keyur Chudgar <kchudgar@apm.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | | - * option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 20 | 8 | */ |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #ifndef __XGENE_ENET_MAIN_H__ |
|---|
| .. | .. |
|---|
| 30 | 18 | #include <linux/of_platform.h> |
|---|
| 31 | 19 | #include <linux/of_net.h> |
|---|
| 32 | 20 | #include <linux/of_mdio.h> |
|---|
| 21 | +#include <linux/mdio/mdio-xgene.h> |
|---|
| 33 | 22 | #include <linux/module.h> |
|---|
| 34 | 23 | #include <net/ip.h> |
|---|
| 35 | 24 | #include <linux/prefetch.h> |
|---|
| .. | .. |
|---|
| 38 | 27 | #include "xgene_enet_hw.h" |
|---|
| 39 | 28 | #include "xgene_enet_cle.h" |
|---|
| 40 | 29 | #include "xgene_enet_ring2.h" |
|---|
| 41 | | -#include "../../../phy/mdio-xgene.h" |
|---|
| 42 | 30 | |
|---|
| 43 | | -#define XGENE_DRV_VERSION "v1.0" |
|---|
| 44 | 31 | #define ETHER_MIN_PACKET 64 |
|---|
| 45 | 32 | #define ETHER_STD_PACKET 1518 |
|---|
| 46 | 33 | #define XGENE_ENET_STD_MTU 1536 |
|---|