2010-10-27 05:07:13 +07:00
|
|
|
/*
|
|
|
|
* OF helpers for network devices.
|
|
|
|
*
|
|
|
|
* This file is released under the GPLv2
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LINUX_OF_NET_H
|
|
|
|
#define __LINUX_OF_NET_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_OF_NET
|
|
|
|
#include <linux/of.h>
|
2011-07-04 13:03:17 +07:00
|
|
|
extern const int of_get_phy_mode(struct device_node *np);
|
2010-10-27 05:07:13 +07:00
|
|
|
extern const void *of_get_mac_address(struct device_node *np);
|
2013-04-02 16:35:07 +07:00
|
|
|
#else
|
|
|
|
static inline const int of_get_phy_mode(struct device_node *np)
|
|
|
|
{
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline const void *of_get_mac_address(struct device_node *np)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2010-10-27 05:07:13 +07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __LINUX_OF_NET_H */
|