Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Sat, 12 Dec 2009
 09:58:46 -0700
Received: from mail1.lsil.com (mail1.lsil.com [147.145.40.21])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id nBCGwbc3020549	for
 <andy.sharp@lsi.com>; Sat, 12 Dec 2009 08:58:37 -0800
Received: from psmtp.com (na3sys009amx258.postini.com [74.125.149.142])	by
 mail1.lsil.com (8.12.11/8.12.11) with SMTP id nBCGwZqb014365	for
 <andy.sharp@lsi.com>; Sat, 12 Dec 2009 08:58:36 -0800 (PST)
Received: from source ([78.24.191.182]) by na3sys009amx258.postini.com
 ([74.125.148.14]) with SMTP;	Sat, 12 Dec 2009 08:58:36 PST
Received: from localhost.localdomain ([127.0.0.1]:35831 "EHLO
        eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)        by
 eddie.linux-mips.org with ESMTP id S1493127AbZLLQ6a (ORCPT
        <rfc822;andy.sharp@lsi.com>); Sat, 12 Dec 2009 17:58:30 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 12 Dec 2009 17:58:13
 +0100 (CET)
Received: from zmc.proxad.net ([212.27.53.206]:51632 "EHLO zmc.proxad.net"
        rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP        id
 S1493162AbZLLQ56 (ORCPT <rfc822;linux-mips@linux-mips.org>);        Sat, 12
 Dec 2009 17:57:58 +0100
Received: from localhost (localhost [127.0.0.1])        by zmc.proxad.net
 (Postfix) with ESMTP id 9C5DD341810B;        Sat, 12 Dec 2009 17:57:57 +0100
 (CET)
Received: from zmc.proxad.net ([127.0.0.1])        by localhost
 (zmc.proxad.net [127.0.0.1]) (amavisd-new, port 10024)        with ESMTP id
 IdX9+eFGyzEZ; Sat, 12 Dec 2009 17:57:57 +0100 (CET)
Received: from lenovo.localnet (florian.mimichou.net [88.178.11.95])        by
 zmc.proxad.net (Postfix) with ESMTPSA id 086E634180CD;        Sat, 12 Dec
 2009 17:57:57 +0100 (CET)
From: Florian Fainelli <ffainelli@freebox.fr>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, Maxime Bizon
	<mbizon@freebox.fr>
CC: "ralf@linux-mips.org" <ralf@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Sat, 12 Dec 2009 09:57:56 -0700
Subject: [PATCH 2/2] MIPS: add readl/write_be
Thread-Topic: [PATCH 2/2] MIPS: add readl/write_be
Thread-Index: Acp7TF7v5wK8DJllSwaUHqBh8Zl0tA==
Message-ID: <200912121757.56365.ffainelli@freebox.fr>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-scanned-by: MIMEDefang 2.39
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:89.58884/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <ffainelli@freebox.fr> [22/1] 
x-pstn-neptune: 0/0/0.00/0
x-virus-scanned: amavisd-new at 
user-agent: KMail/1.12.2 (Linux/2.6.30-2-686; KDE/4.3.2; i686; ; )
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

MIPS currently lacks the readl_be and writel_be accessors
which are required by BCM63xx for OHCI and EHCI support.
Let's define them globally for MIPS. This also fixes the
compilation of the bcm63xx defconfig against USB.

Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
---
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 436878e..65cb4e4 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -447,6 +447,9 @@ __BUILDIO(q, u64)
 #define readl_relaxed			readl
 #define readq_relaxed			readq
=20
+#define readl_be(addr)			__raw_readl((__force unsigned *)addr)
+#define writel_be(val, addr)		__raw_writel(val, (__force unsigned *)addr)
+
 /*
  * Some code tests for these symbols
  */
--=20

