aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2014-08-19 18:56:28 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-08-19 19:02:40 +0100
commit235e74afcb85285a8e35e75f0cb6e6811267bb75 (patch)
tree7a0387b341020d46936c887b9a93c90154176d94 /include/hw
parentf7838b5290de03f7cb2dbee5bd1ceae67b4a5ef0 (diff)
loader: Add load_image_gzipped function.
As the name suggests this lets you load a ROM/disk image that is gzipped. It is uncompressed before storing it in guest memory. Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 1407831259-2115-2-git-send-email-rjones@redhat.com [PMM: removed stray space before ')'] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/loader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/loader.h b/include/hw/loader.h
index 796cbf9b39..00c9117ee0 100644
--- a/include/hw/loader.h
+++ b/include/hw/loader.h
@@ -15,6 +15,7 @@ int get_image_size(const char *filename);
int load_image(const char *filename, uint8_t *addr); /* deprecated */
int load_image_targphys(const char *filename, hwaddr,
uint64_t max_sz);
+int load_image_gzipped(const char *filename, hwaddr addr, uint64_t max_sz);
#define ELF_LOAD_FAILED -1
#define ELF_LOAD_NOT_ELF -2