From patchwork Tue Nov 17 09:40:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56720 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1825091lbb; Tue, 17 Nov 2015 01:43:28 -0800 (PST) X-Received: by 10.140.162.214 with SMTP id i205mr9044834qhi.32.1447753401531; Tue, 17 Nov 2015 01:43:21 -0800 (PST) Return-Path: Received: from lists.xen.org (lists.xenproject.org. [50.57.142.19]) by mx.google.com with ESMTPS id r95si29178138qkh.81.2015.11.17.01.43.21 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:43:21 -0800 (PST) Received-SPF: neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=50.57.142.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZycmE-0002KZ-Fk; Tue, 17 Nov 2015 09:42:14 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZycmD-0002JP-2p for xen-devel@lists.xen.org; Tue, 17 Nov 2015 09:42:13 +0000 Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id E1/20-31069-476FA465; Tue, 17 Nov 2015 09:42:12 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-16.tower-31.messagelabs.com!1447753331!3665377!1 X-Originating-IP: [74.125.82.42] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6223 invoked from network); 17 Nov 2015 09:42:11 -0000 Received: from mail-wm0-f42.google.com (HELO mail-wm0-f42.google.com) (74.125.82.42) by server-16.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Nov 2015 09:42:11 -0000 Received: by wmww144 with SMTP id w144so17150083wmw.0 for ; Tue, 17 Nov 2015 01:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/wBnfgMYiVqwHjex8819z/2wg3aQVqco4M2lLUfiRUA=; b=NYLWCC0/hM8mMvT638sNyqIO8ePpCKpBr67/kIe4agn7EXQ5WOV6e8Dycmv6xv5YSh nAmWSCfhdNOJmkjqL1he7Tl9lNgy87eE93goEVs8PrfcxroC8qDI0dqg5Q8xuiY54STl 3OoHyztVii9cCBBocIHEpte7pIKjfmUiVj7p76fWi4181gNG9i7MXw9qeflMSj8IADdY 1syZx4rOE6CO3NPh8M2lxY319+gVE2UBSv5QgBXlIoPAty8NgxInKnEbVeWwlfgfDHKc SeeEgNL3r/9VGVSpSBQoFJQnelNcnv5BnpwYhLtLnbQmyHqV5pCtjh1+ypam4MaRUPWv CeuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/wBnfgMYiVqwHjex8819z/2wg3aQVqco4M2lLUfiRUA=; b=Wa71UCr6mLi0ni2fi9L4vXzm0NTa83dHxbkc5cJdxPfJ27bVfD/8Ng3aI3it/QEc/S luVOxI20KomtWmD3DWOy2/Pg5L5Wx9S3Tk00A8f2zavlnPDSkYBNsWWtH2nN5TkvQC6f 4Lo7pLM+ZkaczZQ6oDmG4keu1zpnNdN62bIKxrzhF/bgzWRv/rBuQ0PeYt2MU7GIN0b4 TJGzHgYlDnuCdHrCStujYRQXM/Ovcyqlw8wHDi10qdi5wZanzg02thI5oHI4um92Sm6X YoyDtd5uslfD8RBdKluZW5IH0kORhu9ACS2gDSpyHTZqF5QkZqvv+NnMN9RD1aj85z50 1dhw== X-Gm-Message-State: ALoCoQnRGuOIh7jZWhaeupM3OJYiXtJI26ErI81xxGvIaKIgAIEsu2tO4prY7qswE11t0Qgd9yO4 X-Received: by 10.194.178.70 with SMTP id cw6mr12255908wjc.73.1447753328036; Tue, 17 Nov 2015 01:42:08 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id ft4sm38894248wjb.37.2015.11.17.01.42.05 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:42:07 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org Date: Tue, 17 Nov 2015 17:40:06 +0800 Message-Id: <1447753261-7552-8-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> Cc: mark.rutland@arm.com, hangaohuai@huawei.com, ard.biesheuvel@linaro.org, shannon.zhao@linaro.org, christoffer.dall@linaro.org, peter.huangpeng@huawei.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, linux-arm-kernel@lists.infradead.org, roger.pau@citrix.com Subject: [Xen-devel] [PATCH v3 07/62] arm/acpi: Add arch_acpi_os_map_memory helper function for ARM X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org From: Shannon Zhao Signed-off-by: Shannon Zhao --- xen/arch/arm/Makefile | 1 + xen/arch/arm/acpi/Makefile | 1 + xen/arch/arm/acpi/lib.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 xen/arch/arm/acpi/Makefile create mode 100644 xen/arch/arm/acpi/lib.c -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 1ef39f7..1851ae8 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -2,6 +2,7 @@ subdir-$(arm32) += arm32 subdir-$(arm64) += arm64 subdir-y += platforms subdir-$(arm64) += efi +subdir-$(HAS_ACPI) += acpi obj-$(EARLY_PRINTK) += early_printk.o obj-y += cpu.o diff --git a/xen/arch/arm/acpi/Makefile b/xen/arch/arm/acpi/Makefile new file mode 100644 index 0000000..b5be22d --- /dev/null +++ b/xen/arch/arm/acpi/Makefile @@ -0,0 +1 @@ +obj-y += lib.o diff --git a/xen/arch/arm/acpi/lib.c b/xen/arch/arm/acpi/lib.c new file mode 100644 index 0000000..b68623b --- /dev/null +++ b/xen/arch/arm/acpi/lib.c @@ -0,0 +1,33 @@ +/* + * lib.c - Architecture-Specific Low-Level ACPI Support + * + * Copyright (C) 2015, Shannon Zhao + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +#include +#include +#include + +void __iomem * +arch_acpi_os_map_memory(acpi_physical_address phys, acpi_size size) +{ + return __va(phys); +}