xen: dt: add dt_for_each_range helper
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jul 2015 08:46:14 +0000 (09:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jul 2015 14:10:44 +0000 (15:10 +0100)
commitf9d08f49dc03debdda8ae80b4ecb12f393df459b
treef5519a6a7c5416d457dfdbc8c156af190989f31a
parent5cefb30c862225ba5e83b708fedc9230b1e53e81
xen: dt: add dt_for_each_range helper

This function iterates over a node's ranges property and calls a
callback for each region. For now it only supplies the MMIO range (in
terms of CPU addresses, i.e. already translated).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
xen/common/device_tree.c
xen/include/xen/device_tree.h