1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>rio_mport_get_feature</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="drivers.html#Functions" title="Functions"><link rel="prev" href="API-rio-mport-get-efb.html" title="rio_mport_get_efb"><link rel="next" href="API-rio-get-asm.html" title="rio_get_asm"></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_mport_get_feature</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-rio-mport-get-efb.html">Prev</a> </td><th width="60%" align="center">Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-rio-get-asm.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-rio-mport-get-feature"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>rio_mport_get_feature — 2 query for devices' extended features 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">u32 <b class="fsfunc">rio_mport_get_feature </b>(</code></td><td>struct rio_mport * <var class="pdparam">port</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">local</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">ftr</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1109529660"></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 issue transaction 5 </p></dd><dt><span class="term"><em class="parameter"><code>local</code></em></span></dt><dd><p> 6 Indicate a local master port or remote device access 7 </p></dd><dt><span class="term"><em class="parameter"><code>destid</code></em></span></dt><dd><p> 8 Destination ID of the device 9 </p></dd><dt><span class="term"><em class="parameter"><code>hopcount</code></em></span></dt><dd><p> 10 Number of switch hops to the device 11 </p></dd><dt><span class="term"><em class="parameter"><code>ftr</code></em></span></dt><dd><p> 12 Extended feature code 13 </p></dd></dl></div></div><div class="refsect1"><a name="idp1109535220"></a><h2>Description</h2><p> 14 Tell if a device supports a given RapidIO capability. 15 Returns the offset of the requested extended feature 16 block within the device's RIO configuration space or 17 0 in case the device does not support it. Possible 18 values for <em class="parameter"><code>ftr</code></em>: 19 </p><p> 20 21 <code class="constant">RIO_EFB_PAR_EP_ID</code> LP/LVDS EP Devices 22 </p><p> 23 24 <code class="constant">RIO_EFB_PAR_EP_REC_ID</code> LP/LVDS EP Recovery Devices 25 </p><p> 26 27 <code class="constant">RIO_EFB_PAR_EP_FREE_ID</code> LP/LVDS EP Free Devices 28 </p><p> 29 30 <code class="constant">RIO_EFB_SER_EP_ID</code> LP/Serial EP Devices 31 </p><p> 32 33 <code class="constant">RIO_EFB_SER_EP_REC_ID</code> LP/Serial EP Recovery Devices 34 </p><p> 35 36 <code class="constant">RIO_EFB_SER_EP_FREE_ID</code> LP/Serial EP Free Devices 37</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-mport-get-efb.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="drivers.html#Functions">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-rio-get-asm.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">rio_mport_get_efb</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_asm</span></td></tr></table></div></body></html> 38