1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct rio_switch_ops</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="API-struct-rio-switch.html" title="struct rio_switch"><link rel="next" href="API-struct-rio-dev.html" title="struct rio_dev"></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_ops</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-rio-switch.html">Prev</a> </td><th width="60%" align="center">Structures</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-rio-dev.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-rio-switch-ops"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct rio_switch_ops — 2 Per-switch operations 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct rio_switch_ops { 5 struct module * owner; 6 int (* add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 route_port); 7 int (* get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 *route_port); 8 int (* clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table); 9 int (* set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 sw_domain); 10 int (* get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 *sw_domain); 11 int (* em_init) (struct rio_dev *dev); 12 int (* em_handle) (struct rio_dev *dev, u8 swport); 13}; </pre></div><div class="refsect1"><a name="idp1109701772"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">owner</span></dt><dd><p> 14 The module owner of this structure 15 </p></dd><dt><span class="term">add_entry</span></dt><dd><p> 16 Callback for switch-specific route add function 17 </p></dd><dt><span class="term">get_entry</span></dt><dd><p> 18 Callback for switch-specific route get function 19 </p></dd><dt><span class="term">clr_table</span></dt><dd><p> 20 Callback for switch-specific clear route table function 21 </p></dd><dt><span class="term">set_domain</span></dt><dd><p> 22 Callback for switch-specific domain setting function 23 </p></dd><dt><span class="term">get_domain</span></dt><dd><p> 24 Callback for switch-specific domain get function 25 </p></dd><dt><span class="term">em_init</span></dt><dd><p> 26 Callback for switch-specific error management init function 27 </p></dd><dt><span class="term">em_handle</span></dt><dd><p> 28 Callback for switch-specific error management handler function 29 </p></dd></dl></div></div><div class="refsect1"><a name="idp1109708020"></a><h2>Description</h2><p> 30 Defines the operations that are necessary to initialize/control 31 a particular RIO switch device. 32</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-rio-switch.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-dev.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct rio_switch</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">struct rio_dev</span></td></tr></table></div></body></html> 33