'\" t .\" Title: phy_read_mmd_indirect .\" 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 "PHY_READ_MMD_INDIREC" "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" phy_read_mmd_indirect \- reads data from the MMD registers .SH "SYNOPSIS" .HP \w'int\ phy_read_mmd_indirect('u .BI "int phy_read_mmd_indirect(struct\ phy_device\ *\ " "phydev" ", int\ " "prtad" ", int\ " "devad" ");" .SH "ARGUMENTS" .PP \fIphydev\fR .RS 4 The PHY device bus .RE .PP \fIprtad\fR .RS 4 MMD Address .RE .PP \fIdevad\fR .RS 4 MMD DEVAD .RE .SH "DESCRIPTION" .PP it reads data from the MMD registers (clause 22 to access to clause 45) of the specified phy address\&. To read these register we have: 1) Write reg 13 // DEVAD 2) Write reg 14 // MMD Address 3) Write reg 13 // MMD Data Command for MMD DEVAD 3) Read reg 14 // Read MMD data .SH "COPYRIGHT" .br