linux-mips
[Top] [All Lists]

Re: Equivalent of ioperm / iopl in linux mips ?

To: Wayne Gowcher <wgowcher@yahoo.com>
Subject: Re: Equivalent of ioperm / iopl in linux mips ?
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Sat, 20 Apr 2002 11:03:26 +0200 (MEST)
Cc: Linux-MIPS <linux-mips@oss.sgi.com>
In-reply-to: <20020419170605.41020.qmail@web11906.mail.yahoo.com>
Sender: owner-linux-mips@oss.sgi.com
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.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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>