summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-27 06:24:32 +0000
committerWolfgang Denk <wd@denx.de>2011-10-27 23:53:58 +0200
commite4a3d57dc79e8c94e3272c4a82b146df0fe3dda6 (patch)
tree1f56c6b874ec39a786bdd878fb752cf3996015a2 /include/net.h
parented1ada712aa206bfa51caf56f27659baa05623bf (diff)
downloadblackbird-obmc-uboot-e4a3d57dc79e8c94e3272c4a82b146df0fe3dda6.tar.gz
blackbird-obmc-uboot-e4a3d57dc79e8c94e3272c4a82b146df0fe3dda6.zip
net: Export auto_load, use it in rarp
The rarp code includes another instance of the auto_load logic, so call what is now net_auto_load() instead. This also fixes an incorrect call to TftpStart() which was never seen since apparently no boards enable rarp. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index b408dea666..ad9afbf417 100644
--- a/include/net.h
+++ b/include/net.h
@@ -430,6 +430,12 @@ extern int NetSendUDPPacket(uchar *ether, IPaddr_t dest, int dport, int sport, i
extern void NetReceive(volatile uchar *, int);
/*
+ * Check if autoload is enabled. If so, use either NFS or TFTP to download
+ * the boot file.
+ */
+void net_auto_load(void);
+
+/*
* The following functions are a bit ugly, but necessary to deal with
* alignment restrictions on ARM.
*
OpenPOWER on IntegriCloud