From patchwork Sun May 17 20:03:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 48652 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B568F21411 for ; Sun, 17 May 2015 20:07:03 +0000 (UTC) Received: by lagv1 with SMTP id v1sf4096464lag.1 for ; Sun, 17 May 2015 13:07:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=Ao3hcfDpGatKBDCdWxWByxO+JG35S6CJ0bddAHkkSXg=; b=M4bkbcSREGCD4D2d0CsRNMcW+7Z3nTYTPxyML62VzxV845At5K0HbqdAZO5oIY0Rkj EUA/0Rp4TChi/cLMZZ9eDrhKdZYtoveAtZNYKZ8TxrPRVECPgpKs9gvHEPy0ecPKPmHE 4l0Cqh8h7iHbtMw8Zu/eDBCbWAqzVN3ZT4jpGGIaHsb1w9UE0En+zzuRoehtqMdlI3Lx 1xFvMUbijEJfkgBInbA91fhkj8A/z+r6paCRaq0AQoDq+Ihq+FHyreizIgscDwxTci86 NQiO9t9Xt65tpN4Jo/iQN122n9e0bwrreXsYbe3HWMijYm2Pys7geEuYmsOj5uAic8i4 q3Kg== X-Gm-Message-State: ALoCoQnwQnUJ6g/azrmqpso2c2aMMhNdvNKTacwJtW+V/COKchJAUtxlrE/OhZCjUBH1xtJcu/Ge X-Received: by 10.180.7.138 with SMTP id j10mr7290052wia.2.1431893222696; Sun, 17 May 2015 13:07:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.202 with SMTP id dq10ls712625lac.109.gmail; Sun, 17 May 2015 13:07:02 -0700 (PDT) X-Received: by 10.112.188.194 with SMTP id gc2mr14841013lbc.25.1431893222543; Sun, 17 May 2015 13:07:02 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id xn1si5325912lbb.112.2015.05.17.13.07.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2015 13:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagr1 with SMTP id r1so109751101lag.0 for ; Sun, 17 May 2015 13:07:02 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr15233053lai.32.1431893222447; Sun, 17 May 2015 13:07:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3508130lbb; Sun, 17 May 2015 13:07:01 -0700 (PDT) X-Received: by 10.140.89.200 with SMTP id v66mr24569845qgd.50.1431893220867; Sun, 17 May 2015 13:07:00 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id m92si8280419qkh.76.2015.05.17.13.07.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 May 2015 13:07:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4p9-0002xH-6T; Sun, 17 May 2015 20:06:11 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4p8-0002uj-2y for xen-devel@lists.xen.org; Sun, 17 May 2015 20:06:10 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id 61/6A-03026-0B4F8555; Sun, 17 May 2015 20:06:08 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-4.tower-206.messagelabs.com!1431893166!11154633!1 X-Originating-IP: [209.85.220.42] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3871 invoked from network); 17 May 2015 20:06:07 -0000 Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by server-4.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 17 May 2015 20:06:07 -0000 Received: by pabts4 with SMTP id ts4so119796318pab.3 for ; Sun, 17 May 2015 13:06:06 -0700 (PDT) X-Received: by 10.66.124.226 with SMTP id ml2mr38123114pab.118.1431893166502; Sun, 17 May 2015 13:06:06 -0700 (PDT) Received: from localhost.localdomain ([117.247.24.139]) by mx.google.com with ESMTPSA id j9sm7838401pdm.53.2015.05.17.13.06.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 May 2015 13:06:05 -0700 (PDT) From: Parth Dixit To: xen-devel@lists.xen.org Date: Mon, 18 May 2015 01:33:53 +0530 Message-Id: <1431893048-5214-27-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, parth.dixit@linaro.org, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH v2 26/41] arm : acpi add xen environment table X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: 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 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Xen environment table is ACPI table that is used to pass grant table and event channel interrupt information to dom0. Signed-off-by: Parth Dixit --- xen/include/acpi/actbl2.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/xen/include/acpi/actbl2.h b/xen/include/acpi/actbl2.h index 9c8d807..fc3ec2d 100644 --- a/xen/include/acpi/actbl2.h +++ b/xen/include/acpi/actbl2.h @@ -80,6 +80,7 @@ #define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */ #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ #define ACPI_SIG_STAO "STAO" /* Status Override Table */ +#define ACPI_SIG_XENV "XENV" /* Xen Environment Table */ #ifdef ACPI_UNDEFINED_TABLES /* @@ -909,6 +910,25 @@ struct acpi_table_stao { /******************************************************************************* * + * XENV - Xen Environment Table + * Version 0.2 + * + ******************************************************************************/ + +struct acpi_table_xenv { + struct acpi_table_header header; /* Common ACPI table header */ + u64 gnt_start; /* Starting address of Xen grant table region */ + u64 gnt_size; /* Size of Xen grant table region */ + u32 evt_intr; /* Xen event channel interrupt */ + u8 evt_intr_flag; /* Flags for event channel interrupt */ +}; + +/* Event Channel Interrupt Flags */ +#define EVT_CHN_INTR_MODE (1 << 0) +#define EVT_CHN_INTR_TRIG (1 << 1) + +/******************************************************************************* + * * WAET - Windows ACPI Emulated devices Table * Version 1 *