From 1fd68993a9a5fbb0307078e17eb6ede551aedddf Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Wed, 27 Jul 2016 11:45:03 +0000 Subject: Instead of passing the raw reg property to simplebus nodes, pass a pre-processed array of fdt_reg structs. This means that the drivers don't have to understand the cell properties themselves but can rely on the 64-bit addr/size pairs. ok kettenis@ --- sys/arch/arm/include/fdt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/arm/include/fdt.h') diff --git a/sys/arch/arm/include/fdt.h b/sys/arch/arm/include/fdt.h index cc7c6041229..b506f5fb8ef 100644 --- a/sys/arch/arm/include/fdt.h +++ b/sys/arch/arm/include/fdt.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fdt.h,v 1.3 2016/07/13 20:42:44 patrick Exp $ */ +/* $OpenBSD: fdt.h,v 1.4 2016/07/27 11:45:02 patrick Exp $ */ /* * Copyright (c) 2016 Patrick Wildt * @@ -26,7 +26,7 @@ struct fdt_attach_args { int fa_node; bus_space_tag_t fa_iot; bus_dma_tag_t fa_dmat; - uint32_t *fa_reg; + struct fdt_reg *fa_reg; int fa_nreg; uint32_t *fa_intr; int fa_nintr; -- cgit v1.2.3