Many platforms, sparc64 included, do not have an ISA IO space nor do
they provide VGA accesses at all.
If things such as XFree86 are coded for such platforms to not require
VGA accesses (the 'ati' driver is already like this when certain
build time defines are set), this could become a non-issue in this
case.
> So what would be a preferred way ? Create that fake ISA bus number and
> provide functions for looking them up, getting their IO and mem bases,
> and eventually mapping PCI busses to ISA busses ? Or does someone have a
> better idea ? The goal is to try not to change the semantics of inb/outb
> and friends so that most legacy drivers can still work using the
> "default" IO bus if they are not upgraded to the new scheme.
There is no 'fake' ISA bus number you need. There is a 'real' one,
the one on which the PCI-->ISA bridge lives, why not use that one
:-)
Then you could find such an ISA bridge, open that PCI device, then
finally perform the PCI_IOCTL_GETIOBASE thingy on it, but I don't like
this get-iobase idea at all, see my next email in this thread for why.
Later,
David S. Miller
davem@redhat.com
-
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/