Re: [patch 2.5] VGA IO on systems with multiple PCI IO domains

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Mon Jan 27 2003 - 05:12:42 EST


On Mon, Jan 27, 2003 at 12:40:59AM +0100, Benjamin Herrenschmidt wrote:
> We probably need to introduce an equivalent of ioremap for IO space. So
> far, what we have to deal is:
>
> - Legacy ISA stuff unrelated to a PCI bus

Well, actually the ISA stuff *is* related to PCI bus on everything
newer than 486 PCs as it's connected to PCI via PCI-to-ISA bridge.
Even worse, I've found that at least two vendors offer PCI-to-ISA
expansion systems (yes, these systems are limited to IO only
on PCs because it clashes with another ISA bus in the same PCI domain),
but this means that one can have multiple ISA busses on alpha, parisc,
sparc64, ppc etc. One ISA bus per PCI IO domain. Shudder...

> - Legacy devies on a given PCI segment (VGA, serial, IDE, ...)
>
> What about some kind of ioport_remap() that would take a pci_bus and an
> port range as arguments ? If pci_bus is NULL, that would match a
> "legacy" ISA bus (non-PCI machine or default ISA bus for machines where
> that makes sense).

The problem is that vgacon driver is special - is starts very early,
before PCI subsystem is probed and initialized. So we don't have pci_bus
at this point.

Ivan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:16 EST