From patchwork Mon Jul 13 21:31:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 6782451 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 135179F380 for ; Mon, 13 Jul 2015 21:34:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3188320704 for ; Mon, 13 Jul 2015 21:34:19 +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 31EF1206BC for ; Mon, 13 Jul 2015 21:34:18 +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 1ZElKe-0004yt-Tb; Mon, 13 Jul 2015 21:32:12 +0000 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZElKb-0004o5-Nz for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2015 21:32:10 +0000 Received: by igbij6 with SMTP id ij6so32191628igb.1 for ; Mon, 13 Jul 2015 14:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/npGuOTWqR5FCHJMwY41wesqJkVDHmr6ugXO/oTGkx4=; b=nPhiQ8p8GhW2EcNOWWiDwWlw4I7baWgNmmSw0GAmM3Bxn4+YKxg9KL+hf6yy4f3FTO 1sFEinESQ0ppT5PMxIt9JcubWwVcTHFR4DHA2++IKAyEvRaOCFUJv327syomFwjtZW2T eCLNPKkSvoIcaB42ee9kYjHeoZK782mc7wy3ncg2SFMlvGYdSEPGEe3oZ47pD0YquwwJ t+8smRZ5Q/WqR6qgxqtIBFePqHi4oBHZR5g6nVI984d6Z2nIAV0FXvNhD//LK7+IKrR8 6JbmBQ+M/RcN0d4lEMG3TC78loktqmOKB18txDN5F4fPnRWMIOb1t+gtwJi3FWB542tX hHvA== X-Received: by 10.50.4.102 with SMTP id j6mr15472938igj.40.1436823107733; Mon, 13 Jul 2015 14:31:47 -0700 (PDT) Received: from dl.caveonetworks.com (64.2.3.194.ptr.us.xo.net. [64.2.3.194]) by smtp.gmail.com with ESMTPSA id m92sm13343819ioi.41.2015.07.13.14.31.46 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 13 Jul 2015 14:31:46 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id t6DLVi4Z024092; Mon, 13 Jul 2015 14:31:44 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id t6DLVceN024091; Mon, 13 Jul 2015 14:31:38 -0700 From: David Daney To: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon Subject: [PATCH] arm64: Define HAVE_ARCH_PIO_SIZE and related symbols. Date: Mon, 13 Jul 2015 14:31:36 -0700 Message-Id: <1436823096-24059-1-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150713_143209_827377_438D6C78 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) 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: Robert Richter , linux-kernel@vger.kernel.org, David Daney MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 From: David Daney Needed to make pci_iomap() work. Signed-off-by: David Daney --- arch/arm64/include/asm/io.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 540f7c0..8ef78d5 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -149,6 +149,11 @@ static inline u64 __raw_readq(const volatile void __iomem *addr) #define IO_SPACE_LIMIT (PCI_IO_SIZE - 1) #define PCI_IOBASE ((void __iomem *)PCI_IO_START) +#define HAVE_ARCH_PIO_SIZE 1 +#define PIO_RESERVED SZ_32M +#define PIO_OFFSET 0 +#define PIO_MASK (PIO_RESERVED - 1) + /* * String version of I/O memory access operations. */