aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fman/mac.h
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@nxp.com>2017-10-16 21:36:06 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-18 13:44:47 +0100
commit3c38ec67867c0a3fe9eeda68a3d2a945d5d09a24 (patch)
tree1274c7b8f107b6e376d46a29310ca54582095375 /drivers/net/ethernet/freescale/fman/mac.h
parentfsl/fman: remove of_node (diff)
downloadlinux-dev-3c38ec67867c0a3fe9eeda68a3d2a945d5d09a24.tar.xz
linux-dev-3c38ec67867c0a3fe9eeda68a3d2a945d5d09a24.zip
dpaa_eth: move of_phy_connect() to the eth driver
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/freescale/fman/mac.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fman/mac.h b/drivers/net/ethernet/freescale/fman/mac.h
index d7313f0c5135..1ca85a18ab38 100644
--- a/drivers/net/ethernet/freescale/fman/mac.h
+++ b/drivers/net/ethernet/freescale/fman/mac.h
@@ -50,6 +50,8 @@ struct mac_device {
struct fman_port *port[2];
u32 if_support;
struct phy_device *phy_dev;
+ phy_interface_t phy_if;
+ struct device_node *phy_node;
bool autoneg_pause;
bool rx_pause_req;
@@ -58,11 +60,10 @@ struct mac_device {
bool tx_pause_active;
bool promisc;
- struct phy_device *(*init_phy)(struct net_device *net_dev,
- struct mac_device *mac_dev);
int (*init)(struct mac_device *mac_dev);
int (*start)(struct mac_device *mac_dev);
int (*stop)(struct mac_device *mac_dev);
+ void (*adjust_link)(struct mac_device *mac_dev);
int (*set_promisc)(struct fman_mac *mac_dev, bool enable);
int (*change_addr)(struct fman_mac *mac_dev, enet_addr_t *enet_addr);
int (*set_multi)(struct net_device *net_dev,