'\" t .\" Title: mdiobus_write .\" 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 "MDIOBUS_WRITE" "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_write \- Convenience function for writing a given MII mgmt register .SH "SYNOPSIS" .HP \w'int\ mdiobus_write('u .BI "int mdiobus_write(struct\ mii_bus\ *\ " "bus" ", int\ " "addr" ", u32\ " "regnum" ", u16\ " "val" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 the mii_bus struct .RE .PP \fIaddr\fR .RS 4 the phy address .RE .PP \fIregnum\fR .RS 4 register number to write .RE .PP \fIval\fR .RS 4 value to write to \fIregnum\fR .RE .SH "NOTE" .PP MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation\&. .SH "COPYRIGHT" .br