diff options
Diffstat (limited to 'sys/dev/ofw/fdt.h')
-rw-r--r-- | sys/dev/ofw/fdt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ofw/fdt.h b/sys/dev/ofw/fdt.h index 6a2123962fb..ff5ef0d13c3 100644 --- a/sys/dev/ofw/fdt.h +++ b/sys/dev/ofw/fdt.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fdt.h,v 1.1 2016/03/03 02:42:16 bmercer Exp $ */ +/* $OpenBSD: fdt.h,v 1.2 2016/04/03 12:32:13 patrick Exp $ */ /* * Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net> @@ -38,6 +38,11 @@ struct fdt { int strings_size; }; +struct fdt_memory { + uint64_t addr; + uint64_t size; +}; + #define FDT_MAGIC 0xd00dfeed #define FDT_NODE_BEGIN 0x01 #define FDT_NODE_END 0x02 @@ -48,12 +53,14 @@ struct fdt { #define FDT_CODE_VERSION 0x11 int fdt_init(void *); +size_t fdt_get_size(void *); void *fdt_next_node(void *); void *fdt_child_node(void *); char *fdt_node_name(void *); void *fdt_find_node(char *); int fdt_node_property(void *, char *, char **); void *fdt_parent_node(void *); +int fdt_get_memory_address(void *, int, struct fdt_memory *); #ifdef DEBUG void *fdt_print_property(void *, int); void fdt_print_node(void *, int); |