]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: SMMUv3 updates for IORT table definitions
authorSami Mujawar <sami.mujawar@arm.com>
Thu, 26 Apr 2018 15:41:05 +0000 (23:41 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Jun 2018 13:05:10 +0000 (21:05 +0800)
Updated the IORT SMMUv3 Node structure and flags to match the
IO Remapping Table, Platform Design Document, Revision C dated
15 MAY 2017.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Include/IndustryStandard/IoRemappingTable.h

index c113afdd27843111bc7ad6e1de1108260fad2bbc..2e5cb45d7e2ffd4a0559ef706b71874843e3fdbd 100644 (file)
@@ -4,6 +4,7 @@
   http://infocenter.arm.com/help/topic/com.arm.doc.den0049c/DEN0049C_IO_Remapping_Table.pdf\r
 \r
   Copyright (c) 2017, Linaro Limited. All rights reserved.<BR>\r
+  Copyright (c) 2018, ARM Limited. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
 \r
 #define EFI_ACPI_IORT_SMMUv3_FLAG_COHAC_OVERRIDE    BIT0\r
 #define EFI_ACPI_IORT_SMMUv3_FLAG_HTTU_OVERRIDE     BIT1\r
+#define EFI_ACPI_IORT_SMMUv3_FLAG_PROXIMITY_DOMAIN  BIT3\r
+\r
+#define EFI_ACPI_IORT_SMMUv3_MODEL_GENERIC          0x0\r
+#define EFI_ACPI_IORT_SMMUv3_MODEL_HISILICON_HI161X 0x1\r
+#define EFI_ACPI_IORT_SMMUv3_MODEL_CAVIUM_CN99XX    0x2\r
 \r
 #define EFI_ACPI_IORT_ROOT_COMPLEX_ATS_UNSUPPORTED  0x0\r
 #define EFI_ACPI_IORT_ROOT_COMPLEX_ATS_SUPPORTED    0x1\r
@@ -165,7 +171,7 @@ typedef struct {
 } EFI_ACPI_6_0_IO_REMAPPING_SMMU_NODE;\r
 \r
 ///\r
-/// Node type 4: SMMUv4 node\r
+/// Node type 4: SMMUv3 node\r
 ///\r
 typedef struct {\r
   EFI_ACPI_6_0_IO_REMAPPING_NODE          Node;\r
@@ -179,6 +185,9 @@ typedef struct {
   UINT32                                  Pri;\r
   UINT32                                  Gerr;\r
   UINT32                                  Sync;\r
+  UINT8                                   ProximityDomain;\r
+  UINT8                                   Reserved1[3];\r
+  UINT32                                  DeviceIdMappingIndex;\r
 } EFI_ACPI_6_0_IO_REMAPPING_SMMU3_NODE;\r
 \r
 ///\r