2 * OF helpers for network devices.
4 * This file is released under the GPLv2
7 #ifndef __LINUX_OF_NET_H
8 #define __LINUX_OF_NET_H
14 extern int of_get_phy_mode(struct device_node *np);
15 extern const void *of_get_mac_address(struct device_node *np);
16 extern int of_get_nvmem_mac_address(struct device_node *np, void *addr);
17 extern struct net_device *of_find_net_device_by_node(struct device_node *np);
19 static inline int of_get_phy_mode(struct device_node *np)
24 static inline const void *of_get_mac_address(struct device_node *np)
29 static inline int of_get_nvmem_mac_address(struct device_node *np, void *addr)
34 static inline struct net_device *of_find_net_device_by_node(struct device_node *np)
40 #endif /* __LINUX_OF_NET_H */