]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/rarp.c
api: Define a default mmc max device
[people/ms/u-boot.git] / net / rarp.c
index 204e03cf28ae034ffff82ac802b9ebe695a5ad0f..1fa11b690d218fbda9fd80d26d99746acae10bf9 100644 (file)
@@ -8,10 +8,10 @@
 #include <common.h>
 #include <command.h>
 #include <net.h>
+#include <net/tftp.h>
 #include "nfs.h"
 #include "bootp.h"
 #include "rarp.h"
-#include "tftp.h"
 
 #define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */
 #ifndef        CONFIG_NET_RETRY_COUNT
@@ -59,9 +59,9 @@ static void rarp_timeout_handler(void)
 {
        if (rarp_try >= TIMEOUT_COUNT) {
                puts("\nRetry count exceeded; starting again\n");
-               NetStartAgain();
+               net_start_again();
        } else {
-               NetSetTimeout(TIMEOUT, rarp_timeout_handler);
+               net_set_timeout_handler(TIMEOUT, rarp_timeout_handler);
                rarp_request();
        }
 }
@@ -95,5 +95,5 @@ void rarp_request(void)
 
        net_send_packet(net_tx_packet, eth_hdr_size + ARP_HDR_SIZE);
 
-       NetSetTimeout(TIMEOUT, rarp_timeout_handler);
+       net_set_timeout_handler(TIMEOUT, rarp_timeout_handler);
 }