1 .TH pcilib 7 "@TODAY@" "@VERSION@" "The PCI Utilities"
3 pcilib \- a library for accessing PCI devices
7 The PCI library (also known as \fIpcilib\fP and \fIlibpci\fP) is a portable library
8 for accessing PCI devices and their configuration space.
13 The library supports a variety of methods to access the configuration space
14 on different operating systems. By default, the first matching method in this
15 list is used, but you can specify override the decision (see the \fB-A\fP switch
22 filesystem on Linux 2.6 and newer. The standard header of the config space is available
23 to all users, the rest only to root. Supports extended configuration space, PCI domains,
24 VPD (from Linux 2.6.26), physical slots (also since Linux 2.6.26) and information on attached
30 interface supported by Linux 2.1 and newer. The standard header of the config space is available
31 to all users, the rest only to root.
34 Direct hardware access via Intel configuration mechanism 1. Available on i386 and compatibles
35 on Linux, Solaris/x86, GNU Hurd, Windows, BeOS and Haiku. Requires root privileges.
38 Direct hardware access via Intel configuration mechanism 2. Available on i386 and compatibles
39 on Linux, Solaris/x86, GNU Hurd, Windows, BeOS and Haiku. Requires root privileges. Warning: This method
40 is able to address only the first 16 devices on any bus and it seems to be very
41 unreliable in many cases.
44 Direct hardware access via Intel configuration mechanism 1 via memory-mapped I/O.
45 Mostly used on non-i386 platforms. Requires root privileges. Warning: This method
46 needs to be properly configured via the
51 Direct hardware access via Extended PCIe Intel configuration mechanism 1 via memory-mapped I/O.
52 Mostly used on non-i386 platforms. Requires root privileges. Warning: This method
53 needs to be properly configured via the
54 .B mmio-conf1-ext.addrs
60 device on FreeBSD. Requires root privileges.
63 Access method used on AIX. Requires root privileges.
68 device on NetBSD accessed using the local libpci library.
73 device on OpenBSD. Requires root privileges.
76 Read the contents of configuration registers from a file specified in the
78 parameter. The format corresponds to the output of \fIlspci\fP \fB-x\fP.
81 Access method used on Mac OS X / Darwin. Must be run as root and the system
82 must have been booted with debug=0x144.
85 Device listing on Windows systems using the Windows Configuration Manager
86 via cfgmgr32.dll system library. This method does not require any special
87 Administrator rights or privileges. Configuration Manager provides only basic
88 information about devices, assigned resources and device tree structure. There
89 is no access to the PCI configuration space but libpci either tries to use
90 other access method to access configuration space or it provides read-only
91 virtual emulation based on information from Configuration Manager. Other
92 access method can be chosen by the
94 parameter. By default the first working one is selected (if any). Starting
95 with Windows 8 (NT 6.2) it is not possible to retrieve resources from 32-bit
96 application or library on 64-bit system.
99 Access to the PCI configuration space via NT SysDbg interface on Windows
100 systems. Process needs to have Debug privilege, which local Administrators
101 have by default. Not available on 64-bit systems and neither on recent 32-bit
102 systems. Only devices from the first domain are accessible and only first
103 256 bytes of the PCI configuration space is accessible via this method.
106 Access to the PCI configuration space via Kernel Local Debugging Driver
107 kldbgdrv.sys. This driver is not part of the Windows system but is part of
108 the Microsoft WinDbg tool. It is required to have kldbgdrv.sys driver installed
109 in the system32 directory or to have windbg.exe or kd.exe binary in PATH.
110 kldbgdrv.sys driver has some restrictions. Process needs to have Debug privilege
111 and Windows system has to be booted with Debugging option. Debugging option can
112 be enabled by calling (takes effect after next boot):
115 Download links for WinDbg 6.12.2.633 standalone installer from Microsoft Windows
116 SDK for Windows 7 and .NET Framework 4:
118 amd64: https://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools_amd64/dbg_amd64.msi
120 ia64: https://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools_ia64/dbg_ia64.msi
122 x86: https://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools/dbg_x86.msi
124 Archived download links of previous WinDbg versions:
126 https://web.archive.org/web/20110221133326/https://www.microsoft.com/whdc/devtools/debugging/installx86.mspx
128 https://web.archive.org/web/20110214012715/https://www.microsoft.com/whdc/devtools/debugging/install64bit.mspx
133 The library is controlled by several parameters. They should have sensible default
134 values, but in case you want to do something unusual (or even something weird),
135 you can override them (see the \fB-O\fP switch of \fIlspci\fP).
137 .SS Parameters of specific access methods
141 Name of the bus dump file to read from.
144 Path to the FreeBSD PCI device.
147 Path to the NetBSD PCI device.
150 Path to the OpenBSD PCI device.
153 Path to the procfs bus tree.
156 Path to the sysfs device tree.
159 Path to the /dev/mem device.
162 Physical addresses of memory-mapped I/O ports for Intel configuration mechanism 1.
163 CF8 (address) and CFC (data) I/O port addresses are separated by slash and
164 multiple addresses for different PCI domains are separated by commas.
165 Format: 0xaddr1/0xdata1,0xaddr2/0xdata2,...
167 .B mmio-conf1-ext.addrs
168 Physical addresses of memory-mapped I/O ports for Extended PCIe Intel configuration mechanism 1.
169 It has same format as
174 Config space access method for win32-cfgmgr32 on Windows systems. Value
176 or emtpy string probe and choose the first access method which supports access
177 to the config space access on Windows. Value
179 only builds read-only virtual emulated config space with information from the
180 Configuration Manager.
182 .SS Parameters for resolving of ID's via DNS
185 DNS domain containing the ID database.
188 Name of the file used for caching of resolved ID's.
190 .SS Parameters for resolving of ID's via UDEV's HWDB
193 Disable use of HWDB if set to a non-zero value.
200 .BR update-pciids (8)
203 The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.