Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci



On Fri, Jul 23, 2004 at 04:19:07PM +1000, matthew green wrote:
>    
>    Log Message:
>    Replace the hooribly overloaded use of pci_enumerate_bus() - to find out
>    the chipset revision - by pci_find_device().
>    While the latter isn't better technically (works around the otherwise
>    hierarchical device tree), using it doesn't require PCI configuration
>    functions to support stuff which philosophically doesn't belong there.
>    So we get the hands free to restructure things for better loadable
>    driver support.
>    (Actually, since this is about chipset internal IDE interfaces where
>    the PCI device/function numbers are well known, this all is unnecessary.)
> 
> 
> pci_find_device() fails in the case of >1 matching device.  is this
> going to be a problem for this change?  (i'm not familiar with what
> viaide is but i'd expect it to be onboard ide...?)

It's looking for an ISA bridge.  Can there be more than one?

Quentin Garnier.



Home | Main Index | Thread Index | Old Index