summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/fdt.h3
-rw-r--r--src/include/usr/fdtmgmt.h16
2 files changed, 19 insertions, 0 deletions
diff --git a/src/include/ipxe/fdt.h b/src/include/ipxe/fdt.h
index 9b9b01b6c..995975ed8 100644
--- a/src/include/ipxe/fdt.h
+++ b/src/include/ipxe/fdt.h
@@ -10,6 +10,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
+#include <ipxe/image.h>
struct net_device;
@@ -93,6 +94,8 @@ struct fdt {
size_t strings_len;
};
+extern struct image_tag fdt_image __image_tag;
+
extern int fdt_path ( const char *path, unsigned int *offset );
extern int fdt_alias ( const char *name, unsigned int *offset );
extern const char * fdt_string ( unsigned int offset, const char *name );
diff --git a/src/include/usr/fdtmgmt.h b/src/include/usr/fdtmgmt.h
new file mode 100644
index 000000000..3d3aef859
--- /dev/null
+++ b/src/include/usr/fdtmgmt.h
@@ -0,0 +1,16 @@
+#ifndef _USR_FDTMGMT_H
+#define _USR_FDTMGMT_H
+
+/** @file
+ *
+ * Flattened Device Tree management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+#include <ipxe/image.h>
+
+extern int imgfdt ( struct image *image );
+
+#endif /* _USR_FDTMGMT_H */