public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: convert dreamcast irq code to ctrl_in/out
Date: Tue, 26 Feb 2008 05:24:19 +0000	[thread overview]
Message-ID: <20080226052419.GG19814@linux-sh.org> (raw)
In-Reply-To: <20080220110336.7583.79505.sendpatchset@clockwork.opensource.se>

On Wed, Feb 20, 2008 at 08:03:36PM +0900, Magnus Damm wrote:
> This patch converts the dreamcast irq code to ctrl_in/out operations. There
> is no point in depending on the value of generic_io_base for code like this.
> 
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
> Acked-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
> ---
> 
>  arch/sh/boards/dreamcast/irq.c |   19 ++++++++++---------
>  1 file changed, 10 insertions(+), 9 deletions(-)
> 
> --- 0001/arch/sh/boards/dreamcast/irq.c
> +++ work/arch/sh/boards/dreamcast/irq.c	2008-02-18 17:02:08.000000000 +0900
> @@ -12,6 +12,7 @@
>  #include <linux/irq.h>
>  #include <asm/io.h>
>  #include <asm/irq.h>
> +#include <asm/addrspace.h>
>  #include <asm/dreamcast/sysasic.h>
>  
>  /* Dreamcast System ASIC Hardware Events -
> @@ -40,8 +41,8 @@
>  
>  */
>  
> -#define ESR_BASE 0x005f6900    /* Base event status register */
> -#define EMR_BASE 0x005f6910    /* Base event mask register */
> +#define ESR_BASE P2SEGADDR(0x005f6900)    /* Base event status register */
> +#define EMR_BASE P2SEGADDR(0x005f6910)    /* Base event mask register */
>  
>  /* Helps us determine the EMR group that this event belongs to: 0 = 0x6910,
>     1 = 0x6920, 2 = 0x6930; also determine the event offset */

ioremap please. P2SEGADDR is going away, so no new code should be using
it.

      reply	other threads:[~2008-02-26  5:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 11:03 [PATCH] sh: convert dreamcast irq code to ctrl_in/out Magnus Damm
2008-02-26  5:24 ` Paul Mundt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080226052419.GG19814@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox