summaryrefslogtreecommitdiff
path: root/net/eth_internal.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-17 21:51:57 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 18:32:45 (GMT)
commit818f91eb5778781083e33ce3291bba76a3f1601c (patch)
tree99b1f72f8a64acf204acebb8ab07d2525190b5cd /net/eth_internal.h
parentc32a6fd07b1839e4a45729587ebc8e1c55601a4d (diff)
downloadu-boot-818f91eb5778781083e33ce3291bba76a3f1601c.tar.xz
net: Move common init into a new eth_common.c file
Only half of the init is actually common. Move that part into a new common file and call it from driver-model and legacy code. More common functions will be added in future patches. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/eth_internal.h')
-rw-r--r--net/eth_internal.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/eth_internal.h b/net/eth_internal.h
new file mode 100644
index 0000000..e65d898
--- /dev/null
+++ b/net/eth_internal.h
@@ -0,0 +1,15 @@
+/*
+ * (C) Copyright 2001-2015
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ * Joe Hershberger, National Instruments
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __ETH_INTERNAL_H
+#define __ETH_INTERNAL_H
+
+/* Do init that is common to driver model and legacy networking */
+void eth_common_init(void);
+
+#endif