[Top] [All Lists]

Re: Equivalent of ioperm / iopl in linux mips ?

To: Wayne Gowcher <>
Subject: Re: Equivalent of ioperm / iopl in linux mips ?
From: Geert Uytterhoeven <>
Date: Sat, 20 Apr 2002 11:03:26 +0200 (MEST)
Cc: Linux-MIPS <>
In-reply-to: <>
On Fri, 19 Apr 2002, Wayne Gowcher wrote:
> I would like to access Io ports from a user land
> application. I found a MINI HOWTO giving an exmaple
> using ioperm / iopl and then outb, inb. Searching the
> mips source code I see that sys_ioperm returns
> "ENOSYS" function not implemented.
> Does anyone know how to implement ioperm / iopl type
> functionality on a mips system. Any example code would
> be appreciated.

Like on most architectures that use memory mapped I/O: mmap() the relevant
portion of /dev/mem and read/write to/from the mapped area.



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

<Prev in Thread] Current Thread [Next in Thread>