freebsd-dev/sys/dev/mii
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
..
acphy.c
acphyreg.h
amphy.c
amphyreg.h
atphy.c
atphyreg.h
axphy.c
bmtphy.c
bmtphyreg.h
brgphy.c
brgphyreg.h
ciphy.c
ciphyreg.h
dp83822phy.c dp83822phy: Add missing MII_PHY_END to avoid buffer overread on probe 2022-01-25 20:34:55 +00:00
dp83867phy.c Extend device_get_property API 2022-03-10 12:11:32 +01:00
e1000phy.c
e1000phyreg.h
gentbi.c
icsphy.c
icsphyreg.h
ip1000phy.c
ip1000phyreg.h
jmphy.c
jmphyreg.h
lxtphy.c
lxtphyreg.h
micphy.c
mii_bitbang.c
mii_bitbang.h
mii_fdt.c bus_if: Add a default implementation of get_property 2022-03-10 12:11:32 +01:00
mii_fdt.h
mii_physubr.c mii_physubr: Add support for limiting PHY max speed 2021-11-24 07:40:35 +01:00
mii.c newbus: add bus_topo_assert 2021-12-09 17:04:57 -07:00
mii.h
miibus_if.m
miidevs vscphy: Add support for PHY interrupts 2021-11-24 07:40:37 +01:00
miivar.h miibus: Add support for mapping OFW nodes to PHY devices 2021-11-24 07:40:36 +01:00
nsgphy.c
nsgphyreg.h
nsphy.c
nsphyreg.h
nsphyter.c
nsphyterreg.h
pnaphy.c
qsphy.c
qsphyreg.h
rdcphy.c
rdcphyreg.h
rgephy.c
rgephyreg.h
rlphy.c
rlswitch.c
smcphy.c
smscphy.c
tdkphy.c
tdkphyreg.h
tiphy.h
truephy.c
truephyreg.h
ukphy_subr.c
ukphy.c
vscphy.c vscphy: Add support for PHY interrupts 2021-11-24 07:40:37 +01:00
xmphy.c
xmphyreg.h