summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-10-08 00:04:52 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-10-08 00:06:23 +0800
commit24b499f3fe13c52445a1505ccfa0245ca3eb235c (patch)
tree72fe194b844395436dd3f532244bd1b5b37402b4 /include
parenta3c1e5d888d0ee317ffc7635694684bb71213c9c (diff)
downloadbarebox-24b499f3fe13c52445a1505ccfa0245ca3eb235c.tar.gz
barebox-24b499f3fe13c52445a1505ccfa0245ca3eb235c.tar.xz
image: factorise image printing contents
Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
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 de11bf8db2..2c5956d600 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);