summaryrefslogtreecommitdiffstats
path: root/include/boot.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-10 12:13:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-19 22:57:39 +0200
commit7d58f3f346a29c7a0026864cac7c4d3ad0d89d88 (patch)
tree4aeb18b0e972431bd461f7316edb3807fce6540b /include/boot.h
parent40c4e61554adc11822e68e0dc45f73e17a2a3094 (diff)
downloadbarebox-7d58f3f346a29c7a0026864cac7c4d3ad0d89d88.tar.gz
barebox-7d58f3f346a29c7a0026864cac7c4d3ad0d89d88.tar.xz
bootm: factor out code to make it usable from C
Much of the bootm code is implemented in the command itself. Move it to a common place to be able to call it from C aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/boot.h')
-rw-r--r--include/boot.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/boot.h b/include/boot.h
index 971a40390a..ccce8e1a42 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -41,11 +41,15 @@ struct image_data {
unsigned long initrd_address;
+ char *oftree_file;
+ int oftree_num;
+
struct device_node *of_root_node;
struct fdt_header *oftree;
int verify;
int verbose;
+ int force;
};
struct image_handler {
@@ -88,4 +92,8 @@ static inline int linux_bootargs_overwrite(const char *bootargs)
}
#endif
+#define UIMAGE_SOME_ADDRESS (UIMAGE_INVALID_ADDRESS - 1)
+
+int bootm_boot(struct image_data *);
+
#endif /* __BOOT_H */