/* * 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>externintof_get_phy_mode(structdevice_node*np);externconstvoid*of_get_mac_address(structdevice_node*np);#elsestaticinlineintof_get_phy_mode(structdevice_node*np){return-ENODEV;}staticinlineconstvoid*of_get_mac_address(structdevice_node*np){returnNULL;}#endif#endif /* __LINUX_OF_NET_H */