1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><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 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">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 name="API-struct-rio-switch"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct rio_switch — 
2  RIO switch info
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct rio_switch {
5  struct list_head node;
6  u8 * route_table;
7  u32 port_ok;
8  struct rio_switch_ops * ops;
9  spinlock_t lock;
10  struct rio_dev * nextdev[0];
11};  </pre></div><div class="refsect1"><a name="id-1.6.3.2.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">node</span></dt><dd><p>
12Node in global list of switches
13      </p></dd><dt><span class="term">route_table</span></dt><dd><p>
14Copy of switch routing table
15      </p></dd><dt><span class="term">port_ok</span></dt><dd><p>
16Status of each port (one bit per port) - OK=1 or UNINIT=0
17      </p></dd><dt><span class="term">ops</span></dt><dd><p>
18pointer to switch-specific operations
19      </p></dd><dt><span class="term">lock</span></dt><dd><p>
20lock to serialize operations updates
21      </p></dd><dt><span class="term">nextdev[0]</span></dt><dd><p>
22Array of per-port pointers to the next attached device
23      </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>
24