<?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>struct rio_switch</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="internals.html#Structures" title="Structures" /><link rel="prev" href="internals.html" title="Chapter 4. Internals" /><link rel="next" href="API-struct-rio-switch-ops.html" title="struct rio_switch_ops" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct rio_switch</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="internals.html">Prev</a> </td><th width="60%" align="center">Structures</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-rio-switch-ops.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="API-struct-rio-switch"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct rio_switch — RIO switch info </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> struct rio_switch { struct list_head node; u8 * route_table; u32 port_ok; struct rio_switch_ops * ops; spinlock_t lock; struct rio_dev * nextdev[0]; }; </pre></div><div class="refsect1"><a id="idm139781245140192"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">node</span></dt><dd><p> Node in global list of switches </p></dd><dt><span class="term">route_table</span></dt><dd><p> Copy of switch routing table </p></dd><dt><span class="term">port_ok</span></dt><dd><p> Status of each port (one bit per port) - OK=1 or UNINIT=0 </p></dd><dt><span class="term">ops</span></dt><dd><p> pointer to switch-specific operations </p></dd><dt><span class="term">lock</span></dt><dd><p> lock to serialize operations updates </p></dd><dt><span class="term">nextdev[0]</span></dt><dd><p> Array of per-port pointers to the next attached device </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="internals.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="internals.html#Structures">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-rio-switch-ops.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 4. Internals </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">struct rio_switch_ops</span></td></tr></table></div></body></html>