summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2016-07-13 20:42:45 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2016-07-13 20:42:45 +0000
commitee0dec28c54fc45794756ec26c580286bd4617aa (patch)
treea39ccd27aee1e2a60224b5d8724ad473a3c72e6d /sys/arch/arm/include
parente20089837853de35ad72618b51600d663ea50b46 (diff)
The "#address-cells" and "#size-cells" properties define the size
of the memory address and length information. The root node passes this information down to the children and it can be overwritten by other nodes inbetween. Pass these properties as part of the fdt attach args, so that we can grab that information quickly inside the drivers. ok kettenis@
Diffstat (limited to 'sys/arch/arm/include')
-rw-r--r--sys/arch/arm/include/fdt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm/include/fdt.h b/sys/arch/arm/include/fdt.h
index 67a3b9df6e1..cc7c6041229 100644
--- a/sys/arch/arm/include/fdt.h
+++ b/sys/arch/arm/include/fdt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdt.h,v 1.2 2016/06/09 12:32:42 kettenis Exp $ */
+/* $OpenBSD: fdt.h,v 1.3 2016/07/13 20:42:44 patrick Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
@@ -30,6 +30,8 @@ struct fdt_attach_args {
int fa_nreg;
uint32_t *fa_intr;
int fa_nintr;
+ int fa_acells;
+ int fa_scells;
};
#endif /* __ARM_FDT_H__ */