Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp130313pxb; Fri, 15 Jan 2021 09:07:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDXy8trSi/10kqG/dj9rIQcpXG6c1VZJgHe00eyfWXyvv1/NrUbLjZR2LwFcc9XhIzzu3h X-Received: by 2002:a05:6402:b79:: with SMTP id cb25mr10258828edb.346.1610730454491; Fri, 15 Jan 2021 09:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610730454; cv=none; d=google.com; s=arc-20160816; b=i0Jj/BRI77SXcdg+oyP5XofqpB7c5vVwQMetp3J/CHCWrhfGelGTNb8Y/TqNMP0lMR Qsexx+2VYN9Kmr0baKWpR1I/pyFCzY2X7vMH1P5Sxw33PERZKv7ZdkQMhNjWOSgVBJsl aUHUCg7bgMMHCoQpQoBhb3ku8am8CXn00sx5T4AZS7HqWeXvHxz2yEXppUA1LyQG47rg Dm8mXSnCJZAKKHf13SKtMqWbi8/b+w9iyYDlG7ZoceERRktqvcSXtXePuFgtiC6mBn4b +jCzM0xJ14kGLtPPxNz0iqsYGe9SEjMNvbULDq8qiE2rNxb1uSOOxvtO8rSsOo/dpRhN Thnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=DnhHHS2EfyC9SCnBohvfDLKx9XqCcgHqAVRoqewkYI0=; b=d4CmkZvG581lXyyFSFluBV5x+5GsDv98RBcV9nD9ntDPDzpO2LafV56ozRLlCH9u7f QJSgBObwheHiKW629OToDnThL1wHSwCUS0MYG6cD/LTxaVp6uiZ/EZiPzQHyNQc8SBeL b5sCnm2efiRB4W4S4GgrQ+N5HrkIEejyjddvLbp7ZAjQbo9i9dgBG7gD8rDPImIRquvX d9cNmBceZQxoRDaBbpj8z8jtae5Sb+ZBDXj4OGJ4Hr6Iq+1/MZOKnYbrU3z3tNZ9PIQE 4qPMR/SMBCRTSbJVLqMQQ0LoftRrB/tVAeHBa7tjzYzz4xsYikOExvjM9KWZoS7Q93eT DMbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si4206756ejy.75.2021.01.15.09.07.10; Fri, 15 Jan 2021 09:07:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727229AbhAOREh (ORCPT + 99 others); Fri, 15 Jan 2021 12:04:37 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11024 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725910AbhAOREh (ORCPT ); Fri, 15 Jan 2021 12:04:37 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DHSDB5GBfzj8Gd; Sat, 16 Jan 2021 01:02:50 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Sat, 16 Jan 2021 01:03:47 +0800 From: John Garry To: , , , , , , , , CC: , , , , , , John Garry Subject: [PATCH RFC 1/4] arm64: io: Introduce IO_SPACE_BASE Date: Sat, 16 Jan 2021 00:58:46 +0800 Message-ID: <1610729929-188490-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1610729929-188490-1-git-send-email-john.garry@huawei.com> References: <1610729929-188490-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce IO_SPACE_BASE, which is the base address of the IO port region. 0x10000 is chosen intentionally to exclude legacy ISA IO port address range. Signed-off-by: John Garry --- arch/arm64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index fd172c41df90..2bcf55704bee 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -148,6 +148,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr) #define arch_has_dev_port() (1) #define IO_SPACE_LIMIT (PCI_IO_SIZE - 1) #define PCI_IOBASE ((void __iomem *)PCI_IO_START) +#define IO_SPACE_BASE (0x10000) /* * String version of I/O memory access operations. -- 2.26.2