hw/pci-host/gpex: Define properties for MMIO ranges
commit8f6a4874887c226b0df35f5b78fa77f197507d96
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 18 Dec 2023 15:02:44 +0000 (18 20:32 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 10 Jan 2024 08:47:47 +0000 (10 18:47 +1000)
tree096eded485871f2be66df2c88b0f21c5d69f0649
parenta52aea263e0f25993e368ee682d96f32aff52499
hw/pci-host/gpex: Define properties for MMIO ranges

ACPI DSDT generator needs information like ECAM range, PIO range, 32-bit
and 64-bit PCI MMIO range etc related to the PCI host bridge. Instead of
making these values machine specific, create properties for the GPEX
host bridge with default value 0. During initialization, the firmware
can initialize these properties with correct values for the platform.
This basically allows DSDT generator code independent of the machine
specific memory map accesses.

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20231218150247.466427-11-sunilvl@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/pci-host/gpex-acpi.c
hw/pci-host/gpex.c
include/hw/pci-host/gpex.h