opnsense-src/sys/dev/sdhci
Kornel Duleba 817556add3 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

(cherry picked from commit b344de4d0d)
2022-03-30 00:24:29 +02:00
..
fsl_sdhci.c sdhci: clean up empty lines in .c and .h files 2020-09-01 21:54:16 +00:00
sdhci.c sdhci: allow setting MMC capabilities before sdhci_init_slot 2022-03-07 16:59:50 +01:00
sdhci.h Align struct sdhci_slot MMCCAM members. 2019-03-21 10:23:02 +00:00
sdhci_acpi.c o Don't allocate resources for SDMA in sdhci(4) if the controller or the 2018-12-30 23:08:06 +00:00
sdhci_fdt.c sdhci: clean up empty lines in .c and .h files 2020-09-01 21:54:16 +00:00
sdhci_fdt_gpio.c Release all previously allocated resources. 2017-03-08 14:52:03 +00:00
sdhci_fdt_gpio.h Add new helper routines for sdhci bridge drivers that use gpio pins for 2017-01-09 01:54:36 +00:00
sdhci_fsl_fdt.c Introduce the SDHCI driver for NXP QorIQ Layerscape SoCs 2020-09-01 16:17:21 +00:00
sdhci_if.m Regularize my copyright notice 2019-12-04 16:56:11 +00:00
sdhci_pci.c sdhci(4): Recognize the Texas Instruments PCIxx12 card reader. 2020-08-25 18:32:43 +00:00
sdhci_xenon.c Extend device_get_property API 2022-03-30 00:24:29 +02:00
sdhci_xenon.h sdhci_xenon: split driver file into generic file and fdt parts 2022-03-30 00:24:27 +02:00
sdhci_xenon_acpi.c sdhci_xenon: add ACPI support 2022-03-30 00:24:27 +02:00
sdhci_xenon_fdt.c sdhci_xenon: split driver file into generic file and fdt parts 2022-03-30 00:24:27 +02:00