summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/socppc/socppc/fdt.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/socppc/socppc/fdt.c b/sys/arch/socppc/socppc/fdt.c
index 472f81c7361..8b31fb26270 100644
--- a/sys/arch/socppc/socppc/fdt.c
+++ b/sys/arch/socppc/socppc/fdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdt.c,v 1.5 2009/09/02 19:36:15 kettenis Exp $ */
+/* $OpenBSD: fdt.c,v 1.6 2009/09/06 19:28:12 kettenis Exp $ */
/*
* Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net>
@@ -425,6 +425,15 @@ OF_finddevice(char *name)
}
int
+OF_getproplen(int handle, char *prop)
+{
+ void *node = (char *)tree.header + handle;
+ char *data;
+
+ return fdt_node_property(node, prop, &data);
+}
+
+int
OF_getprop(int handle, char *prop, void *buf, int buflen)
{
void *node = (char *)tree.header + handle;