View Single Post
Old 10-19-2002, 11:17 AM   #6
Rob Withey
Raw Wave
 
Rob Withey's Avatar
 
Join Date: Apr 2000
Location: Surrey, UK
Posts: 2,101
PCI device enumeration is non trivial. Your best reference is probably the Linux source code. In particular, pciscan.c and pciscan.h. They are linked from (amongst other places) this network driver page: http://www.scyld.com/network/tulip.html

That pci address you posted contains the vendor id (manufacturer code) and the device id (chip code) which can be used to recognised the card during enumeration. I did this once for a graphics card under VxWorks to get a linear frame buffer, and it's nasty, nasty, nasty.

I recommend you find yourself a good PCI book to understand the process if you want to go this route.


Rob
__________________
Systems retired due to new car
Rob Withey is offline   Reply With Quote