linux-mips
[Top] [All Lists]

Re: set_io_port_base()?

To: Matthew Dharm <mdharm@momenco.com>
Subject: Re: set_io_port_base()?
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Thu, 21 Feb 2002 02:57:55 +0100
Cc: Linux-MIPS <linux-mips@oss.sgi.com>
In-reply-to: <NEBBLJGMNKKEEMNLHGAIOEKBCFAA.mdharm@momenco.com>; from mdharm@momenco.com on Wed, Feb 20, 2002 at 05:36:05PM -0800
References: <NEBBLJGMNKKEEMNLHGAIOEKBCFAA.mdharm@momenco.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Wed, Feb 20, 2002 at 05:36:05PM -0800, Matthew Dharm wrote:

> Now, I'm pretty sure this has something to do with the initcall to
> set_io_port_base() and ioremap(), which are in my setup.c (copied from
> linux/arch/mips/gt64120/momenco_ocelot/setup.c and modified).  Without
> that bit of code at the bottom of that function, I don't even get
> this -- it just crashes.  So I know I need this code, but I'm just not
> certain what/how I should be using it...
> 
> My initial guess is that it's used to map some virtual address space
> onto the physical addresses needed to actually generate PCI I/O
> transactions, but that's just a guess.  If that's right, then the code
> I'm using _should_ work... I call ioremap() with the physical base and
> size, and then set_io_port_base() using the result of ioremap().

That is exactly the intended use.

  Ralf

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