[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[75b1a338] | 7 | <!ENTITY pciutils-download-http "https://mj.ucw.cz/download/linux/pci/pciutils-&pciutils-version;.tar.gz">
|
---|
[303d9be] | 8 | <!ENTITY pciutils-download-ftp " ">
|
---|
[c4e6b84] | 9 | <!ENTITY pciutils-md5sum "1edb865de7a2de84e67508911010091b">
|
---|
| 10 | <!ENTITY pciutils-size "660 KB">
|
---|
| 11 | <!ENTITY pciutils-buildsize "4.9 MB">
|
---|
[049ffc5] | 12 | <!ENTITY pciutils-time "less than 0.1 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[4890200] | 15 | <sect1 id="pciutils" xreflabel="pciutils-&pciutils-version;">
|
---|
[a9a6837e] | 16 | <?dbhtml filename="pciutils.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[4890200] | 19 | <title>pciutils-&pciutils-version;</title>
|
---|
[a9a6837e] | 20 |
|
---|
| 21 | <indexterm zone="pciutils">
|
---|
[4890200] | 22 | <primary sortas="a-pciutils">pciutils</primary>
|
---|
[a9a6837e] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[564851b] | 26 | <title>Introduction to PCI Utils</title>
|
---|
[a9a6837e] | 27 |
|
---|
[564851b] | 28 | <para>
|
---|
| 29 | The <application>PCI Utils</application> package contains
|
---|
| 30 | a set of programs for listing PCI devices, inspecting
|
---|
| 31 | their status and setting their configuration registers.
|
---|
| 32 | </para>
|
---|
[a9a6837e] | 33 |
|
---|
[aa996df1] | 34 | &lfs122_checked;
|
---|
[fd91fea] | 35 |
|
---|
[a9a6837e] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[564851b] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&pciutils-download-http;"/>
|
---|
| 41 | </para>
|
---|
[2a05c87] | 42 | </listitem>
|
---|
[a9a6837e] | 43 | <listitem>
|
---|
[564851b] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&pciutils-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[a9a6837e] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[564851b] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &pciutils-md5sum;
|
---|
| 51 | </para>
|
---|
[a9a6837e] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[564851b] | 54 | <para>
|
---|
| 55 | Download size: &pciutils-size;
|
---|
| 56 | </para>
|
---|
[a9a6837e] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[564851b] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &pciutils-buildsize;
|
---|
| 61 | </para>
|
---|
[a9a6837e] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[564851b] | 64 | <para>
|
---|
| 65 | Estimated build time: &pciutils-time;
|
---|
| 66 | </para>
|
---|
[a9a6837e] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
[eae7f55] | 69 |
|
---|
| 70 | <bridgehead renderas="sect3">pciutils Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 73 | <para role="recommended">
|
---|
[1c6da08] | 74 | <xref role="runtime" linkend="hwdata"/> (runtime)
|
---|
[eae7f55] | 75 | </para>
|
---|
[a9a6837e] | 76 |
|
---|
[2969aa8] | 77 | </sect2>
|
---|
| 78 |
|
---|
[143ed74] | 79 | <sect2 role="installation">
|
---|
[564851b] | 80 | <title>Installation of PCI Utils</title>
|
---|
[143ed74] | 81 |
|
---|
[1c6da08] | 82 | <para>
|
---|
| 83 | Prevent the installation of the <filename>pci.ids</filename> file
|
---|
| 84 | to avoid a conflict with the <xref linkend='hwdata'/> package:
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
[ce79bbe1] | 87 | <screen><userinput>sed -r '/INSTALL/{/PCI_IDS|update-pciids /d; s/update-pciids.8//}' \
|
---|
[1c6da08] | 88 | -i Makefile</userinput></screen>
|
---|
| 89 |
|
---|
[c503fad7] | 90 | <para>
|
---|
[564851b] | 91 | Install <application>PCI Utils</application> by
|
---|
[c503fad7] | 92 | running the following commands:
|
---|
| 93 | </para>
|
---|
[a9a6837e] | 94 |
|
---|
[94f93146] | 95 | <screen><userinput>make PREFIX=/usr \
|
---|
| 96 | SHAREDIR=/usr/share/hwdata \
|
---|
[857e2fb] | 97 | SHARED=yes</userinput></screen>
|
---|
[a9a6837e] | 98 |
|
---|
[c503fad7] | 99 | <para>
|
---|
| 100 | This package does not come with a test suite.
|
---|
| 101 | </para>
|
---|
[f6f06932] | 102 |
|
---|
[c503fad7] | 103 | <para>
|
---|
| 104 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 105 | </para>
|
---|
[a9a6837e] | 106 |
|
---|
[7089c646] | 107 | <screen role="root"><userinput>make PREFIX=/usr \
|
---|
[94f93146] | 108 | SHAREDIR=/usr/share/hwdata \
|
---|
| 109 | SHARED=yes \
|
---|
| 110 | install install-lib &&
|
---|
[5f26d66f] | 111 |
|
---|
[857e2fb] | 112 | chmod -v 755 /usr/lib/libpci.so</userinput></screen>
|
---|
[fd91fea] | 113 |
|
---|
[1c6da08] | 114 | <para>
|
---|
[c10b619] | 115 | Next, install the <xref linkend='hwdata'/> package for the
|
---|
[1c6da08] | 116 | <filename>pci.ids</filename> file.
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
[a9a6837e] | 119 | </sect2>
|
---|
| 120 |
|
---|
[0829916] | 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
[c503fad7] | 124 | <para>
|
---|
| 125 | <parameter>SHARED=yes</parameter>: This parameter enables building of
|
---|
[d900e405] | 126 | the shared library instead of the static one.
|
---|
[c503fad7] | 127 | </para>
|
---|
[2a05c87] | 128 |
|
---|
[c0913c4] | 129 | </sect2>
|
---|
| 130 |
|
---|
[a9a6837e] | 131 | <sect2 role="content">
|
---|
| 132 | <title>Contents</title>
|
---|
| 133 |
|
---|
| 134 | <segmentedlist>
|
---|
| 135 | <segtitle>Installed Programs</segtitle>
|
---|
[1ed12e2d] | 136 | <segtitle>Installed Library</segtitle>
|
---|
| 137 | <segtitle>Installed Directory</segtitle>
|
---|
[a9a6837e] | 138 |
|
---|
| 139 | <seglistitem>
|
---|
[564851b] | 140 | <seg>
|
---|
[c10b619] | 141 | lspci, pcilmr, and setpci
|
---|
[564851b] | 142 | </seg>
|
---|
| 143 | <seg>
|
---|
| 144 | libpci.so
|
---|
| 145 | </seg>
|
---|
| 146 | <seg>
|
---|
[c10b619] | 147 | /usr/include/pci
|
---|
[564851b] | 148 | </seg>
|
---|
[a9a6837e] | 149 | </seglistitem>
|
---|
| 150 | </segmentedlist>
|
---|
| 151 |
|
---|
| 152 | <variablelist>
|
---|
| 153 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 154 | <?dbfo list-presentation="list"?>
|
---|
| 155 | <?dbhtml list-presentation="table"?>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="lspci">
|
---|
| 158 | <term><command>lspci</command></term>
|
---|
| 159 | <listitem>
|
---|
[564851b] | 160 | <para>
|
---|
[73fe507] | 161 | is a utility for displaying information about all PCI buses
|
---|
[4c24eb0a] | 162 | in the system and all devices connected to them
|
---|
[564851b] | 163 | </para>
|
---|
[a9a6837e] | 164 | <indexterm zone="pciutils lspci">
|
---|
| 165 | <primary sortas="b-lspci">lspci</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
[c10b619] | 170 | <varlistentry id="pcilmr">
|
---|
| 171 | <term><command>pcilmr</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>
|
---|
| 174 | is a utility for margining PCIe links
|
---|
| 175 | </para>
|
---|
| 176 | <indexterm zone="pciutils pcilmr">
|
---|
| 177 | <primary sortas="b-pcilmr">pcilmr</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
[a9a6837e] | 182 | <varlistentry id="setpci">
|
---|
| 183 | <term><command>setpci</command></term>
|
---|
| 184 | <listitem>
|
---|
[564851b] | 185 | <para>
|
---|
[4c24eb0a] | 186 | is a utility for querying and configuring PCI devices
|
---|
[564851b] | 187 | </para>
|
---|
[a9a6837e] | 188 | <indexterm zone="pciutils setpci">
|
---|
| 189 | <primary sortas="b-setpci">setpci</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
[38ec4bf] | 194 | <varlistentry id="libpci">
|
---|
[4890200] | 195 | <term><filename class="libraryfile">libpci.so</filename></term>
|
---|
[38ec4bf] | 196 | <listitem>
|
---|
[564851b] | 197 | <para>
|
---|
[0feefc9f] | 198 | is a library that allows applications to access the PCI
|
---|
[4c24eb0a] | 199 | subsystem
|
---|
[564851b] | 200 | </para>
|
---|
[38ec4bf] | 201 | <indexterm zone="pciutils libpci">
|
---|
[2a05c87] | 202 | <primary sortas="c-libpci">libpci.so</primary>
|
---|
[38ec4bf] | 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
[a9a6837e] | 207 | </variablelist>
|
---|
| 208 |
|
---|
| 209 | </sect2>
|
---|
[f45b1953] | 210 |
|
---|
| 211 | </sect1>
|
---|