summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>2010-03-04 18:14:15 +0100
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2010-03-31 10:01:17 +0200
commit872edb58246b9f310bd99315e5e102ab754fb765 (patch)
tree92161435aca264165109442f5241348f5e2e01e9 /include
parent66a33d1e1625e136d458f964e9679e606ce9a409 (diff)
downloadkexec-tools-872edb58246b9f310bd99315e5e102ab754fb765.tar.gz
Split Powerpc's uImage code
The check and uncompress code could be split and recycled by other arch. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/kexec-uImage.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/kexec-uImage.h b/include/kexec-uImage.h
new file mode 100644
index 00000000..e8a4b693
--- /dev/null
+++ b/include/kexec-uImage.h
@@ -0,0 +1,13 @@
+#ifndef __KEXEC_UIMAGE_H__
+#define __KEXEC_UIMAGE_H__
+
+struct Image_info {
+ const char *buf;
+ off_t len;
+ unsigned int base;
+ unsigned int ep;
+};
+
+int uImage_probe(const char *buf, off_t len, unsigned int arch);
+int uImage_load(const char *buf, off_t len, struct Image_info *info);
+#endif