1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>phy_register_fixup</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch02s02.html" title="PHY Support"><link rel="prev" href="API-phy-state-machine.html" title="phy_state_machine"><link rel="next" href="API-get-phy-device.html" title="get_phy_device"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">phy_register_fixup</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-phy-state-machine.html">Prev</a>&#160;</td><th width="60%" align="center">PHY Support</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-get-phy-device.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-phy-register-fixup"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>phy_register_fixup &#8212; 
2  creates a new phy_fixup and adds it to the list
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">phy_register_fixup </b>(</code></td><td>const char * <var class="pdparam">bus_id</var>, </td></tr><tr><td>&#160;</td><td>u32 <var class="pdparam">phy_uid</var>, </td></tr><tr><td>&#160;</td><td>u32 <var class="pdparam">phy_uid_mask</var>, </td></tr><tr><td>&#160;</td><td>int (*<var class="pdparam">run</var>)
4     <code>(</code>struct phy_device *<code>)</code><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1099257428"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>bus_id</code></em></span></dt><dd><p>
5     A string which matches phydev-&gt;dev.bus_id (or PHY_ANY_ID)
6    </p></dd><dt><span class="term"><em class="parameter"><code>phy_uid</code></em></span></dt><dd><p>
7     Used to match against phydev-&gt;phy_id (the UID of the PHY)
8     It can also be PHY_ANY_UID
9    </p></dd><dt><span class="term"><em class="parameter"><code>phy_uid_mask</code></em></span></dt><dd><p>
10     Applied to phydev-&gt;phy_id and fixup-&gt;phy_uid before
11     comparison
12    </p></dd><dt><span class="term"><em class="parameter"><code>run</code></em></span></dt><dd><p>
13     The actual code to be run when a matching PHY is found
14    </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-phy-state-machine.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch02s02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-get-phy-device.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">phy_state_machine</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">get_phy_device</span></td></tr></table></div></body></html>
15