I/O port access ???

Gerd Knorr kraxel at goldbach.in-berlin.de
Fri Feb 5 08:49:42 EST 1999


On Thu, 4 Feb 1999, Geert Uytterhoeven wrote:

> 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).

Can I easily figure out the machine type (at runtime) somehow?  Parse 
/proc/cpuinfo?

   Gerd



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