From patchwork Wed Aug 12 12:24:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Horia_Geant=C4=83?= X-Patchwork-Id: 7000931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 18D379F373 for ; Wed, 12 Aug 2015 12:27:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 39EC0204CF for ; Wed, 12 Aug 2015 12:27:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 556EB203AA for ; Wed, 12 Aug 2015 12:27:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZPV5u-0007U4-Mc; Wed, 12 Aug 2015 12:25:22 +0000 Received: from mail-bl2on0102.outbound.protection.outlook.com ([65.55.169.102] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZPV5p-00063p-4V for linux-arm-kernel@lists.infradead.org; Wed, 12 Aug 2015 12:25:18 +0000 Received: from BN3PR0301CA0012.namprd03.prod.outlook.com (10.160.180.150) by BY1PR03MB1402.namprd03.prod.outlook.com (10.162.127.144) with Microsoft SMTP Server (TLS) id 15.1.225.19; Wed, 12 Aug 2015 12:24:54 +0000 Received: from BY2FFO11FD025.protection.gbl (2a01:111:f400:7c0c::131) by BN3PR0301CA0012.outlook.office365.com (2a01:111:e400:4000::22) with Microsoft SMTP Server (TLS) id 15.1.231.21 via Frontend Transport; Wed, 12 Aug 2015 12:24:53 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD025.mail.protection.outlook.com (10.1.15.214) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Wed, 12 Aug 2015 12:24:53 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t7CCOohV017401; Wed, 12 Aug 2015 05:24:51 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Catalin Marinas , Will Deacon Subject: [PATCH] arm64: add ioread64be and iowrite64be macros Date: Wed, 12 Aug 2015 15:24:35 +0300 Message-ID: <1439382275-21678-1-git-send-email-horia.geanta@freescale.com> X-Mailer: git-send-email 2.4.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD025; 1:gDH84oUzVfm+0utroHSvqB4uQB9Y9N9MRNOlEe8z+sILDOktW6Juri2fdLzmWY5IHQBiMm7+YvubeTOZG3MPpfMX4pk0n8ak49cuW8zSVYzOHzL078PL/hd3uGfcxSAgV4UieWjW/U/nj1JXdzVVgi1Q1IMNxFSymP7/++wdsvigtcj1bGsNdhLyey4CU9J0/2Vu+hVLarFDyKc8d/ddJeIjYGWEFUDBopNATgrsmmZuoPhvppkwWD8wD+BJSsjL6z6ds+P6QscTCgiWZzeCB8odHaJWH3jxyNDYHetT2Ik6pONxs8GSOZapLdXw+ahaEK3vk77KFqfVsVCaPytoSMNebCYGacYpmNsYPRXCugy2AcFG6hOzDuUBviFkJcN0aWth1TxX3tJDBtY9QZWUig== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(3050300001)(199003)(189002)(77096005)(68736005)(92566002)(33646002)(19580395003)(6806004)(19580405001)(77156002)(62966003)(50466002)(46102003)(5820100001)(105606002)(189998001)(85426001)(107886002)(5001960100002)(50986999)(5001830100001)(4001540100001)(81156007)(36756003)(5001860100001)(5001920100001)(97736004)(5001770100001)(104016003)(229853001)(50226001)(106466001)(87936001)(23676002)(47776003)(86362001)(64706001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1402; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1402; 2:qA02TQObx03qEyb1SJ7vO9K/ucRm4kd+iFVn+OMhFmJgQ4begxJxjGTBmc1r4IMDG9oWVYZ3cSKLPuWhPLPAs2mISvGnCEtj6hbz3Ub4ND/pt9sK7tutjbV7lEplLCZSqCw3Sd4i35QaDu0440XY9bCv3ZWxzmmGP6EDI0qxNeA=; 3:WerygFwelNBDwr1jhXbTyMxT9fhyYHEl1XCeDm+Wajz46YcCGpVCWKMw72vSuDj+nirtoev80mT+seih7DJvJG93hfBAUt6tyIpGfgM+PBEptwn7IbZ/OQ8dgEwWpQ3rgYz+DTCO3zN0EaHlsjmny0xNJqxS5dQ5tENj5C3qKr+IEISK94mqm5wMnQwVK0q8XJhG2OmTcFwJGqOTSInUOAMec0JZBWFqP75qm3LcEs0=; 25:KT69bM66+WJ0xTqfoAPYfod16ukNttuPC0gClNtzL7cCWpGYplqJmgTq8ZTB5Fgu8TyElDZImEiZk0IJrtCsTZP3HmZzHjP/84huvORcnxHed+fHsd6XfAh0fLAytUEqSCU3o9pS3Hw9zT/P/GYIlwHV022G5G+jHR/TJQ32ljC+rU4KIUgypjjt3GEOdRx2YJE2Ile9z7YTEkl0q9XYUjjaZ6fRTcHkrg4imSTgsRfgLw+c8v+QIIyIB5WMRFXE1uHs4K6BdTsd4r7vN6BDkw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1402; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1402; 20:Pt+pfm4t7j/4mvIlHs2gRbbInSQ2B6s6f7Tj+S7KVrKW0QqB+ElMfE4nX8edXdroNPBpYBSiVZDfO81mW353tHayJjxVgPYkWFC8UanVF5yuw7m7/Po08kVOjd7mb3pCARo8b0ggJz3421l2p53wxeWmAXKTsDPifiK4098LyfQuF/iQa8W4OPWaTzn4YLycvwvrkwMTHPIGz6/YdOOe71rDzNTzuP/2oRxeXbtMWEajUa70Xd/85zoziCgLTAAAm3Git+6IEhzylgjoIO8Q0Eyh/LW/p+54gLW4sIZVZfKnfcH0ZSNbfEwCC1Np9bN5HfHWpkH3EZsWeDByg/MR/xEbOGfRo4+D+gV7dpUiOIQ=; 4:krNLrA/7WOdlReM+HUzIue3/ps4ZczLPBmlSW+qquXt54HG15fhnZuBQx80ukRjI8uBJ/9W7rJcdAJadTR1w5cS+kiVl3VDxzZHqBEqvwNQH8UWScwgwvPPuC8YI7WF8Zr5iJ/J7fh3Eeo9nbdlYBhI8OMWEqeQjMowwcGaNYnScIt0QYqs1VW9yTSyeo0vk2C9PGhO6KiXJUyqVWUZWhjgrpqTAe4iyW9ML5LYHUhljQ2F5hzoGy9GpWxSRJyEXkWnYlMfKDSwsm5dOyvnXNgHVzjdNfzXBpZbo/KRm0e4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY1PR03MB1402; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1402; X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTFQUjAzTUIxNDAyOzIzOkFYU1prM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VGNBYutrIvNDI=; 20:5vR0JdJUyA4aRJ8cPf6MxnQbjeE2+yIjBDLjBiJBHn5d3gdiyrf8D/1xrB+8h19PcG7+/WYsKZzuRS9wNOCDJw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2015 12:24:53.4482 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1402 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150812_052517_550309_5C0D6425 X-CRM114-Status: GOOD ( 16.36 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Porosanu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alex Porosanu Signed-off-by: Horia Geant? --- arch/arm64/include/asm/io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 44be1e03ed65..9b6e408cfa51 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -174,13 +174,15 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size); #define iounmap __iounmap /* - * io{read,write}{16,32}be() macros + * io{read,write}{16,32,64}be() macros */ #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; }) #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; }) +#define ioread64be(p) ({ __u64 __v = be64_to_cpu((__force __be64)__raw_readq(p)); __iormb(); __v; }) #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); }) #define iowrite32be(v,p) ({ __iowmb(); __raw_writel((__force __u32)cpu_to_be32(v), p); }) +#define iowrite64be(v,p) ({ __iowmb(); __raw_writeq((__force __u64)cpu_to_be64(v), p); }) /* * Convert a physical pointer to a virtual kernel pointer for /dev/mem