mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
2ebebb942d
commit
77f4e477ae
3 changed files with 12 additions and 3 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <net.h>
|
||||||
|
|
||||||
#include "pxe_utils.h"
|
#include "pxe_utils.h"
|
||||||
|
|
||||||
|
|
|
@ -80,9 +80,6 @@ extern ulong load_addr; /* Default Load Address */
|
||||||
extern ulong save_addr; /* Default Save Address */
|
extern ulong save_addr; /* Default Save Address */
|
||||||
extern ulong save_size; /* Default Save Size */
|
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 */
|
/* common/cmd_fat.c */
|
||||||
int do_fat_fsload(cmd_tbl_t *, int, int, char * const []);
|
int do_fat_fsload(cmd_tbl_t *, int, int, char * const []);
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,17 @@ struct in_addr {
|
||||||
__be32 s_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.
|
* An incoming packet handler.
|
||||||
* @param pkt pointer to the application packet
|
* @param pkt pointer to the application packet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue