PCI device probing

I’m interested in what the most efficient way to probe for all fitted
PCI devices is. I have managed to obtain the appropriate device
information OK when I know what the vendor ID is, but I’m looking for
something more general for situations when I simply want to “see what’s
there”.

A good start would be the source to the pci utility if it is available.
For QNX4 there was show_pci and the source to that was a mine of
information. If the source to pci isn’t available, a few helpful hints
would be appreciated.

Thanks,

Geoff Roberts.

The pci utility under QNX6 is virtually the same as the show_pci utility
under QNX4. The only difference being that the pci utility uses the
pci_attach_device function call to obtain the standard configuration
information and then uses the pci_read_config functions to read the rest
of the pci information.

Previously, Geoff wrote in qdn.public.qnxrtp.os:

I’m interested in what the most efficient way to probe for all fitted
PCI devices is. I have managed to obtain the appropriate device
information OK when I know what the vendor ID is, but I’m looking for
something more general for situations when I simply want to “see what’s
there”.

A good start would be the source to the pci utility if it is available.
For QNX4 there was show_pci and the source to that was a mine of
information. If the source to pci isn’t available, a few helpful hints
would be appreciated.

Thanks,

Geoff Roberts.