Trying a Promise Ultra/66 on powerpc
Benjamin Herrenschmidt
bh40 at calva.net
Tue Aug 10 18:45:03 EST 1999
On Tue, Aug 10, 1999, Michel Lanners <mlan at cpu.lu> wrote:
>Exactly what I meant. I feel drivers shouldn't read addresses directly
>from config space, but rather from the pci_dev struct, so that any
>necessary pcibios_fixup() can be made. By the way, the same is true for
>interrupts....
I fully agree with that, except that we should keep a way for a driver to
know which offset to apply, in case it really needs to go thru config
space hacks. (There are some exceptional cases where devices are
incorrectly mapped).
I beleive we should fixup this way both io addresses and interrupt
numbers. OF dev tree is great, but we should keep things coherent with
other archs, especially for generic PCI drivers.
Finally, the pci subsystem could export a couple of function to
re-allocate an i/o or memory range on a given bus (and return the
appropriate offset) for the few drivers that need to hack with their
original mappings.
--
Perso. e-mail: <mailto:bh40 at calva.net>
Work e-mail: <mailto:benh at mipsys.com>
BenH. Web : <http://calvaweb.calvacom.fr/bh40/>
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
More information about the Linuxppc-dev
mailing list