linux-mips
[Top] [All Lists]

Re: [PATCH v2 04/11] MIPS: BCM63XX: introduce bcm_readll & bcm_writell.

To: Maxime Bizon <mbizon@freebox.fr>
Subject: Re: [PATCH v2 04/11] MIPS: BCM63XX: introduce bcm_readll & bcm_writell.
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Sat, 05 Nov 2011 22:54:39 +0200
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <1320430175-13725-5-git-send-email-mbizon@freebox.fr>
References: <1320430175-13725-1-git-send-email-mbizon@freebox.fr> <1320430175-13725-5-git-send-email-mbizon@freebox.fr>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
Hello.

On 04.11.2011 20:09, Maxime Bizon wrote:

Needed for upcoming 6368 CPU support.

Signed-off-by: Maxime Bizon<mbizon@freebox.fr>
---
  arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h 
b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h
index 91180fa..8bf4a67 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h
@@ -49,9 +49,11 @@
  #define bcm_readb(a)  (*(volatile unsigned char *)    BCM_REGS_VA(a))
  #define bcm_readw(a)  (*(volatile unsigned short *)   BCM_REGS_VA(a))
  #define bcm_readl(a)  (*(volatile unsigned int *)     BCM_REGS_VA(a))
+#define bcm_readll(a)  (*(volatile u64 *)              BCM_REGS_VA(a))
  #define bcm_writeb(v, a) (*(volatile unsigned char *) BCM_REGS_VA((a)) = (v))
  #define bcm_writew(v, a) (*(volatile unsigned short *) BCM_REGS_VA((a)) = (v))
  #define bcm_writel(v, a) (*(volatile unsigned int *) BCM_REGS_VA((a)) = (v))
+#define bcm_writell(v, a) (*(volatile u64 *) BCM_REGS_VA((a)) = (v))

   64-bit accessors are generally called readq()/writeq().

WBR, Sergei


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