I want to know VendorID of pci devices in system.

Hi.
I have a question.
I want to display vendor ID & device ID of My pci devices in solaris system.
in windows driver...
#define VENDORID          0x1234     
#define DEVICEID          0x5678     
for( bus = 0 ; bus < 256 ; bus ++ )
for( slot = 0 ; slot < 32 ; slot ++ )
dwRet = HalGetBusData(PCIConfiguration, bus, slot, &Buffer, sizeof(PCI_COMMON_CONFIG));
if(dwRet == 0)
continue;
if(Buffer.VendorID != VENDORID)      
continue;               
if(Buffer.DeviceID != DEVICEID)               
continue;
DbgPrint("Bus:%d Slot:%d\n", Buffer.VendorID, Buffer.DeviceID);
but i don't know how search "My" pci devices in solaris system.
is there some command?
please show me the way. (by simple code)
bye..

The information is available in the output from the "prtconf -pv" command. Each PCI device is listed
with it's "vendor-id:" and "device-id:" property, as well as the "subsystem-vendor-id:" and "subsystem-id:".
Note also the value of the "compatible:" property, which is used by the solaris kernel to select a device
driver for the PCI device.
Node 0x1b4d10
assigned-addresses: 81005020.00000000.00001060.00000000.00000020
class-code: 000c0300
compatible: 'pci925,1234' + 'pci925,1234' + 'pci1106,3038' + 'pciclass,0c0300'
device-id: 00003038
devsel-speed: 00000001
interrupts: 00000001
max-latency: 00000000
min-grant: 00000000
model: 'PCI: 925,1234 - class: Universal Serial Bus'
name: 'pci925,1234'
power-consumption: 00000001.00000001
reg: 00005000.00000000.00000000.00000000.00000000.01005020.00000000.00000000.00000000.00000020
revision-id: 00000004
slot: 00000003
subsystem-id: 00001234
subsystem-vendor-id: 00000925
unit-address: 'a'
vendor-id: 00001106
You can also use my "prtpci" awk script to reformat the "prtconf -pv" output
wget http://www.tools.de/solaris/prtpci.bz2
bunzip2 prtpci.bz2
chmod +x prtpci
./prtpci -u -p pcidev.csv (optional, fetches PCI device database from http://www.pcidatabase.com)
./prtpci
the output from that script for a PCI device looks like this:
Bus,Device,Function: 0,12,0
Vendor,Device ID: 1106,3038 Rev 50 (VIA Technologies Inc, VT83C572)
Subsys. Vendor,Device: 925,1234
Class code: 0c0300 (Serial Bus, Universal Serial Bus, UHCI)
Interrupt pin: 1
assigned-addresses:
I/O 0000000000001080 0000000000000020 (@20)
Model: 'PCI: 925,1234 - class: Universal Serial Bus'
Name: 'pci925,1234'
compatible: 'pci925,1234' + 'pci925,1234' + 'pci1106,3038' + 'pciclass,0c0300'

Similar Messages

Maybe you are looking for

  • Trying to install Win 8.1 with Bootcamp on 2013 Macbook Air

    I went to the MS website today and bought a Windows 8.1 license for $119.99.  (I need this software to run some windows-only stuff for work.) Then I tried downloading it to my Macbook Air for use with Bootcamp. But what MS sold me was a Windows execu

  • Cfpdf don't generate correct thumbnails of CMYK files after installing CF 10 update 1

    Hi, We have been using cfpdf to generate a thumbnail from a 1-page PDF file since years, first with CF 8, and now with CF 10. It runs smoothly until yesterday, when we applied the Update 1 (can't assure that there is a correllation, but it's the only

  • CCM BAdi During File Upload

    Hi All, We are looking for a BADI during the file upload for Supplier catalog. The requirement is to modify the file ocntents during upload. We tried implementing BADI /CCM/CTLG_ENRICHMENT, but seems like this BADI is not called during the upload fun

  • Do i need to get a new ipod??

    So my ipod has been restored a couple times now, every once in a while it will start skipping songs, and not playing, and then show me the icon telling me to go to apple.com, it wont show up on my desktop, and the updater says it is up to date, i don

  • Can i create a 1mx1m poster using keynote??

    Can i create a 1mx1m poster using keynote??