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

Re: Trying a Promise Ultra/66 on powerpc

From: Geert Uytterhoeven <hidden>
Date: 1999-08-10 12:56:12

Possibly related (same subject, not in this thread)

On Tue, 10 Aug 1999, Paul Mackerras wrote:
Michel Lanners [off-list ref] wrote:
quoted
I'd vote for making I/O ports a memory addresss like any other, and
making sure drivers get this address right. See my other post for
details..
The problem is, there are PCI device drivers which assume you can get
an address in I/O space from a PCI device (either directly from the
config-space base address registers or from the pci_dev struct) and
then just do inb and outb on that port address.  That's why inb/outb
add _IO_BASE to the port number.

One way might be to adjust the base addresses in all the pci_dev
structs and then make sure all drivers use the address from the
pci_dev struct rather than reading config space themselves.
Which will make our /proc/ioports look funny.

Greetings,

						Geert

--
Geert Uytterhoeven                     Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium


[[ 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