freebsd-dev/sys/dev/sdhci
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
..
fsl_sdhci.c
sdhci_acpi.c
sdhci_fdt_gpio.c
sdhci_fdt_gpio.h
sdhci_fdt.c sdhci: Make ext_resources non-optional 2022-02-21 17:28:46 +01:00
sdhci_fsl_fdt.c sdhci_fsl_fdt: Add voltage switching through syscon 2022-02-22 09:58:38 +01:00
sdhci_if.m sdhci: Provide devmethod for software reset 2021-11-05 10:18:57 +01:00
sdhci_pci.c
sdhci_xenon_acpi.c sdhci: Make ext_resources non-optional 2022-02-21 17:28:46 +01:00
sdhci_xenon_fdt.c sdhci_xenon: split driver file into generic file and fdt parts 2021-09-29 16:19:28 +02:00
sdhci_xenon.c Extend device_get_property API 2022-03-10 12:11:32 +01:00
sdhci_xenon.h sdhci_xenon: split driver file into generic file and fdt parts 2021-09-29 16:19:28 +02:00
sdhci.c Revert "sdhci: extend bus_dma_tag boundary to 64-bit space" 2022-03-07 17:45:59 +01:00
sdhci.h sdhci: Provide devmethod for software reset 2021-11-05 10:18:57 +01:00