1<html><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 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_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 name="API-struct-rio-dev"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct rio_dev — 2 RIO device info 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct rio_dev { 5 struct list_head global_list; 6 struct list_head net_list; 7 struct rio_net * net; 8 bool do_enum; 9 u16 did; 10 u16 vid; 11 u32 device_rev; 12 u16 asm_did; 13 u16 asm_vid; 14 u16 asm_rev; 15 u16 efptr; 16 u32 pef; 17 u32 swpinfo; 18 u32 src_ops; 19 u32 dst_ops; 20 u32 comp_tag; 21 u32 phys_efptr; 22 u32 em_efptr; 23 u64 dma_mask; 24 struct rio_driver * driver; 25 struct device dev; 26 struct resource riores[RIO_MAX_DEV_RESOURCES]; 27 int (* pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step); 28 u16 destid; 29 u8 hopcount; 30 struct rio_dev * prev; 31 struct rio_switch rswitch[0]; 32}; </pre></div><div class="refsect1"><a name="idp1109712748"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">global_list</span></dt><dd><p> 33 Node in list of all RIO devices 34 </p></dd><dt><span class="term">net_list</span></dt><dd><p> 35 Node in list of RIO devices in a network 36 </p></dd><dt><span class="term">net</span></dt><dd><p> 37 Network this device is a part of 38 </p></dd><dt><span class="term">do_enum</span></dt><dd><p> 39 Enumeration flag 40 </p></dd><dt><span class="term">did</span></dt><dd><p> 41 Device ID 42 </p></dd><dt><span class="term">vid</span></dt><dd><p> 43 Vendor ID 44 </p></dd><dt><span class="term">device_rev</span></dt><dd><p> 45 Device revision 46 </p></dd><dt><span class="term">asm_did</span></dt><dd><p> 47 Assembly device ID 48 </p></dd><dt><span class="term">asm_vid</span></dt><dd><p> 49 Assembly vendor ID 50 </p></dd><dt><span class="term">asm_rev</span></dt><dd><p> 51 Assembly revision 52 </p></dd><dt><span class="term">efptr</span></dt><dd><p> 53 Extended feature pointer 54 </p></dd><dt><span class="term">pef</span></dt><dd><p> 55 Processing element features 56 </p></dd><dt><span class="term">swpinfo</span></dt><dd><p> 57 Switch port info 58 </p></dd><dt><span class="term">src_ops</span></dt><dd><p> 59 Source operation capabilities 60 </p></dd><dt><span class="term">dst_ops</span></dt><dd><p> 61 Destination operation capabilities 62 </p></dd><dt><span class="term">comp_tag</span></dt><dd><p> 63 RIO component tag 64 </p></dd><dt><span class="term">phys_efptr</span></dt><dd><p> 65 RIO device extended features pointer 66 </p></dd><dt><span class="term">em_efptr</span></dt><dd><p> 67 RIO Error Management features pointer 68 </p></dd><dt><span class="term">dma_mask</span></dt><dd><p> 69 Mask of bits of RIO address this device implements 70 </p></dd><dt><span class="term">driver</span></dt><dd><p> 71 Driver claiming this device 72 </p></dd><dt><span class="term">dev</span></dt><dd><p> 73 Device model device 74 </p></dd><dt><span class="term">riores[RIO_MAX_DEV_RESOURCES]</span></dt><dd><p> 75 RIO resources this device owns 76 </p></dd><dt><span class="term">pwcback</span></dt><dd><p> 77 port-write callback function for this device 78 </p></dd><dt><span class="term">destid</span></dt><dd><p> 79 Network destination ID (or associated destid for switch) 80 </p></dd><dt><span class="term">hopcount</span></dt><dd><p> 81 Hopcount to this device 82 </p></dd><dt><span class="term">prev</span></dt><dd><p> 83 Previous RIO device connected to the current one 84 </p></dd><dt><span class="term">rswitch[0]</span></dt><dd><p> 85 struct rio_switch (if valid for this device) 86 </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> 87