From patchwork Wed Feb 4 14:01:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 44338 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4A0012029F for ; Wed, 4 Feb 2015 14:04:43 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id u56sf1467416wes.2 for ; Wed, 04 Feb 2015 06:04:42 -0800 (PST) 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=X9YK2IS37Of9dY/kYd4KREK/dsQAK9xFTCHoyE4r1XU=; b=RFte1HzYnu/1uwx6wGXRqkvLYMK/vurcB2vlGZujCnPcWHGAcf2Nij4G4zPRNVjzK3 AgVkr1LvSgVxwzLAjTOkp1cZ6L6jV+a1ZN3PL0zInDKysUbpcPIZGl4ODH5shRT9RVPi 9J/jgGMKSOkIZHTfQ1AgxhxR2KAN40tUvjVLZsekmilkUicpUJNbtB57z8ksivX3ndUY 3UHkLwXp2sAo0vBYGdkW/Tdg73wzh6WwP5RnPRyRDyjEV5qYrpr8x7eMxk9WTVGL1kvf wQqmrCg12L/snGOouBdwTl8jZEAbDgEoYCJqqHAi1gYPiNrJ8larfWp5yFPa1xJY8FsN Kcjg== X-Gm-Message-State: ALoCoQmfAv+WGWRLWOS/jx4o3ptyHqEzCYz6tbeeLZhZbRrE0uvfMgUKa5FdeLLJxeT354SPiSjZ X-Received: by 10.180.98.199 with SMTP id ek7mr2751196wib.1.1423058682513; Wed, 04 Feb 2015 06:04:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.193 with SMTP id ao1ls45743lac.20.gmail; Wed, 04 Feb 2015 06:04:42 -0800 (PST) X-Received: by 10.112.83.104 with SMTP id p8mr30730628lby.70.1423058682280; Wed, 04 Feb 2015 06:04:42 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id w1si1464901lag.6.2015.02.04.06.04.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 06:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id f15so1647833lbj.5 for ; Wed, 04 Feb 2015 06:04:42 -0800 (PST) X-Received: by 10.152.116.43 with SMTP id jt11mr30926109lab.69.1423058681981; Wed, 04 Feb 2015 06:04:41 -0800 (PST) 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.35.133 with SMTP id h5csp506440lbj; Wed, 4 Feb 2015 06:04:41 -0800 (PST) X-Received: by 10.220.98.199 with SMTP id r7mr19321186vcn.15.1423058680265; Wed, 04 Feb 2015 06:04:40 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id xp20si688911vcb.105.2015.02.04.06.04.38 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 06:04:40 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) 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 1YJ0YO-0006bN-31; Wed, 04 Feb 2015 14:03:40 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ0YM-0006a4-DR for xen-devel@lists.xen.org; Wed, 04 Feb 2015 14:03:38 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 8F/BD-02999-9B622D45; Wed, 04 Feb 2015 14:03:37 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-11.tower-31.messagelabs.com!1423058614!12004105!1 X-Originating-IP: [209.85.192.177] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.12.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12276 invoked from network); 4 Feb 2015 14:03:36 -0000 Received: from mail-pd0-f177.google.com (HELO mail-pd0-f177.google.com) (209.85.192.177) by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 4 Feb 2015 14:03:36 -0000 Received: by pdev10 with SMTP id v10so874944pde.10 for ; Wed, 04 Feb 2015 06:03:34 -0800 (PST) X-Received: by 10.70.47.231 with SMTP id g7mr45772977pdn.75.1423058614639; Wed, 04 Feb 2015 06:03:34 -0800 (PST) Received: from parthd-ubunutu.qualcomm.com ([202.46.23.62]) by mx.google.com with ESMTPSA id kg12sm2161881pbb.44.2015.02.04.06.03.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 06:03:33 -0800 (PST) From: parth.dixit@linaro.org To: xen-devel@lists.xen.org Date: Wed, 4 Feb 2015 19:31:50 +0530 Message-Id: <1423058539-26403-7-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> Cc: ian.campbell@citrix.com, Naresh Bhat , julien.grall@linaro.org, tim@xen.org, stefano.stabellini@citrix.com, jbeulich@suse.com, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH RFC 06/35] ACPI: Add Generic Interrupt and Distributor struct 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.217.174 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: From: Naresh Bhat Add Generic Interrupt and Distributor (ACPI 5.0) structure. Signed-off-by: Naresh Bhat --- xen/include/acpi/actbl1.h | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/xen/include/acpi/actbl1.h b/xen/include/acpi/actbl1.h index 9311e3a..dd6dc27 100644 --- a/xen/include/acpi/actbl1.h +++ b/xen/include/acpi/actbl1.h @@ -639,7 +639,9 @@ enum acpi_madt_type { ACPI_MADT_TYPE_INTERRUPT_SOURCE = 8, ACPI_MADT_TYPE_LOCAL_X2APIC = 9, ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10, - ACPI_MADT_TYPE_RESERVED = 11 /* 11 and greater are reserved */ + ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11, + ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, + ACPI_MADT_TYPE_RESERVED = 13 /* 13 and greater are reserved */ }; /* @@ -760,6 +762,31 @@ struct acpi_madt_local_x2apic_nmi { u8 reserved[3]; }; +/* 11: Generic Interrupt (ACPI 5.0) */ + +struct acpi_madt_generic_interrupt { + struct acpi_subtable_header header; + u16 reserved; /* reserved - must be zero */ + u32 gic_id; + u32 uid; + u32 flags; + u32 parking_version; + u32 performance_interrupt; + u64 parked_address; + u64 base_address; +}; + +/* 12: Generic Distributor (ACPI 5.0) */ + +struct acpi_madt_generic_distributor { + struct acpi_subtable_header header; + u16 reserved; /* reserved - must be zero */ + u32 gic_id; + u64 base_address; + u32 global_irq_base; + u32 reserved2; /* reserved - must be zero */ +}; + /* * Common flags fields for MADT subtables */