Subject: Re: README: Changes to PCI, ISA
To: None <jonathan@dsg.stanford.edu,>
From: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
List: port-i386
Date: 11/28/1996 11:05:28
Excerpts from netbsd: 28-Nov-96 Re: README: Changes to PCI,.. Chris G
Demetriou@auchen (1555)

[attach PCI chipset before PCI devices?]

> In reality, it may actually make sense to do something like that,
> pre-probing the PCI bus via MD code.  The problem is to work around
> some chipset bugs, what you really want to do is pass down to all
> drivers certain values (e.g. the max burst size they should enable).

A reasonable solution without too much code doubling
could be:
Extend the semantics of set_pci_isa_bridge_callback() to:
"call this function after the PCI bus is handled", allowing
not only PCI-ISA bridges to call this.
(simply queue the callbacks in the PCI bus driver)
This way, a particular PCI device driver could call a function
provided by the PCI bus driver which tells information not
available before all PCI devs are found.
This is after attach - late, but perhaps not too late for the driver.

best regards
Matthias Drochner