Re: New PCI code for Alpha

Martin Mares (mj@ucw.cz)
Mon, 24 Aug 1998 12:36:46 +0200


> As for the art of independant discovery, we had brought up these
> issues quite some time ago wrt. sparc64/pci machines. As you can see
> this proposed scheme never happened, and thus we use the same hacks
> for multi-bus PCI machines as you are now on the Alpha.
>
> It would be nice to have it in 2.3.x

The principial problem are the old pcibios_*_config_* functions. We have
two possibilities: either rewrite all drivers to use pci_*_config_*() instead
(which would be an awful lot of work) or make them map the (bus,devfn) pair
to struct pci_dev and call pci_*_config_*() automatically. The latter approach
would give us slower backward-compatible functions, but it's probably feasible
since they are not performance critical and we can use simple hashing, so that
the overhead will be minimal.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"The world is coming to an end...  SAVE YOUR BUFFERS!!"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html