From bd7f9b52e2d44bcdee69b087c5d2d1844263dd6d Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 27 Sep 2011 16:22:09 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- include/image.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/image.h') 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); -- cgit v1.2.3