<?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_dev</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-ops.html" title="struct rio_switch_ops" /><link rel="next" href="API-struct-rio-msg.html" title="struct rio_msg" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct rio_dev</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-rio-switch-ops.html">Prev</a> </td><th width="60%" align="center">Structures</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-rio-msg.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="API-struct-rio-dev"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct rio_dev — RIO device info </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> struct rio_dev { struct list_head global_list; struct list_head net_list; struct rio_net * net; bool do_enum; u16 did; u16 vid; u32 device_rev; u16 asm_did; u16 asm_vid; u16 asm_rev; u16 efptr; u32 pef; u32 swpinfo; u32 src_ops; u32 dst_ops; u32 comp_tag; u32 phys_efptr; u32 em_efptr; u64 dma_mask; struct rio_driver * driver; struct device dev; struct resource riores[RIO_MAX_DEV_RESOURCES]; int (* pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step); u16 destid; u8 hopcount; struct rio_dev * prev; struct rio_switch rswitch[0]; }; </pre></div><div class="refsect1"><a id="idm139781245102992"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">global_list</span></dt><dd><p> Node in list of all RIO devices </p></dd><dt><span class="term">net_list</span></dt><dd><p> Node in list of RIO devices in a network </p></dd><dt><span class="term">net</span></dt><dd><p> Network this device is a part of </p></dd><dt><span class="term">do_enum</span></dt><dd><p> Enumeration flag </p></dd><dt><span class="term">did</span></dt><dd><p> Device ID </p></dd><dt><span class="term">vid</span></dt><dd><p> Vendor ID </p></dd><dt><span class="term">device_rev</span></dt><dd><p> Device revision </p></dd><dt><span class="term">asm_did</span></dt><dd><p> Assembly device ID </p></dd><dt><span class="term">asm_vid</span></dt><dd><p> Assembly vendor ID </p></dd><dt><span class="term">asm_rev</span></dt><dd><p> Assembly revision </p></dd><dt><span class="term">efptr</span></dt><dd><p> Extended feature pointer </p></dd><dt><span class="term">pef</span></dt><dd><p> Processing element features </p></dd><dt><span class="term">swpinfo</span></dt><dd><p> Switch port info </p></dd><dt><span class="term">src_ops</span></dt><dd><p> Source operation capabilities </p></dd><dt><span class="term">dst_ops</span></dt><dd><p> Destination operation capabilities </p></dd><dt><span class="term">comp_tag</span></dt><dd><p> RIO component tag </p></dd><dt><span class="term">phys_efptr</span></dt><dd><p> RIO device extended features pointer </p></dd><dt><span class="term">em_efptr</span></dt><dd><p> RIO Error Management features pointer </p></dd><dt><span class="term">dma_mask</span></dt><dd><p> Mask of bits of RIO address this device implements </p></dd><dt><span class="term">driver</span></dt><dd><p> Driver claiming this device </p></dd><dt><span class="term">dev</span></dt><dd><p> Device model device </p></dd><dt><span class="term">riores[RIO_MAX_DEV_RESOURCES]</span></dt><dd><p> RIO resources this device owns </p></dd><dt><span class="term">pwcback</span></dt><dd><p> port-write callback function for this device </p></dd><dt><span class="term">destid</span></dt><dd><p> Network destination ID (or associated destid for switch) </p></dd><dt><span class="term">hopcount</span></dt><dd><p> Hopcount to this device </p></dd><dt><span class="term">prev</span></dt><dd><p> Previous RIO device connected to the current one </p></dd><dt><span class="term">rswitch[0]</span></dt><dd><p> struct rio_switch (if valid for this 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="API-struct-rio-switch-ops.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-msg.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct rio_switch_ops</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_msg</span></td></tr></table></div></body></html>