freebsd-skq/sys/sparc64/pci
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
..
apb.c sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
fire.c sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
firereg.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
firevar.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_pci_if.m
ofw_pci.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
ofw_pci.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_pcib_subr.c sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_pcib_subr.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_pcib.c sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
ofw_pcibus.c sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
psycho.c Mark psycho interrupts as MPSAFE. It's safe to do so now that we don't 2018-03-21 14:47:17 +00:00
psychoreg.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
psychovar.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
sbbc.c kernel: Fix several typos and minor errors 2017-12-27 03:23:21 +00:00
schizo.c sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
schizoreg.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
schizovar.h sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00