I/O port access ???

Geert Uytterhoeven Geert.Uytterhoeven at cs.kuleuven.ac.be
Fri Feb 5 07:33:11 EST 1999

On Thu, 4 Feb 1999, Gerd Knorr wrote:
> Is there some way to access the I/O ports, for example the VGA registers
> of some graphics board (assuming the I/O ports are enabled in the PCI
> config space) on ppc boxes?  How can I do that with Linux?  From kernel
> space?  From user space?

You have to mmap() /dev/mem. Which address depends on the type of PPC box.
You can find the correct addres in <asm/io.h> (*_ISA_IO_BASE).



Geert Uytterhoeven                     Geert.Uytterhoeven at 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. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request at lists.linuxppc.org ]]

More information about the Linuxppc-dev mailing list