freebsd-skq/sys/dev/ofw
Oleksandr Tymoshenko 217d17bcd3 Clean up OF_getprop_alloc API
OF_getprop_alloc takes element size argument and returns number of
elements in the property. There are valid use cases for such behavior
but mostly API consumers pass 1 as element size to get string
properties. What API users would expect from OF_getprop_alloc is to be
a combination of malloc + OF_getprop with the same semantic of return
value. This patch modifies API signature to match these expectations.

For the valid use cases with element size != 1 and to reduce
modification scope new OF_getprop_alloc_multi function has been
introduced that behaves the same way OF_getprop_alloc behaved prior to
this patch.

Reviewed by:	ian, manu
Differential Revision:	https://reviews.freebsd.org/D14850
2018-04-08 22:59:34 +00:00
..
ofw_bus_if.m
ofw_bus_subr.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
ofw_bus_subr.h Add api for creating resource list based on 'assigned-addresses' 2018-04-04 12:47:41 +00:00
ofw_bus.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_console.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_cpu.c Do not bind to CPUs with SMT, which use a different CPU numbering convention 2017-11-25 21:46:51 +00:00
ofw_cpu.h
ofw_disk.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_fdt.c ofw_fdt: Simplify parts with new libfdt methods 2018-02-26 14:00:23 +00:00
ofw_if.m
ofw_pci.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
ofw_standard.c Set internal error returns for OF_peer(), OF_child(), and OF_parent() to 2018-02-19 15:49:14 +00:00
ofw_subr.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
ofw_subr.h Add a ofw_parse_bootargs function, and use it for powerpc 2016-09-21 02:28:39 +00:00
ofwbus.c INTRNG: Rework handling with resources. Partially revert r301453. 2016-08-19 10:52:39 +00:00
ofwpci.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
ofwpci.h OFWPCI: Add support for NEW_PCIB. 2016-07-17 13:43:46 +00:00
ofwvar.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openfirm.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
openfirm.h Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
openfirmio.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
openfirmio.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
openpromio.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
openpromio.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00