From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walle Date: Sat, 12 May 2012 00:53:37 +0200 Subject: [U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index() In-Reply-To: <1336776649-9316-5-git-send-email-michael@walle.cc> References: <1336776649-9316-1-git-send-email-michael@walle.cc> <1336776649-9316-5-git-send-email-michael@walle.cc> Message-ID: <201205120053.37988.michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Samstag 12 Mai 2012, 00:50:48 schrieb Michael Walle: > Signed-off-by: Michael Walle > Cc: Joe Hershberger > --- > 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