Message ID | 1462382190-11937-1-git-send-email-horia.geanta@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 5549E9F30C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 4 May 2016 17:18:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A300203B4 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 4 May 2016 17:18:45 +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 A4E3F203B8 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 4 May 2016 17:18:44 +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 1ay0Q3-0005G6-CN; Wed, 04 May 2016 17:17:03 +0000 Received: from mail-bn1on0079.outbound.protection.outlook.com ([157.56.110.79] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ay0Q0-0005CZ-46 for linux-arm-kernel@lists.infradead.org; Wed, 04 May 2016 17:17:01 +0000 Received: from BN3PR0301CA0050.namprd03.prod.outlook.com (10.160.152.146) by CY1PR0301MB1227.namprd03.prod.outlook.com (10.161.212.149) with Microsoft SMTP Server (TLS) id 15.1.485.9; Wed, 4 May 2016 17:16:38 +0000 Received: from BY2FFO11FD041.protection.gbl (2a01:111:f400:7c0c::167) by BN3PR0301CA0050.outlook.office365.com (2a01:111:e400:401e::18) with Microsoft SMTP Server (TLS) id 15.1.485.9 via Frontend Transport; Wed, 4 May 2016 17:16:37 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.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 BY2FFO11FD041.mail.protection.outlook.com (10.1.14.226) with Microsoft SMTP Server (TLS) id 15.1.485.4 via Frontend Transport; Wed, 4 May 2016 17:16:36 +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 u44HGXEt009597; Wed, 4 May 2016 10:16:33 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= <horia.geanta@nxp.com> To: Herbert Xu <herbert@gondor.apana.org.au>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com> Subject: [PATCH 2/7] arm64: add io{read,write}64be accessors Date: Wed, 4 May 2016 20:16:30 +0300 Message-ID: <1462382190-11937-1-git-send-email-horia.geanta@nxp.com> X-Mailer: git-send-email 2.4.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131068557973054574; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(2870700001)(104016004)(106466001)(5008740100001)(77096005)(6806005)(189998001)(105606002)(4326007)(81166005)(586003)(5001770100001)(8936002)(1220700001)(2906002)(19580405001)(50226002)(5820100001)(47776003)(19580395003)(229853001)(50986999)(85426001)(92566002)(87936001)(36756003)(86362001)(33646002)(23676002)(50466002)(7059030)(142933001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1227; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD041; 1:LQjz+0pV9CvHi4XUTCIeMI84BkTpSIo0NUicZJIa80dZ42XU6so870/rEg7Y9SVTrhAZLzHp0kMcBAFY9nkpBfjs4l7jkwUKcQ222V3rmGaO6vYHiHBpjIG9FD/3YaajpS4FKG8GTnrpj8mOpUsWA+iwBZ0iURCra6owWYPHdKXzLdPB5jL7srXLfJp4oh/bqioa7p+Ob+6JuGb/6sTSJPeGRm+O+IvIW/OxV+G+GrO3KyeRuLGG9hKcJhChg0xrB3Z+2Bm32MRKKFJeIpXiwH8CrR9+oqw2C+eniy8tMUTw6BSXRZpeFbHja91AdyvBo4W+KFcvrLXw72kYtvvsChy8jfMpyEeBYN5J/BBpoJpqRGrDLj2ldGyytXa/OyzpW13MvhybttBwbmf6wIBwQcSgZloBSn/e+xlUFOkUxX4lXTIBEG2cbZkU6YUNRqHxxNix4DxU5IhMwTP5SiIoNWPQQGP4Dz9IeKstAlE9TeNgps+1CMW27JeNUqEIh0yywzZqc9V5Dlq2q857QNr2AuwhzZAb3m7aIkuag26K1Abf0rgnKPZaj/q7XdooDkHZLnud+Htw+TrHcgpCGs6Pe5d/isTiJ2CKKiyxNpoB/eRyv2V8kUHY1yPhV4lXSzF1I0ROJW0NVLL4x3h8TTfgGHOkWMHKuWg6ipOfSueLAb0cfFg7PjyWOpvrtjGMUx2lT6drkCvdk4X8QE/FFf4wpiYT3oo6p9vu2/vCW5EylSk= X-MS-Office365-Filtering-Correlation-Id: d252199f-1bba-43af-d96e-08d3743fd998 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1227; 2:EoL5rm/nwV2OWFMBudz0Bwdn4DFlUmO1HS6lsbexTI14wM8ws3f9mVjcIwgFfCZ2aDQI2metu7wAsCRvT6e0iHpnEaaA4cpxnd9OU1rg9edNd6CyMZJ5sJaRU1L7dd8Cz3LULAJBSGYQJeaNca9aY/7j3FQ0hVOIrYMINtz07jmFz/R08yeck+KfLs91ALbb; 3:ULS1mW7v86mQmE8oOrg+OeGfPjFPPwehUyzheed3DYP8oAfpyY71BsxABV61G6z6DiMe09kddw+ez2611qe7nu37dwfomdk5bstslha4ZqZ26xHjLCcfl0Bm0NWdpC56vklvRGkRp+eIn2s95SGjQY3R6+eLct2AaOg82EyJvRjjpkO07UHjRC8WAAOuVqfWagVkpohB7c11ZHdYcJw2THZYmsjRvFVtLI0WTF66Mac=; 25:myc/uJYgUXnugfXexnXXLRtZuGGQD7iWhnfhu43ffdUuJxzjAs95cP+MO0v9lCUqokqABJKn4PWJISlfRMsFREMRmh5p+zhMhXPJDMCLjHJnTrrIxKqYn0kzKlL9WhfQEUo8T7nSC9v3TX8ir5uBrfYhh/Yn5dxf8i4Z7OZktdCL5f5OjYsHtwveW9Du9vSC/DvDnaVWHa7SEWbzFBRM8q80vXcrVZTznTKmKg0uvBzK/eDsgZQEHyQbVQ++vgKEpEDNZSK3ZIZCM7KamcdHHPDgsZwnT9jGQYZx5clUKJRT7Q9aSVJQpA3z5quI2YbrfBRhAf/beDxU4Judlk+fN8UOFD45OhfETlFns1Hk1aZSVM65vz06+PqlpoLw60YfEt7tvmXpDuJfD4fRvodtHxQ+ezNqetZ6XddRZg3pWu6w5htgI929Xz4mMnThFX2h X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1227; X-Microsoft-Antispam-PRVS: <CY1PR0301MB12276813DBCA867C183A67E7987B0@CY1PR0301MB1227.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13018025)(5005006)(13023025)(13015025)(13017025)(8121501046)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB1227; BCL:0; PC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-8?B?Qm9QVkZpb1M5QnlFNXJKV0kyMG5hNFFXZGpYbnAvaU5NcWQ5emtZN1JqSzdK?= =?utf-8?B?MUpFRTNTeWcwK041QlRDTU5kRENWV3lua3FtbUY4TWo0Q2VIUXp0eG9hMnl3?= =?utf-8?B?QzZIZzFqdFRpMEZSYnlpaCtHY0FVMFFLT0dwZ1IvbFE9PQ==?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1227; 5:NCMqoX0CbCoZxpefk2bTtsNXjtXUDQ65AbLmzTX1oWjaTjsyNg3PBV9t8e+Sj1LLRoV6V1h4ezW1Au0ISn48gsKJBbg0wS1vOe2eLNrY2x5OJu0Yt9Pj8Mdls5+oeN9ngRnVp6rod+aksKYXCzzWi7oFuMUaSguQbhOUMm2WrLU=; 24:/MTpYFwVAbF6K3cCUJV4yJId9019+j0pWcFa9+t2w0FCeBMAQlZ1nMSMF71Jg9bC4JRW5BYsMDtElH3ot5UElCAgkI71Mg7aG/gn5FoEmq0=; 7:56C0KSsb6Thzn2EbcrUAOWx7xnog3Bh5Erg31xSrDUOErTLDtC5YPWYUeTuBlq28sjZUEMFxratLo2FCp0RWgyoF6wYlQxWu70V0nV+8E44tT0MwfApWnPktTl1IagYYzNlezqW6n8EBSK+QQetKiYwvif+bBmkduGQKfjZt+baKjWUqXjB1WiFT/yrt8vGN SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2016 17:16:36.4630 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1227 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160504_101700_442825_855AA16D X-CRM114-Status: GOOD ( 12.46 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Cristian Stoica <cristian.stoica@nxp.com>, Scott Wood <scott.wood@nxp.com>, linux-crypto@vger.kernel.org, Tudor Ambarus <tudor-dan.ambarus@nxp.com>, "David S. Miller" <davem@davemloft.net>, Alexandru Porosanu <alexandru.porosanu@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.3 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 |
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