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: 6504691 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 094E9C0020 for ; Fri, 29 May 2015 07:46:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A1D4206A7 for ; Fri, 29 May 2015 07:46:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 524F2206A0 for ; Fri, 29 May 2015 07:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458AbbE2HqX (ORCPT ); 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-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; bh=ASTaYvOYFLq+s92eMmpc5C1z/BMNLtgG20HkLCg2n2k=; b=JfhXsexBXYSc1EBLOTripyRviDFUiQ6S9rj67FVOzPFwavco7KU7OjaKBgZIXIXEDA gOJRp6ifMowcEvH3sI0KQM47pJr78qVDxt9cJgukQn4K3Psux531S7Z1HUjVtiM1P4TJ eaYC84+zKZXbM58C5tf0l2yDEEIKP/AOLUrpi2+5CznIaPQ9QpQomkMS/HPnrnxT45SS oRiQ8uEzwRKLpfEBfkOCWSWl/KGV6LfIYID6xcXqzqvNJ4PtxwxEwYGyCEnWktzn3Qo7 JIEB3WjbsvX+EyDMG2LRfe68l6afSm/q1FZxQFYJUwejPopjVT2HxANpdIxxYJChWnjC 0s2A== X-Gm-Message-State: ALoCoQnNEEIEOPYjOXnSkkkfQklV9PdlCdCWiqj0KOPGqzCygvZxHw8notcH2oKMWddsjOjkg7kv 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: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {