[U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()
Michael Walle
michael at walle.cc
Sat May 12 00:53:37 CEST 2012
Am Samstag 12 Mai 2012, 00:50:48 schrieb Michael Walle:
> Signed-off-by: Michael Walle <michael at walle.cc>
> Cc: Joe Hershberger <joe.hershberger at gmail.com>
> ---
> include/net.h | 16 ++++++++++++++++
> net/eth.c | 15 +++++++++++++++
> 2 files changed, 31 insertions(+), 0 deletions(-)
>
> diff --git a/include/net.h b/include/net.h
> index f6aeba2..bdc3da6 100644
> --- a/include/net.h
> +++ b/include/net.h
> @@ -104,7 +104,9 @@ extern struct eth_device *eth_get_dev_by_index(int
> index); /* get dev @ index */ extern int eth_get_dev_index (void);
/* get
> the device index */
> extern void eth_parse_enetaddr(const char *addr, uchar *enetaddr);
> extern int eth_getenv_enetaddr(char *name, uchar *enetaddr);
> +#ifdef CONFIG_SETENV_ENETADDR_BY_INDEX
> extern int eth_setenv_enetaddr(char *name, const uchar *enetaddr);
> +#endif
sorry, wrong function, will be corrected in next version.
--
michael
More information about the U-Boot
mailing list