Srikanth Saripalli <email@example.com> wrote:
I have a weird problem. I am trying to write a driver for an imagenation
PC-104 framegrabber. when I do pci-vvvv it displays the vendor id and
device id as 8086( INtel ) and 1223( chipset) , but when i try to get the
bus address using the function call
pci_find_device i dont get any values for bus and dev_finc . They return me
null. Any ideas
What does pci_find_device() itself return? Note, that for both those
parameters you should be passing the address of a valid integer.
int bus, dev_func;
pci_find_device(…, &bus, &dev_func );
int *bus, *dev_func;
pci_find_device( …, bus, dev_func );
Have you called pci_attach() before calling pci_find_device()?
QNX Training Services
Please followup in this newsgroup if you have further questions.