Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Aug 23, 2017 8:58 am


System administration, processes administration, jobs, cron, resources, limits, shells, ssh, telnet.

Author Message
mandrei99
Post  Post subject: How to list PCI devices in FreeBSD - pciconf  |  Posted: Mon Jul 22, 2013 9:58 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

How to list PCI devices in FreeBSD - pciconf

FreeBSD has a nice utility called pciconf that can be used to list pci devices. I will show here two arguments that make the output a little better for the reader.

Man pciconf:
Quote:
PCICONF(8) FreeBSD System Manager's Manual PCICONF(8)

NAME
pciconf -- diagnostic utility for the PCI bus

SYNOPSIS
pciconf -l [-bcv]
pciconf -a selector
pciconf -r [-b | -h] selector addr[:addr2]
pciconf -w [-b | -h] selector addr value

DESCRIPTION
The pciconf utility provides a command line interface to functionality
provided by the pci(4) ioctl(2) interface. As such, some of the func-
tions are only available to users with write access to /dev/pci, normally
only the super-user.

With the -l option, it lists all devices found by the boot probe in the
following format:

foo0@pci0:0:4:0: class=0x010000 card=0x00000000 chip=0x000f1000 rev=0x01 hdr=0x00
bar0@pci0:0:5:0: class=0x000100 card=0x00000000 chip=0x88c15333 rev=0x00 hdr=0x00
none0@pci0:0:6:0: class=0x020000 card=0x00000000 chip=0x802910ec rev=0x00 hdr=0x00
...
If the -v option is supplied, pciconf will attempt to load the ven-
dor/device information database, and print vendor, device, class and sub-
class identification strings for each device.

Code:
# pciconf -lv
hostb0@pci0:0:0:0:      class=0x060000 card=0x00000000 chip=0x71908086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 card=0x00000000 chip=0x71918086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '440BX/ZX AGPset PCI-to-PCI bridge (82443BX/ZX)'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:4:0:       class=0x060100 card=0x00000000 chip=0x71108086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'PIIX4/4E/4M ISBridgeA  (82371AB/EB/MB)'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:4:1:     class=0x010180 card=0x00000000 chip=0x71118086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'PIIX4/4E/4M IDE Controller (82371AB/EB/MB)'
    class      = mass storage
    subclass   = ATA
uhci0@pci0:0:4:2:       class=0x0c0300 card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'PIIX4/4E/4M USB Interface (82371AB/EB/MB)'
    class      = serial bus
    subclass   = USB
none0@pci0:0:4:3:       class=0x068000 card=0x00000000 chip=0x71138086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'PIIX4/4E/4M Power Management Controller (82371AB/EB/MB)'
    class      = bridge
xl0@pci0:0:11:0:        class=0x020000 card=0x905510b7 chip=0x905510b7 rev=0x30 hdr=0x00
    vendor     = '3COM Corp, Networking Division'
    device     = 'Fast Etherlink 10/100 PCI TX NIC (3C905-TX)'
    class      = network
    subclass   = ethernet
twe0@pci0:0:16:0:       class=0x010400 card=0x100113c1 chip=0x100113c1 rev=0x01 hdr=0x00
    vendor     = '3ware Inc'
    device     = 'ATA-133 Storage Controller (7000/8000 series)'
    class      = mass storage
    subclass   = RAID
em0@pci0:0:18:0:        class=0x020000 card=0x00db0e11 chip=0x10108086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Dual Port Gigabit Ethernet Controller (Copper) (82546EB)'
    class      = network
    subclass   = ethernet
em1@pci0:0:18:1:        class=0x020000 card=0x00db0e11 chip=0x10108086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Dual Port Gigabit Ethernet Controller (Copper) (82546EB)'
    class      = network
    subclass   = ethernet
vgapci0@pci0:1:0:0:     class=0x030000 card=0xff00102b chip=0x0521102b rev=0x03 hdr=0x00
    vendor     = 'Matrox Electronic Systems Ltd.'
    device     = '102B (Matrox lnc MGA-G200B)'
    class      = display
    subclass   = VGA





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "How to list PCI devices in FreeBSD - pciconf"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. How to list PCI devices in Linux - lspci

mandrei99

0

1284

Mon Jul 22, 2013 10:03 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux: list block devices UUID

debuser

0

789

Tue Mar 10, 2015 5:46 pm

debuser View the latest post

There are no new unread posts for this topic. How to list the largest files in a directory in Linux/FreeBSD

mandrei99

0

540

Thu Jan 22, 2015 5:14 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - list disks drive in the system with atacontrol and camcontrol

mandrei99

0

6987

Tue Jan 20, 2015 3:08 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux: List kernel supported filesystems

debuser

0

435

Tue Mar 10, 2015 5:45 pm

debuser View the latest post

There are no new unread posts for this topic. How to get UFS filesystem block size in FreeBSD

mandrei99

0

2035

Mon Jul 22, 2013 9:49 am

mandrei99 View the latest post

There are no new unread posts for this topic. Squid clear cache on FreeBSD

mandrei99

0

1540

Mon Mar 03, 2014 7:37 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - fuser checking processes that are using a filesystem

mandrei99

2

1188

Tue Mar 24, 2015 1:26 am

Woolmer View the latest post

There are no new unread posts for this topic. How to read UFS filesystem super block information in FreeBSD

mandrei99

0

1387

Mon Jul 22, 2013 9:52 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD slow booting: Recovering vi editor sessions

mandrei99

0

1262

Wed Feb 19, 2014 4:02 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO