diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-10-26 01:53:53 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-01-13 09:32:32 +0100 |
commit | 6dd92ce6c541d331f384b808173b7c97c09c8684 (patch) | |
tree | 265ad7c830ad965ce85dee347b999f9230215e3a /hw | |
parent | 0e45355c5cf0f4ec88b5484c3bf2574bdc9c4e48 (diff) | |
download | qemu-6dd92ce6c541d331f384b808173b7c97c09c8684.zip qemu-6dd92ce6c541d331f384b808173b7c97c09c8684.tar.gz qemu-6dd92ce6c541d331f384b808173b7c97c09c8684.tar.bz2 |
hw/mips/malta: Introduce PIIX4_PCI_DEVFN definition
The PIIX4 PCI-ISA bridge function is always located at 10:0.
Since we want to re-use its address, add the PIIX4_PCI_DEVFN
definition.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20221027204720.33611-2-philmd@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/mips/malta.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/mips/malta.c b/hw/mips/malta.c index 34c2411..9fc3280 100644 --- a/hw/mips/malta.c +++ b/hw/mips/malta.c @@ -71,6 +71,8 @@ #define FLASH_SIZE 0x400000 +#define PIIX4_PCI_DEVFN PCI_DEVFN(10, 0) + typedef struct { MemoryRegion iomem; MemoryRegion iomem_lo; /* 0 - 0x900 */ @@ -1239,7 +1241,7 @@ void mips_malta_init(MachineState *machine) pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci")); /* Southbridge */ - piix4 = pci_create_simple_multifunction(pci_bus, PCI_DEVFN(10, 0), true, + piix4 = pci_create_simple_multifunction(pci_bus, PIIX4_PCI_DEVFN, true, TYPE_PIIX4_PCI_DEVICE); isa_bus = ISA_BUS(qdev_get_child_bus(DEVICE(piix4), "isa.0")); |