freebsd-dev/sys/dev/acpica
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
..
Osd
acpi_acad.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi_apei.c APEI: Make sure event data fit into the buffer. 2022-02-03 15:33:01 -05:00
acpi_battery.c
acpi_bus_if.m
acpi_button.c
acpi_cmbat.c
acpi_container.c
acpi_cpu.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi_dock.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi_ec.c
acpi_hpet.c
acpi_hpet.h
acpi_if.m
acpi_isab.c
acpi_lid.c
acpi_package.c
acpi_pci_link.c
acpi_pci.c Add UEFI locator for bus_get_device_path, pci acpi 2022-03-01 08:06:41 -07:00
acpi_pcib_acpi.c
acpi_pcib_pci.c
acpi_pcib.c
acpi_pcibvar.h
acpi_pcivar.h
acpi_perf.c
acpi_powerres.c
acpi_pxm.c
acpi_quirk.c
acpi_quirks
acpi_resource.c
acpi_smbat.c
acpi_smbus.h
acpi_thermal.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi_throttle.c
acpi_timer.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi_video.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi.c Extend device_get_property API 2022-03-10 12:11:32 +01:00
acpiio.h
acpivar.h bus: Add ACPI locator support 2022-03-01 08:06:41 -07:00