summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw/fdt.h
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2016-07-26 22:10:10 +0000
committerpatrick <patrick@openbsd.org>2016-07-26 22:10:10 +0000
commitb7952965205f031520bc848f33b525dc9cde2cfc (patch)
treeac3cd3b01e28f7207af3755dbd0d70202e2153ec /sys/dev/ofw/fdt.h
parentWrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh) (diff)
downloadwireguard-openbsd-b7952965205f031520bc848f33b525dc9cde2cfc.tar.xz
wireguard-openbsd-b7952965205f031520bc848f33b525dc9cde2cfc.zip
Rename struct fdt_memory to fdt_reg to match the member name
used in the fdt attach args and the device tree. ok kettenis@
Diffstat (limited to 'sys/dev/ofw/fdt.h')
-rw-r--r--sys/dev/ofw/fdt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ofw/fdt.h b/sys/dev/ofw/fdt.h
index 2e1c40517ab..1e4263cceba 100644
--- a/sys/dev/ofw/fdt.h
+++ b/sys/dev/ofw/fdt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdt.h,v 1.4 2016/07/09 12:31:05 kettenis Exp $ */
+/* $OpenBSD: fdt.h,v 1.5 2016/07/26 22:10:10 patrick Exp $ */
/*
* Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net>
@@ -38,7 +38,7 @@ struct fdt {
int strings_size;
};
-struct fdt_memory {
+struct fdt_reg {
uint64_t addr;
uint64_t size;
};
@@ -61,7 +61,7 @@ void *fdt_find_node(char *);
int fdt_node_property(void *, char *, char **);
void *fdt_parent_node(void *);
void *fdt_find_phandle(uint32_t);
-int fdt_get_memory_address(void *, int, struct fdt_memory *);
+int fdt_get_reg(void *, int, struct fdt_reg *);
int fdt_is_compatible(void *, const char *);
#ifdef DEBUG
void *fdt_print_property(void *, int);