Re: How to scan for PCI devices? (fwd)

Jochen Karrer (karrer@wpfd25.physik.uni-wuerzburg.de)
Tue, 22 Jul 1997 12:27:59 +0200 (MET DST)


Hi,
> >
> >The pcibios_find_class() function quite often does NOT WORK!
> >
> >I tried to use it once within the IDE driver, but had trouble
> >with buggy BIOSs.
>
> Hmmm ... that looks bad. The problem is it seems to run ok
> with every other damn PCI device. Is there anywhere a test
> program to check if my PCI-BIOS is buggy?

Yes in Kernel 2.0.30 there were introduced some functions for accessing
the configuration information without using the pci-bios.
They are named pci_direct_find_class() ..... (see bios32.c)
You can try this. If it works with this function, but not with your BIOS,
it is buggy.

Also you can read PCI-Configurationspace from user space. For example
scanpci from XFree can be used. If your chipset has a type1 configuration
space access mechanism you also can use the program pciprobe from
the devicedriver for my framegrabber mv1000drv-0.37.tgz. This does
a dump of all 256 bytes from the config space of all devices. So
you can look at the output and see if the configspace of your device is ok.

Jochen