aboutsummaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-12-09 16:20:13 +0100
committerMarek Vasut <marex@denx.de>2013-12-18 19:53:19 +0100
commit4fb127898e46f0adf9fcca3cfae0987975ef34ec (patch)
treeab7edd49af2d99a0ef1322cb938315f31d72de7d /include/dfu.h
parentf3bf212abc4139f12b472e97c1992ab32671b609 (diff)
downloadu-boot-4fb127898e46f0adf9fcca3cfae0987975ef34ec.zip
u-boot-4fb127898e46f0adf9fcca3cfae0987975ef34ec.tar.gz
u-boot-4fb127898e46f0adf9fcca3cfae0987975ef34ec.tar.bz2
dfu: Export allocated dfu buffer size
The method for exporting size of allocated buffer is provided. It is afterwards used by USB's dfu function code. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index cc14044..9a50721 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -131,6 +131,7 @@ bool dfu_reset(void);
int dfu_init_env_entities(char *interface, int dev);
unsigned char *dfu_get_buf(void);
unsigned char *dfu_free_buf(void);
+unsigned long dfu_get_buf_size(void);
int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num);
int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num);