<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>PHY Support</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs" /><link rel="up" href="ch02.html" title="Chapter 2. Network device support" /><link rel="prev" href="re299.html" title="netif_tx_lock" /><link rel="next" href="re300.html" title="phy_print_status" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">PHY Support</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re299.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Network device support</th><td width="20%" align="right"> <a accesskey="n" href="re300.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="PHY Support"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2762962"></a>PHY Support</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re300.html"><span>phy_print_status</span></a></span><span class="refpurpose"> — Convenience function to print out the current phy status </span></dt><dt><span class="refentrytitle"><a href="re301.html"><span>phy_sanitize_settings</span></a></span><span class="refpurpose"> — make sure the PHY is set to supported speed and duplex </span></dt><dt><span class="refentrytitle"><a href="re302.html"><span>phy_ethtool_sset</span></a></span><span class="refpurpose"> — generic ethtool sset function, handles all the details </span></dt><dt><span class="refentrytitle"><a href="re303.html"><span>phy_mii_ioctl</span></a></span><span class="refpurpose"> — generic PHY MII ioctl interface </span></dt><dt><span class="refentrytitle"><a href="re304.html"><span>phy_start_aneg</span></a></span><span class="refpurpose"> — start auto-negotiation for this PHY device </span></dt><dt><span class="refentrytitle"><a href="re305.html"><span>phy_enable_interrupts</span></a></span><span class="refpurpose"> — Enable the interrupts from the PHY side </span></dt><dt><span class="refentrytitle"><a href="re306.html"><span>phy_disable_interrupts</span></a></span><span class="refpurpose"> — Disable the PHY interrupts from the PHY side </span></dt><dt><span class="refentrytitle"><a href="re307.html"><span>phy_start_interrupts</span></a></span><span class="refpurpose"> — request and enable interrupts for a PHY device </span></dt><dt><span class="refentrytitle"><a href="re308.html"><span>phy_stop_interrupts</span></a></span><span class="refpurpose"> — disable interrupts from a PHY device </span></dt><dt><span class="refentrytitle"><a href="re309.html"><span>phy_stop</span></a></span><span class="refpurpose"> — Bring down the PHY link, and stop checking the status </span></dt><dt><span class="refentrytitle"><a href="re310.html"><span>phy_start</span></a></span><span class="refpurpose"> — start or restart a PHY device </span></dt><dt><span class="refentrytitle"><a href="re311.html"><span>phy_clear_interrupt</span></a></span><span class="refpurpose"> — Ack the phy device's interrupt </span></dt><dt><span class="refentrytitle"><a href="re312.html"><span>phy_config_interrupt</span></a></span><span class="refpurpose"> — configure the PHY device for the requested interrupts </span></dt><dt><span class="refentrytitle"><a href="re313.html"><span>phy_aneg_done</span></a></span><span class="refpurpose"> — return auto-negotiation status </span></dt><dt><span class="refentrytitle"><a href="re314.html"><span>phy_find_setting</span></a></span><span class="refpurpose"> — find a PHY settings array entry that matches speed & duplex </span></dt><dt><span class="refentrytitle"><a href="re315.html"><span>phy_find_valid</span></a></span><span class="refpurpose"> — find a PHY setting that matches the requested features mask </span></dt><dt><span class="refentrytitle"><a href="re316.html"><span>phy_start_machine</span></a></span><span class="refpurpose"> — start PHY state machine tracking </span></dt><dt><span class="refentrytitle"><a href="re317.html"><span>phy_stop_machine</span></a></span><span class="refpurpose"> — stop the PHY state machine tracking </span></dt><dt><span class="refentrytitle"><a href="re318.html"><span>phy_force_reduction</span></a></span><span class="refpurpose"> — reduce PHY speed/duplex settings by one step </span></dt><dt><span class="refentrytitle"><a href="re319.html"><span>phy_error</span></a></span><span class="refpurpose"> — enter HALTED state for this PHY device </span></dt><dt><span class="refentrytitle"><a href="re320.html"><span>phy_interrupt</span></a></span><span class="refpurpose"> — PHY interrupt handler </span></dt><dt><span class="refentrytitle"><a href="re321.html"><span>phy_change</span></a></span><span class="refpurpose"> — Scheduled by the phy_interrupt/timer to handle PHY changes </span></dt><dt><span class="refentrytitle"><a href="re322.html"><span>phy_state_machine</span></a></span><span class="refpurpose"> — Handle the state machine </span></dt><dt><span class="refentrytitle"><a href="re323.html"><span>get_phy_id</span></a></span><span class="refpurpose"> — reads the specified addr for its ID. </span></dt><dt><span class="refentrytitle"><a href="re324.html"><span>get_phy_device</span></a></span><span class="refpurpose"> — reads the specified PHY device and returns its <em class="parameter"><code>phy_device</code></em> struct </span></dt><dt><span class="refentrytitle"><a href="re325.html"><span>phy_device_register</span></a></span><span class="refpurpose"> — Register the phy device on the MDIO bus </span></dt><dt><span class="refentrytitle"><a href="re326.html"><span>phy_connect_direct</span></a></span><span class="refpurpose"> — connect an ethernet device to a specific phy_device </span></dt><dt><span class="refentrytitle"><a href="re327.html"><span>phy_connect</span></a></span><span class="refpurpose"> — connect an ethernet device to a PHY device </span></dt><dt><span class="refentrytitle"><a href="re328.html"><span>phy_disconnect</span></a></span><span class="refpurpose"> — disable interrupts, stop state machine, and detach a PHY device </span></dt><dt><span class="refentrytitle"><a href="re329.html"><span>phy_attach_direct</span></a></span><span class="refpurpose"> — attach a network device to a given PHY device pointer </span></dt><dt><span class="refentrytitle"><a href="re330.html"><span>phy_attach</span></a></span><span class="refpurpose"> — attach a network device to a particular PHY device </span></dt><dt><span class="refentrytitle"><a href="re331.html"><span>phy_detach</span></a></span><span class="refpurpose"> — detach a PHY device from its network device </span></dt><dt><span class="refentrytitle"><a href="re332.html"><span>genphy_config_advert</span></a></span><span class="refpurpose"> — sanitize and advertise auto-negotation parameters </span></dt><dt><span class="refentrytitle"><a href="re333.html"><span>genphy_restart_aneg</span></a></span><span class="refpurpose"> — Enable and Restart Autonegotiation </span></dt><dt><span class="refentrytitle"><a href="re334.html"><span>genphy_config_aneg</span></a></span><span class="refpurpose"> — restart auto-negotiation or write BMCR </span></dt><dt><span class="refentrytitle"><a href="re335.html"><span>genphy_update_link</span></a></span><span class="refpurpose"> — update link status in <em class="parameter"><code>phydev</code></em> </span></dt><dt><span class="refentrytitle"><a href="re336.html"><span>genphy_read_status</span></a></span><span class="refpurpose"> — check the link status and update current link state </span></dt><dt><span class="refentrytitle"><a href="re337.html"><span>phy_driver_register</span></a></span><span class="refpurpose"> — register a phy_driver with the PHY layer </span></dt><dt><span class="refentrytitle"><a href="re338.html"><span>phy_prepare_link</span></a></span><span class="refpurpose"> — prepares the PHY layer to monitor link status </span></dt><dt><span class="refentrytitle"><a href="re339.html"><span>genphy_setup_forced</span></a></span><span class="refpurpose"> — configures/forces speed/duplex from <em class="parameter"><code>phydev</code></em> </span></dt><dt><span class="refentrytitle"><a href="re340.html"><span>phy_probe</span></a></span><span class="refpurpose"> — probe and init a PHY device </span></dt><dt><span class="refentrytitle"><a href="re341.html"><span>mdiobus_alloc</span></a></span><span class="refpurpose"> — allocate a mii_bus structure </span></dt><dt><span class="refentrytitle"><a href="re342.html"><span>mdiobus_register</span></a></span><span class="refpurpose"> — bring up all the PHYs on a given bus and attach them to bus </span></dt><dt><span class="refentrytitle"><a href="re343.html"><span>mdiobus_free</span></a></span><span class="refpurpose"> — free a struct mii_bus </span></dt><dt><span class="refentrytitle"><a href="re344.html"><span>mdiobus_read</span></a></span><span class="refpurpose"> — Convenience function for reading a given MII mgmt register </span></dt><dt><span class="refentrytitle"><a href="re345.html"><span>mdiobus_write</span></a></span><span class="refpurpose"> — Convenience function for writing a given MII mgmt register </span></dt><dt><span class="refentrytitle"><a href="re346.html"><span>mdiobus_release</span></a></span><span class="refpurpose"> — mii_bus device release callback </span></dt><dt><span class="refentrytitle"><a href="re347.html"><span>mdio_bus_match</span></a></span><span class="refpurpose"> — determine if given PHY driver supports the given PHY device </span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re299.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re300.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>netif_tx_lock</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>phy_print_status</span></td></tr></table></div></body></html>