From e4a3d57dc79e8c94e3272c4a82b146df0fe3dda6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 27 Oct 2011 06:24:32 +0000 Subject: 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 Acked-by: Mike Frysinger --- include/net.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/net.h b/include/net.h index b408dea..ad9afbf 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. * -- cgit v1.1