summaryrefslogtreecommitdiff
path: root/include/netdev.h
diff options
context:
space:
mode:
authorBernhard Kaindl <bernhard.kaindl@gmx.net>2011-10-20 10:56:59 +0000
committerWolfgang Denk <wd@denx.de>2011-12-08 22:22:03 +0100
commitd0201692988adc5d8cdbbf5e0cbf47e1a09708aa (patch)
treef810c8116edb270df1ab12435c7c68ebd8f88be3 /include/netdev.h
parentd82a27bc5c404da907f71960a3ed2e148ac73fd0 (diff)
downloadu-boot-imx-d0201692988adc5d8cdbbf5e0cbf47e1a09708aa.zip
u-boot-imx-d0201692988adc5d8cdbbf5e0cbf47e1a09708aa.tar.gz
u-boot-imx-d0201692988adc5d8cdbbf5e0cbf47e1a09708aa.tar.bz2
ne2000: Convert to new net-multi model, fixes build of three boards
This fixes the build of the two sh boards shmin and r7780mp and qemu-mips which currently fail to build due to dropped pre-CONFIG_NET_MULTI code. This v2 patch minimizes the number of lines in the diff for easy review and to eliminate any possible accidential changes resulting from moving lines of code in the file. This also makes the register function very easy. Any cleanups and improvements are intentionally deferred to follow-up patches to keep this patch as simple and as easy to review as possible. A new driver register function, ne2k_register() calls the existing one-time setup part of the old init function and calls eth_register(). Changes to shmin, r7780mp and qemu-mips: - Call the new ne2k_register() from board_eth_init() of the boards. - Tested using qemu-mips board, - Tested the two renesas / sh boards r7780mp and shmin to compile again, and should work. checkpatch-clean when "--ignore VOLATILE" is added to .checkpatch.conf, and no warnings introduced in none of the three boards using this driver. Signed-off-by: Bernhard Kaindl <bernhard.kaindl@gmx.net>
Diffstat (limited to 'include/netdev.h')
-rw-r--r--include/netdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netdev.h b/include/netdev.h
index 04d9f75..150fa8e 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -80,6 +80,7 @@ int mpc8220_fec_initialize(bd_t *bis);
int mpc82xx_scc_enet_initialize(bd_t *bis);
int mvgbe_initialize(bd_t *bis);
int natsemi_initialize(bd_t *bis);
+int ne2k_register(void);
int npe_initialize(bd_t *bis);
int ns8382x_initialize(bd_t *bis);
int pcnet_initialize(bd_t *bis);