prtpci: digest and display prtconf -pv output

Here's a tool (prtpci.tar.Z) for digesting PCI information from prtconf -pv output.

There are several tools around that will show you a PCI manifest; this one

  • is safe, doesn't poke at machine ports to do its job
  • can be run offline with a captured prtconf -pv file
  • makes use of the common "pci.ids" database from Sourceforge, and includes a script to update that database periodically
  • decodes the Base Address Registers (BARs) and slot-names properties
  • is written in Perl for easy hackability

It's useful to me, and I hope it is useful to you. Here's a little sample output:

3/0xb/0 1095,3114 (1095,3114)
Silicon Image, Inc. (formerly CMD Technology Inc) SiI 3114 [SATALink/SATARaid] Serial ATA Controller
class 1/80/0: Mass storage controller/Unknown mass storage controller
BAR[0]: I/O 0xbc00 0x8
BAR[1]: I/O 0xb802 0x1
BAR[2]: I/O 0xb400 0x8
BAR[3]: I/O 0xb002 0x1
BAR[4]: I/O 0xac00 0x10
BAR[5]: I/O 0xfc8ffc00 0x400
ROM: 32-bit memory 0xfc800000 0x80000

3/0xc/0 104c,8023 (10f1,2885)
Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
class c/0/10: Serial bus controller/FireWire (IEEE 1394)
BAR[0]: 32-bit memory 0xfc8ff000 0x800
BAR[1]: 32-bit memory 0xfc8f8000 0x4000
Comments:

Dis is da shiznit bomb, yo!

Posted by Da SethMeister on March 17, 2005 at 11:24 AM PST #

Sweetness! I'll have to blog about this soon.

Posted by Binary Crusader on March 17, 2005 at 02:45 PM PST #

Dang I wish I'd thought of this first!

Posted by Smackdown in Da Hood on March 18, 2005 at 06:53 AM PST #

The link doesn't work, it says ftp:// where it should be http://; in other words, using http://playground.sun.com/pub/dmick/prtpci.tar.Z worked.

Posted by R. Berber on April 11, 2006 at 07:55 AM PDT #

Hi Dan, I'm guessing based on your blog contents that you've been able to get the Si3114 pci card to work as a JBOD controller under Solaris 10. I've had no luck with either Solaris 10 10/06 or Solaris Nevada 55. Under Nevada, I actually get a system freeze when I use the 'format' command to enumerate device id's. I've attempted to add the device info to /etc/driver_aliases (there's already and entry in /boot/solaris/driverdb/master), but to no avail. Any ideas? cheers, blake/

Posted by Blake Irvin on May 02, 2007 at 04:43 AM PDT #

Thanks for the tool. It's very good.

Posted by Jacky on June 07, 2007 at 07:19 PM PDT #

+1. Very easy and nice to use. I just got a new laptop and I was trying to parse my prtconf results tree - your script simple did that for me :)

Posted by Stefan Parvu on November 04, 2007 at 10:37 PM PST #

Hey, any chance you can include a proxy server parameter to the pci database update?

It looks like the script getnew.pci.ids needs to be modified. The sourceforge resources is under v2.2.

Posted by Pedro Cortez on June 26, 2009 at 07:38 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12614486

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today