diff --git a/cmd/pxe.c b/cmd/pxe.c index 73f1b4fbd336c246eb56d6603d81ba26e9847205..194a366aa152cf4ee620b00cc9b873566366f898 100644 --- a/cmd/pxe.c +++ b/cmd/pxe.c @@ -6,6 +6,7 @@ #include #include +#include #include "pxe_utils.h" diff --git a/include/common.h b/include/common.h index 84fd275202e9e80da9b47e5c8e0684f0c4527f0b..7e2de23ae4e6d3f73206916987966b226f7319e8 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 834f2449826a96994738f0252205945ca38a6637..a8ee08150fc02a29adc0346eae105908109b4b17 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