Files
moslab-code/doc/source/html/classL4vbus_1_1Pci__dev.html
2025-09-12 15:55:45 +02:00

351 lines
29 KiB
HTML

<!-- HTML header for doxygen 1.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>L4Re Operating System Framework: L4vbus::Pci_dev Class Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="l4re-awesome.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 id="projectlogo"><img alt="Logo" src="L4Re_rgb_logo_quer_hg_h55.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">L4Re Operating System Framework
</div>
<div id="projectbrief">Interface and Usage Documentation</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.15.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(function(){initNavTree('classL4vbus_1_1Pci__dev.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">L4vbus::Pci_dev Class Reference<div class="ingroups"><a class="el" href="group__api__l4re.html">L4Re C++ Interface</a> &raquo; <a class="el" href="group__api__l4re__vbus.html">Vbus API</a></div></div></div>
</div><!--header-->
<div class="contents">
<p>A PCI device.
<a href="#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="vbus__pci_source.html">vbus_pci</a>&gt;</code></p>
<div id="dynsection-0" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Inheritance diagram for L4vbus::Pci_dev:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="classL4vbus_1_1Pci__dev__inherit__graph.svg" width="178" height="742"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<div id="dynsection-1" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Collaboration diagram for L4vbus::Pci_dev:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="classL4vbus_1_1Pci__dev__coll__graph.svg" width="495" height="1378"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-pub-methods" class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a20658b5eb70c4773b369a0a3c8c88582" id="r_a20658b5eb70c4773b369a0a3c8c88582"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a20658b5eb70c4773b369a0a3c8c88582">cfg_read</a> (<a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> reg, <a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> *value, <a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> width) const</td></tr>
<tr class="memdesc:a20658b5eb70c4773b369a0a3c8c88582"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read from the device's vPCI configuration space. <br /></td></tr>
<tr class="memitem:a1cc8e109638d49502d08484d05c7b244" id="r_a1cc8e109638d49502d08484d05c7b244"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1cc8e109638d49502d08484d05c7b244">cfg_write</a> (<a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> reg, <a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> value, <a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> width) const</td></tr>
<tr class="memdesc:a1cc8e109638d49502d08484d05c7b244"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to the device's vPCI configuration space. <br /></td></tr>
<tr class="memitem:ace3784b8e44e44dc14c1cee121500b89" id="r_ace3784b8e44e44dc14c1cee121500b89"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ace3784b8e44e44dc14c1cee121500b89">irq_enable</a> (unsigned char *trigger, unsigned char *polarity) const</td></tr>
<tr class="memdesc:ace3784b8e44e44dc14c1cee121500b89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the device's PCI interrupt. <br /></td></tr>
<tr class="inherit_header pub_methods_classL4vbus_1_1Device"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_classL4vbus_1_1Device')"><span class="dynarrow"><span class="arrowhead closed"></span></span>Public Member Functions inherited from <a class="el" href="classL4vbus_1_1Device.html">L4vbus::Device</a></td></tr>
<tr class="memitem:a487d5e145d3a21935b61cc231cd84cec inherit pub_methods_classL4vbus_1_1Device" id="r_a487d5e145d3a21935b61cc231cd84cec"><td class="memItemLeft" align="right" valign="top">
&#160;</td><td class="memItemRight" valign="bottom"><b>Device</b> ()</td></tr>
<tr class="memdesc:a487d5e145d3a21935b61cc231cd84cec inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new vbus device using the NULL device <a class="el" href="vbus_8h.html#a11792b1cd672d66434a0c76cfd53ca13a37b6c6ee1e53d4ddd172f43a8dedc9b0" title="NULL device.">L4VBUS_NULL</a>. <br /></td></tr>
<tr class="memitem:a3c2cb35016636efb93ca552c1c4b6b96 inherit pub_methods_classL4vbus_1_1Device" id="r_a3c2cb35016636efb93ca552c1c4b6b96"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a3c2cb35016636efb93ca552c1c4b6b96">Device</a> (<a class="el" href="classL4_1_1Cap.html">L4::Cap</a>&lt; <a class="el" href="classL4vbus_1_1Vbus.html">Vbus</a> &gt; bus, <a class="el" href="vbus__types_8h.html#a3d2ee122c9c592d768eee886d36b31cf">l4vbus_device_handle_t</a> dev)</td></tr>
<tr class="memdesc:a3c2cb35016636efb93ca552c1c4b6b96 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new vbus device using a device handle. <br /></td></tr>
<tr class="memitem:a286c71ba7f0ab66fd9d90a9e91dfa560 inherit pub_methods_classL4vbus_1_1Device" id="r_a286c71ba7f0ab66fd9d90a9e91dfa560"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classL4_1_1Cap.html">L4::Cap</a>&lt; <a class="el" href="classL4vbus_1_1Vbus.html">Vbus</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a286c71ba7f0ab66fd9d90a9e91dfa560">bus_cap</a> () const</td></tr>
<tr class="memdesc:a286c71ba7f0ab66fd9d90a9e91dfa560 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access the <a class="el" href="classL4vbus_1_1Vbus.html" title="The virtual bus (Vbus) interface.">Vbus</a> capability of the underlying virtual bus. <br /></td></tr>
<tr class="memitem:a63dcb7dba875e85f09f7ab755836bf2e inherit pub_methods_classL4vbus_1_1Device" id="r_a63dcb7dba875e85f09f7ab755836bf2e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vbus__types_8h.html#a3d2ee122c9c592d768eee886d36b31cf">l4vbus_device_handle_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a63dcb7dba875e85f09f7ab755836bf2e">dev_handle</a> () const</td></tr>
<tr class="memdesc:a63dcb7dba875e85f09f7ab755836bf2e inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access the device handle of this device. <br /></td></tr>
<tr class="memitem:a555d6ec6b3e9b8d64fb8705f2cdf7cf7 inherit pub_methods_classL4vbus_1_1Device" id="r_a555d6ec6b3e9b8d64fb8705f2cdf7cf7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a555d6ec6b3e9b8d64fb8705f2cdf7cf7">device_by_hid</a> (<a class="el" href="classL4vbus_1_1Device.html">Device</a> *child, char const *hid, int depth=L4VBUS_MAX_DEPTH, <a class="el" href="structl4vbus__device__t.html">l4vbus_device_t</a> *devinfo=0) const</td></tr>
<tr class="memdesc:a555d6ec6b3e9b8d64fb8705f2cdf7cf7 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find a device by the hardware interface identifier (HID). <br /></td></tr>
<tr class="memitem:ab8a12f148e84113f52856f29f086af50 inherit pub_methods_classL4vbus_1_1Device" id="r_ab8a12f148e84113f52856f29f086af50"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#ab8a12f148e84113f52856f29f086af50">next_device</a> (<a class="el" href="classL4vbus_1_1Device.html">Device</a> *child, int depth=L4VBUS_MAX_DEPTH, <a class="el" href="structl4vbus__device__t.html">l4vbus_device_t</a> *devinfo=0) const</td></tr>
<tr class="memdesc:ab8a12f148e84113f52856f29f086af50 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find next child following <span class="tt">child</span>. <br /></td></tr>
<tr class="memitem:a0bf2b1fdc767393f48f787c51ca20548 inherit pub_methods_classL4vbus_1_1Device" id="r_a0bf2b1fdc767393f48f787c51ca20548"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a0bf2b1fdc767393f48f787c51ca20548">device</a> (<a class="el" href="structl4vbus__device__t.html">l4vbus_device_t</a> *devinfo) const</td></tr>
<tr class="memdesc:a0bf2b1fdc767393f48f787c51ca20548 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain detailed information about a <a class="el" href="classL4vbus_1_1Vbus.html" title="The virtual bus (Vbus) interface.">Vbus</a> device. <br /></td></tr>
<tr class="memitem:a2c8e285f3430e70174615374da658589 inherit pub_methods_classL4vbus_1_1Device" id="r_a2c8e285f3430e70174615374da658589"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a2c8e285f3430e70174615374da658589">get_resource</a> (unsigned res_idx, <a class="el" href="structl4vbus__resource__t.html">l4vbus_resource_t</a> *res) const</td></tr>
<tr class="memdesc:a2c8e285f3430e70174615374da658589 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain the resource description of an individual device resource. <br /></td></tr>
<tr class="memitem:adb0724a360f168a71dba34e640c124f8 inherit pub_methods_classL4vbus_1_1Device" id="r_adb0724a360f168a71dba34e640c124f8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#adb0724a360f168a71dba34e640c124f8">is_compatible</a> (char const *cid) const</td></tr>
<tr class="memdesc:adb0724a360f168a71dba34e640c124f8 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the given device has a compatibility ID (CID) or HID that matches <em class="arg">cid</em>. <br /></td></tr>
<tr class="memitem:a64fd18112b94f67568dfd48afda5db22 inherit pub_methods_classL4vbus_1_1Device" id="r_a64fd18112b94f67568dfd48afda5db22"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a64fd18112b94f67568dfd48afda5db22">operator==</a> (<a class="el" href="classL4vbus_1_1Device.html">Device</a> const &amp;o) const</td></tr>
<tr class="memdesc:a64fd18112b94f67568dfd48afda5db22 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test if two devices are the same <a class="el" href="classL4vbus_1_1Vbus.html" title="The virtual bus (Vbus) interface.">Vbus</a> device. <br /></td></tr>
<tr class="memitem:a9f5bce4e7220814a19abb0cdea611330 inherit pub_methods_classL4vbus_1_1Device" id="r_a9f5bce4e7220814a19abb0cdea611330"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Device.html#a9f5bce4e7220814a19abb0cdea611330">operator!=</a> (<a class="el" href="classL4vbus_1_1Device.html">Device</a> const &amp;o) const</td></tr>
<tr class="memdesc:a9f5bce4e7220814a19abb0cdea611330 inherit pub_methods_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test if two <a class="el" href="classL4vbus_1_1Vbus.html" title="The virtual bus (Vbus) interface.">Vbus</a> devices are not the same. <br /></td></tr>
<tr class="inherit_header pub_methods_classL4vbus_1_1Pm"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_classL4vbus_1_1Pm')"><span class="dynarrow"><span class="arrowhead closed"></span></span>Public Member Functions inherited from <a class="el" href="classL4vbus_1_1Pm.html">L4vbus::Pm&lt; Device &gt;</a></td></tr>
<tr class="memitem:a3f6361841097aeed4f5eb44fafaaaa42 inherit pub_methods_classL4vbus_1_1Pm" id="r_a3f6361841097aeed4f5eb44fafaaaa42"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Pm.html#a3f6361841097aeed4f5eb44fafaaaa42">pm_suspend</a> () const</td></tr>
<tr class="memdesc:a3f6361841097aeed4f5eb44fafaaaa42 inherit pub_methods_classL4vbus_1_1Pm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Suspend the device. <br /></td></tr>
<tr class="memitem:ada27de826a15347a7c49f061c9eb7d30 inherit pub_methods_classL4vbus_1_1Pm" id="r_ada27de826a15347a7c49f061c9eb7d30"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classL4vbus_1_1Pm.html#ada27de826a15347a7c49f061c9eb7d30">pm_resume</a> () const</td></tr>
<tr class="memdesc:ada27de826a15347a7c49f061c9eb7d30 inherit pub_methods_classL4vbus_1_1Pm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resume the device. <br /></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-inherited" class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classL4vbus_1_1Device"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pro_attribs_classL4vbus_1_1Device')"><span class="dynarrow"><span class="arrowhead closed"></span></span>Protected Attributes inherited from <a class="el" href="classL4vbus_1_1Device.html">L4vbus::Device</a></td></tr>
<tr class="memitem:acd6f6e54b1b83cd524781ba1bf69e504 inherit pro_attribs_classL4vbus_1_1Device" id="r_acd6f6e54b1b83cd524781ba1bf69e504"><td class="memItemLeft" align="right" valign="top">
<a class="el" href="classL4_1_1Cap.html">L4::Cap</a>&lt; <a class="el" href="classL4vbus_1_1Vbus.html">Vbus</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>_bus</b></td></tr>
<tr class="memdesc:acd6f6e54b1b83cd524781ba1bf69e504 inherit pro_attribs_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="classL4vbus_1_1Vbus.html" title="The virtual bus (Vbus) interface.">Vbus</a> capability where this device is located on. <br /></td></tr>
<tr class="memitem:ac055a07e37da8daa7b3a93cc833a6434 inherit pro_attribs_classL4vbus_1_1Device" id="r_ac055a07e37da8daa7b3a93cc833a6434"><td class="memItemLeft" align="right" valign="top">
<a class="el" href="vbus__types_8h.html#a3d2ee122c9c592d768eee886d36b31cf">l4vbus_device_handle_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_dev</b></td></tr>
<tr class="memdesc:ac055a07e37da8daa7b3a93cc833a6434 inherit pro_attribs_classL4vbus_1_1Device"><td class="mdescLeft">&#160;</td><td class="mdescRight">The device handle for this device. <br /></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A PCI device. </p>
<p class="definition">Definition at line <a class="el" href="vbus__pci_source.html#l00093">93</a> of file <a class="el" href="vbus__pci_source.html">vbus_pci</a>.</p>
</div><a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Member Function Documentation</h2>
<a id="a20658b5eb70c4773b369a0a3c8c88582" name="a20658b5eb70c4773b369a0a3c8c88582"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20658b5eb70c4773b369a0a3c8c88582">&#9670;&#160;</a></span>cfg_read()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int L4vbus::Pci_dev::cfg_read </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a></td> <td class="paramname"><span class="paramname"><em>reg</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a> *</td> <td class="paramname"><span class="paramname"><em>value</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a></td> <td class="paramname"><span class="paramname"><em>width</em></span>&#160;) const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Read from the device's vPCI configuration space. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir"></td><td class="paramname">reg</td><td>Register in configuration space to read </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">value</td><td>Value that has been read </td></tr>
<tr><td class="paramdir"></td><td class="paramname">width</td><td>Width to read in bits (e.g. 8, 16, 32)</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, else failure </dd></dl>
<p class="definition">Definition at line <a class="el" href="vbus__pci_source.html#l00105">105</a> of file <a class="el" href="vbus__pci_source.html">vbus_pci</a>.</p>
<p class="reference">References <a class="el" href="vbus_source.html#l00247">L4vbus::Device::_dev</a>, <a class="el" href="vbus_source.html#l00107">L4vbus::Device::bus_cap()</a>, and <a class="el" href="group__l4vbus__pci__module.html#gaf6db088ef60ca6f09dbfb50a4b34ae32">l4vbus_pcidev_cfg_read()</a>.</p>
<div id="dynsection-2" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="classL4vbus_1_1Pci__dev_a20658b5eb70c4773b369a0a3c8c88582_cgraph.svg" width="431" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a1cc8e109638d49502d08484d05c7b244" name="a1cc8e109638d49502d08484d05c7b244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cc8e109638d49502d08484d05c7b244">&#9670;&#160;</a></span>cfg_write()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int L4vbus::Pci_dev::cfg_write </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a></td> <td class="paramname"><span class="paramname"><em>reg</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a></td> <td class="paramname"><span class="paramname"><em>value</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__l4__basic__types.html#gac1d09f3e382e711b776931f10e6e1e5a">l4_uint32_t</a></td> <td class="paramname"><span class="paramname"><em>width</em></span>&#160;) const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Write to the device's vPCI configuration space. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">reg</td><td>Register in configuration space to write </td></tr>
<tr><td class="paramname">value</td><td>Value to write </td></tr>
<tr><td class="paramname">width</td><td>Width to write in bits (e.g. 8, 16, 32)</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, else failure </dd></dl>
<p class="definition">Definition at line <a class="el" href="vbus__pci_source.html#l00121">121</a> of file <a class="el" href="vbus__pci_source.html">vbus_pci</a>.</p>
<p class="reference">References <a class="el" href="vbus_source.html#l00247">L4vbus::Device::_dev</a>, <a class="el" href="vbus_source.html#l00107">L4vbus::Device::bus_cap()</a>, and <a class="el" href="group__l4vbus__pci__module.html#gaed48c2e41fa4fc7cefeaca2b15b34aa5">l4vbus_pcidev_cfg_write()</a>.</p>
<div id="dynsection-3" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="classL4vbus_1_1Pci__dev_a1cc8e109638d49502d08484d05c7b244_cgraph.svg" width="395" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="ace3784b8e44e44dc14c1cee121500b89" name="ace3784b8e44e44dc14c1cee121500b89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace3784b8e44e44dc14c1cee121500b89">&#9670;&#160;</a></span>irq_enable()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int L4vbus::Pci_dev::irq_enable </td>
<td>(</td>
<td class="paramtype">unsigned char *</td> <td class="paramname"><span class="paramname"><em>trigger</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char *</td> <td class="paramname"><span class="paramname"><em>polarity</em></span>&#160;) const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Enable the device's PCI interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[out]</td><td class="paramname">trigger</td><td>False if interrupt is level-triggered </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">polarity</td><td>True if interrupt is of low polarity</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>On success: Interrupt line to be used, else failure </dd></dl>
<p class="definition">Definition at line <a class="el" href="vbus__pci_source.html#l00137">137</a> of file <a class="el" href="vbus__pci_source.html">vbus_pci</a>.</p>
<p class="reference">References <a class="el" href="vbus_source.html#l00247">L4vbus::Device::_dev</a>, <a class="el" href="vbus_source.html#l00107">L4vbus::Device::bus_cap()</a>, and <a class="el" href="group__l4vbus__pci__module.html#ga71117c2627ed84dc404d6fc4582b9ec5">l4vbus_pcidev_irq_enable()</a>.</p>
<div id="dynsection-4" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"><span class="dynarrow"><span class="arrowhead closed"></span></span>Here is the call graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="classL4vbus_1_1Pci__dev_ace3784b8e44e44dc14c1cee121500b89_cgraph.svg" width="400" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>l4/vbus/<a class="el" href="vbus__pci_source.html">vbus_pci</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- HTML footer for doxygen 1.9.1-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a href="namespaceL4vbus.html">L4vbus</a></li><li class="navelem"><a href="classL4vbus_1_1Pci__dev.html">Pci_dev</a></li>
<li class="footer">Generated on <span class="timestamp"></span> for L4Re Operating System Framework by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.15.0 </li>
</ul>
</div>
</body>
</html>