Thread (23 messages) 23 messages, 8 authors, 1999-08-12

Re: Trying a Promise Ultra/66 on powerpc

From: Benjamin Herrenschmidt <hidden>
Date: 1999-08-10 08:45:03

Possibly related (same subject, not in this thread)

On Tue, Aug 10, 1999, Michel Lanners [off-list ref] 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@calva.net>
           Work   e-mail: <mailto:benh@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.   ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help