From f72a4fd3704cf246a1d12cdf500f484be0db05a0 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 6 Mar 2013 08:46:58 +0100 Subject: of/net: Add net related of helpers of_get_phy_mode to parse the phy mode from the devicetree and of_get_mac_address to parse a MAC address from the devicetree. Directly taken from the Kernel. Signed-off-by: Sascha Hauer --- include/of_net.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/of_net.h (limited to 'include/of_net.h') diff --git a/include/of_net.h b/include/of_net.h new file mode 100644 index 0000000000..0f6ef200d5 --- /dev/null +++ b/include/of_net.h @@ -0,0 +1,14 @@ +/* + * OF helpers for network devices. + * + * This file is released under the GPLv2 + */ + +#ifndef __LINUX_OF_NET_H +#define __LINUX_OF_NET_H + +#include +int of_get_phy_mode(struct device_node *np); +const void *of_get_mac_address(struct device_node *np); + +#endif /* __LINUX_OF_NET_H */ -- cgit v1.2.3