From patchwork Thu Jun 22 11:02:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 106198 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp50486qgd; Thu, 22 Jun 2017 04:02:54 -0700 (PDT) X-Received: by 10.99.101.132 with SMTP id z126mr1992205pgb.194.1498129374440; Thu, 22 Jun 2017 04:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498129374; cv=none; d=google.com; s=arc-20160816; b=wzugNCCEEuL3TGWFlEnxxaNPWF7mqDuu7Y9XaOcw4eARVXMxEERorujNbsoAOQ6dX6 T4BRmZTwX2uKMgbJjEuw0QvJg/y5KKz7Jy8Gdy3tuL8c+DNvRTvrzfI+13nwL7fFSY4+ ZwOFyaRXp9CkmXztWh8hR3I+33ldLB54yX7YWeAd84XBjXgv0hQjuxm+CD+SkluZeQPn qja6j3Qi94rxvy16MGOPq1jolH1KtgzMG0+j1VgaRhuH26ad/PnU2oY6GhKYgH/V+Zaf NQR8v1sWp7lKIoqn+7mNZePI+sju/8uuP9SvNgyhjLqSSTtGhtEDAAy3u1TPV02czMeI eSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=c/s+uP5tS9qkPXNgUHyzkQlD+ozyJsANX3MfMxas5qs=; b=M0fZHVKujuwadYVkmm0EjDfMxAnEO0KJ6ZtFYbTE+jvgZWPHTzGrWKJJKJD6arDNGl ODWO+aoOBBEllF7vX3sQwaUxTfHCXzgOt1kIW4jTCMQ792jp2wzS6+QWFW4ACjTX7tLA 7qqwDfYCa3H6HwMPz0WW6yWPWO+7h296tzQD3UlUdUiRab9pSYDjzR+rYiGZDG+gosWW whhhCiAOvmo06vkopXyCT+ZXkzxFqjMXZ8eCiFN8R55LZElYyCdKeXlyY+3EasUEYikK 6aMr8HGtxrrLVJHmX95Zc1isiksgNvGu1VeSUZ6y6cbJiIO3CA16JHVxirPCp1N6ZNz7 5IbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Kwv71af9; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 14si1114501plb.203.2017.06.22.04.02.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jun 2017 04:02:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=Kwv71af9; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 9D16F21CA3597; Thu, 22 Jun 2017 04:01:28 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7028621CA3585 for ; Thu, 22 Jun 2017 04:01:27 -0700 (PDT) Received: by mail-wr0-x22f.google.com with SMTP id 77so18392599wrb.1 for ; Thu, 22 Jun 2017 04:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=VbJsAtk5VI3JrfqymMHfvDmuY9OG91uOTttrXeOuZrY=; b=Kwv71af9UhsnZBz/EI8g9MegmBREyNviU2zH5miQrxmq383tBhyWV3/caHngi9VKWe qmRW5+IQL2CZbMLBVwlXzddDW73T9dH3bJOPxkoLu2GU72ygKbpmMe99yrYCRqddJYuR vlgEH2EavQuTYam2q9mpwGNq906BG0GgNWx0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VbJsAtk5VI3JrfqymMHfvDmuY9OG91uOTttrXeOuZrY=; b=PZkeLyzRHL46HKhePMSA77DIrAUIyMuMGHzedIz6RQiHpuXGsCia5ygxXIE75Wg6H3 XWdud7T4T8i6ewC/Rhy2ol61pDzPOQ7Z33xMr6sN1CvouK1WClQTQE5hrlJkiT9luL+z hed9zB4GLrFviwQDjYT+p/hAyr32TuKv/AQg8bTgRdSLTW/DGFOc/QtTun+cRtCwroxt dvg1GwE8zVA/nGpjqWWll/iwSF9MJY/E2XShcfcMdZ6bOlSMOW9daQ7Xf1z+2brysqvJ LEEjcr1KOdwO7qV93KkBXbHshZBycwZYJQCcIdq0rPIb3sroJHoC3WWR2AOz+Qbqbvby HuFg== X-Gm-Message-State: AKS2vOzF2uyL0M4AY3BCdV/kylYp2CHg5kcT1ImL+AE3XTJj/9QokVKP 96TL49YVoiHCJK+jdY/V9g== X-Received: by 10.28.47.79 with SMTP id v76mr1336831wmv.34.1498129370289; Thu, 22 Jun 2017 04:02:50 -0700 (PDT) Received: from localhost.localdomain ([160.163.217.139]) by smtp.gmail.com with ESMTPSA id u17sm991989wma.8.2017.06.22.04.02.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jun 2017 04:02:49 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, liming.gao@intel.com, michael.d.kinney@intel.com Date: Thu, 22 Jun 2017 11:02:43 +0000 Message-Id: <20170622110243.10038-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [edk2] [PATCH] MdePkg/IndustryStandard: update ACPI/IORT definitions to revision C X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This updates the IORT header to include the definitions that were added in revision C of the IORT spec that was made public recently. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- MdePkg/Include/IndustryStandard/IoRemappingTable.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) -- 2.9.3 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdePkg/Include/IndustryStandard/IoRemappingTable.h b/MdePkg/Include/IndustryStandard/IoRemappingTable.h index 430df3b956bb..c113afdd2784 100644 --- a/MdePkg/Include/IndustryStandard/IoRemappingTable.h +++ b/MdePkg/Include/IndustryStandard/IoRemappingTable.h @@ -1,7 +1,7 @@ /** @file - ACPI IO Remapping Table (IORT) as specified in ARM spec DEN0049B + ACPI IO Remapping Table (IORT) as specified in ARM spec DEN0049C - http://infocenter.arm.com/help/topic/com.arm.doc.den0049b/DEN0049B_IO_Remapping_Table.pdf + http://infocenter.arm.com/help/topic/com.arm.doc.den0049c/DEN0049C_IO_Remapping_Table.pdf Copyright (c) 2017, Linaro Limited. All rights reserved.
@@ -26,6 +26,7 @@ #define EFI_ACPI_IORT_TYPE_ROOT_COMPLEX 0x2 #define EFI_ACPI_IORT_TYPE_SMMUv1v2 0x3 #define EFI_ACPI_IORT_TYPE_SMMUv3 0x4 +#define EFI_ACPI_IORT_TYPE_PMCG 0x5 #define EFI_ACPI_IORT_MEM_ACCESS_PROP_CCA BIT0 @@ -41,6 +42,8 @@ #define EFI_ACPI_IORT_SMMUv1v2_MODEL_v2 0x1 #define EFI_ACPI_IORT_SMMUv1v2_MODEL_MMU400 0x2 #define EFI_ACPI_IORT_SMMUv1v2_MODEL_MMU500 0x3 +#define EFI_ACPI_IORT_SMMUv1v2_MODEL_MMU401 0x4 +#define EFI_ACPI_IORT_SMMUv1v2_MODEL_CAVIUM_THX_v2 0x5 #define EFI_ACPI_IORT_SMMUv1v2_FLAG_DVM BIT0 #define EFI_ACPI_IORT_SMMUv1v2_FLAG_COH_WALK BIT1 @@ -178,6 +181,18 @@ typedef struct { UINT32 Sync; } EFI_ACPI_6_0_IO_REMAPPING_SMMU3_NODE; +/// +/// Node type 5: PMCG node +/// +typedef struct { + EFI_ACPI_6_0_IO_REMAPPING_NODE Node; + + UINT64 Base; + UINT32 OverflowInterruptGsiv; + UINT32 NodeReference; +//EFI_ACPI_6_0_IO_REMAPPING_ID_TABLE OverflowInterruptMsiMapping[1]; +} EFI_ACPI_6_0_IO_REMAPPING_PMCG_NODE; + #pragma pack() #endif