ramips: remove legacy ethernet driver components for mt7621
[openwrt/.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / mdio.h
1 /*   This program is free software; you can redistribute it and/or modify
2  *   it under the terms of the GNU General Public License as published by
3  *   the Free Software Foundation; version 2 of the License
4  *
5  *   This program is distributed in the hope that it will be useful,
6  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
7  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8  *   GNU General Public License for more details.
9  *
10  *   Copyright (C) 2009-2015 John Crispin <blogic@openwrt.org>
11  *   Copyright (C) 2009-2015 Felix Fietkau <nbd@nbd.name>
12  *   Copyright (C) 2013-2015 Michael Lee <igvtee@gmail.com>
13  */
14
15 #ifndef _RALINK_MDIO_H__
16 #define _RALINK_MDIO_H__
17
18 #ifdef CONFIG_NET_RALINK_MDIO
19 int fe_mdio_init(struct fe_priv *priv);
20 void fe_mdio_cleanup(struct fe_priv *priv);
21 int fe_connect_phy_node(struct fe_priv *priv,
22                         struct device_node *phy_node,
23                         int port);
24 #else
25 static inline int fe_mdio_init(struct fe_priv *priv) { return 0; }
26 static inline void fe_mdio_cleanup(struct fe_priv *priv) {}
27 #endif
28 #endif