1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>rio_sport_is_active</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="RapidIO Subsystem Guide"><link rel="up" href="Enumeration_and_Discovery.html" title="Enumeration and Discovery"><link rel="prev" href="API-rio-setup-device.html" title="rio_setup_device"><link rel="next" href="API-rio-get-host-deviceid-lock.html" title="rio_get_host_deviceid_lock"></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">rio_sport_is_active</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-rio-setup-device.html">Prev</a> </td><th width="60%" align="center">Enumeration and Discovery</th><td width="20%" align="right"> <a accesskey="n" href="API-rio-get-host-deviceid-lock.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-rio-sport-is-active"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>rio_sport_is_active — 2 Tests if a switch port has an active connection. 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">rio_sport_is_active </b>(</code></td><td>struct rio_mport * <var class="pdparam">port</var>, </td></tr><tr><td> </td><td>u16 <var class="pdparam">destid</var>, </td></tr><tr><td> </td><td>u8 <var class="pdparam">hopcount</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">sport</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1109930588"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>port</code></em></span></dt><dd><p> 4 Master port to send transaction 5 </p></dd><dt><span class="term"><em class="parameter"><code>destid</code></em></span></dt><dd><p> 6 Associated destination ID for switch 7 </p></dd><dt><span class="term"><em class="parameter"><code>hopcount</code></em></span></dt><dd><p> 8 Hopcount to reach switch 9 </p></dd><dt><span class="term"><em class="parameter"><code>sport</code></em></span></dt><dd><p> 10 Switch port number 11 </p></dd></dl></div></div><div class="refsect1"><a name="idp1109935156"></a><h2>Description</h2><p> 12 Reads the port error status CSR for a particular switch port to 13 determine if the port has an active link. Returns 14 <code class="constant">RIO_PORT_N_ERR_STS_PORT_OK</code> if the port is active or <code class="constant">0</code> if it is 15 inactive. 16</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-rio-setup-device.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Enumeration_and_Discovery.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-rio-get-host-deviceid-lock.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">rio_setup_device</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">rio_get_host_deviceid_lock</span></td></tr></table></div></body></html> 17