diff mbox series

[06/35] common: Move do_tftpb() to net.h

Message ID 20191212004755.11091-6-sjg@chromium.org
State Superseded
Delegated to: Tom Rini
Headers show
Series common: Further reduce size of common.h even more | expand

Commit Message

Simon Glass Dec. 12, 2019, 12:47 a.m. UTC
This function belongs in the network header file. Move it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/pxe.c        |  1 +
 include/common.h |  3 ---
 include/net.h    | 11 +++++++++++
 3 files changed, 12 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/cmd/pxe.c b/cmd/pxe.c
index 73f1b4fbd3..194a366aa1 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -6,6 +6,7 @@ 
 
 #include <common.h>
 #include <command.h>
+#include <net.h>
 
 #include "pxe_utils.h"
 
diff --git a/include/common.h b/include/common.h
index fe10f06819..dbd7845a63 100644
--- a/include/common.h
+++ b/include/common.h
@@ -81,9 +81,6 @@  extern ulong load_addr;		/* Default Load Address */
 extern ulong save_addr;		/* Default Save Address */
 extern ulong save_size;		/* Default Save Size */
 
-/* common/cmd_net.c */
-int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
-
 /* common/cmd_fat.c */
 int do_fat_fsload(cmd_tbl_t *, int, int, char * const []);
 
diff --git a/include/net.h b/include/net.h
index 834f244982..a8ee08150f 100644
--- a/include/net.h
+++ b/include/net.h
@@ -50,6 +50,17 @@  struct in_addr {
 	__be32 s_addr;
 };
 
+/**
+ * do_tftpb - Run the tftpboot command
+ *
+ * @cmdtp: Command information for tftpboot
+ * @flag: Command flags (CMD_FLAG_...)
+ * @argc: Number of arguments
+ * @argv: List of arguments
+ * @return result (see enum command_ret_t)
+ */
+int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]);
+
 /**
  * An incoming packet handler.
  * @param pkt    pointer to the application packet