Subject: Re: PCI device identification
To: Matthias Scheler <tron@zhadum.de>
From: Klaus Klein <kleink@reziprozitaet.de>
List: tech-kern
Date: 10/14/2001 11:37:15
tron@zhadum.de (Matthias Scheler) writes:


> But this fix will most likely cause problems on older SiS chipsets. The
> best chance to recognize the 735 chipset is problay the host bridge:
> 
> pchb0 at pci0 dev 0 function 0
> pchb0: Silicon Integrated System SiS 735 Host Bridge (rev. 0x01)
> 
> But how do I get its version number for the IDE driver? The IDE hostadapter
> is not on the same PCI device:
> 
> pciide0 at pci0 dev 2 function 5: Silicon Integrated System 5597/5598 IDE controller (rev. 0xd0)
> pciide0: bus-master DMA support present
> 
> [...]
> 
> So how do I find the host bridge?

As the host bridge is instantiated on the bus you can use the
pci_find_device(9) function to `find' it; there's already an example
of this in the Acer portion of the pciide driver.


- Klaus