summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-23 21:32:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-09-24 08:46:40 +0200
commitd424ce77f5e9295584252452dbd78eea562c9af0 (patch)
tree8a1ded02eb19e0d41c9738958f33a59e5c8f63f7 /include
parent0ceafe14be072696eff3e549d8c7b7de8a3e416d (diff)
downloadbarebox-d424ce77f5e9295584252452dbd78eea562c9af0.tar.gz
barebox-d424ce77f5e9295584252452dbd78eea562c9af0.tar.xz
image: factorise image printing contents
before we duplicate it between command/bootm.c and scripts/mkimage.c Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/image.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index abe19ccf66..add5e02ae3 100644
--- a/include/image.h
+++ b/include/image.h
@@ -373,7 +373,15 @@ static inline int image_check_target_arch(const image_header_t *hdr)
return 1;
}
-#endif /* USE_HOSTCC */
+#endif
+
+ulong image_multi_count(const image_header_t *hdr);
+void image_multi_getimg(const image_header_t *hdr, ulong idx,
+ ulong *data, ulong *len);
+
+void image_print_size(uint32_t size);
+
+void image_print_contents(const void *ptr);
/* commamds/bootm.c */
void print_image_hdr (image_header_t *hdr);