mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
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>
This commit is contained in:
parent
f3bf212abc
commit
4fb127898e
2 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,11 @@ unsigned char *dfu_free_buf(void)
|
|||
return dfu_buf;
|
||||
}
|
||||
|
||||
unsigned long dfu_get_buf_size(void)
|
||||
{
|
||||
return dfu_buf_size;
|
||||
}
|
||||
|
||||
unsigned char *dfu_get_buf(void)
|
||||
{
|
||||
char *s;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue