From patchwork Tue Nov 17 09:40:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56721 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1825105lbb; Tue, 17 Nov 2015 01:43:31 -0800 (PST) X-Received: by 10.140.231.213 with SMTP id b204mr30730299qhc.63.1447753401568; 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 f96si29206050qge.24.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 1ZycmI-0002NT-Ub; Tue, 17 Nov 2015 09:42:18 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZycmH-0002MH-9v for xen-devel@lists.xen.org; Tue, 17 Nov 2015 09:42:17 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 84/E3-03763-876FA465; Tue, 17 Nov 2015 09:42:16 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-8.tower-31.messagelabs.com!1447753336!4339490!1 X-Originating-IP: [74.125.82.50] 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 18863 invoked from network); 17 Nov 2015 09:42:16 -0000 Received: from mail-wm0-f50.google.com (HELO mail-wm0-f50.google.com) (74.125.82.50) by server-8.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Nov 2015 09:42:16 -0000 Received: by wmec201 with SMTP id c201so217870042wme.0 for ; Tue, 17 Nov 2015 01:42:16 -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=pRsSr+8NcqUORP87aPmPr+5NibQxU/q7T6cYBDDrahI=; b=KL6Kppxnz2iNETttcnBhT2+BxuEGwoLHl+IUdW3+C63ThsK0xneNw9EZWkUdZJqiSh Z+GX6E0UEkGV+RnrBAxwimLXLhbe464n61+5bSEjZW475yp1/KNDKGMU4A9kXWw/pld3 1XqEIGhHJ8cehiyyC6pEZw0aIktY0fqKP3zkv/BKa/wcKpcj8cOZHk005GxW+x/X+dhW RGY7ZFcNVD7PASyA2bUcH9ka4ROi4Min5wVUwfwKPNcUirw10yONQzw9M7/6QrWNdaYW oCyxOg4G/S8H7NaE4VT+0JPYu39UF/8ob9fm2PapcTU8oEXSZsd0wWr/0DkuajV3ekXF ILsw== 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=pRsSr+8NcqUORP87aPmPr+5NibQxU/q7T6cYBDDrahI=; b=gWArxWqVfY6zOeRYO8dzc3M92ajU5kSWDxwkAsDzhemDJLHWBX/HsdNj+sGj3V51va tW0q+XWddoS4zVV90meTa2RQEChODqVHXwi/K/Ye+XmAPCJMABa5CAzFBR2a5iVl5Xy5 HQ8agIKceSOjauSDeHDxPsrovPvCI9JldJRh/HI/A6fJ6FauH2mrSFkFd+Qdbtg05FM3 QWQSNopfbnu3cnXz/NPLwx6tXNQqXdO3uyLt7Xo66WJNQhbggmRPfYK2MtN4l8NLkDOb 5As3kn9sHVHJzK3a2u6849hdxLsjltu7HtvIpQTLa8XYqiWMszC/VYFFCtaM4fKzgxPs aILg== X-Gm-Message-State: ALoCoQksuMsdPgqKsPgSwtZYmeSybrQBiOSORufH43dNbFny3K1L5pFHkHWthCQXVD3K/651v6/g X-Received: by 10.28.128.5 with SMTP id b5mr1363612wmd.25.1447753335960; Tue, 17 Nov 2015 01:42:15 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id d10sm38990779wje.14.2015.11.17.01.42.13 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:42:15 -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:07 +0800 Message-Id: <1447753261-7552-9-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 08/62] arm/acpi: Add arm specific acpi header file 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 Add architecture specific definitions and calls required for acpi in new header file. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/setup.c | 3 +++ xen/include/asm-arm/acpi.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 xen/include/asm-arm/acpi.h -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index e95759d..3b29904 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -45,11 +45,14 @@ #include #include #include +#include struct bootinfo __initdata bootinfo; struct cpuinfo_arm __read_mostly boot_cpu_data; +bool_t __read_mostly acpi_disabled; + #ifdef CONFIG_ARM_32 static unsigned long opt_xenheap_megabytes __initdata; integer_param("xenheap_megabytes", opt_xenheap_megabytes); diff --git a/xen/include/asm-arm/acpi.h b/xen/include/asm-arm/acpi.h new file mode 100644 index 0000000..e41e03b --- /dev/null +++ b/xen/include/asm-arm/acpi.h @@ -0,0 +1,38 @@ +/* + * 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 + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +#ifndef _ASM_ARM_ACPI_H +#define _ASM_ARM_ACPI_H + +#include + +#define COMPILER_DEPENDENT_INT64 long long +#define COMPILER_DEPENDENT_UINT64 unsigned long long + +extern bool_t acpi_disabled; +/* Basic configuration for ACPI */ +static inline void disable_acpi(void) +{ + acpi_disabled = 1; +} + +#endif /*_ASM_ARM_ACPI_H*/