summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:17 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:17 +0200
commitcf836d5f97bbfadc799824e6f2c9fccec069ea92 (patch)
tree237571cec56a0b4c4fcf76421682c558a1748afb /include/image.h
parent496d7e43441ee758fa015f25e81f60ac021fa46a (diff)
downloadbarebox-cf836d5f97bbfadc799824e6f2c9fccec069ea92.tar.gz
barebox-cf836d5f97bbfadc799824e6f2c9fccec069ea92.tar.xz
svn_rev_690
add comment
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 5bea4efba0..5d744beb6b 100644
--- a/include/image.h
+++ b/include/image.h
@@ -180,9 +180,19 @@ typedef struct image_header {
uint8_t ih_name[IH_NMLEN]; /* Image Name */
} image_header_t;
-/* common/cmd_bootm.c */
+/* commamds/bootm.c */
void print_image_hdr (image_header_t *hdr);
+/*
+ * Load an image into memory. Returns a pointer to the loaded
+ * image.
+ */
image_header_t *map_image(const char *filename, int verify);
+/*
+ * Relocate an image to load_address by uncompressing
+ * or just copying.
+ */
+int relocate_image(image_header_t *hdr, void *load_address);
+
#endif /* __IMAGE_H__ */