Lines Matching +full:acpi +full:- +full:based
2 * ACPI Virtual I/O Translation table implementation
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #include "hw/acpi/acpi.h"
8 #include "hw/acpi/aml-build.h"
9 #include "hw/acpi/viot.h"
49 PCIBus *bus = PCI_HOST_BRIDGE(obj)->bus; in enumerate_pci_host_bridges()
72 if (range_a->min_bus < range_b->min_bus) { in pci_host_range_compare()
73 return -1; in pci_host_range_compare()
74 } else if (range_a->min_bus > range_b->min_bus) { in pci_host_range_compare()
82 * Generate a VIOT table with one PCI-based virtio-iommu that manages PCI
85 * Defined in the ACPI Specification (Version TBD)
91 /* The virtio-iommu node follows the 48-bytes header */ in build_viot()
107 /* ACPI table header */ in build_viot()
110 build_append_int_noprefix(table_data, pci_host_ranges->len + 1, 2); in build_viot()
116 /* Virtio-iommu node */ in build_viot()
118 build_append_int_noprefix(table_data, 3 /* virtio-pci IOMMU */, 1); in build_viot()
131 for (i = 0; i < pci_host_ranges->len; i++) { in build_viot()
135 build_pci_host_range(table_data, pci_host_range->min_bus, in build_viot()
136 pci_host_range->max_bus, viommu_off); in build_viot()