'\" t .\" Title: get_phy_c45_ids .\" 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_C45_IDS" "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_c45_ids \- reads the specified addr for its 802\&.3\-c45 IDs\&. .SH "SYNOPSIS" .HP \w'int\ get_phy_c45_ids('u .BI "int get_phy_c45_ids(struct\ mii_bus\ *\ " "bus" ", int\ " "addr" ", u32\ *\ " "phy_id" ", struct\ phy_c45_device_ids\ *\ " "c45_ids" ");" .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 \fIphy_id\fR .RS 4 where to store the ID retrieved\&. .RE .PP \fIc45_ids\fR .RS 4 where to store the c45 ID information\&. .RE .SH "DESCRIPTION" .PP If the PHY devices\-in\-package appears to be valid, it and the corresponding identifiers are stored in \fIc45_ids\fR, zero is stored in \fIphy_id\fR\&. Otherwise 0xffffffff is stored in \fIphy_id\fR\&. Returns zero on success\&. .SH "COPYRIGHT" .br