aboutsummaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorPatrick Delaunay2017-07-19 16:39:23 +0200
committerMarek Vasut2017-07-28 23:34:39 +0200
commit15970d871c299c8a4218911ee68edb0495a69cd4 (patch)
treef8f31f420ca9e3f4f1ec4be3cc568303c59f833d /include/dfu.h
parent4de512018ba7d57f1672be21c7459281f7c97514 (diff)
dfu: remove limitation on partition size
Change long (32 bits on arm) to u64 (same type than offset) for size and read offset r_left So partition and device used for DFU can be greater than 4GB Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 5b621b577b3..7e322d9d276 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -110,7 +110,7 @@ struct dfu_entity {
struct sf_internal_data sf;
} data;
- int (*get_medium_size)(struct dfu_entity *dfu, long *size);
+ int (*get_medium_size)(struct dfu_entity *dfu, u64 *size);
int (*read_medium)(struct dfu_entity *dfu,
u64 offset, void *buf, long *len);
@@ -132,7 +132,7 @@ struct dfu_entity {
u8 *i_buf;
u8 *i_buf_start;
u8 *i_buf_end;
- long r_left;
+ u64 r_left;
long b_left;
u32 bad_skip; /* for nand use */