public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH 2/2] unify iosapic regs definition
Date: Fri, 27 Apr 2007 06:46:36 +0000	[thread overview]
Message-ID: <873b2ms4ab.wl%takeuchi_satoru@jp.fujitsu.com> (raw)

Unify iosapic regs definition.

Append unified prefix `IOSAPIC_REG_' to IOSAPIC registers. It has no
functional change.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>

Index: linux-2.6.21/include/asm-ia64/iosapic.h
=================================--- linux-2.6.21.orig/include/asm-ia64/iosapic.h	2007-04-27 14:30:00.000000000 +0900
+++ linux-2.6.21/include/asm-ia64/iosapic.h	2007-04-27 15:03:19.000000000 +0900
@@ -2,10 +2,10 @@
 #define __ASM_IA64_IOSAPIC_H
 
 #define	IOSAPIC_REG_SELECT	0x0
-#define	IOSAPIC_WINDOW		0x10
-#define	IOSAPIC_EOI		0x40
+#define	IOSAPIC_REG_WINDOW	0x10
+#define	IOSAPIC_REG_EOI		0x40
 
-#define	IOSAPIC_VERSION		0x1
+#define	IOSAPIC_REG_VERSION	0x1
 
 /*
  * Redirection table entry
@@ -55,18 +55,18 @@
 static inline unsigned int iosapic_read(char __iomem *iosapic, unsigned int reg)
 {
 	writel(reg, iosapic + IOSAPIC_REG_SELECT);
-	return readl(iosapic + IOSAPIC_WINDOW);
+	return readl(iosapic + IOSAPIC_REG_WINDOW);
 }
 
 static inline void iosapic_write(char __iomem *iosapic, unsigned int reg, u32 val)
 {
 	writel(reg, iosapic + IOSAPIC_REG_SELECT);
-	writel(val, iosapic + IOSAPIC_WINDOW);
+	writel(val, iosapic + IOSAPIC_REG_WINDOW);
 }
 
 static inline void iosapic_eoi(char __iomem *iosapic, u32 vector)
 {
-	writel(vector, iosapic + IOSAPIC_EOI);
+	writel(vector, iosapic + IOSAPIC_REG_EOI);
 }
 
 extern void __init iosapic_system_init (int pcat_compat);
Index: linux-2.6.21/arch/ia64/kernel/iosapic.c
=================================--- linux-2.6.21.orig/arch/ia64/kernel/iosapic.c	2007-04-26 12:08:32.000000000 +0900
+++ linux-2.6.21/arch/ia64/kernel/iosapic.c	2007-04-27 15:08:14.000000000 +0900
@@ -520,7 +520,7 @@
 	 *	unsigned int reserved2 : 8;
 	 * }
 	 */
-	return iosapic_read(addr, IOSAPIC_VERSION);
+	return iosapic_read(addr, IOSAPIC_REG_VERSION);
 }
 
 static int iosapic_find_sharable_vector (unsigned long trigger,

                 reply	other threads:[~2007-04-27  6:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=873b2ms4ab.wl%takeuchi_satoru@jp.fujitsu.com \
    --to=takeuchi_satoru@jp.fujitsu.com \
    --cc=linux-ia64@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