linux-mips
[Top] [All Lists]

Re: Proposal: non-PC ISA bus support

To: Geert.Uytterhoeven@sonycom.com (Geert Uytterhoeven)
Subject: Re: Proposal: non-PC ISA bus support
From: Russell King <rmk@arm.linux.org.uk>
Date: Tue, 20 Jun 2000 21:10:06 +0100 (BST)
Cc: linux-kernel@vger.rutgers.edu (Linux kernel), linuxppc-dev@lists.linuxppc.org (Linux/PPC Development), linux@cthulhu.engr.sgi.com (Linux/MIPS Development)
In-reply-to: <Pine.GSO.4.10.10006201254290.8592-100000@dandelion.sonytel.be> from "Geert Uytterhoeven" at Jun 20, 2000 01:21:10 PM
Sender: owner-linux-mips@oss.sgi.com
Geert Uytterhoeven writes:
>  1. ISA I/O space is memory mapped on many platforms (e.g. PPC and MIPS). To
>     access it from user space, you cannot plainly use inb() and friends like 
> on
>     PC, but you have to mmap() the correct region of /dev/mem first. This
>     region depends on the machine type and currently there's no simple way to
>     find out from user space.

We've already solved this on ARM.  Check out arch/arm/kernel/isa.c
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        rmk@arm.linux.org.uk      --- ---
  | | | |   http://www.arm.linux.org.uk/~rmk/aboutme.html    /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

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