HomeFreeBSD

miibus: Add support for mapping OFW nodes to PHY devices

Description

miibus: Add support for mapping OFW nodes to PHY devices

Create a new miibus OFW specific layer leveraging miibus_fdt.c code.
PHY drivers can than read the properties using device_get_property(9) API.
Resource(interrupt) allocation is also supported.
In order to enable this each NIC/switch driver will have to be modified,
because of how miibus is attached to the parent driver.

Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D32812

Details

Provenance
kdAuthored on Nov 15 2021, 8:55 AM
wmaCommitted on Nov 24 2021, 6:40 AM
Differential Revision
D32812: miibus: Add support for mapping OFW nodes to PHY devices
Parents
rG89fb4802f9a6: vscphy: Fill in new mii_maxspeed field
Branches
Unknown
Tags
Unknown