'\" t .\" Title: mdiobus_scan .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "MDIOBUS_SCAN" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mdiobus_scan \- scan a bus for MDIO devices\&. .SH "SYNOPSIS" .HP \w'struct\ phy_device\ *\ mdiobus_scan('u .BI "struct phy_device * mdiobus_scan(struct\ mii_bus\ *\ " "bus" ", int\ " "addr" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 mii_bus to scan .RE .PP \fIaddr\fR .RS 4 address on bus to scan .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br