summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-09-27 16:22:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-09-28 09:23:45 +0200
commitd1ffab8f0c1db7ddc51302883f364700e0894edd (patch)
tree09a41d791cbff7f801f2fa1e83cdce6560e567c5 /include/image.h
parentbd7f9b52e2d44bcdee69b087c5d2d1844263dd6d (diff)
downloadbarebox-d1ffab8f0c1db7ddc51302883f364700e0894edd.tar.gz
barebox-d1ffab8f0c1db7ddc51302883f364700e0894edd.tar.xz
image: add multi image support for bootm
you can choose the initrd via @<num> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index d913b21ea3..d34d4320d5 100644
--- a/include/image.h
+++ b/include/image.h
@@ -188,9 +188,16 @@ typedef struct image_header {
uint8_t ih_name[IH_NMLEN]; /* Image Name */
} image_header_t;
+struct image_handle_data {
+ void *data;
+ ulong len;
+};
+
struct image_handle {
image_header_t header;
void *data;
+ struct image_handle_data *data_entries;
+ int nb_data_entries;
#define IH_MALLOC 1
int flags;
};