table of contents
other versions
- stretch 4.9.168-1
MDIOBUS_SCAN(9) | Network device support | MDIOBUS_SCAN(9) |
NAME¶
mdiobus_scan - scan a bus for MDIO devices.SYNOPSIS¶
struct phy_device * mdiobus_scan(struct mii_bus * bus, int addr);
ARGUMENTS¶
busmii_bus to scan
addr
address on bus to scan
DESCRIPTION¶
This function scans the MDIO bus, looking for devices which can be identified using a vendor/product ID in registers 2 and 3. Not all MDIO devices have such registers, but PHY devices typically do. Hence this function assumes anything found is a PHY, or can be treated as a PHY. Other MDIO devices, such as switches, will probably not be found during the scan.COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |