summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-09-27 16:22:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-09-28 09:23:45 +0200
commitbd7f9b52e2d44bcdee69b087c5d2d1844263dd6d (patch)
tree4d13de83a91d932f6180b4d552c06f143d25e22f /include/image.h
parent4dbe7250eb72412a21c687b2f69c765088f03ada (diff)
downloadbarebox-bd7f9b52e2d44bcdee69b087c5d2d1844263dd6d.tar.gz
barebox-bd7f9b52e2d44bcdee69b087c5d2d1844263dd6d.tar.xz
image: use data base addr for image_print_contents, image_multi_count/getimg
as in barebox the data could be the mapped file or a allocated memory with just the data (non header) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/image.h b/include/image.h
index 8932947b7e..d913b21ea3 100644
--- a/include/image.h
+++ b/include/image.h
@@ -320,13 +320,13 @@ static inline void image_set_name(image_header_t *hdr, const char *name)
strncpy(image_get_name(hdr), name, IH_NMLEN);
}
-ulong image_multi_count(const image_header_t *hdr);
-void image_multi_getimg(const image_header_t *hdr, ulong idx,
- ulong *data, ulong *len);
+ulong image_multi_count(void *data);
+void image_multi_getimg(void *data, ulong idx,
+ ulong *img_data, ulong *len);
void image_print_size(uint32_t size);
-void image_print_contents(const void *ptr);
+void image_print_contents(const image_header_t *hdr, void *data);
/* commamds/bootm.c */
void print_image_hdr (image_header_t *hdr);