acpi: add acpi_dsdt_add_gpex
commit5b85eabe68f9e75d85e0c0db3b9eade75e7217f0
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Sep 2020 10:42:46 +0000 (28 12:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 30 Sep 2020 09:29:56 +0000 (30 11:29 +0200)
treed80ec0c354ee63d69a2252447fb84ba0e8a5427f
parent52f5903a27f3bf862aced027dfce4444eed4e2fe
acpi: add acpi_dsdt_add_gpex

Add helper function to generate dsdt aml code for the gpex pci host.
Largely copied from arm/virt.  Configuration is handled by passing
a config struct instead of looked up from memory map.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20200928104256.9241-3-kraxel@redhat.com
hw/pci-host/gpex-acpi.c [new file with mode: 0644]
hw/pci-host/meson.build
include/hw/pci-host/gpex.h