summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-01-31 13:55:39 +0100
committerWolfgang Denk <wd@denx.de>2008-02-07 01:12:59 +0100
commit5ad03eb3854c162684222a718b44c0716ea0db03 (patch)
tree4128cb8b65369a712b488c124d1297bc6c50dc67 /include
parentd3c5eb6dd1f4ed3c3388386cf1d1bf82aa51d56b (diff)
downloadbootable_bootloader_goldelico_gta04-5ad03eb3854c162684222a718b44c0716ea0db03.zip
bootable_bootloader_goldelico_gta04-5ad03eb3854c162684222a718b44c0716ea0db03.tar.gz
bootable_bootloader_goldelico_gta04-5ad03eb3854c162684222a718b44c0716ea0db03.tar.bz2
[new uImage] Factor out common image_get_ramdisk() routine
Architecture specific do_bootm_linux() routines share common ramdisk image processing code. Move this code to a common helper routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'include')
-rw-r--r--include/image.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 9ac25c9..b438564 100644
--- a/include/image.h
+++ b/include/image.h
@@ -34,6 +34,7 @@
#define __IMAGE_H__
#include <asm/byteorder.h>
+#include <command.h>
#ifndef USE_HOSTCC
#include <linux/string.h>
#endif
@@ -331,6 +332,15 @@ const char* image_get_os_name (uint8_t os);
const char* image_get_arch_name (uint8_t arch);
const char* image_get_type_name (uint8_t type);
const char* image_get_comp_name (uint8_t comp);
+
+image_header_t* image_get_ramdisk (cmd_tbl_t *cmdtp, int flag,
+ int argc, char *argv[],
+ ulong rd_addr, uint8_t arch, int verify);
+
+void get_ramdisk (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
+ image_header_t *hdr, int verify, uint8_t arch,
+ ulong *rd_start, ulong *rd_end);
#endif /* USE_HOSTCCa */
+
#endif /* __IMAGE_H__ */