summaryrefslogtreecommitdiffstats
path: root/include/of_net.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/of_net.h')
-rw-r--r--include/of_net.h14
1 files changed, 14 insertions, 0 deletions
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 <of.h>
+int of_get_phy_mode(struct device_node *np);
+const void *of_get_mac_address(struct device_node *np);
+
+#endif /* __LINUX_OF_NET_H */