summaryrefslogtreecommitdiff
path: root/kexec/dt-ops.h
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2016-09-21 18:14:25 +0000
committerSimon Horman <horms@verge.net.au>2016-09-29 09:36:56 +0200
commit217bcc00c9309416a6c6cd0584196559d28a9259 (patch)
treeb310db78c789fc5bf27526263ba32f4843bfd6b5 /kexec/dt-ops.h
parentf7a0ff52e04da1065deb6895fbfa1e82d94a56e4 (diff)
kexec: Add common device tree routines
Common device tree routines that can be shared between all arches that have device tree support. Signed-off-by: Geoff Levand <geoff@infradead.org> Tested-By: Pratyush Anand <panand@redhat.com> Tested-By: Matthias Brugger <mbrugger@suse.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/dt-ops.h')
-rw-r--r--kexec/dt-ops.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kexec/dt-ops.h b/kexec/dt-ops.h
new file mode 100644
index 0000000..e70d15d
--- /dev/null
+++ b/kexec/dt-ops.h
@@ -0,0 +1,13 @@
+#if !defined(KEXEC_DT_OPS_H)
+#define KEXEC_DT_OPS_H
+
+#include <sys/types.h>
+
+int dtb_set_initrd(char **dtb, off_t *dtb_size, off_t start, off_t end);
+int dtb_set_bootargs(char **dtb, off_t *dtb_size, const char *command_line);
+int dtb_set_property(char **dtb, off_t *dtb_size, const char *node,
+ const char *prop, const void *value, int value_len);
+
+int dtb_delete_property(char *dtb, const char *node, const char *prop);
+
+#endif