1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Hardware Locality (hwloc): Components and Plugins: PCI functions to be used by components</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Hardware Locality (hwloc)
 <span id="projectnumber">1.10.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Components and Plugins: PCI functions to be used by components</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2ea3e9c02eabd8c5768745c8a99d7fed"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00102.html#ga2ea3e9c02eabd8c5768745c8a99d7fed">hwloc_insert_pci_device_list</a> (struct <a class="el" href="a00029.html">hwloc_backend</a> *backend, struct <a class="el" href="a00036.html">hwloc_obj</a> *first_obj)</td></tr>
<tr class="separator:ga2ea3e9c02eabd8c5768745c8a99d7fed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4bed8bd79337d4bc84b884a6ccd14f16"><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00102.html#ga4bed8bd79337d4bc84b884a6ccd14f16">hwloc_pci_find_cap</a> (const unsigned char *config, unsigned cap)</td></tr>
<tr class="separator:ga4bed8bd79337d4bc84b884a6ccd14f16"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga749e75eeea108be0608fcba7c113f736"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00102.html#ga749e75eeea108be0608fcba7c113f736">hwloc_pci_find_linkspeed</a> (const unsigned char *config, unsigned offset, float *linkspeed)</td></tr>
<tr class="separator:ga749e75eeea108be0608fcba7c113f736"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga80fa1e3d882b5c2225dd6dd01e098ad0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00102.html#ga80fa1e3d882b5c2225dd6dd01e098ad0">hwloc_pci_prepare_bridge</a> (<a class="el" href="a00075.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> obj, const unsigned char *config)</td></tr>
<tr class="separator:ga80fa1e3d882b5c2225dd6dd01e098ad0"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga2ea3e9c02eabd8c5768745c8a99d7fed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int hwloc_insert_pci_device_list </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="a00029.html">hwloc_backend</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="a00036.html">hwloc_obj</a> * </td>
<td class="paramname"><em>first_obj</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Insert a list of PCI devices and bridges in the backend topology. </p>
<p>Insert a list of objects (either PCI device or bridges) starting at first_obj (linked by next_sibling in the topology, and ending with NULL). Objects are placed under the right bridges, and the remaining upstream bridges are then inserted in the topology by calling the get_obj_cpuset() callback to find their locality. </p>
</div>
</div>
<a class="anchor" id="ga4bed8bd79337d4bc84b884a6ccd14f16"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned hwloc_pci_find_cap </td>
<td>(</td>
<td class="paramtype">const unsigned char * </td>
<td class="paramname"><em>config</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"><em>cap</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the offset of the given capability in the PCI config space buffer. </p>
<p>This function requires a 256-bytes config space. Unknown/unavailable bytes should be set to 0xff. </p>
</div>
</div>
<a class="anchor" id="ga749e75eeea108be0608fcba7c113f736"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int hwloc_pci_find_linkspeed </td>
<td>(</td>
<td class="paramtype">const unsigned char * </td>
<td class="paramname"><em>config</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"><em>offset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float * </td>
<td class="paramname"><em>linkspeed</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Fill linkspeed by reading the PCI config space where PCI_CAP_ID_EXP is at position offset. </p>
<p>Needs 20 bytes of EXP capability block starting at offset in the config space for registers up to link status. </p>
</div>
</div>
<a class="anchor" id="ga80fa1e3d882b5c2225dd6dd01e098ad0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int hwloc_pci_prepare_bridge </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00075.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> </td>
<td class="paramname"><em>obj</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const unsigned char * </td>
<td class="paramname"><em>config</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Modify the PCI device object into a bridge and fill its attribute if a bridge is found in the PCI config space. </p>
<p>This function requires 64 bytes of common configuration header at the beginning of config. </p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 7 2014 11:56:52 for Hardware Locality (hwloc) by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
|