diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-17 14:51:59 -0700 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-01-28 12:32:46 -0600 |
commit | 8607a6bf753df210f8873994294c13885f746337 (patch) | |
tree | d66ab661d8563a7c1576bd1cec3c8790df77d6a7 /net/eth_internal.h | |
parent | 9987ecdd36da79535c4229ecc5693533aaa8d17b (diff) | |
download | u-boot-imx-8607a6bf753df210f8873994294c13885f746337.zip u-boot-imx-8607a6bf753df210f8873994294c13885f746337.tar.gz u-boot-imx-8607a6bf753df210f8873994294c13885f746337.tar.bz2 |
net: Move remaining common functions to eth_common.c
Move eth_current_changed(), eth_set_current(), eth_mac_skip() and
eth_get_name() into the common file.
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/eth_internal.h b/net/eth_internal.h index 38d8420..6e4753c 100644 --- a/net/eth_internal.h +++ b/net/eth_internal.h @@ -28,4 +28,13 @@ void eth_common_init(void); int eth_setenv_enetaddr_by_index(const char *base_name, int index, uchar *enetaddr); +int eth_mac_skip(int index); +void eth_current_changed(void); +#ifdef CONFIG_DM_ETH +void eth_set_dev(struct udevice *dev); +#else +void eth_set_dev(struct eth_device *dev); +#endif +void eth_set_current_to_next(void); + #endif |