[PATCH v1 17/30] ACPICA: actbl2: Add bit constants of the Flags field in the IOVT IOMMU structure

From: Pawel Chmielewski

Date: Tue Oct 20 2026 - 10:23:25 EST


From: Xianglai Li <lixianglai@xxxxxxxxxxx>

According to the IOVT specification,
define macros for each bit of the Flags field in the IOVT IOMMU structure:

Bit 0: PCI device flag.
1: The IOMMU is a PCI device.
0: The IOMMU is a platform device.

Bit 1: Proximity domain valid.
Bit 2: Whether the devices managed by the IOMMU can be classified by
the PCI segment.
1: All devices under the root PCI bridge can be managed.
0: Manageable devices are placed in the device entry list.

Bit3: Hardware capability support.
Bit4: MSI interrupt address bypass supported.
Bit5-31: Reserved, must be zero.

The bit constants are used in a linux kernel driver outside of the
ACPICA code.

Link: https://github.com/acpica/acpica/commit/352f750e4cc0
Link: https://lore.kernel.org/all/20260717063713.3638059-3-maobibo@xxxxxxxxxxx/
Signed-off-by: Xianglai Li <lixianglai@xxxxxxxxxxx>
Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@xxxxxxxxx>
Signed-off-by: Pawel Chmielewski <pawel.chmielewski@xxxxxxxxx>
---
include/acpi/actbl2.h | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index baef525367b5..acbd46243736 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -919,6 +919,14 @@ struct acpi_iovt_iommu {
u32 device_entry_offset;
};

+/* Masks for Flags field above */
+
+#define ACPI_IOVT_IOMMU_PCI_DEVICE (1 << 0)
+#define ACPI_IOVT_IOMMU_PXM_VALID (1 << 1)
+#define ACPI_IOVT_IOMMU_MAGAGE_BY_SEGMENT (1 << 2)
+#define ACPI_IOVT_IOMMU_HW_CAP_SUPPORT (1 << 3)
+#define ACPI_IOVT_IOMMU_MSI_INT_BYPASS (1 << 4)
+
struct acpi_iovt_device_entry {
u8 type;
u8 length;
--
2.50.1