Skip navigation.
Home
The QNX Community Portal

View topic - how get vendor/device id if i know pci device index/bus/dev?

how get vendor/device id if i know pci device index/bus/dev?

For discussion of realtime and/or embedded programming.

how get vendor/device id if i know pci device index/bus/dev?

Postby Fregl » Thu Feb 04, 2010 10:30 am

Hi. I want do my small device enumerator like enum-pci.
How i can get vendor/device id from program?
pseudcode:
pci_attach()
pci_find_class(...CLASS_VGA...) //found

found pci index/bus/dev_no/dev_func.
can i get vendor/device id for this device?
no functions in help found for such task...
Fregl
Active Member
 
Posts: 41
Joined: Thu Jun 05, 2008 10:43 am
Location: Ukraine

Return to Realtime and Embedded

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 3 guests