'\" t .\" Title: genphy_config_advert .\" 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 "GENPHY_CONFIG_ADVERT" "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" genphy_config_advert \- sanitize and advertise auto\-negotiation parameters .SH "SYNOPSIS" .HP \w'int\ genphy_config_advert('u .BI "int genphy_config_advert(struct\ phy_device\ *\ " "phydev" ");" .SH "ARGUMENTS" .PP \fIphydev\fR .RS 4 target phy_device struct .RE .SH "DESCRIPTION" .PP Writes MII_ADVERTISE with the appropriate values, after sanitizing the values to make sure we only advertise what is supported\&. Returns < 0 on error, 0 if the PHY\*(Aqs advertisement hasn\*(Aqt changed, and > 0 if it has changed\&. .SH "COPYRIGHT" .br