mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
pc: pcihp: expose MMIO base and len as properties
it will be used later to dynamically reserve MMIO region instead of manually punching holes in PCI0._CRS Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
6ece7053d6
commit
78c2d8722b
3 changed files with 19 additions and 8 deletions
|
@ -32,6 +32,9 @@
|
|||
#include "hw/acpi/acpi.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
||||
#define ACPI_PCIHP_IO_BASE_PROP "acpi-pcihp-io-base"
|
||||
#define ACPI_PCIHP_IO_LEN_PROP "acpi-pcihp-io-len"
|
||||
|
||||
typedef struct AcpiPciHpPciStatus {
|
||||
uint32_t up;
|
||||
uint32_t down;
|
||||
|
@ -48,9 +51,11 @@ typedef struct AcpiPciHpState {
|
|||
PCIBus *root;
|
||||
MemoryRegion io;
|
||||
bool legacy_piix;
|
||||
uint16_t io_base;
|
||||
uint16_t io_len;
|
||||
} AcpiPciHpState;
|
||||
|
||||
void acpi_pcihp_init(AcpiPciHpState *, PCIBus *root,
|
||||
void acpi_pcihp_init(Object *owner, AcpiPciHpState *, PCIBus *root,
|
||||
MemoryRegion *address_space_io, bool bridges_enabled);
|
||||
|
||||
void acpi_pcihp_device_plug_cb(ACPIREGS *ar, qemu_irq irq, AcpiPciHpState *s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue