From patchwork Fri May 29 07:46:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 49144 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C5AE218EC for ; Fri, 29 May 2015 07:46:28 +0000 (UTC) Received: by wgla2 with SMTP id a2sf15883240wgl.1 for ; Fri, 29 May 2015 00:46:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=JWnWpiyO3DyvC9E4Vw7YS5pk7qKYOeskJl03qup/1hU=; b=LXhJfQP6gmA/RPvo9goBk0HXKYyQYV+nEkf4yChb3IzFCzsynBQKGybsJiY06pqyf2 GKLYYlWfk7fEXFJQQ4vPcEqKtLE+fV78nijFIJwgl0bV1ILQzqbKNWvpPOYF4JAkokE0 0I/LcfE5//tN5ycaN5QpDaPwdUFJTmZIp5ENS6yT1qD9CkNZ6Gsga8AgE3u47ktrW9S1 yEinh2NQH8BHbPqB/njXszRppte/NAhJQCFwqRbOpjn7PuRffNbs2dPsPN4DtF1DeGam gPmuLV08okKHLMNvxbc6fwUhm5/yNflNrbsEE+aqyexINRP1P6yGyyFaz9NJTs9QrKVw zYVw== X-Gm-Message-State: ALoCoQmWbRsQXcFwCicqtqX/Qz0DeTOlBo8W2b5sr/TNUtfYT8auz1t3S1UxKL1a0jBFJEVQ6ZvF X-Received: by 10.112.84.104 with SMTP id x8mr6152264lby.23.1432885587487; Fri, 29 May 2015 00:46:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.182.228 with SMTP id eh4ls287158lac.45.gmail; Fri, 29 May 2015 00:46:27 -0700 (PDT) X-Received: by 10.152.238.1 with SMTP id vg1mr4133457lac.13.1432885587282; Fri, 29 May 2015 00:46:27 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id kw8si4013708lac.157.2015.05.29.00.46.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 00:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagv1 with SMTP id v1so49502145lag.3 for ; Fri, 29 May 2015 00:46:27 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr6595620lbb.29.1432885587024; Fri, 29 May 2015 00:46:27 -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 hn6csp96412lbb; Fri, 29 May 2015 00:46:26 -0700 (PDT) X-Received: by 10.68.191.167 with SMTP id gz7mr12784968pbc.43.1432885585314; Fri, 29 May 2015 00:46:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nw8si7313147pbb.84.2015.05.29.00.46.24; Fri, 29 May 2015 00:46:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458AbbE2HqX (ORCPT + 5 others); Fri, 29 May 2015 03:46:23 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33367 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754234AbbE2HqX (ORCPT ); Fri, 29 May 2015 03:46:23 -0400 Received: by padbw4 with SMTP id bw4so47988506pad.0 for ; Fri, 29 May 2015 00:46:22 -0700 (PDT) X-Received: by 10.70.129.172 with SMTP id nx12mr12732264pdb.157.1432885582319; Fri, 29 May 2015 00:46:22 -0700 (PDT) Received: from localhost ([180.150.148.224]) by mx.google.com with ESMTPSA id bc14sm4629447pac.6.2015.05.29.00.46.20 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 29 May 2015 00:46:21 -0700 (PDT) From: Hanjun Guo To: Lv Zheng Cc: Robert Moore , "Rafael J. Wysocki" , Al Stone , devel@acpica.org, linux-acpi@vger.kernel.org, Hanjun Guo Subject: [PATCH] ACPICA: Add MADT generic distributor version values for ACPI 6.0 Date: Fri, 29 May 2015 15:46:07 +0800 Message-Id: <1432885567-5924-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@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.54 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-Post: , List-Help: , List-Archive: List-Unsubscribe: , ACPI 6.0 specified MADT generic distributor version values, but the detail definition is missing in ACPICA version 20150515, add its support in this patch. Signed-off-by: Hanjun Guo --- This is the linux version of GIC version patch, please help to handle it, thanks! include/acpi/actbl1.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 06b61f0..a53530d1 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -835,6 +835,17 @@ struct acpi_madt_generic_distributor { u8 reserved2[3]; /* reserved - must be zero */ }; +/* Values for version in Generic Distributor (ACPI 6.0) */ + +enum acpi_madt_gic_version_type { + ACPI_MADT_GIC_VER_UNKNOWN = 0, + ACPI_MADT_GIC_VER_V1 = 1, + ACPI_MADT_GIC_VER_V2 = 2, + ACPI_MADT_GIC_VER_V3 = 3, + ACPI_MADT_GIC_VER_V4 = 4, + ACPI_MADT_GIC_VER_RESERVED = 5 /* 5 and greater are reserved */ +}; + /* 13: Generic MSI Frame (ACPI 5.1) */ struct acpi_madt_generic_msi_frame {