lspci on FreeBSD?

By default, Linux come with lspci command to print PCI hardware on the machine. On FreeBSD, you can install pciutils in order to list pci hardware and make some tweaking on PCI IRQ/slots.

Installing pciutils on FreeBSD

To install pciutils, change directory to the directory and make install;


shell> cd /usr/ports/sysutils/pciutils
shell> make install clean

Print PCI Hardware Details

Print out PCI device details witht he command below


shell> lspci


00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:02.0 Ethernet controller: 3Com Corporation 3c900 10Mbps Combo [Boomerang]
01:03.0 Non-VGA unclassified device: Unknown device 0001:0000
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

If you would like to see more details, use lspci -vvv , for more information on lspci, do man lspci

2 Responses to “lspci on FreeBSD?”

  1. chfl4gs_ Says:

    pciconf -lv will do.

  2. ab Says:

    pciconf -lv +1

Leave a Reply