提交 1aec244a 编写于 作者: S Simon Glass 提交者: Wolfgang Denk

tftpput: add save_addr and save_size global variables

We need something akin to load_addr to handle saving data.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 58f317d1
...@@ -79,6 +79,8 @@ SPI_FLASH|MG_DISK|NVRAM|MMC} or CONFIG_ENV_IS_NOWHERE ...@@ -79,6 +79,8 @@ SPI_FLASH|MG_DISK|NVRAM|MMC} or CONFIG_ENV_IS_NOWHERE
#define MAX_ENV_SIZE (1 << 20) /* 1 MiB */ #define MAX_ENV_SIZE (1 << 20) /* 1 MiB */
ulong load_addr = CONFIG_SYS_LOAD_ADDR; /* Default Load Address */ ulong load_addr = CONFIG_SYS_LOAD_ADDR; /* Default Load Address */
ulong save_addr; /* Default Save Address */
ulong save_size; /* Default Save Size (in bytes) */
/* /*
* Table with supported baudrates (defined in config_xyz.h) * Table with supported baudrates (defined in config_xyz.h)
......
...@@ -284,6 +284,8 @@ void flash_perror (int); ...@@ -284,6 +284,8 @@ void flash_perror (int);
int source (ulong addr, const char *fit_uname); int source (ulong addr, const char *fit_uname);
extern ulong load_addr; /* Default Load Address */ extern ulong load_addr; /* Default Load Address */
extern ulong save_addr; /* Default Save Address */
extern ulong save_size; /* Default Save Size */
/* common/cmd_doc.c */ /* common/cmd_doc.c */
void doc_probe(unsigned long physadr); void doc_probe(unsigned long physadr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册