opnsense-src/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 acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi.c Extend device_get_property API 2022-03-10 12:11:32 +01:00
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 Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
acpi_bus_if.m Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
acpi_button.c Expose the ACPI power button, sleep button and LID state as evdev's. 2020-03-02 09:45:06 +00:00
acpi_cmbat.c Add workaround for models which do not follow the ACPI specification strictly. 2020-02-27 17:13:57 +00:00
acpi_container.c Distinguish _CID match and _HID match and make lower priority probe 2018-10-26 00:05:46 +00:00
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_ec(4): Don't probe erroneously if success occurred 2020-04-23 17:30:03 +00:00
acpi_hpet.c pvclock: Add vDSO support 2021-08-14 15:57:54 +03:00
acpi_hpet.h
acpi_if.m acpica: add ACPI_GET_PROPERTY to access Device Specific Data (DSD) 2021-09-20 16:31:08 +02:00
acpi_isab.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_lid.c Send Lid status notification via devd from acpi_lid_status_update. 2020-05-16 01:50:28 +00:00
acpi_package.c Add _BIX (Battery Information Extended) object support. 2020-02-19 06:28:55 +00:00
acpi_pci.c Add UEFI locator for bus_get_device_path, pci acpi 2022-03-01 08:06:41 -07:00
acpi_pci_link.c acpi: Add missing error handling to acpi_pci_link_route_irqs() 2021-05-26 10:49:30 -04:00
acpi_pcib.c acpica: rework INTRNG interrupts 2018-11-19 03:02:47 +00:00
acpi_pcib_acpi.c Add mostly dummy hw.pci.enable_aspm tunable. 2020-06-26 19:55:11 +00:00
acpi_pcib_pci.c
acpi_pcibvar.h
acpi_pcivar.h Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
acpi_perf.c Make CPU children explicitly share parent unit numbers. 2021-09-24 23:31:51 -04:00
acpi_powerres.c acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_pxm.c acpi: Ensure that adjacent memory affinity table entries are coalesced 2020-12-18 16:04:48 +00:00
acpi_quirk.c Merge ACPICA 20190329. 2019-03-29 20:21:28 +00:00
acpi_quirks
acpi_resource.c Ignore ResourceProducer flag for: 2021-08-02 14:11:20 +03:00
acpi_smbat.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
acpi_smbus.h acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
acpi_thermal.c acpica: Remove CTLFLAG_NEEDGIANT from most sysctls. 2021-12-26 19:18:55 -05:00
acpi_throttle.c Make CPU children explicitly share parent unit numbers. 2021-09-24 23:31:51 -04:00
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
acpiio.h Add _BIX (Battery Information Extended) object support. 2020-02-19 06:28:55 +00:00
acpivar.h bus: Add ACPI locator support 2022-03-01 08:06:41 -07:00