Peter Maydell 97c38f8c27 device_tree: Add qemu_devtree_setprop_sized_cells() utility functions
We already have a qemu_devtree_setprop_cells() which sets a dtb
property to an array of cells whose values are specified by varargs.
However for the fairly common case of setting a property to a list
of addresses or of address,size pairs the number of cells used by
each element in the list depends on the parent's #address-cells
and #size-cells properties. To make this easier we provide an analogous
qemu_devtree_setprop_sized_cells() macro which allows the number
of cells used by each element to be specified. This is implemented
using an underlying qemu_devtree_setprop_sized_cells_from_array()
function which takes the values and sizes as an array; this may
also be directly useful for cases where the cell contents are
constructed programmatically.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1373977512-28932-2-git-send-email-peter.maydell@linaro.org
2013-07-19 12:58:46 +01:00
2013-04-18 13:50:53 +02:00
2013-07-09 13:38:56 -05:00
2012-12-19 08:29:06 +01:00
2013-07-10 10:54:16 -05:00
2013-06-28 14:01:52 -05:00
2013-07-10 10:54:16 -05:00
2013-05-28 12:19:02 +02:00
2013-07-10 10:54:16 -05:00
2013-07-09 07:15:25 -07:00
2013-05-03 13:58:09 +02:00
2013-07-10 13:42:09 -04:00
2012-09-07 09:02:44 +03:00
2013-06-11 23:45:43 +04:00
2013-04-18 13:50:53 +02:00
2013-02-21 16:17:31 -06:00
2013-04-08 18:13:10 +02:00
2012-05-14 07:27:24 +02:00
2013-07-15 09:49:00 +02:00
2013-07-15 09:49:00 +02:00
2013-02-21 16:17:31 -06:00
2013-07-10 10:54:16 -05:00
2011-12-09 11:25:22 +00:00
2013-06-14 15:33:10 +01:00
2013-05-03 13:05:49 +02:00
2013-05-18 16:35:12 +04:00
2013-07-18 08:12:47 -05:00
2013-02-22 21:21:10 +01:00
2013-06-06 11:27:05 +02:00
2013-06-06 11:27:05 +02:00
2013-05-01 13:06:07 +02:00
2011-12-11 17:50:43 -06:00
2013-05-03 12:04:40 -05:00
2013-06-27 02:38:36 +02:00
2013-07-10 10:54:16 -05:00
2013-05-20 10:55:18 -05:00
2013-07-10 13:42:09 -04:00
2013-07-04 17:42:45 +02:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 518 MiB
Languages
C 83%
C++ 7.7%
Python 3%
Dylan 2.2%
Shell 1.8%
Other 2.1%