summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 20:44:43 +0300
committerTom Rini <trini@konsulko.com>2020-01-17 21:26:48 +0300
commit77f4e477ae85e7ad229a86337a2b951aa7b48e68 (patch)
treed21af950d73afa1ca48197e99f2cf1410a146f99 /include
parent2ebebb942d76f24d316bf268564b7c62a18d7a98 (diff)
downloadu-boot-77f4e477ae85e7ad229a86337a2b951aa7b48e68.tar.xz
common: Move do_tftpb() to net.h
This function belongs in the network header file. Move it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
-rw-r--r--include/net.h11
2 files changed, 11 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index 84fd275202..7e2de23ae4 100644
--- a/include/common.h
+++ b/include/common.h
@@ -80,9 +80,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
@@ -51,6 +51,17 @@ struct in_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
* @param dport destination UDP port