pci_find_device

Hi All,

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

Thanks
Srikanth

Srikanth

You may want to put a portion of your code here so that we can see if
you’re missing something.

Regards…

Miguel.

Srikanth Saripalli wrote:

Hi All,

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

Thanks
Srikanth

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

Srikanth Saripalli <srik@usc.edu> wrote:

Hi All,

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.

e.g.
int bus, dev_func;

pci_find_device(…, &bus, &dev_func );

NOT

int *bus, *dev_func;

pci_find_device( …, bus, dev_func );

Have you called pci_attach() before calling pci_find_device()?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.