'\" t .\" Title: get_phy_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "GET_PHY_DEVICE" "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" get_phy_device \- reads the specified PHY device and returns its \fIphy_device\fR struct .SH "SYNOPSIS" .HP \w'struct\ phy_device\ *\ get_phy_device('u .BI "struct phy_device * get_phy_device(struct\ mii_bus\ *\ " "bus" ", int\ " "addr" ", bool\ " "is_c45" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 the target MII bus .RE .PP \fIaddr\fR .RS 4 PHY address on the MII bus .RE .PP \fIis_c45\fR .RS 4 If true the PHY uses the 802\&.3 clause 45 protocol .RE .SH "DESCRIPTION" .PP Reads the ID registers of the PHY at \fIaddr\fR on the \fIbus\fR, then allocates and returns the phy_device to represent it\&. .SH "COPYRIGHT" .br