freebsd-dev/sys/dev/fdt
Kornel Duleba b344de4d0d Extend device_get_property API
In order to support various types of data stored in device
tree properties or ACPI _DSD packages, create a new enum so
the caller can specify the expected type of a property they
want to read, according to the binding. The bus logic will use
that information to process the underlying data.

For example in DT all integer properties are stored in BE format.
In order to get constant results across different platforms we
need to convert its endianness to match the host.

Another example are ACPI_TYPE_INTEGER properties stored
as uint64_t. Before this patch the ACPI logic would refuse
to read them if the provided buffer was smaller than 8 bytes.
Now this can be handled by using DEVICE_PROP_UINT32 type.

Modify the existing consumers of this API to reflect the changes
and update the man pages accordingly.

Reviewed by: mw
Obtained from: Semihalf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33457
2022-03-10 12:11:32 +01:00
..
fdt_arm_platform.c
fdt_clock_if.m
fdt_clock.c
fdt_clock.h
fdt_common.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
fdt_common.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
fdt_intr.h
fdt_pinctrl_if.m fdt_pinctrl: Add new methods for gpios 2020-01-16 21:19:27 +00:00
fdt_pinctrl.c
fdt_pinctrl.h
fdt_slicer.c
fdt_static_dtb.S Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
simple_mfd.c simple_mfd: switch to controllable locking for syscon provider. 2021-03-04 16:12:39 +01:00
simple_mfd.h
simplebus.c Extend device_get_property API 2022-03-10 12:11:32 +01:00
simplebus.h Make simplebus friendlier for subclassing. 2020-09-25 09:56:50 +00:00