You need to use the pcidump command. This command shows the device address, vendor, and product name of PCI devices.
| Tutorial details | |
|---|---|
| Difficulty | Easy (rss) |
| Root privileges | Yes |
| Requirements | OpenBSD |
| Estimated completion time | N/A |
pcidump syntax
The syntax is:
pcidump pcidump [options]
Examples
Type the following command
# pcidump
Sample outputs:
Domain /dev/pci0: 0:1:0: AMD Geode LX 0:1:2: AMD Geode LX Crypto 0:6:0: VIA VT6105M RhineIII 0:7:0: VIA VT6105M RhineIII 0:8:0: VIA VT6105M RhineIII 0:9:0: VIA VT6105M RhineIII 0:14:0: Realtek 8139 0:20:0: AMD CS5536 ISA 0:20:2: AMD CS5536 IDE 0:21:0: AMD CS5536 USB 0:21:1: AMD CS5536 USB
Pass the -v option to the pcidump command to see detailed information about PCI devices:
# pcidump -v
Sample outputs:
Domain /dev/pci0:
0:1:0: AMD Geode LX
0x0000: Vendor ID: 1022 Product ID: 2080
0x0004: Command: 0005 Status ID: 0220
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 33
0x000c: BIST: 00 Header Type: 80 Latency Timer: f8 Cache Line Size: 08
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1022 Product ID: 2080
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0:1:2: AMD Geode LX Crypto
0x0000: Vendor ID: 1022 Product ID: 2082
0x0004: Command: 0006 Status ID: 0220
0x0008: Class: 10 Subclass: 10 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 08
0x0010: BAR mem 32bit addr: 0xa0000000/0x00004000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1022 Product ID: 2082
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
0:6:0: VIA VT6105M RhineIII
0x0000: Vendor ID: 1106 Product ID: 3053
0x0004: Command: 0117 Status ID: 0210
0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 96
0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size: 08
0x0010: BAR io addr: 0x0000e100/0x0100
0x0014: BAR mem 32bit addr: 0xa0004000/0x00000100
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1106 Product ID: 0106
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 03 Max Lat: 08
0x0040: Capability 0x01: Power Management
0:7:0: VIA VT6105M RhineIII
0x0000: Vendor ID: 1106 Product ID: 3053
0x0004: Command: 0117 Status ID: 0210
0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 96
0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size: 08
0x0010: BAR io addr: 0x0000e200/0x0100
0x0014: BAR mem 32bit addr: 0xa0004100/0x00000100
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1106 Product ID: 0106
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 05 Min Gnt: 03 Max Lat: 08
0x0040: Capability 0x01: Power Management
0:8:0: VIA VT6105M RhineIII
0x0000: Vendor ID: 1106 Product ID: 3053
0x0004: Command: 0117 Status ID: 0210
0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 96
0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size: 08
0x0010: BAR io addr: 0x0000e300/0x0100
0x0014: BAR mem 32bit addr: 0xa0004200/0x00000100
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1106 Product ID: 0106
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 09 Min Gnt: 03 Max Lat: 08
0x0040: Capability 0x01: Power Management
0:9:0: VIA VT6105M RhineIII
0x0000: Vendor ID: 1106 Product ID: 3053
0x0004: Command: 0117 Status ID: 0210
0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 96
0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size: 08
0x0010: BAR io addr: 0x0000e400/0x0100
0x0014: BAR mem 32bit addr: 0xa0004300/0x00000100
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1106 Product ID: 0106
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0c Min Gnt: 03 Max Lat: 08
0x0040: Capability 0x01: Power Management
0:14:0: Realtek 8139
0x0000: Vendor ID: 10ec Product ID: 8139
0x0004: Command: 0107 Status ID: 0290
0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 10
0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size: 00
0x0010: BAR io addr: 0x0000e500/0x0100
0x0014: BAR mem 32bit addr: 0xa0004400/0x00000100
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 10ec Product ID: 8139
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 20 Max Lat: 40
0x0050: Capability 0x01: Power Management
0:20:0: AMD CS5536 ISA
0x0000: Vendor ID: 1022 Product ID: 2090
0x0004: Command: 0009 Status ID: 02a0
0x0008: Class: 06 Subclass: 01 Interface: 00 Revision: 03
0x000c: BIST: 00 Header Type: 80 Latency Timer: 40 Cache Line Size: 08
0x0010: BAR io addr: 0x00006000/0x2000
0x0014: BAR io addr: 0x00006100/0x0100
0x0018: BAR io addr: 0x00006200/0x0200
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1022 Product ID: 2090
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0:20:2: AMD CS5536 IDE
0x0000: Vendor ID: 1022 Product ID: 209a
0x0004: Command: 0005 Status ID: 02a0
0x0008: Class: 01 Subclass: 01 Interface: 80 Revision: 01
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 08
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR io addr: 0x0000e000/0x0010
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1022 Product ID: 209a
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0:21:0: AMD CS5536 USB
0x0000: Vendor ID: 1022 Product ID: 2094
0x0004: Command: 0006 Status ID: 0230
0x0008: Class: 0c Subclass: 03 Interface: 10 Revision: 02
0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line Size: 08
0x0010: BAR mem 32bit addr: 0xa0005000/0x00001000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1022 Product ID: 2094
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0f Min Gnt: 00 Max Lat: 00
0:21:1: AMD CS5536 USB
0x0000: Vendor ID: 1022 Product ID: 2095
0x0004: Command: 0006 Status ID: 0230
0x0008: Class: 0c Subclass: 03 Interface: 20 Revision: 02
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 08
0x0010: BAR mem 32bit addr: 0xa0006000/0x00001000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1022 Product ID: 2095
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0f Min Gnt: 00 Max Lat: 00
Other options are as follows:
-d pcidev
Specify a file to use for PCI lookups. If specified without
bus:dev:func, all PCI devices in the domain will be shown.
-r file
Reads the PCI ROM from the device specified by bus:dev:func, and
writes its contents to file.
-v Shows detailed information about PCI devices.
-x Shows a hexadecimal dump of the first 64 bytes of PCI config
space.
-xx Shows a hexadecimal dump of the full PCI config space.
-xxx Shows a hexadecimal dump of the PCIe extended config space.
bus:dev:func
Show information about the PCI device specified by the tuple
given on the command line. If the -d option is not given,
/dev/pci is used.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop


![Linux Find Out If the PCIe / AGP / VGA Driver Is Installed OR NOT [ Radeon X1550 64 bit ]](http://s0.cyberciti.org/images/rp/1/22.jpg)









{ 0 comments… add one now }